apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: 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
<Fractional> Is it recommended to comment the code inside the methods and not only what the methods does?
<benzrf> if you think it clarifies
<benzrf> sure
<bnagy> definitely, just don't spoonfeed
<bnagy> like x,y = y,x # swap x and y is a bad comment
nateberkopec has quit [Quit: Leaving...]
webgen has quit [Quit: Leaving]
AlSquirrel has quit [Quit: This computer has gone to sleep]
<Fractional> I've been searching for some time but found no "ruby commenting style" 'guides' :P
<Fractional> or guidelines
<godd2> If you're writing code relatively cleanly, the code "should" speak for itself
bradhe has quit [Ping timeout: 252 seconds]
<benzrf> Fractional: fuckin TIMTOWTDI
nanoyak has quit [Ping timeout: 264 seconds]
<godd2> Fractional try checking out Clean Code: A Handbook of Agile Software Craftsmanship
RoryHughes has quit []
venkat has quit [Ping timeout: 272 seconds]
nfk has quit [Quit: yawn]
<Fractional> godd2: Is it worth a read?
<workmad3> Fractional: yes
unixpro1970 has quit [Quit: unixpro1970 has off IRC]
<bnagy> for something as simple as quicksort, reading your implementation should tell me as much as reading the wikipedia description of the alg
nanoyak has joined #ruby
kobain has joined #ruby
<bnagy> assuming a reader who is fluent in that lang
<godd2> Fractional: yes, the code samples are in Java, but the concepts are understandable even if you don't know Java.
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
mojjojo has quit [Quit: mojjojo]
<Fractional> benzrf: Am I supposed to search for a book, website, post or person? :P I don't find anything specific.
allaire has quit []
<benzrf> Fractional: idk o-o
habanany has quit [Ping timeout: 252 seconds]
Davey has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
<Fractional> This is the commenting I have for my Bubblesort function: http://pastebin.com/rTbUPZLh
<Fractional> Does it look fine to you?
iamsean has quit [Quit: iamsean]
Deele has quit [Ping timeout: 260 seconds]
<bnagy> that's not comments, that's doc
neliojrr has joined #ruby
neliojrr has quit []
<Fractional> Yes, does it look well documentated for you? (The method)
<bnagy> but yeah, although I want to know if it's returning a new array or modifying the array I pass
habanany has joined #ruby
<Fractional> bnagy: Thanks, will add that! :)
jailbot has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
shadoi has joined #ruby
Davey has joined #ruby
fgo has joined #ruby
punkzioc has quit [Quit: Leaving]
rootshift has joined #ruby
<workmad3> bnagy: hmm... with a sorting algo, I'd expect a wiki page to give a bit more detail about the analysis of the algo than an implementation would
jtdowney has joined #ruby
mojjojo has joined #ruby
meatherly has quit [Remote host closed the connection]
<workmad3> bnagy: i.e. it wouldn't be obvious from most implementations if a sorting algo had worst-case performance of O(n^2) or was O(n log n) all the way, etc
jtdowney has quit [Client Quit]
<Fractional> Thank you all for your help by the way, I greatly appreciate it! :)
agjacome has joined #ruby
meatherly has joined #ruby
jtdowney has joined #ruby
<workmad3> bnagy: which I guess is an indication of something that *would* be useful in a comment :)
pel_daniel has left #ruby [#ruby]
<workmad3> Fractional: btw, it *really* doesn't boost confidence when the comment examples of output are incorrect ;)
<workmad3> Fractional: and I'd be really quite surprised if a sorting algorithm gave '[1, 1, 4, 7, 6, 1]' as sorted output :D
habanany has quit [Ping timeout: 272 seconds]
<Fractional> workmad3: Emberassing moment -sighs- xD
agjacome has quit [Client Quit]
mojjojo has quit [Client Quit]
<Fractional> Sorry, it is edited now :P
agjacome has joined #ruby
vlad_starkov has joined #ruby
mojjojo has joined #ruby
zxd has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfelchner has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
<workmad3> heh
<Fractional> Commenting guidelines, where art thou?
vlad_starkov has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
monkegjinni has joined #ruby
yasushi has quit [Remote host closed the connection]
<workmad3> Fractional: my basic commenting guideline - can I get away with not writing this comment and instead have code or a test say what the comment would?
<workmad3> Fractional: if I can (and it's usually the case), no comment necessary
<centrx> Self-documenting code is the best
<workmad3> Fractional: otherwise, write the absolute bare minimum
<centrx> Most of my comments are either "TODO" items, or explanations of provisional work-arounds
<workmad3> Fractional: things to especially stay away from - comments that describe the implementation
tyl has joined #ruby
figgleberry has joined #ruby
<Fractional> workmad3: What do you mean by that Workmad? Like comments explaining how you came to the idea of doing it so?
nowthatsamatt has joined #ruby
<Fractional> centrx, workmad3: https://gist.github.com/Freddan962/57ef48c023a5194569f0 - Do you think there is anything I need to lift forward? Perhaps on the quicksort?
mary5030 has quit [Remote host closed the connection]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
ciwolsey has quit [Remote host closed the connection]
<centrx> Fractional, lift forward?
<Fractional> centrx: Anything to comment on
<workmad3> Fractional: not quite what I meant, but yes a history of how you came to an idea is definitely not a good comment IMO
<workmad3> Fractional: if you want to do that, put it in your commit history
<Fractional> workmad3: Seems uneccesary :P
<centrx> A comment like that could be helpful for you personally, or be good for your grade
sassamo has quit [Read error: No route to host]
<centrx> For a non-academic project with multiple developers though, workmad3 has it right
<workmad3> Fractional: what I was meaning is comments like 'this line recurses into the left and right arrays from the pivot'
drumsrgr8forn8 has quit [Ping timeout: 260 seconds]
sassamo has joined #ruby
<benzrf> should i use arr or ary?
<centrx> Fractional, There are ways you could Rubyfy the code more, but it looks good
tkuchiki has joined #ruby
<centrx> benzrf, How about "array"
<benzrf> bah
<Fractional> benzrf: Thanks :D
<centrx> benzrf, Or name it by what it contains, not by the data type
<workmad3> Fractional: I'd personally also prefer something like 'ary.insertion_sort' rather than 'insertionsort(ary)'
<Fractional> workmad3: Sounds fair enough, I'll get working! :)
<workmad3> Fractional: but I'd also tend to stay away from implementation-dependent names (hence the existing 'ary.sort' method)
mojjojo has quit [Quit: mojjojo]
hypnosb has joined #ruby
prc has left #ruby [#ruby]
venkat has joined #ruby
<benzrf> centrx: it's a loop thingy though
<workmad3> Fractional: if you wanted a bit of a project, you could extend the existing .sort method so you could specify the sorting algo to use , e.g. ary.sort(:bubble), ary.sort(:insert), ary.sort(:default)
<centrx> benzrf, If that is really what it is, call it loop_thingy
<hypnosb> Hi I want to identify rows in an array but with multiple positions, so like: pos = [5,[4,1],2 but when I loop through I get 5 4 1 2 ... I'd expect to have to loop through twice? what am I looking for?
<hypnosb> so like the first index is row 0 at row 5, row 1 with positions 4 and 1
<centrx> hypnosb, Is that what are you are seeing as console output? It might just be how it looks when an array is printed
monkegjinni has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
<hypnosb> yes
wildroman2 has joined #ruby
<hypnosb> puts i
monkegjinni has joined #ruby
<benzrf> hypnosb: you want p i
coca_rails has quit [Remote host closed the connection]
<benzrf> hypnosb: puts turns things 'displayable'
Davey has quit [Quit: Computer has gone to sleep.]
<hypnosb> ohh yeah
<benzrf> hypnosb: p keeps them the same as you see in irb
<hypnosb> you tha man
<hypnosb> thanks
duggiefresh has joined #ruby
duggiefresh has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
_Andres has quit [Ping timeout: 272 seconds]
<workmad3> def p(thing); puts thing.inspect; thing; end <-- sample implementation of 'p' :)
mojjojo has joined #ruby
jtdowney has quit []
<hypnosb> plz show off moar
peterhu has quit [Quit: reboot for kernel update]
<workmad3> hypnosb: you could also use 'print'
<workmad3> hypnosb: which is kinda equivalent of 'puts thing.inspect' ;)
venkat has quit [Ping timeout: 252 seconds]
<benzrf> workmad3: false
<benzrf> workmad3: print is like puts but stripping out newlines
<hypnosb> hey is there an online ruby ide other than try ruby that is more robust?
<workmad3> >> print [1,3]
<eval-in> workmad3 => [1, 3]nil (https://eval.in/93099)
<workmad3> >> puts [1,3]
<eval-in> workmad3 => 1 ... (https://eval.in/93100)
<workmad3> benzrf: different
<hypnosb> one i can write a script than just irb
prc has joined #ruby
<workmad3> benzrf: print of an array is closer to puts ary.inspect ;)
tylersmith has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
<benzrf> workmad3: wait wtf
<benzrf> in mine it works like puts
<benzrf> [1] pry(main)> print [1, 2, 3]
<benzrf> 123=> nil
jtdowney has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
jtdowney has quit [Max SendQ exceeded]
monkegjinni has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Ping timeout: 272 seconds]
<benzrf> i g2g
<benzrf> nice talk o-o
benzrf has left #ruby [#ruby]
<workmad3> hehe
jailbot has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
julweber has joined #ruby
_Andres has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Quit: Leaving.]
bigkevmcd has joined #ruby
nathancahill has quit [Quit: nathancahill]
mlpinit has joined #ruby
predator117 has joined #ruby
Butcho has joined #ruby
Guest24136 has quit [Read error: Operation timed out]
mojjojo has quit [Quit: mojjojo]
aryaching_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
mlpinit has quit [Client Quit]
Davey has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tulak has quit [Read error: Connection reset by peer]
tulak has joined #ruby
scarolan has joined #ruby
dukz has joined #ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
shime has quit [Ping timeout: 265 seconds]
mojjojo has quit [Client Quit]
Davey has quit [Client Quit]
marwinism has quit [Ping timeout: 248 seconds]
marwinism has joined #ruby
Jetchisel has quit [Ping timeout: 256 seconds]
scarolan has quit [Ping timeout: 248 seconds]
dukz has quit [Remote host closed the connection]
<hypnosb> I'm looping through an array... is there anyway I can get an iterator variable also?
<hypnosb> forget ... so many langs :-|
<hypnosb> :)
tylersmith has quit [Remote host closed the connection]
klip has quit [Read error: Operation timed out]
<godd2> hypnosb when you say an iterator variable, do you mean like access to the current index? because if so, try Array#each_with_index
punkzio has quit [Remote host closed the connection]
mansi has joined #ruby
bradhe has joined #ruby
closer has quit [Ping timeout: 256 seconds]
<hypnosb> godd2, looks good... thanks
Spami has quit [Quit: This computer has gone to sleep]
Authenticator has joined #ruby
sassamo has quit [Remote host closed the connection]
figgleberry has quit [Ping timeout: 272 seconds]
kitak has quit [Remote host closed the connection]
Jetchisel has joined #ruby
sassamo has joined #ruby
ewnd9 has joined #ruby
closer has joined #ruby
dblessing has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
kitak has joined #ruby
nateberkopec has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
Jdubs has joined #ruby
senj has quit [Quit: Sleep Now]
sassamo has quit [Ping timeout: 252 seconds]
eshy has quit [Quit: leaving]
klip has joined #ruby
iliketurtles has joined #ruby
kbouwser has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has quit [Excess Flood]
eshy has joined #ruby
iliketurtles has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
nathancahill has joined #ruby
eshy has quit [Client Quit]
Hanmac1 has joined #ruby
alexherb1 has quit [Quit: WeeChat 0.4.3-dev]
eshy has joined #ruby
aantix has quit [Quit: aantix]
Hanmac has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
Spami has joined #ruby
ephemerian has quit [Quit: Leaving.]
marr has quit [Ping timeout: 265 seconds]
beginner_coder has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
tkuchiki has joined #ruby
IceyEC has joined #ruby
<beginner_coder> What is .match. Can someone explain to me that method please.
geggam has quit [Quit: Leaving]
kitak has quit [Read error: Connection reset by peer]
<centrx> beginner_coder, String#match ?
kitak has joined #ruby
<beginner_coder> Yes sir.
nowthatsamatt has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
<beginner_coder> Yes centrx.
danijoo has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
pardusf has joined #ruby
parduse is now known as Guest78907
danijoo has joined #ruby
pardusf has quit [Changing host]
pardusf has joined #ruby
pardusf is now known as parduse
<centrx> beginner_coder, Are you familiar with regular expressions?
<beginner_coder> No sir. I am not familar.
dik_dak has joined #ruby
<beginner_coder> familiar*
thumpba has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
<centrx> beginner_coder, Regular Expressions is a language for matching strings in a well-defined, concise, and flexible way
<godd2> If you want to match a pattern to a string. So like, "Ruby is awesome!".match(/Ruby/) will match with the first 4 characters
<centrx> beginner_coder, So if you want to match a telephone number, you could do: \d{3}-\d{4}
IceyEC has quit [Client Quit]
dblessing has quit [Quit: dblessing]
<centrx> beginner_coder, Which will match any three numbers ("d"igits) follows by a dash (represented by the dash), and then four digits
Guest78907 has quit [Ping timeout: 252 seconds]
<beginner_coder> Do you mind making an example on eval.in please?
<centrx> >> "Ruby is awesome!".match(/Ruby/)
<eval-in> centrx => #<MatchData "Ruby"> (https://eval.in/93113)
<godd2> beginner_coder check out the book Mastering Regular Expressions. It's the go to source for learning regular expressions
<beginner_coder> Ok, thank you guys. Thank you godd2 and centrx and eval-in.
brennanMKE has quit [Ping timeout: 246 seconds]
venkat has joined #ruby
sparrovv has quit [Remote host closed the connection]
jfelchner has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
<shevy> hehe
<shevy> beginner_coder, eval-in is a bot
brennanMKE has joined #ruby
<shevy> it's nice of you to thank him but he won't care
<beginner_coder> Really???
chrisramon has joined #ruby
<godd2> And when the bots take over, who do you think will be on the top of their list for the New World Order? shevy? nope; beginner_coder
jtdowney has joined #ruby
jailbot has quit [Read error: Connection reset by peer]
<beginner_coder> Oh you guys know about the New World Order. Tell e about it.
<beginner_coder> godd2 I'm surprised, how much you know?
jailbot has joined #ruby
<beginner_coder> Are you going to get the mark of the beast when it comes out godd2
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
<godd2> Wait, the tattoo I have isn't the mark of the beast?? I have some money to go get back...
<shevy> beginner_coder only godd2 knows, I am clueless
<beginner_coder> You know about the NWO correct godd2? How much do you know?
<bnagy> godd2: too late - you don't have the mark now, so no buying or selling for you
<shevy> godd2: pink tattoos aren't a good sign
<shevy> beginner_coder always new groups rising to power and stealing money from the public ;)
vpretzel has quit [Ping timeout: 252 seconds]
<beginner_coder> What I mean by the mark of the beast is microchips. Is it law now cause I swear I am not taking that, I rather die then take it.
fgo has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 272 seconds]
<shevy> ack
mocfive_ has quit [Remote host closed the connection]
<shevy> only terrorists refuse to get their chip implant
<shevy> or you shall use credit cards
<shevy> same effect
hetre85 has quit [Ping timeout: 248 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hetre85_ has joined #ruby
fgo has joined #ruby
fella5s has quit [Remote host closed the connection]
<havenwood> beginner_coder: I think you're in the wrong channel, you're looking for #ruby-illuminati.
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<beginner_coder> relly
<beginner_coder> does that exist?
mansi has quit [Ping timeout: 264 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
nanoyak has quit [Quit: Computer has gone to sleep.]
<havenwood> shhhhh
<shevy> yes
<shevy> we are here
<shevy> but we have been driven away from the gangsters at #ruby-lang
<shevy> beginner_coder if you go there, beat them down please
Hanmac has joined #ruby
bricker is now known as bricker`awat
bricker`awat is now known as bricker`away
<beginner_coder> does the illuminati exist?
<beginner_coder> I tried to join that chat lobby but it doesn't take me there.
Hanmac1 has quit [Ping timeout: 272 seconds]
<bnagy> oh awesome, Trollpants McTrolligan is back
MatthewsFace has joined #ruby
mspah_ has joined #ruby
bean__ has joined #ruby
<dorei> beginner_coder: of course We exist
<shevy> hehe
<shevy> beginner_coder giving entities names changes perception
<shevy> beginner_coder that's why my favourite variable is _
Hobogrammer has quit [Ping timeout: 260 seconds]
<beginner_coder> Hold on wtf, you said we.
olivier_bK has quit [Ping timeout: 252 seconds]
<havenwood> i'd rather talk about the Ruby weight loss show
<beginner_coder> Are you an occultist or a freemason dorei?
mspah_ has quit [Client Quit]
MatthewsFace has quit [Client Quit]
mspah_ has joined #ruby
MatthewsFace has joined #ruby
MindfulMonk has quit [Ping timeout: 260 seconds]
<godd2> shevy the Scala _ or the Ruby _
cj3kim has joined #ruby
brennanMKE has joined #ruby
<dorei> beginner_coder: i'm an atheist, atheists aint allowed at freemason lodges
RoxasShadowRS has quit [Quit: Leaving]
<beginner_coder> So why did you say of course we exist
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
IceDragon has quit [Quit: Space~~~]
<havenwood> dorei: whew, we're safe!
<agent_white> shevy: I call my dog's toys their 'babies'. I think they all are neglectful parents.
<havenwood> dorei: do they have a don't ask don't tell policy though?
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
smathieu has quit [Read error: Connection reset by peer]
Asher has joined #ruby
smathieu has joined #ruby
MatthewsFace has joined #ruby
mspah_ has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
kristiandelay has joined #ruby
Azure has joined #ruby
Butcho has joined #ruby
bradhe has joined #ruby
<dorei> havenwood: i think the only requirement to accept someone at a lodge is to believe in some sort of a higher being, call it whatever u wish, jehova, allah, thor, zeus, etc.
Barrin6 has joined #ruby
meatherly has joined #ruby
<havenwood> ah
<havenwood> Thor!
bricker`away has quit [Ping timeout: 248 seconds]
<godd2> I know there's a Thor gem, are there Allah, Zues and Jehova gems too?
Virtualize has joined #ruby
<havenwood> I'll see you in Valhalla! Bring me my ale valkyry!
agjacome has quit [Ping timeout: 252 seconds]
nwertman has quit [Ping timeout: 272 seconds]
mspah_ has quit [Client Quit]
MatthewsFace has quit [Client Quit]
<havenwood> godd2: There's a God gem, was discussing whether to use God or BluePill at lunch the other day and got some weird looks.
<havenwood> "I just can't decide whether I like God or BluePill better."
figgleberry has joined #ruby
aspires has quit []
kristiandelay has quit [Ping timeout: 265 seconds]
bradhe has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
brennanMKE has joined #ruby
figgleberry has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
brennanMKE has quit [Ping timeout: 246 seconds]
net_mask has quit [Ping timeout: 252 seconds]
jfelchner has joined #ruby
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> godd2 _ is sex as a throwaway variable in any language
<shevy> *sexy
chrisramon has quit [Quit: chrisramon]
<shevy> it like frees the brain to have to think
<Hanmac> "_" is one of few variable names that are threat specially
<shevy> _ = 'ffmpeg -i bla.avi -o lala.mp4'; puts e; system _
Butcho has joined #ruby
<Hanmac> shevy: you can use "*" as whitespace character for variables too ;P
<godd2> and don't forget its use in irb as "the last returned thing"
<Hanmac> but only in parameter lists
chrisseaton has quit []
tylersmith has joined #ruby
yacks has joined #ruby
charliesome has joined #ruby
pardusf has joined #ruby
parduse is now known as Guest64877
pardusf has quit [Changing host]
pardusf has joined #ruby
pardusf is now known as parduse
maletor has quit [Quit: Computer has gone to sleep.]
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
Guest64877 has quit [Ping timeout: 248 seconds]
tharindu has joined #ruby
Ohga has joined #ruby
jtdowney has quit []
<shevy> Hanmac how do you mean?
<shevy> godd2 irb isn't the ruby parser though
<shevy> basically you run invalid code there ;)
tylersmith has quit [Ping timeout: 265 seconds]
<Ohga> hi. Would someone be able to give some advice over pm on a code design problem?
<shevy> pm are so annoying
<shevy> can't you just ask the question here?
<Hanmac> >> [[1,2,"1"],[2,4,"2"],[3,6,"3"]].map {|*,n|n}
<eval-in> Hanmac => ["1", "2", "3"] (https://eval.in/93125)
<Hanmac> shevy: did oyu see what i mean?
<godd2> >> a, *b, c = [1,2,3,4,5,6,7]; b
<eval-in> godd2 => [2, 3, 4, 5, 6] (https://eval.in/93126)
nvrch_ has joined #ruby
nvrch has quit [Read error: Operation timed out]
nvrch_ is now known as nvrch
Neomex1 has quit [Quit: Neomex1]
<godd2> is that the same 'catch a bunch' asterisk?
tulak has quit [Quit: Leaving.]
switchspan has joined #ruby
<Fractional> Soon recieving my oculus rift, woho! :D
<Hanmac> godd2: what do you think?
thealch3m1st has joined #ruby
<Hanmac> >> a, *, c = [1,2,3,4,5,6,7]; [a,c]
<eval-in> Hanmac => [1, 7] (https://eval.in/93127)
tuttinator has joined #ruby
tulak has joined #ruby
baroquebobcat has joined #ruby
tulak has quit [Client Quit]
<godd2> right, because a, _, c would leave a as 1 and c as 3
dblessing has joined #ruby
<Hanmac> Fractional: i want glasses like in "Dennou Coil" where i cant decide anymore what is "real" and what is Augmented ;P
<shevy> Hanmac, what do you think is this poem about: http://pastie.org/pastes/8655655/text
fgo has quit [Remote host closed the connection]
net_mask has joined #ruby
fgo has joined #ruby
<Hanmac> shevy: its to late for me to thnk ;P
<dorei> dennou coil :)
ctp has joined #ruby
<Hanmac> godd2: or combined
<Hanmac> >> a, _, b,_,c,*, d = [1,2,3,4,5,6,7,8,9]; [a,b,c,d]
<eval-in> Hanmac => [1, 3, 5, 9] (https://eval.in/93128)
<shevy> Hanmac hehe ok read it after sleep
cj3kim has quit [Remote host closed the connection]
nwertman has joined #ruby
momomomomo has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<Hanmac> dorei: yeah did you see the anime? i want glasses where no one would know what is fiction and what not ;P
<Fractional> Sword Art Online
<dorei> Hanmac: lsd spraying glasses? :p
<godd2> one, two, *skip_a_few, ninty_nine, one_hundred = [*1..100]
<Hanmac> hm maybe not so much .. in SAO you see what is and what not
Fractional has quit [Quit: Leaving]
fire has joined #ruby
<Hanmac> dorei: hm something like that ;P
masterkorp has joined #ruby
masterkorp has left #ruby ["WeeChat 0.3.8"]
troyready has quit [Ping timeout: 272 seconds]
masterkorp has joined #ruby
<masterkorp> guys
<masterkorp> How do i set a specific version of a gem to be used
benzrf has joined #ruby
<benzrf> hows it goin ruby people
<masterkorp> also how do i list the existing versions of gem locally
<benzrf> masterkorp: normally i just type 'gem' then mash tab
<havenwood> masterkorp: gem list gem_name
vlad_starkov has joined #ruby
<havenwood> masterkorp: Usually in a Gemfile.
<masterkorp> and to activate it ?
<havenwood> masterkorp: Activate?
Hanmac1 has joined #ruby
<masterkorp> yeah i have capistrano 3 and 2
<masterkorp> how do i set capistrano 2 to be used ?
<havenwood> in your Gemfile typically
<benzrf> masterkorp: edit ur gemfile?
<masterkorp> no gemfile !
<benzrf> masterkorp: welp
nwertman has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
ctp has quit [Ping timeout: 260 seconds]
<benzrf> dang versions are a bitch
blandflakes has quit [Quit: Page closed]
amclain has joined #ruby
<havenwood> masterkorp: use the full path to the gem binary, create a Gemfile, remove the Cap you don't want, use gs, chgems, or something similar
<havenwood> there are many ways to do it
<godd2> gem "test", ">= 1.3.6" # assuming the gem name is actually "test"
<godd2> require "test" # assuming there is a file "test.rb" in the gem
Hanmac has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
<masterkorp> and with the gem command?
cj3kim has joined #ruby
<godd2> or if you have rvm installed, you can create a custom gem package and install a specific version to that package
switchspan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<masterkorp> lol overcomplicating
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cj3kim has quit [Remote host closed the connection]
<masterkorp> i have the 2 versions installed how do I switch back ??
Butcho has joined #ruby
<havenwood> masterkorp: uninstall the one you don't want
Butcho has quit [Max SendQ exceeded]
<benzrf> what does gem do if you dont specify a version?
<masterkorp> i want do it
<shevy> masterkorp remove one version and stop making your life harder
<havenwood> masterkorp: gem help uninstall
<masterkorp> shevy: i need them
<masterkorp> for diferent projects
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
beginner_coder has quit [Ping timeout: 272 seconds]
<havenwood> masterkorp: then use chgems, rvm gemsets, gs, any of the tools meant to do such a thing, or use a Gemfile with bundler
<havenwood> masterkorp: these are your options.
<shevy> I still think the best is to decide on one version :)
julweber has quit [Remote host closed the connection]
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
smathieu has quit [Remote host closed the connection]
<godd2> masterkorp are you on windows/linux/mac?
<masterkorp> archlinux
<havenwood> or ohmygems
<benzrf> ohmygems
<benzrf> wut
<shevy> benzrf, in ruby it is tradition to pick stupid names for your gem
<masterkorp> fuck rvm
<shevy> benzrf you will have to decide on a name for your gem as well
<masterkorp> i use rbenv
<masterkorp> still i know that gems support multiple versions by default
<masterkorp> i know its possible to do it
bricker`LA has joined #ruby
<masterkorp> i am missing the google fu right now
<benzrf> yo check out this thing i made
<pragmatism> benzrf: I've bseen gems named clitt, womanizer, lolita, tranny, analdiffist, etc.
<benzrf> 1 sec
<shevy> masterkorp gem 'name', 'version'
<havenwood> masterkorp: nope, you're incorrect
<benzrf> pragmatism: wut
<pragmatism> Some people are just fucking stupid
<pragmatism> yeah
<pragmatism> srsly
<pragmatism> It's almost like they forget professionals / women write code.
<pragmatism> /rant
<benzrf> wait shit
<benzrf> thats not mine
<benzrf> wtf pry lied ;-;
<havenwood> he doesn't want to require, but to use the binary i'm figuring, we're talking cap
<shevy> pragmatism I wanna find out what name women give their gems
<masterkorp> found
<shevy> a binary?
<shevy> then that is even easier!
<masterkorp> cap _2.x.x_ deploy
<masterkorp> see no use for that
<pragmatism> shevy: I don't think one should be able to tell the difference
<shevy> pragmatism true. there are stupid names and good names
<pragmatism> The names should serve the people using the gems, not the authors
<havenwood> shevy: very easy, full path, done.
<shevy> agreed
<shevy> havenwood yeah!
icantbecool has joined #ruby
icantbecool has left #ruby [#ruby]
<shevy> I have almost 20.000 aliases :-)
rudisimo has joined #ruby
<shevy> all stored in yaml files
<godd2> pragmatism lol why would it be relevant than women write code for naming a gem clitt to be unprofessional?
<godd2> surely it would be unprofessional regardless
<shevy> now you see how difficult it is to move to 2.1 with all my invalid yaml files!
<havenwood> shevy: rofl
<shevy> well
<pragmatism> godd2: You're missing the point, it's ridiculous regardless.
<shevy> clitt does not really convey a lot of useful information to the project at hand
<pragmatism> godd2: "womanizer" for example, is both sexist and shitty
<shevy> it is sexist?
kpshek has joined #ruby
<shevy> what's bad with it?
<godd2> yea but that would be true (if it is) whether or not women write code
<havenwood> progrock: lolita doesn't offend me unless in a gross context, just a name
<pragmatism> I'm making the argument that gem names should be playful, professional, and non-offesive
meatherly has quit [Read error: Connection reset by peer]
<godd2> so why bring it up?
LekeFly has joined #ruby
<pragmatism> and maybe even descriptive :O
<pragmatism> godd2: Because I'm reading through a list of bad gem names?
<havenwood> progrock: misstell, sry
<shevy> hehe
<shevy> poor progrock
<havenwood> srsly
meatherly has joined #ruby
<shevy> come to think about it
<shevy> pragmatism, you have a stupid nick!
<pragmatism> Oh no!
<godd2> fair enough, but that can go too far. I vote we never use git because the default for the main branch is "master" which has offensive slavery overtones.
<pragmatism> shevy: what should I do
<havenwood> pragmatism: if it is overtly gross it will get yanked, up to the author to be sensible otherwise
<shevy> pragmatism pick a better one like benzrf
<pragmatism> godd2: ITT, people missing the point
<pragmatism> shevy: good call. I was actually gonna go with SJKDLHFKJSDBFLKJSDBFKJH9823421
<shevy> it should be short
<pragmatism> havenwood: Dunno if that's true
<shevy> like praccy
<havenwood> pragmatism: people also find gem names like `bacon`, `god`, etc offensive
<shevy> or praggy
<shevy> god is annoying me!
<shevy> it's monitoring
<dorei> naming stuff is always the most difficult part in IT world
<shevy> it should be renamed to csi
<godd2> or the kicked_in_the_balls gem
<shevy> I mean cia lol
<havenwood> pragmatism: like i said...
<havenwood> pragmatism: i don't find bacon or ball gags offensive, some people do
<shevy> pragmatism I think in the latter cases, these are not real projects
<pragmatism> havenwood: It definitely doesn't sound good when I talk about the library in front of a client.
<godd2> Is there a fanny gem? please let there be a fanny gem.
<havenwood> pragmatism: i'm talking gems, not github repos
<havenwood> pragmatism: that isn't a gem
<shevy> godd2 nope no fanny gem
<havenwood> pragmatism: oh, i lie...
<pragmatism> havenwood: How did you come to that conclusion?
<havenwood> pragmatism: well, that is borderline
<havenwood> pragmatism: i was wrong
<pragmatism> word
nycjv321 has joined #ruby
<benzrf> godd2: fanny means butt in the us just fyi
<nycjv321> what is proper way of profiling Ruby memory usage?
<pragmatism> I just think there's an argument to be made that the OS community shouldn't use names for libraries that can't be used in 95% of conversations
nari has joined #ruby
<shevy> nycjv321 benchmark!
<shevy> what community
<pragmatism> esp. when referring to the libraries in passing to a client or another professional
<pragmatism> opens ource
<shevy> what do I have to do with other people naming their projects
<godd2> benzrf lol I know I'm Murican
<pragmatism> Nothing, unless you contribute.
<benzrf> godd2: ok
masterkorp has left #ruby ["WeeChat 0.3.8"]
<benzrf> given the way you treated the word i assumed you were uk
<bnagy> nycjv321: run your code on jruby and use the jvm profilers :P
<benzrf> :p
<nycjv321> shevy: benchmark!?
iliketurtles has quit [Quit: zzzzz…..]
<nycjv321> bnagy: :(
<havenwood> pragmatism: i think serious names shouldn't be allowed! more Rainbows! and Unicorns!
<pragmatism> havenwood: I think most people agree with you
<godd2> havenwood and capybaras?
<nycjv321> and cucumbers?
<shevy> well the word "community" is what irked me
<benzrf> is there a gem called 'cucumber'
<havenwood> godd2: largest rodent should have a gem name for sure, indeed
<benzrf> if not i will make it
<havenwood> benzrf: you jest?
edwardly has quit [Ping timeout: 248 seconds]
<benzrf> never
<benzrf> it will be a data gem
<benzrf> containing constants regarding cucumbers
<nycjv321> benzrf: there is a ruby tool called cucmber with a corresponding gem :)
<benzrf> ah
<shevy> cucumber!
<havenwood> is support yanking cucumber and giving benzrf the name :P
<benzrf> :[
<havenwood> i'd*
<benzrf> B)
<pragmatism> Cucumber is a BDD suite that uses Gherkin
<shevy> pragmatism, do you find cucumber offensive?
<benzrf> https://gist.github.com/anonymous/8552548 <- a shitty thing i made
<pragmatism> nah
<pragmatism> Veggies are awesome
<shevy> ok so FOOD is good
<pragmatism> yeah
digital-ghost has quit [Remote host closed the connection]
<shevy> how about a gem project called "banana"
<pragmatism> Just not expletives or slurs
<benzrf> zuchinni
<shevy> or perhaps "mybanana"
<havenwood> pragmatism: i totally agree the community should be inclusive, but i think we should keep our fun
<shevy> damn benzrf stop it, you make me hungry
<shevy> pizza
<nycjv321> or how about willy_harry?
<shevy> nycjv321 you are so gross
<pragmatism> I don't see how that could be construed offensively.
nwertman has joined #ruby
dblessing has quit [Quit: dblessing]
* nycjv321 dies of laughter
<shevy> DAMN IT
* pragmatism is off to beer and dinner <3<3<3
<shevy> he has stolen the name :(
<havenwood> pragmatism: if you see one that is well over the line let #rubygems know!!
<shevy> I shall never use banana in my ruby projects
<pragmatism> havenwood: I'm not that nuts, just won't use it
<pragmatism> and will occasionally complain about it in #ruby :()
<godd2> now we jsut need some blow
<pragmatism> *:)
<pragmatism> use gem/cocaine
edwardly has joined #ruby
<shevy> I am fine with hooker, but banana is crossing a line here
<havenwood> godd2: cocaine is a nice option parser
<shevy> omg
<nycjv321> godd2: that is awesome!
<shevy> can we combine hooker with cocaine?
<havenwood> well, trollop, cocaine or slop
<havenwood> i think are the top three option parsers
<shevy> can't be worse than optparse
mikepack has quit [Remote host closed the connection]
<shevy> whoever came up with
<shevy> end.parse!(ARGV)
<shevy> should be shot on the spot
smathieu has joined #ruby
<shevy> I can never remember the way to use optparse without looking at the docu
<soahccc> shevy: You are shitting me! Our internal library is also called banana and I also have jelled at the gem which is already there :D
phipes has quit [Read error: Connection reset by peer]
<godd2> Im just surprised there isn't a RubyGem naming contest
<shevy> soahccc ah but this I understand
phipes_ has joined #ruby
<godd2> soahccc name yours bananana as successor
<shevy> soahccc I have a local project called "configuration" and I can not use it for rubygem based projects because someone else took that name :(
<shevy> but enough is enough
<soahccc> shevy: You know it fits so good since our company is called bmonkeys
<shevy> banana has been hijacked
<shevy> I am going to complain to drbrain
maletor has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
<benzrf> shit i do not think this dumb chromebook has a pgup key
<shevy> soahccc bmonkeys?
banjara has quit [Quit: Leaving.]
<benzrf> how the heck do i scroll up
mocfive has joined #ruby
<benzrf> ;-;
<shevy> soahccc full with fleas?
<shevy> benzrf you don't! you live in the present, not in the past!
<benzrf> pfft
<soahccc> shevy: look at the picture: https://github.com/2called-chaos
alexfreidah has quit [Ping timeout: 272 seconds]
<godd2> benzrf try Shift+spacebar
<nycjv321> benzrf: page up ?
<godd2> or Fn+UpArrow
<benzrf> godd2: in irssi
<benzrf> :u
<nycjv321> page up
braincra- has joined #ruby
<nycjv321> irssi +1!
aspires has quit []
* benzrf fistbumps nycjv321
venkat has quit [Remote host closed the connection]
* nycjv321 chestbums benzrf
<nycjv321> chestbumps*
<benzrf> godd2: chromebooks do not fn
<shevy> soahccc hehe
<shevy> benzrf use xchat!
<nycjv321> xchat? eh
<benzrf> xchat is for lusers
* nycjv321 shrugs
<benzrf> you cant even run it without x
<nycjv321> benzrf: exactly
<benzrf> failulure
<shevy> only noobs can't run X
<shevy> EVEN WINDOWS USERS CAN
<godd2> benzrf slide up on the leftmost portion of your touch pad
edwardly has quit [Max SendQ exceeded]
<bnagy> there's can't and there's won't
IceyEC has joined #ruby
edwardly has joined #ruby
<godd2> benzrf what version of chromebook do you have? or is there only one?
bradhe has quit [Ping timeout: 252 seconds]
venkat has joined #ruby
<godd2> try Alt+UpArrow
scarolan has joined #ruby
vpretzel has joined #ruby
<benzrf> godd2: the samsung one
<benzrf> alt+up = nothin
<soahccc> yeah xchat
kpshek has quit [Ping timeout: 272 seconds]
cephalostrum is now known as zz_cephalostrum
gabriha__ has quit [Ping timeout: 272 seconds]
braincrash has quit [Ping timeout: 272 seconds]
lethjakman has quit [Ping timeout: 265 seconds]
<godd2> "Keyboard fans also should learn that Page Down and Page Up keys can be simulated with the Alt-down-arrow and Alt-up-arrow combinations"
<godd2> ctrl+alt+up?
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
zz_cephalostrum is now known as cephalostrum
krz has joined #ruby
<benzrf> ?!
<benzrf> dafuq?
<godd2> what, is it something retarded?
<benzrf> ah
<benzrf> i can use m-n and m-p
<benzrf> also retarded rly
aantix has joined #ruby
<godd2> what does m-n mean?
CaptainJet has quit []
tharindu has quit [Quit: Leaving...]
<benzrf> meta-n
gja has joined #ruby
gja has joined #ruby
aantix has quit [Client Quit]
ner0x has joined #ruby
sensen has joined #ruby
mocfive has quit [Remote host closed the connection]
m00nlight has quit [Quit: Konversation terminated!]
mocfive has joined #ruby
_maes_ has joined #ruby
blandflakes has joined #ruby
freerobby has quit [Quit: Leaving.]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nwertman has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
<shevy> emacs is a disease
<shevy> to the brain
shadoi has quit [Quit: Leaving.]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ner0x> Is there an easy way to pull hash keys/values into another hash? IE: all_opts = { ... bunch of opts ... }; one_opts = all_opts.get(:height, :width); two_opts = all_opts.get(:size, :weight); etc?
reset has quit [Quit: Leaving...]
gja has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
<soahccc> ner0x: with active support you have slice and except
nwertman has joined #ruby
<ner0x> soahccc: Thank you. I'll look those up.
alekst has quit [Quit: Computer has gone to sleep.]
snath has joined #ruby
khfeng has quit [Quit: Leaving]
Davey has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 264 seconds]
<ner0x> soahccc: That did the trick. Thank you sir.
chomskiii has joined #ruby
IceyEC has quit [Quit: IceyEC]
<soahccc> you're welcome
chomskiii has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
agent_white has quit [Quit: brb]
sethen has joined #ruby
<godd2> ner0x another way is the second answer in this stackoverflow: http://stackoverflow.com/questions/12047447/get-key-value-pair-of-hash-for-the-given-key-in-ruby
falood has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
Mattx has left #ruby ["Leaving"]
chomskiii has joined #ruby
venkat has quit [Remote host closed the connection]
venkat has joined #ruby
iliketurtles has joined #ruby
jailbot has quit [Remote host closed the connection]
gja has joined #ruby
agent_white has joined #ruby
voodoofish has quit [Quit: Leaving]
venkat has quit [Ping timeout: 252 seconds]
venkat has joined #ruby
venkat has quit [Client Quit]
phipes_ has quit []
dodosan has joined #ruby
jack_rabbit has quit [Read error: Connection reset by peer]
blandflakes has quit [Quit: Lost terminal]
ctp has joined #ruby
jack_rabbit has joined #ruby
v0n has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby
sassamo has joined #ruby
shadoi has joined #ruby
dodosan has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 272 seconds]
subwaytest has joined #ruby
<subwaytest> join #osdev
<subwaytest> woops
<krz> ban
Spami has quit [Quit: This computer has gone to sleep]
radic has joined #ruby
<krz> for soliciting spam ;)
<subwaytest> For missing a forward slash? Bit harsh krz.
ctp has quit [Ping timeout: 272 seconds]
<krz> for being an automated bot
tharindu has joined #ruby
<subwaytest> How am I an automated bot?
<krz> because you have smart answers
jfelchner has quit [Ping timeout: 240 seconds]
<subwaytest> such rubyist
<krz> whops i pissed off a php dev
<subwaytest> krz pls
<krz> great way to start the day
fgo has quit [Remote host closed the connection]
jfelchner has joined #ruby
nfk has quit [Quit: yawn]
<centrx> PHP bad
xjiujiu has joined #ruby
<subwaytest> PHP ist de kabouter
maletor has joined #ruby
mocfive has joined #ruby
blandflakes has joined #ruby
rezzack has quit [Quit: Leaving.]
LekeFly has quit [Read error: Connection reset by peer]
LekeFly has joined #ruby
aspires has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
<Jdubs> anyone experienced with bootstrap popovers? no one is responding in #css
ryantm has joined #ruby
subwaytest is now known as deinkabouter
Fezzler has joined #ruby
prc has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
vlad_starkov has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
julweber has joined #ruby
griffindy has joined #ruby
bradhe has joined #ruby
dukz has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
prc has joined #ruby
julweber has quit [Ping timeout: 252 seconds]
estebistec has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Remote host closed the connection]
benzrf has left #ruby [#ruby]
notjohn has joined #ruby
dodosan has joined #ruby
fgo has quit [Remote host closed the connection]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
v0n has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
sassamo has quit [Ping timeout: 260 seconds]
ner0x has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
Jdubs has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Fire-Dragon-DoL has left #ruby [#ruby]
kobain has quit []
dorei has quit []
griffindy has quit [Quit: Computer has gone to sleep.]
dukz has quit [Remote host closed the connection]
carif has quit [Ping timeout: 260 seconds]
aryaching_ has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Jetchisel has joined #ruby
kitak has joined #ruby
mocfive has quit [Remote host closed the connection]
kitak_ has quit [Ping timeout: 245 seconds]
mocfive has joined #ruby
braincra- has quit [Quit: bye bye]
<nycjv321> What is Thread.list suppost to return? I am creating 10000, 5000, 200 threads and its always saying only 3 are running?
gja has joined #ruby
peterhu has joined #ruby
<nycjv321> Thread.list.count*
Hanmac has joined #ruby
<YOURBESTFRIEND> I guess that's the number of real threads, not green threads
nwertman has quit [Remote host closed the connection]
<bnagy> if you create a ruby Thread you should see it in Thread.list
<bnagy> as long as it's still running
BeanDip_ has quit [Read error: Connection reset by peer]
BeanDip has joined #ruby
<havenwood> YOURBESTFRIEND: Ruby threads map one to one to system threads.
<YOURBESTFRIEND> orly?
<havenwood> These days, indeed.
<nycjv321> YOURBESTFRIEND: so that number on MRI would be one then?
<havenwood> 1.8 is end-of-life.
Hanmac1 has quit [Ping timeout: 248 seconds]
braincrash has joined #ruby
<bnagy> no Thread.list is an in-ruby thing, it always reported the number of Threads
<bnagy> you're probably just not doing what you think you're doing
<nycjv321> bnagy: thats what I thought... Its always returning 3.
<nycjv321> could I gist it?
mocfive has quit [Ping timeout: 260 seconds]
<bnagy> sure, but I can give you my 99% guess
<bnagy> the Threads you're creating aren't running - as in they're finished
zz_anildigital is now known as anildigital
<bnagy> eg they hit an exception and died, or they just got to the End Of Their Stuff
<bnagy> exception and died is a pretty common one
<nycjv321> Line 16 is always returning 3
<nycjv321> I would think 3 would vary at least if threads are dieing I am creating 200 threads.
seoaqua has joined #ruby
<pontiki> class Thread; def list; 3; end; end
Hanmac1 has joined #ruby
<nycjv321> +1 pontiki
estebistec has quit [Remote host closed the connection]
<nycjv321> bnagy: I would also be interested to see what you think of the code :)
kpshek has joined #ruby
<bnagy> it uses threads and mutex AND condition variable
<bnagy> therefore I hate it
<nycjv321> :'(
angusiguess has joined #ruby
scarolan has quit [Ping timeout: 272 seconds]
<pontiki> WE HATES IT!! PRECIOUSSSSS!
Hanmac has quit [Ping timeout: 260 seconds]
* nycjv321 hides in corner
<bnagy> oh, I bet that's your problem though
ctp has joined #ruby
<bnagy> L#29 thread.join
carif has joined #ruby
<bnagy> what does #join do?
vlad_starkov has joined #ruby
<nycjv321> honestly its useless in this context.
<bnagy> more than useless
Virtualize|away has quit [Quit: Leaving...]
<nycjv321> It joins the thread. So like if any of the spawned threads throw an exception it is then sent in the parent thread.
<bnagy> that's not all
<bnagy> "Does not return until thr exits or until the given limit seconds have passed."
angusiguess has quit [Ping timeout: 252 seconds]
<nycjv321> dude commenting it out fixed it
<bnagy> yes what I asked what it did that was by way of being a Socratic question, not a genuine request for information
<bnagy> *when
rburton- has joined #ruby
sethen has quit [Quit: Leaving...]
aryaching has quit []
<pontiki> socrates would be lost on IRC
ctp has quit [Ping timeout: 265 seconds]
<nycjv321> bnagy: I realized that as well and went and read the documentation :)
<nycjv321> why is bad to have a mutex and a condition variable?
<bnagy> I can't see what your condition variable is doing but srsly I dislike them
<bnagy> why not just push your logs to a Queue which is threadsafe by design and then have a logger thread to deal with them?
<nycjv321> Well I'm signaling that I am updating the local variable summary.
<nycjv321> summaries*
<bnagy> oh it's trying to protect the summaries array?
<nycjv321> yes
<bnagy> yeah def just use a queue for that
<bnagy> will be way cleaner imho
<nycjv321> okay.
<nycjv321> noob over here :)
<bnagy> everyone is a noob at threading
<nycjv321> bnagy: your less of a noob though ;)
<agent_white> I know all about threads. jus ask me if I know
Fezzler has quit [Quit: Leaving]
gz4rth has joined #ruby
<gz4rth> o/
<agent_white> \o
<gz4rth> i need some help with arrays
<gz4rth> ;o
<agent_white> yt gz
fgo has joined #ruby
<gz4rth> i have this
ewnd9 has quit [Ping timeout: 252 seconds]
<nycjv321> bnagy: removing thread.join increases run time 5x
<gz4rth> pardon
* nycjv321 shakes his head
<nycjv321> gz4rth: whatsup?
<gz4rth> can i do this in ruby somevar[someinteger]=something?
<bnagy> nycjv321: hurr hurr hurr concurrency is HARRD
<gz4rth> o/ nycjv321
tyl has joined #ruby
<nycjv321> gz4rth: dude have you read the documentation?
<gz4rth> i came from c and im realy lost ;o
<bnagy> gz4rth: that's a Hash access pattern, not Array
<bnagy> usually anyway, but if you mean index access, yes, you also can
<bnagy> also works with slice assignment etc
<agent_white> LOW 5! o-
<gz4rth> basicly i want to do this for i in 1..id x[i]=blabla
<agent_white> o_
bradhe has joined #ruby
v0n has joined #ruby
<bnagy> >> a=[1,2,3]; a[1] = 4; a
<eval-in> bnagy => [1, 4, 3] (https://eval.in/93156)
<gz4rth> nycjv321, can i send you pm?
krz has quit [Ping timeout: 252 seconds]
fgo has quit [Read error: No route to host]
<nycjv321> dude why would commenting out a Thread.join statement improve performance?!?!?!
<nycjv321> gz4rth: sure
<gz4rth> thanks
<bnagy> (1..id).each {|idx| target[idx] = whatever}
aryaching has joined #ruby
fgo has joined #ruby
<bnagy> nycjv321: oh I thought it tanked your perf
<bnagy> once you remove the join your threads are running concurrently
<bnagy> and since they are IO bound ( doing network io ) you'll get a performance benefit, at least up to some point
<nycjv321> wait sorry using it improves performance*
<bnagy> yeah that can happen as well :D
<nycjv321> bnagy: ah I see I'll have to adjust the threads then and try it out.
<bnagy> if you start way too many threads you'll kill your ruby VM and or flood your net
<agent_white> Note to self: changing server iptables on terribad connection is not smart.
<bnagy> so most people use a thread pool as workers and then feed them work via a queue or similar
bradhe has quit [Ping timeout: 252 seconds]
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
yfeldblum has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 252 seconds]
figgleberry has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<havenwood> <3 Queue
speakingcode has joined #ruby
Xeago has joined #ruby
fire has quit [Ping timeout: 252 seconds]
Virtualize|away has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<havenwood> guess i should start a bugs.ruby-lang.org for this family of 2.0+ segfaults?: Queue.new.dup.empty?
<havenwood> Queue.new.clone.anything
<nycjv321> bnagy: so yea I'm not going to comment out thread.join since commenting it out increases runtime 5-10x ><
digital-ghost has joined #ruby
alexfreidah has joined #ruby
Ohga has left #ruby [#ruby]
<xybre> havenwood: I was having segfaults on 2.1 :/
<nycjv321> maybe its something with my mutex and conditional variable? /me will have to do some snooping
<havenwood> xybre: same issue on 2.0 and 2.1, or you mean other than Queue.new.dup
Xeago has quit [Remote host closed the connection]
Zhwazi has left #ruby [#ruby]
pu22l3r_ has quit [Remote host closed the connection]
alexfreidah has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
<centrx> havenwood, Doesn't crash on mine
figgleberry has quit [Ping timeout: 272 seconds]
<havenwood> centrx: ahh, interesting - i haven't tested broadly - just ran into it the other day
<havenwood> centrx: 2.0 or 2.1?
<centrx> 2.0
<havenwood> patch level?
<centrx> ruby 2.0.0p353 (2013-11-22) [x86_64-linux-gnu]
<havenwood> thx
<havenwood> hrm, indeed
<havenwood> centrx: no segfault for me on linux box, segfault on OS X, hm
<havenwood> guess i'll try FreeBSD
tylersmith has joined #ruby
<havenwood> Anyone on OS mind seeing if `Queue.new.dup.empty?` segfaults on Ruby 2.0 or 2.1?
<havenwood> on OS X**
<bnagy> => "ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.4.0]"
<bnagy> clean
robscomputer has joined #ruby
<havenwood> welp :O, just me >.>
Kricir has joined #ruby
gja has quit [Ping timeout: 260 seconds]
ciwolsey has joined #ruby
<havenwood> bnagy: ohhh, my bad, 2.1+
<havenwood> segfaults on 2.1 and 2.2-dev
<havenwood> not segfaulting on 2.0 for me
Xeago has joined #ruby
jamest3 has joined #ruby
<bnagy> you crazy kids with your bleeding edge
<jamest3> for capybara how do i access the last element of a group when i use find? i wanna do something like first_token = find('.token').last
Xeago has quit [Remote host closed the connection]
Hanmac has joined #ruby
Jetchisel has joined #ruby
<bnagy> havenwood: if you tell me how to update my MRI with chruby / ruby-install because I am too lazy to google I will test it for you
<bnagy> can't say fairer than that
kpshek has quit []
<havenwood> bnagy: ruby-install ruby
<havenwood> bnagy: with latest ruby-install*
Deele has joined #ruby
gja has joined #ruby
<havenwood> bnagy: or without updating ruby-install: ruby-install ruby 2.1.0
yasushi has joined #ruby
<bnagy> how to update rubby-install?
Hanmac1 has quit [Ping timeout: 272 seconds]
<havenwood> brew reinstall ruby-install
<bnagy> ports?
<havenwood> macports user?
<bnagy> yes. You know this.
<bnagy> because I whined until you added ports support
<havenwood> ooh, right, of course... :P
dobie_gillis has quit [Quit: leaving]
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> just rerun install script for new one :)
tyl_ has joined #ruby
<havenwood> i forgot, hehe
tyl has quit [Ping timeout: 246 seconds]
<havenwood> almost over the flu, but i swear it has done a number on my brain
<bnagy> right well on my BLISTERING internet that'll all be done in about 20 minutes
<havenwood> haha
<havenwood> i'm house sitting and have cringeworthy speed too
<bnagy> 8KB?
<havenwood> no :O
<havenwood> just not the 32 Mbps i'm used to
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> i do get dropped a couple times a day, first world problems
ckinni has joined #ruby
ckinni has quit [Remote host closed the connection]
<bnagy> havenwood: feel anything?
tyl_ has quit [Ping timeout: 260 seconds]
<havenwood> hm?
<bnagy> oh, I was wishing head cancer on you REALLY HARD
<havenwood> :P
dodosan has quit [Remote host closed the connection]
<havenwood> that isn't even fast here >.>
<xybre> havenwood: crashes here on OSX with 2.1.0p0 but works fine on ruby 2.0p353
<bnagy> t(-.-t)
<havenwood> xybre: ah, thx
tyl has joined #ruby
<havenwood> yeah, so 2.1.0 and trunk
tyl has quit [Remote host closed the connection]
ckinni has joined #ruby
<xybre> I'm setting up 2.1 on linux to see if it happens there too
tyl has joined #ruby
noop has joined #ruby
robscomputer has quit [Quit: Be seeing you!]
anildigital is now known as zz_anildigital
yacks has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
ahmedelgabri has joined #ruby
synergy__ has quit [Ping timeout: 265 seconds]
<xybre> havenwood: crashed on linux too, 2.0 still works
nateberkopec has quit [Quit: Leaving...]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
<havenwood> oh 2.1.. why do you cut me so!
yacks has joined #ruby
_tpavel has joined #ruby
<havenwood> i have a sneaking suspicion people will be updating minors when first tiny comes out, at least for production
<havenwood> 2.1.1
<havenwood> 2.2.1
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> i guess some people always have avoided p0's
hamakn has joined #ruby
<havenwood> for good reason
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
w|t has quit [Ping timeout: 260 seconds]
nathancahill has quit [Quit: nathancahill]
bryanray has joined #ruby
angusiguess has joined #ruby
<bnagy> havenwood: yah confirm
<bnagy> right, beer and sumo
<bnagy> afternoon all :)
sparrovv has joined #ruby
w|t has joined #ruby
momomomomo has quit [Quit: momomomomo]
ctp has joined #ruby
nathancahill has joined #ruby
v0n has quit [Quit: WeeChat 0.4.2]
<havenwood> \o/
Virtualize|away has quit [Ping timeout: 252 seconds]
em0ral has joined #ruby
<nycjv321> so having threads decreases performance for io on my machine apparently :(
angusiguess has quit [Ping timeout: 264 seconds]
sparrovv has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
ctp has quit [Ping timeout: 265 seconds]
wchun has joined #ruby
zz_anildigital is now known as anildigital
aspires has quit []
baroquebobcat has quit [Quit: baroquebobcat]
bradhe has joined #ruby
fire has joined #ruby
<centrx> nycjv321, That sounds strange
<centrx> nycjv321, But I would say that performance for common applications is almost always I/O bound
vlad_starkov has quit [Remote host closed the connection]
ciwolsey has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<nycjv321> centrx: I see now
<nycjv321> centrx: I am noticing performance increases with large amounts of threads when testing external applications
<nycjv321> I will need to do alot more testing.
bradhe has quit [Ping timeout: 246 seconds]
Hanmac has quit [Quit: Leaving.]
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
yasushi has quit [Remote host closed the connection]
fgo has joined #ruby
mspah_ has joined #ruby
MatthewsFace has joined #ruby
<xybre> Your method of testing or the pattern for development might be wrong.
mspah_ has quit [Max SendQ exceeded]
<nycjv321> xybre: why do you say that?
mspah_ has joined #ruby
<nycjv321> yea I see the bottle neck is created becuase I am testing local io.
<nycjv321> I am def. seeing an increase everytime with external applications
<nycjv321> increase in performance*
<xybre> Because your results are inconsistant.
craigp has joined #ruby
<nycjv321> becuase I am testing local and external apps.
<nycjv321> They are consistent in each instance.
craigp has quit [Remote host closed the connection]
craigp_ has joined #ruby
Hanmac has joined #ruby
<havenwood> bnagy: xybre: Bug #9440: https://bugs.ruby-lang.org/issues/9440
fgo has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
dukz has quit [Remote host closed the connection]
anildigital is now known as zz_anildigital
<xybre> havenwood: holy crap that page took like 3 minutes to load
banjara has joined #ruby
bjhaid has quit [Ping timeout: 272 seconds]
achru has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
<nycjv321> xybre: mines crashed
<nycjv321> well bye all
nycjv321 has quit [Quit: leaving]
dukz has joined #ruby
gja has joined #ruby
blandflakes has quit [Quit: leaving]
robbyoconnor has quit [Ping timeout: 272 seconds]
alexlindenlevy has quit [Ping timeout: 272 seconds]
jmeeuwen_ has joined #ruby
kristiandelay has joined #ruby
baroquebobcat has joined #ruby
jmeeuwen has quit [Ping timeout: 245 seconds]
jmeeuwen_ is now known as jmeeuwen
aryaching has joined #ruby
kristiandelay has quit [Ping timeout: 248 seconds]
fire has quit [Quit: WeeChat 0.4.1]
baroquebobcat has quit [Quit: baroquebobcat]
amclain has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
retsu1 has joined #ruby
TripTastic has joined #ruby
BrixSat has quit [Remote host closed the connection]
BrixSat has joined #ruby
soba has joined #ruby
nateberkopec has joined #ruby
agent_wh1te has joined #ruby
rezzack has joined #ruby
agent_white has quit [Ping timeout: 264 seconds]
v10energy has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
agent_wh1te has quit [Client Quit]
nateberkopec has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
nateberkopec has joined #ruby
Xeago_ has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
kitak_ has joined #ruby
george2 has joined #ruby
thesheff17 has quit [Read error: Operation timed out]
Xeago has quit [Ping timeout: 246 seconds]
<agent_white> Fuck yes that feel when Puppet works the first time, no issues whatsoever.
<george2> Is there an easy way to check if an element exists in a list before another specific element? For example, I want to return true if the list has 'a' before 'i': ['a', 'b', 'i'] => true, ['i', 'a', 'd'] => false.
kitak has quit [Ping timeout: 245 seconds]
<xybre> george2: array.find{|e| break false if e == "i"; break true if e == "a" }
dodosan has joined #ruby
<george2> nice
nateberkopec has quit [Ping timeout: 252 seconds]
<havenwood> though should just use #each for the above methinks
<havenwood> or yeah, rely on "a"'s truthiness: array.find { |e| break false if e == 'i'; e == 'a' }
<xybre> Same result, but using find instead of each is more intent-revealing.
zxd has joined #ruby
<havenwood> but you're not using #find, i guess i just disagree
<xybre> havenwood: that wouldn't return `true`, it would return "a". May or may not matter.
angusiguess has joined #ruby
<havenwood> like i said, if just truthiness matters
<george2> what about http://pastebin.kde.org/pioslwjdb ?
<george2> no, not quite right.
bradhe has joined #ruby
ctp has joined #ruby
TripTastic is now known as Jbreit
Jbreit is now known as JBreit
robbyoconnor has joined #ruby
<havenwood> xybre: how bout we compromise and say #map, because it is the shortest! :P
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Quit: This computer has gone to sleep]
monkegjinni has joined #ruby
<george2> what's the difference between find and each?
<xybre> I considered that :p but either #each or #find are fine. #each is probably slightly more efficient while #find makes it a little more intuitive to the reader.
angusiguess has quit [Ping timeout: 260 seconds]
<havenwood> xybre: except for readers like me who expect #find to be used like... #find :P
<xybre> george2: #find returns the first matching element, no more. #each returns the original object.
<xybre> havenwood: Its not being used like #each either.
<havenwood> sure it is, an each that is broken early
<xybre> Or a find thats broken early :p
bradhe has quit [Ping timeout: 272 seconds]
ctp has quit [Ping timeout: 272 seconds]
Soda is now known as Guest11248
Al___ has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
<havenwood> hehe
maletor has joined #ruby
<agent_white> Well doesn't each needs to iterate through the whole array, right? Might be excessive if the two vals are at the very end.
<havenwood> agent_white: if you knew where they were ahead of time? to find stuff we iterate!
diegoviola has joined #ruby
fgo has joined #ruby
thesheff17 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
carif has quit [Ping timeout: 260 seconds]
<havenwood> agent_white: oh, no, if you break #each stops
<agent_white> havenwood: Just curious ;) I'm just thinking of the array was HUGE
<havenwood> agent_white: just got what you meant
<havenwood> agent_white: xybre's code breaks if it finds what you're looking for, and if it doesn't find it you need to go to the end to make sure it isn't there
Barrin6 has quit [Quit: Leaving]
jamest3 has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
heftig has quit [Quit: Quitting]
mocfive has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
<george2> So, class variables are like static variables in C/C++/Java, and member variables are like instance variables? Do I understand that correctly?
Es0teric has quit [Quit: Computer has gone to sleep.]
<havenwood> george2: Class variables are like nothing else. Do not use them.
<havenwood> george2: Pretend they do not exist. Full stop.
<george2> ha
<havenwood> i'm not kidding!
<george2> I would, but my assignment says "use a class variable"
dik_dak has quit [Quit: Leaving]
<havenwood> oooh, you should write that Matz said it was a mistake adding them to the language
Hanmac has joined #ruby
ahmedelg_ has joined #ruby
<havenwood> and they'll be gone in Ruby 3000, good riddance!!
<Xeago_> bah
<Xeago_> now I've already been working for 5 hours
alexfreidah has joined #ruby
<Xeago_> I feel like toast
gja has quit [Quit: This computer has gone to sleep]
Wolland has quit [Remote host closed the connection]
em0ral has quit [Remote host closed the connection]
krz has joined #ruby
<havenwood> george2: class variables are very confusing and there isn't really an analog in Java afaik
<havenwood> george2: sorry i'm no help!
<george2> I'll just say "havenwood toold me Matz said it was a mistake to add class vars to Ruby", I'm sure that'll get me full credit :p I'll just skip this one then, I'm already not using a hash, and it tells me to do that too.
<havenwood> lawl
w4pm has joined #ruby
gja has joined #ruby
tagrudev has joined #ruby
<centrx> nah, class variables are fine
mehlah has quit [Quit: Leaving...]
ahmedelgabri has quit [Ping timeout: 252 seconds]
<havenwood> centrx: they aren't
ahmedelgabri has joined #ruby
<havenwood> hence no one using them
zipper has joined #ruby
<havenwood> @@omgwtfbbqnoooooo
smathieu has quit [Remote host closed the connection]
ahmedelg_ has quit [Ping timeout: 252 seconds]
<centrx> nah, I use them
alexfreidah has quit [Ping timeout: 260 seconds]
ahmedelg_ has joined #ruby
<havenwood> you ought not
smathieu has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
raar has joined #ruby
raar is now known as Guest81638
<centrx> Then where am I going to put the data I don't store in class instance variables?
<havenwood> in the class instance variables :P
<havenwood> centrx: to be fair, there are of course use cases, still not worth it
<havenwood> imho
<agent_white> havenwood: I was thinking somethin like `(arr.index val1) <=> (arr.index val2)`
<havenwood> and in the opinion of the creator of the language
mocfive has quit [Remote host closed the connection]
<havenwood> agent_white: then you iterate through twice
mocfive has joined #ruby
<agent_white> havenwood: Ahhh I see... since you have to find the value's index first?
<havenwood> yup
<agent_white> Ooo
w4pm has quit [Ping timeout: 248 seconds]
ahmedelgabri has quit [Ping timeout: 264 seconds]
zipper has quit [Ping timeout: 260 seconds]
smathieu has quit [Ping timeout: 265 seconds]
zipper has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<agent_white> havenwood: I still want to use that operator sometime, too fancy not to! ;P
<havenwood> spaceship operator ftw
zxd has quit [Ping timeout: 246 seconds]
<Xeago_> damn, is that what it is called?
<havenwood> aye
mocfive has quit [Ping timeout: 252 seconds]
ahmedelg_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
centrx has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 252 seconds]
zipper has quit [Quit: leaving]
monkegjinni has joined #ruby
zipper has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
yarou has quit [Quit: This computer has gone to sleep]
ryantm has quit [Ping timeout: 252 seconds]
sLi- has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
justinxreese has quit [Ping timeout: 246 seconds]
commandantes has joined #ruby
commandantes has quit [K-Lined]
rezzack has quit [Quit: Leaving.]
_tpavel has quit [Ping timeout: 264 seconds]
Pixels_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
maletor has quit [Quit: Computer has gone to sleep.]
ahmedelgabri has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
nanoyak has joined #ruby
pranny has joined #ruby
kitak_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
digital-ghost has quit [Remote host closed the connection]
<bricker`LA> Any dev/ops people in here? I have a fairly simple question: In this command, what is the significance of the order of the -m and --state flags?
kitak has joined #ruby
<bricker`LA> iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
krz has quit [Quit: WeeChat 0.4.2]
<bricker`LA> If any
Asitha has joined #ruby
krz has joined #ruby
<Asitha> Hi there - I need someone's help to figure out what is wrong with the imgur gem
<Asitha> Is anyone available to assist me?
<bricker`LA> Asitha: yes
<Asitha> I installed the gem and am trying to run $ rake imgur:authorize APP_KEY='Consumer Key' APP_SECRET='Consumer Secret'
<bricker`LA> *sigh* I should read documentation before I open my dumb mouth: "iptables can use extended packet matching modules. These are loaded in two ways: implicitly, when -p or --protocol is specified, or with the -m or --match options, followed by the matching module name"
<Asitha> But every time I run it, it says Don't know how to build task 'imgur:authorize'
yacks has quit [Quit: Leaving]
<bricker`LA> Asitha: how did you install the gem?
<Asitha> At first I done it via the Gemfile
<Asitha> bundle install, bundle update
<Asitha> Didn't work
<Asitha> So I tried to manually install it
<Asitha> By cloning the repo
<Asitha> and installing it
<Asitha> same thing
<bricker`LA> Asitha: okay - if you install it via the gemfile, you need to run it with `bundle exec rake imgur:authorize`
<bricker`LA> that's the way you *should* do it
<Asitha> okay let me give that a go
bradhe has joined #ruby
<Asitha> Same issue :(
nateberkopec has quit [Ping timeout: 272 seconds]
<bricker`LA> Asitha: run `bundle exec rake -T` and confirm that there are imgur tasks present
bluOxigen has joined #ruby
rdark has joined #ruby
<Asitha> doesn't look like it is listed there
thumpba_ has joined #ruby
<bricker`LA> ah
<bricker`LA> Asitha: where did you see the rake tasks?
<bricker`LA> I mean, what told you to run that command?
bradhe has quit [Ping timeout: 248 seconds]
<bricker`LA> and which imgur gem are you using?
<Asitha> The documentation
<bricker`LA> How are you installing that? gem 'imgur' ?
<Asitha> gem 'imgur', :git => 'git://github.com/dncrht/imgur.git'
<bricker`LA> okay good
angusiguess has joined #ruby
Wolland has quit [Remote host closed the connection]
thumpba_ has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
<bricker`LA> yeah this gem is weird
<bricker`LA> Asitha: I recommend doing it like this:
<bricker`LA> bundle exec rails server
<bricker`LA> require 'imgur/rake'
lethjakman has joined #ruby
<bricker`LA> Imgur::Rake.authorize("your_app_key", "your_app_secret")
<bricker`LA> then it should output the information you need
<bricker`LA> This is after you've installed the gem from your Gemfile
<Asitha> In general, this is actually what I want working: https://github.com/dncrht/paperclip-imgur
angusiguess has quit [Ping timeout: 246 seconds]
<Asitha> and I just don't know how to get the access_token and secret
<bricker`LA> I just told you, try that
<Asitha> yeah
razibog has joined #ruby
<Asitha> bundle exec rails server or rails c?
<bricker`LA> Asitha: sorry, rails c
ctp has quit [Ping timeout: 272 seconds]
<Asitha> NoMethodError: undefined method `gsub' for nil:NilClass
<Asitha> -_-
godd2 has quit [Ping timeout: 272 seconds]
Al___ has quit [Quit: Al___]
xjiujiu has quit [Read error: Connection reset by peer]
Kneferilis has joined #ruby
SHyx0rmZ has joined #ruby
ewnd9 has joined #ruby
xjiujiu has joined #ruby
razibog has quit [Quit: Leaving.]
Cache_Money has joined #ruby
dukz has quit [Remote host closed the connection]
fgo has joined #ruby
fgo has quit [Read error: No route to host]
jfelchner has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
fgo has joined #ruby
ahmedelgabri has joined #ruby
<Asitha> Ah
<Asitha> I was missing the site
sensen has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
jfelchner has joined #ruby
Pixels__ has joined #ruby
wildroman2 has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
<agent_white> Bahaha I love this. I looking up how to use ARGV in Ruby, and this poast is the first on Google: http://stackoverflow.com/questions/13329132/whats-the-point-of-argv-in-ruby
<agent_white> Yeah man... WHATS THE POINT?!!?
<agent_white> -_-
Pixels_ has quit [Ping timeout: 248 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
godd2 has joined #ruby
shadoi has quit [Quit: Leaving.]
magoo has joined #ruby
pskosinski has joined #ruby
magoo has quit [Client Quit]
magoo has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Macaveli has joined #ruby
ctp has quit [Ping timeout: 246 seconds]
tobago has joined #ruby
andikr has joined #ruby
user258467 has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
kristiandelay has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
jfelchner has quit [Read error: Connection reset by peer]
jfelchner has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
allen_on_c has joined #ruby
havenwood has quit []
Kricir has quit [Remote host closed the connection]
<tobago> I have to calculate the metric bmi like: https://gist.github.com/trinibago/8554967
banjara has quit [Quit: Leaving.]
<tobago> therefore i want to calculate using BigDecimal (for precision reasons)
Kricir has joined #ruby
<godd2> You don't need BigDecimal for the level of precision necesssary for a BMI calculation
<tobago> but BigDecimal expects a string, instead of integer.
<tobago> godd2, which class to use for correct precision?
<godd2> You'd be fine with FLoat
kristiandelay has quit [Ping timeout: 264 seconds]
<tobago> godd2, o.k.?
smathieu has joined #ruby
<tobago> godd2, didn't expected Float to be sufficient
<godd2> Float is precise to 15 decimal places
<godd2> way more than any scale or tape measure is going to give you data of
h_kon has joined #ruby
<RubyPanther> You dont need it for precision, only for accuracy ;)
jfelchner has quit [Read error: Connection reset by peer]
<RubyPanther> floats are for graphics and stuff where 3.999999 is the same as 4
jfelchner has joined #ruby
<RubyPanther> Things like BMI that end up with numbers for human consumption should use accurate math
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 246 seconds]
<godd2> I'll put it this way tobago, 10^-15 meters is smaller than an atom. I doubt you need to know how tall you are in atom diameters
smathieu has quit [Ping timeout: 260 seconds]
<RubyPanther> Sure, I doubt a 2m customer would mind at all if you round it off it 2m-(10^-15)! Especially when your website might then show 1.99
<RubyPanther> If you know you're rounding to human consumable numbers, then the max you round is the max error you get from using floats, not the same as the un-rounded error (which is small)
<bricker`LA> What is +@? I've seen it somewhere. The "plus" method on Numeric is defined as: rb_define_method(rb_cNumeric, "+@", num_uplus, 0);
<tobago> godd2, RubyPanther and comparing float results like: 0.1+(0.2+0.3) == (0.1+0.2)+0.3
<alex88> also, height in meters isn't height in millimiters * 1000 not / 1000?
<bricker`LA> but I think I've seen it somewhere else
sensen has joined #ruby
<godd2> alex88 no, 1000 millimeters is 1 meter. 1000/1000 = 1
<tobago> alex88, no. 1 meter is 1000 millimeter
ndrei has quit [Ping timeout: 252 seconds]
<godd2> remember, you need lots of tiny things to make one big thing
aganov has joined #ruby
<bricker`LA> tmyk
<RubyPanther> bricker`LA: that is unary plus not the regular plus
<alex88> holy shit :) hate being just woke up :D
* alex88 goes in the corner
<tobago> godd2, RubyPanther what about comparing floats? see my example.
<RubyPanther> comparing is meaningless
jfelchner has quit [Read error: Connection reset by peer]
<RubyPanther> rounding is a real problem, in fact, a show-stopper
<godd2> tobago if the associativity property of addition holds, then that comparison should result in true
<RubyPanther> You just can't use floats wherever you have something smaller than an int ;) they are actually only useful for certain types of numbers
jfelchner has joined #ruby
<tobago> godd2, good point. the formula will be the same in any way.
<godd2> but RubyPanther is right, you'll want to be careful of weird rounding errors and make sure to round results to the nearest whatever you like when you get the chance
<RubyPanther> Humans place value on round numbers, BMI of 22.9 and 23 are not the same, and you'd probably never show a 22.99999999999999999 and if you did, the user would likely not see it as being 23
<bricker`LA> RubyPanther: ahhh
<tobago> godd2, RubyPanther do you mean to calculate in millimeters/gramm?
<godd2> >> 129.95 * 100
<eval-in> godd2 => 12994.999999999998 (https://eval.in/93215)
<RubyPanther> I have no ideas what mms has to do with using accurate math
gja has joined #ruby
<godd2> >> (129.95*100).round
<eval-in> godd2 => 12995 (https://eval.in/93216)
<bricker`LA> RubyPanther: I think, perhaps, where I've seen it is when being redefined, i.e. `class Numeric; def +@; self + 1; end; end`
<bricker`LA> RubyPanther: thanks
<tobago> RubyPanther, just thought that way i could calculate using integers?
bradhe has joined #ruby
<RubyPanther> tobago: Why kludge your numbers when Ruby gives an accurate decimal class already?
nateberkopec has joined #ruby
<tobago> RubyPanther, Shall I use BigDecimal?
<RubyPanther> tobago: I probably would
jprovazn has joined #ruby
renklaf has joined #ruby
<godd2> tobago: it's okay to have differing opinions on the subject. Personally, I would go the integer route with smaller units.
<tobago> RubyPanther, so it comes to my first question: is there a nicer way than BigDecimal(weight.to_s)? preventing string conversion
ndrei has joined #ruby
<godd2> whatever makes more sense to you. Just make sure you account for pitfalls either way
zigomir has joined #ruby
<RubyPanther> in my dec_number gem I used a backwards coerce so that if I add a float to a dec_number it always gives back a dec_number. You can also monkeypatch BigDecimal to do that
<RubyPanther> tobago: The string conversion is harmless
<tobago> RubyPanther, o.k. so you woulf go for it, right?
<tobago> would
<RubyPanther> yeah
robbyoconnor has quit [Read error: Connection reset by peer]
<tobago> RubyPanther, thanks you for your helping answers and insights.
zxd has joined #ruby
<tobago> godd2, thank you also.
<godd2> no prob
bradhe has quit [Ping timeout: 272 seconds]
<Asitha> I'm wanting to use a text editor for my site, but didn't want to host any of the uploaded images there. Is there any gem you guys would recommend for me to use?
<Asitha> or even editor
nateberkopec has quit [Ping timeout: 272 seconds]
<godd2> Asitha you mean like on your server?
germanstudent has quit [Quit: raus]
<Asitha> yeah
<Asitha> I'm looking at using AWS's S3 service
<godd2> Ah I haven't used AWS. I just have a Linux VPS that I use Vim on.
<RubyPanther> Asitha: S3 is the canonical thing that gets recommended, yes
<Asitha> Is there any image uploading gem you would recommend I use with it then?
<Asitha> Can't really use paperclip since that's more of a single use uploader
tyl has joined #ruby
prc has quit [Read error: No route to host]
apeiros has joined #ruby
<godd2> Check out Carrierwave or Paperclip perhaps?
prc has joined #ruby
<Asitha> Need something that works for an editor where multiple images will be uploaded
timonv has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<godd2> You mean users will be editing the images in their browser? Or just managing overall files?
ndrei has joined #ruby
<Asitha> managing overall files
<Asitha> So basically they log on to the site
<Asitha> The want to contribute a post, they go to the editor
blaxter_ has joined #ruby
<Asitha> Then in the editor, there's a button to insert an image - they select the local file, file is uploaded and a url is returned to be added to the editor
<godd2> is this for a rails app?
robbyoconnor has joined #ruby
<Asitha> yeah
<godd2> ah then try the folks at #rubyonrails
ctp has joined #ruby
<Asitha> ah right
<Asitha> thanks
<godd2> they have more working knowledge of that kinda stuff. No prob :)
ohwhoa has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
nomenkun_ has joined #ruby
mengu has quit [Remote host closed the connection]
claymore has joined #ruby
Kricir has joined #ruby
kenndel has quit [Ping timeout: 272 seconds]
ahawkins has joined #ruby
einarj has joined #ruby
TejasDinkar has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
gja has quit [Ping timeout: 272 seconds]
jfelchner has joined #ruby
mengu has joined #ruby
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has quit [Changing host]
mengu has joined #ruby
relix has joined #ruby
ctp has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 272 seconds]
Jetchisel has joined #ruby
germanstudent has joined #ruby
fgo has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
jfelchner has joined #ruby
lkba has joined #ruby
himsin has joined #ruby
Hanmac has joined #ruby
Naoe-Kanno has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
Hanmac1 has quit [Ping timeout: 248 seconds]
SHyx0rmZ has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
emanu has joined #ruby
Pixels__ is now known as Pixels_
drakezhard has joined #ruby
noname001__ has joined #ruby
drakezhard has left #ruby [#ruby]
alexfreidah has joined #ruby
drakezhard has joined #ruby
drakezhard has left #ruby [#ruby]
TejasDinkar has quit [Quit: This computer has gone to sleep]
dodosan has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 260 seconds]
figgleberry has joined #ruby
Matriks has joined #ruby
alexfreidah has quit [Ping timeout: 252 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
Matriks_ has joined #ruby
amundj has joined #ruby
nathancahill has quit [Quit: nathancahill]
vlad_starkov has joined #ruby
drakezhard has joined #ruby
dfranciosi has joined #ruby
Matriks_ has quit [Read error: No route to host]
Matriks_ has joined #ruby
figgleberry has quit [Ping timeout: 260 seconds]
Matriks has quit [Ping timeout: 246 seconds]
JasmeetQA has joined #ruby
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
arctarus has joined #ruby
vlad_starkov has joined #ruby
Elhu has joined #ruby
drakezhard has quit [Ping timeout: 260 seconds]
ahmedelgabri has quit [Remote host closed the connection]
aryaching has joined #ruby
ahmedelgabri has joined #ruby
julweber has joined #ruby
Advocation has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
jfelchner has joined #ruby
tvw has joined #ruby
tylersmith has joined #ruby
pskosinski_ has joined #ruby
drumusician has joined #ruby
troessner has joined #ruby
_Andres has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
VinceThePrince has joined #ruby
VinceThePrince has quit [Client Quit]
ahmedelgabri has quit [Ping timeout: 260 seconds]
pskosinski has quit [Ping timeout: 240 seconds]
lesliewen1 has quit [Quit: Leaving.]
lesliewen has joined #ruby
MrJoshua has quit [Ping timeout: 248 seconds]
Macaveli has quit [Ping timeout: 264 seconds]
ktosiek has joined #ruby
bradhe has joined #ruby
JasmeetQA1 has joined #ruby
olivier_bK has joined #ruby
ephemerian has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
arturaz has joined #ruby
JasmeetQA has quit [Ping timeout: 246 seconds]
lesliewen has quit [Ping timeout: 272 seconds]
Al___ has joined #ruby
lesliewen has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
multi_io has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
multi_io has joined #ruby
lesliewen has quit [Ping timeout: 260 seconds]
emanu has quit [Quit: emanu]
Cache_Money has quit [Remote host closed the connection]
lesliewen has joined #ruby
gozali has joined #ruby
sski has joined #ruby
claymore has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
dodosan has joined #ruby
dodosan_ has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
camilasan has joined #ruby
wildroman2 has joined #ruby
Elhu has quit [Remote host closed the connection]
RoxasShadowRS has joined #ruby
canton7-mac has joined #ruby
Elhu has joined #ruby
Hiall has quit [Quit: hiall]
Virtualize has quit []
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
dodosan_ has quit [Ping timeout: 246 seconds]
punkzio has joined #ruby
heftig has joined #ruby
ctp has joined #ruby
agent_white has quit [Quit: night]
krz has quit [Quit: WeeChat 0.4.2]
vlad_starkov has quit [Remote host closed the connection]
krz has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir_ has joined #ruby
eliasp has quit [Ping timeout: 252 seconds]
ctp has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Remote host closed the connection]
fgo has joined #ruby
<Takumo> Hi all, I'm building a REST API Client Gem, and I'm wondering how to handle creating new resources...
<Takumo> i.e. r = MyGem::MyResource.new(data = {}); r.save
rootshift has joined #ruby
mehlah has joined #ruby
emanu has joined #ruby
emanu has quit [Client Quit]
<canton7-mac> see how the other REST gems have done it?
<Takumo> any good examples out there?
zipper has quit [Ping timeout: 264 seconds]
<pontiki> maybe look at Savon, which isn't REST, but SOAP
<pontiki> but it's similar enough, maybe?
Kricir_ has quit [Ping timeout: 264 seconds]
<canton7-mac> httparty, mechanize (although it does more), rest-client
<canton7-mac> are the first that come to mind
nari has quit [Ping timeout: 264 seconds]
<pontiki> i wouldn't have included mechanize, but it could do
<Takumo> I should be more specific, I'm building a gem on top of Faraday to use a specific REST API
<canton7-mac> my understanding is that it does an absolute ton of stuff, one bit of which is being an http client
<pontiki> Savon I suggested because it is more of a wrapper/abstraction. i have to go look into rest-client
<pontiki> oh
<pontiki> yes you should be more specific
Mon_Ouie has quit [Ping timeout: 248 seconds]
coder_neo has joined #ruby
workmad3 has joined #ruby
<Takumo> Why the world needs another generic REST client gem would be beyond me :P
<pontiki> if there's some, there's always room for more
<Takumo> But yes, when I'm retrieving resources I've got a #from_response method which adds a reference to the client as an instance property of the resource
magoo has quit [Quit: WeeChat 0.4.2]
reset has joined #ruby
<Takumo> I'm trying to find an example but all of these gems I can find are far more compelx than mine
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
falood has quit [Remote host closed the connection]
karupanerura is now known as zz_karupanerura
ejnahc has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
dodosan has joined #ruby
vlad_starkov has joined #ruby
ejnahc has joined #ruby
samuel02 has joined #ruby
JBreit has joined #ruby
davidk has joined #ruby
marr has joined #ruby
dawkirst has quit [Ping timeout: 248 seconds]
davidk is now known as Guest96553
dodosan has quit [Ping timeout: 252 seconds]
kristiandelay has joined #ruby
<apeiros> Takumo: why the world needed another programming language in 1990 is beyond me - there were dozens already. yet I'm happy ruby was created :)
timonv has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
TMM has joined #ruby
<Takumo> heh
bradhe has joined #ruby
kristiandelay has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
<Takumo> still, not sure how I can make MyGem::MyResource.new(data={}).save work , anyone able to take a look over my code and suggest?
renklaf has quit [Remote host closed the connection]
klaut has joined #ruby
robbyoconnor has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<jxport> Am I going mad
<Takumo> yes
<jxport> Wait for it
<jxport> ..Or was there a .second method like the .first
<jxport> :)
<jxport> For arrays, for instance
<apeiros> jxport: railsism
<jxport> apeiros: ffs.
<apeiros> ruby doesn't have Enumerable#second or Array#second
<jxport> I forget how much Rails goes beyond web-apps
<jxport> In fact I think that sort of stuff is really going above and beyond what it should
reset has quit [Quit: Leaving...]
<apeiros> there's a reason why we delegate even superficially "ruby" questions in the rails domain to #rubyonrails
<apeiros> rails warps enough of ruby to render some basic assumptions invalid. it has gotten better since rails 3, though.
nanoyak has quit [Quit: Computer has gone to sleep.]
afhammad has joined #ruby
<jxport> I don't know what it is, but something about Rails intimidates me - like I don't really know what's going on.
<jxport> Padrino on the other hand seems sufficiently featureful, without me feeling like I'm involved in something I probably shouldn't be
aaronmcadam has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
bluenemo has joined #ruby
ctp has joined #ruby
nateberkopec has joined #ruby
fgo has quit [Remote host closed the connection]
roberto_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Tamae has joined #ruby
roberto_ has quit [Client Quit]
wildroman2 has joined #ruby
bambuka has joined #ruby
Squarepy has joined #ruby
afhammad has quit []
monkegjinni has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
seoaqua has quit [Remote host closed the connection]
<mikecmpbll> ruby folk, i call upon your expertise. i'm having trouble getting a web page with Net::HTTP over SSL
<mikecmpbll> Errno::ECONNRESET: Connection reset by peer - SSL_connect
<mikecmpbll> I can get it in the browser just fine, and I can get other SSL pages with Net::HTTP
<Hanmac> in germany we have a politican named "peer" ... maybe he was the culpit? ;P
<mikecmpbll> doc = Net::HTTP.get(URI("https://some.web.service?wsdl")) # simple as
<Takumo> CONNRESET means the server terminated the connection without responding...
nateberkopec has quit [Ping timeout: 272 seconds]
<mikecmpbll> haha Hanmac :'D i hate him if it is.
krz has quit [Ping timeout: 252 seconds]
<mikecmpbll> Takumo: hmm. yeah I was thinking that too, I wonder why it's doing that though.
<mikecmpbll> must be something in my request
mojjojo has joined #ruby
dodosan has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
danijoo has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
bricker`LA has quit [Quit: leaving]
danijoo has joined #ruby
Lewix has quit [Remote host closed the connection]
aep has quit [Read error: Connection reset by peer]
dodosan has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 264 seconds]
kitak has quit [Remote host closed the connection]
phansch has joined #ruby
h_kon has quit [Remote host closed the connection]
pixelgremlins has quit [Ping timeout: 248 seconds]
nari has joined #ruby
Kricir has joined #ruby
mengu has quit [Remote host closed the connection]
timonv has joined #ruby
mengu has joined #ruby
reset has joined #ruby
zipper has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
dodosan has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dodosan has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
phipes has joined #ruby
notjohn has quit [Quit: notjohn]
francisfish has joined #ruby
jds has joined #ruby
phansch has quit [Ping timeout: 272 seconds]
dodosan has quit [Ping timeout: 260 seconds]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
Hanmac1 has joined #ruby
h_kon has joined #ruby
reset has quit [Ping timeout: 246 seconds]
fella5s has joined #ruby
w4pm has joined #ruby
wildroman2 has quit [Remote host closed the connection]
decoponio has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
godd2 has quit [Ping timeout: 272 seconds]
eliasp has joined #ruby
shime has joined #ruby
tulak has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
Speed has left #ruby ["WeeChat 0.4.2"]
dawkirst has joined #ruby
dawkirst has quit [Read error: Connection reset by peer]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
Al___ has quit [Quit: Al___]
bradhe has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
purpleidea has quit [Changing host]
purpleidea has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
agjacome has joined #ruby
aagdbl1 is now known as aagdbl
vlad_starkov has quit [Read error: Operation timed out]
allen_on_c has quit [Quit: Leaving]
phansch has joined #ruby
xlogic has joined #ruby
Al___ has joined #ruby
wildroman2 has joined #ruby
Matriks_ has quit [Remote host closed the connection]
Matriks has joined #ruby
AlSquirrel has joined #ruby
ndrei has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
seoNinjaWarrior has quit [Ping timeout: 252 seconds]
dukz has quit [Remote host closed the connection]
<mikecmpbll> I can connect successfully using openssl in terminal -_-
nateberkopec has joined #ruby
nfk has joined #ruby
h_kon has quit [Remote host closed the connection]
dseitz has joined #ruby
cina has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
madb055 has quit [Ping timeout: 260 seconds]
<cina> how can I load gems listed in a Gemfile?
amritanshu_RnD has joined #ruby
<Asitha> bundle install
<Asitha> bundle update
xjiujiu has joined #ruby
<Asitha> ?
<shevy> help
lkba has joined #ruby
<cina> I have a ruby code, that uses the gems listed in a Gemfile, they are all installed, but not loaded/required/included in my code
nateberkopec has quit [Ping timeout: 252 seconds]
<Asitha> are you using rails?
<cina> no
zeeraw has joined #ruby
eka has joined #ruby
<cina> rails seems to do this: require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
<cina> in config/boot.rb
noop has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
noop has joined #ruby
<cina> to load gems listed in Gemfile
camilasan has joined #ruby
<shevy> there is a channel #bundler btw, not everyone here on #ruby uses bundler (I don't, I hate bundler)
diegoviola has joined #ruby
<pontiki> h8ers gonna h9
<cina> shevy: thanks for mentioning #bundler
<workmad3> cina: 'require "bundler/setup"' will setup bundler, lock gems to the gemfile and load them
dodosan has joined #ruby
<cina> workmad3: thank you -- so I need to set ENV['BUNDLE_GEMFILE'] to be the path of my Gemfile
<workmad3> cina: iirc, it'll default to ./Gemfile
thumpba has joined #ruby
nari has quit [Ping timeout: 246 seconds]
danijoo_ has joined #ruby
<workmad3> cina: so you should be able to just do 'require "bundler/setup" ' in your code, or do 'ruby -r bundler/setup <yourscript>.rb' to launch
jtdowney has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
<kalleth> I can't figure out what side I fall down on on this
danijoo has quit [Read error: Operation timed out]
<kalleth> what do you guys feel about using dependency injection to inject the current time into methods which operate on the current time?
dodosan has quit [Ping timeout: 260 seconds]
aagdbl_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
thumpba has quit [Ping timeout: 246 seconds]
aagdbl has quit [Quit: Leaving.]
aagdbl_ is now known as aagdbl
<pontiki> the latter is more versatile
<pontiki> and more easily tested
<kalleth> mm, okay
florentferry has joined #ruby
mojjojo has quit [Quit: mojjojo]
drumusician has joined #ruby
Hiall has joined #ruby
renklaf has joined #ruby
Kricir has joined #ruby
zoscoy has joined #ruby
DaniG2k has joined #ruby
Xeago_ has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
zoscoy has quit [Client Quit]
Kricir has quit [Ping timeout: 246 seconds]
dagobah has joined #ruby
ewnd9 has joined #ruby
mojjojo has joined #ruby
prc has quit [Ping timeout: 246 seconds]
thomasxie has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
p8952 has joined #ruby
JPascal has joined #ruby
JPascal has quit [Max SendQ exceeded]
JPascal has joined #ruby
sensen has quit [Quit: leaving]
r0bby_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
reset has joined #ruby
r0bby_ has quit [Client Quit]
poulson has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
wildroman2 has joined #ruby
bradhe has joined #ruby
reset has quit [Ping timeout: 252 seconds]
mlpinit has joined #ruby
dukz has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
tziOm has quit [Quit: Leaving]
JasmeetQA has joined #ruby
robbyoconnor has joined #ruby
gozali has quit [Remote host closed the connection]
JasmeetQA1 has quit [Ping timeout: 252 seconds]
mlpinit has quit [Ping timeout: 260 seconds]
Heskie has joined #ruby
nari has joined #ruby
<shevy> pontiki oh I have specific reasons - I don't need anything bundler gives me. I am quick to throw out code from other people if it does not work or just create my own projects :) Or I simply stick to the latest set of gems, which "gem" handles fine
Hanmac1 is now known as Hanmac
coder_neo has quit [Quit: This computer has gone to sleep]
<shevy> bundler came out of the rails ecosystem
<pontiki> i don't really care, shevy :)
<pontiki> i just like h8ers gonna h9
<Hanmac> what shevy means it came directly out of the hell ;P
dukz has quit [Remote host closed the connection]
<shevy> pontiki it's ok, it serves as explanation
dukz has joined #ruby
habanany has joined #ruby
Xeago has joined #ruby
tyl has joined #ruby
<depesz> hm .. i installed "gd2" gem, but how can I use it to load png file?
<depesz> I tried "require 'gd2'" but it fails with SyntaxError: /var/lib/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:46: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
<depesz> in the docs (http://rubydoc.info/gems/gd2/1.1.1/frames) i can't find how am I supposed to load it.
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> XD depesz the gd2 gem does not work for 1.9+ ;D ... that means it more than 3 years outdated
<depesz> ok. so what can/should I use, to load png, check some pixels in it, make some new png, and write it?
dukz has quit [Ping timeout: 264 seconds]
<Hanmac> oh correction ... its more than 8 years old
<depesz> i tried to use "png" gem too, also failed.
gz4rth_ has joined #ruby
<depesz> so what is the correct way to work with images now?
coder_neo has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pontiki> rmagick
gz4rth has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Remote host closed the connection]
JasmeetQA has quit [Quit: Leaving.]
JasmeetQA has joined #ruby
nateberkopec has joined #ruby
dkamioka has joined #ruby
wadawadawsda has joined #ruby
zeeraw has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
dukz has joined #ruby
Vitor has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JasmeetQA has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Ping timeout: 272 seconds]
cina has quit [Quit: leaving]
francisfish has quit [Remote host closed the connection]
Asitha has quit []
zxd_ has joined #ruby
zxd has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Heskie has quit []
mengu has quit [Remote host closed the connection]
dodosan has joined #ruby
wadawadawsda has quit [Quit: Bye]
Elhu has quit [Quit: Computer has gone to sleep.]
francisfish has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<depesz> thanks
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
griffindy has joined #ruby
<jds> Anyone else struggling to install from rubygems at the moment?
<jds> "gem install blah" sits there for ages before dying with some variant of "no such name (https://api.rubygems.org/quick/Marshal.4.8/nokogiri-1.3.2-x86-mswin32.gemspec.rz)"
tkuchiki has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 272 seconds]
gja has joined #ruby
tkuchiki has joined #ruby
rdark has quit [Quit: leaving]
rdark has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drumusician has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
dukz has quit [Remote host closed the connection]
angusiguess has joined #ruby
drumusician has joined #ruby
EngierkO has joined #ruby
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby
francisfish has quit [Remote host closed the connection]
zxd_ is now known as zxd
timonv has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
browndawg has joined #ruby
Kricir has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
wtfitsme has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
fire has joined #ruby
VTLob has joined #ruby
stef_204 has joined #ruby
ndrei has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Pixels__ has joined #ruby
wtfitsme has quit [Client Quit]
Pixels_ has quit [Disconnected by services]
Pixels__ is now known as Pixels_
Elhu has joined #ruby
bradhe has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
reset has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
mikecmpbll has joined #ruby
mehlah has joined #ruby
browndawg1 has joined #ruby
pranny has quit [Quit: Leaving.]
reset has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
thomasxie has quit [Ping timeout: 252 seconds]
Xeago__ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
lupine has quit [Read error: Connection reset by peer]
browndawg1 has quit [Client Quit]
ewnd9 has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
camilasan has joined #ruby
iaj has quit [Ping timeout: 272 seconds]
lupine has joined #ruby
Xeago_ has quit [Ping timeout: 246 seconds]
skulker has joined #ruby
iaj has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
zeeraw has joined #ruby
himsin has quit [Quit: himsin]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wadawadawsda has joined #ruby
florentferry has quit [Ping timeout: 265 seconds]
droid has joined #ruby
ddv has quit []
bthesorceror has joined #ruby
figgleberry has joined #ruby
p8952 has quit [Quit: Leaving]
MrPopinjay has joined #ruby
end_guy has quit [Remote host closed the connection]
wadawadawsda has quit [Quit: Bye]
p8952 has joined #ruby
falood has joined #ruby
scarolan has joined #ruby
Heskie has joined #ruby
abk has joined #ruby
GreekFreak has joined #ruby
<GreekFreak> hi all.
Czupa has joined #ruby
<GreekFreak> I'm not sure if this is the right place, but have any of you found that sometimes vim crashes when trying to open ruby files (esp when trying to open said file with NERDTree of netrw)?
<MrPopinjay> Can't say I have
<MrPopinjay> Sounds like a buggy vim extension
Neomex has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
nateberkopec has joined #ruby
Neomex has quit [Client Quit]
<GreekFreak> MrPopinjay, it's the ubuntu software centre one, and netrw is what comes with vim directly
<MrPopinjay> What is from the software centre?
<MrPopinjay> vim?
<MrPopinjay> Nerdtree is actually part of vim these days?
dfranciosi has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
mojjojo has quit [Quit: mojjojo]
nateberkopec has quit [Ping timeout: 246 seconds]
MrPopinjay has quit [Quit: leaving]
falood has quit [Remote host closed the connection]
_tpavel has joined #ruby
falood has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
bal has quit [Quit: bal]
dodosan has joined #ruby
bthesorceror has quit [Remote host closed the connection]
max96at has joined #ruby
GreekFreak has left #ruby ["Leaving"]
vpretzel has quit [Ping timeout: 260 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mojjojo has joined #ruby
yalue has joined #ruby
seoaqua has joined #ruby
browndawg has joined #ruby
dfranciosi has joined #ruby
dodosan has quit [Ping timeout: 260 seconds]
<seoaqua> i got 'rspec not found' after i gem install rspec on Mac. any one can help,pls?
bal has joined #ruby
<seoaqua> i installed ruby2.1 with homebrew. and there is no rspec at /usr/local/bin
yacks has joined #ruby
alekst has joined #ruby
browndawg has quit [Client Quit]
craigp_ has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
scarolan has quit [Ping timeout: 265 seconds]
end_guy has joined #ruby
IceyEC has joined #ruby
ringaroses has joined #ruby
mark_locklear has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
Kricir has joined #ruby
cina has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<shevy> hmm
<shevy> why would it be at /usr/local/bin
<shevy> is ruby not at /usr/bin
<seoaqua> shevy: there is no rspec at /usr/bin. i think the user-installed soft should be at /usr/local/bin and u need to ln -s them to /usr/bin
Kricir has quit [Ping timeout: 252 seconds]
<shevy> aha. I did a global install through "gem install rspec" just now, rspec works and is at /usr/bin/rspec
<shevy> you could always try a manual install, the .gem is downloaded locally to the cache/gem/ subdir
tck9 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<tck9> i'm trying to install the breakpoint gem, but am getting this error message. any workarounds for this? http://pastebin.ca/2574132
<seoaqua> shevy: what's your system? is it MacOS?
monkegjinni has joined #ruby
h_kon has joined #ruby
Guest11248 has quit [Read error: Connection reset by peer]
ahmedelgabri has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<seoaqua> shevy: i think the /usr/bin/rspec is a symbolic link to /usr/local/Cellar/ruby/2.1.0/bin/rspec. btw, i just found it here
astomp has joined #ruby
n1x has joined #ruby
jkamenik has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
reset has joined #ruby
pranny has joined #ruby
monkegjinni has quit [Ping timeout: 248 seconds]
fede_ has joined #ruby
astomp has quit [Client Quit]
dayepa has joined #ruby
jokke has quit [Quit: WeeChat 0.4.2]
rmorello has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
vpretzel has joined #ruby
jokke has joined #ruby
shime has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 272 seconds]
pranny has quit [Quit: Leaving.]
tejas has joined #ruby
<Takumo> I'm wondering how to do a map/reduce type thing on an array of OpenStructs
gja has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
abk has quit [Ping timeout: 265 seconds]
coder_neo has quit [Ping timeout: 252 seconds]
ckinni has joined #ruby
pranny has joined #ruby
<Takumo> i.e. structs.reduce { :id => (1..10) , :name => /my regex/ , :flag => true , :numeric => less_than 3 }
abk has joined #ruby
puppeh has joined #ruby
<shevy> seoaqua not mac, no, linux, but I don't even have or use /usr/local structure
<puppeh> can a too high RUBY_HEAP_MIN_SLOTS limit hurt the performance?
timonv has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> on gobolinux stat /usr/bin/ruby would always work and point to /Programs/Ruby/#{CURRENT_VERSION}
LiohAu has joined #ruby
<LiohAu> is there an easy way to print the "env" in ruby ?
<LiohAu> or should i execute the "env" sh command and print the output ?
tck9 has quit [Quit: leaving]
<seoaqua> shevy: this is my /usr/bin/ruby lrwxr-xr-x 1 root wheel 76 9 23 20:54 ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
dukz has joined #ruby
RaCx has joined #ruby
clamstar has joined #ruby
<seoaqua> LiohAu: p ENV ?
<seoaqua> LiohAu: do u mean this? maybe u could use awesome_print
ndrei has joined #ruby
coder_neo has joined #ruby
bthesorceror has joined #ruby
kaldrenon has joined #ruby
<shevy> seoaqua the Mac structure is really weird
<shevy> what goes into a Frameworks/ entry?
<shevy> and why is bin/ under Library/ ...
<seoaqua> LiohAu: you could either `VAR_A=VALUE_A ruby something.rb` or in your ruby program ENV['VAR_A']='VALUE_A'
abk has quit [Ping timeout: 248 seconds]
kristiandelay has joined #ruby
<shevy> LiohAu require 'pp'; pp ENV
Guest81638 has quit [Ping timeout: 252 seconds]
<LiohAu> seoaqua: "p ENV" i guess
<apeiros> I often do `p *ENV.sort`
dblessing has joined #ruby
abk has joined #ruby
<LiohAu> p ENV is what i wanted thx :)
tziOm has joined #ruby
raar has joined #ruby
wildroman2 has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
raar is now known as Guest37337
tkuchiki has joined #ruby
<seoaqua> what's short for threads.each{|t|t.join} ? i remember it to be threads.each{:&join} but not really
craigp has joined #ruby
<shevy> threads.map(&:join) perhaps
<Takumo> seoaqua: or threads.collect(&:join)
angusiguess has quit [Ping timeout: 265 seconds]
<Takumo> which will basically do x=[]; threads.map { |t| x << t.join }; x
pskosinski_ has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
<seoaqua> shevy: Takumo: thanks
dukz has joined #ruby
figgleberry has quit [Ping timeout: 272 seconds]
ewnd9 has joined #ruby
mojjojo has quit [Quit: mojjojo]
burlyscudd has joined #ruby
thesheff17 has quit [Ping timeout: 260 seconds]
Baluse has quit [Ping timeout: 252 seconds]
Baluse has joined #ruby
<puppeh> can a too high RUBY_HEAP_MIN_SLOTS limit hurt the performance of a rails app?
kpshek has joined #ruby
craigp has quit [Ping timeout: 272 seconds]
spyderman4g63 has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy> ack
droid has quit [Ping timeout: 246 seconds]
<shevy> rails!
sailias has joined #ruby
mlpinit has joined #ruby
krawchyk has joined #ruby
droid has joined #ruby
kaldrenon has quit [Remote host closed the connection]
abk has quit [Ping timeout: 272 seconds]
Virtualize has joined #ruby
soba has quit [Ping timeout: 248 seconds]
relix has joined #ruby
astomp has joined #ruby
kaldrenon has joined #ruby
danshultz has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
falood has quit [Remote host closed the connection]
seoaqua has quit []
dukz has quit [Remote host closed the connection]
falood has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
browndawg has joined #ruby
sassamo has joined #ruby
ringaroses has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
ahmedelg_ has joined #ruby
aryaching has joined #ruby
tyl has joined #ruby
ahmedelg_ has quit [Remote host closed the connection]
jerius has joined #ruby
ahmedelgabri has quit [Ping timeout: 248 seconds]
dodosan has quit [Ping timeout: 245 seconds]
pranny has quit [Quit: Leaving.]
tannerburson has joined #ruby
tvw has quit []
wtfitsme has joined #ruby
sassamo has quit [Remote host closed the connection]
droid has quit [Ping timeout: 245 seconds]
sassamo has joined #ruby
fede_ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
v1n has joined #ruby
fede_ has joined #ruby
Pixels_ has quit [Ping timeout: 272 seconds]
v0n has quit [Ping timeout: 245 seconds]
allaire has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
francisfish has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
browndawg1 has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
ffranz has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
sassamo has quit [Ping timeout: 272 seconds]
astomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
angusiguess has joined #ruby
gja has joined #ruby
pixelgremlins has joined #ruby
RoxasShadowRS has quit [Ping timeout: 272 seconds]
gja has quit [Client Quit]
sambao21 has joined #ruby
RoxasShadowRS has joined #ruby
scarolan has joined #ruby
francisfish has quit [Ping timeout: 272 seconds]
pushpak has joined #ruby
skulker_ has joined #ruby
skulker has quit [Read error: Connection reset by peer]
ewnd9 has quit [Ping timeout: 248 seconds]
snath has quit [Read error: Operation timed out]
Hanmac has quit [Quit: Leaving.]
phipes has quit [Remote host closed the connection]
meatherly has joined #ruby
cina has quit [Ping timeout: 264 seconds]
cina has joined #ruby
figgleberry has joined #ruby
g0bl1n has joined #ruby
mansi has joined #ruby
reset has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
JZTech101 has quit [Quit: Now what?]
wildroman2 has joined #ruby
JZTech102 has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
nateberkopec has quit [Quit: Leaving...]
craigp has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alexfreidah has joined #ruby
kraljev5 has joined #ruby
<kraljev5> String#start_with? Regex
<kraljev5> does that exist?
alexfreidah has quit [Read error: Connection reset by peer]
xjiujiu has quit [Ping timeout: 260 seconds]
<kraljev5> I'd like to avoid modifying the regex
<kraljev5> that means prepending ^ or \A
reset has quit [Ping timeout: 245 seconds]
chrisseaton has joined #ruby
<angusiguess> Is unioning the regex for one use okay?
burlyscudd has quit [Quit: Leaving.]
JZTech102 is now known as JZTech101
JZTech101 has quit [Changing host]
JZTech101 has joined #ruby
<kraljev5> how would you do that?
sailias has quit [Ping timeout: 252 seconds]
<angusiguess> Er, unioning is probably not the solution, but you could build one expression to match beginning of string and then use the existing one.
yasushi has joined #ruby
<angusiguess> If something satisfies both it would be the same as if you'd prepended to the existing expression.
<kraljev5> I could call #to_s on a regex, do the magic, then cast it to regex again
<kraljev5> anything less elegant out there possibly?
jobewan has joined #ruby
tulak has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
tulak has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
tulak has quit [Read error: Connection reset by peer]
tulak has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
cina_ has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
ebetancourt has joined #ruby
cina has quit [Ping timeout: 260 seconds]
angusigu1ss has joined #ruby
devdazed has joined #ruby
francisfish has joined #ruby
dawkirst has joined #ruby
ewnd9 has joined #ruby
cina_ has quit [Client Quit]
shaunbaker has quit [Remote host closed the connection]
<joonty> hey all
<joonty> got an interesting error on ruby 2.0.0-p353
<pontiki> Takumo: collect and map are aliases
<joonty> `Dir.pwd` throws "Errno::ENOENT: No such file or directory - getcwd"
<joonty> anyone got any ideas about this one?
angusigu1ss has quit [Ping timeout: 265 seconds]
sassamo has joined #ruby
drumsrgr8forn8 has joined #ruby
<pontiki> are you running it in a directory that was deleted after you entered it?
Heskie has quit []
<pontiki> moved or renamed, also?
tvw has joined #ruby
Rix- has joined #ruby
jkwaldri has joined #ruby
mikecmpbll has joined #ruby
Justin4770 has joined #ruby
samsonasu has joined #ruby
habanany has joined #ruby
<joonty> pontiki: yeh, that was it, thanks
griffindy has quit [Quit: Computer has gone to sleep.]
fedesilva has joined #ruby
jkwaldri has left #ruby [#ruby]
pu22l3r_ has joined #ruby
yasushi has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Heskie has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
jfelchner has joined #ruby
<soahccc> Does anyone know if I can safely "backport"/use ruby 2 Queue in 1.9.3? It seems they just have removed the duplication of the conditionvariable and added Thread.handle_interrupt(StandardError => :on_blocking) wrapper
dawkirst has quit [Ping timeout: 245 seconds]
droid1 has joined #ruby
zeeraw has joined #ruby
bal has quit [Quit: bal]
benzrf has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
<benzrf> hello ruby people
cjsarette has quit [Ping timeout: 260 seconds]
robscomputer has quit [Client Quit]
mathnode has joined #ruby
<kraljev5> is Regex mutable?
meatherly has quit []
jlast has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
<mathnode> Anyone know how I can parse a string argument with getoptlong? i.e. myapp.rb --arg1=value1 --arg2=value2 "and then this big old string with no --parameter"
jfelchner has joined #ruby
kraljev5 has left #ruby [#ruby]
RoxasShadowRS has joined #ruby
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
meatherly has joined #ruby
droid1 has quit [Ping timeout: 246 seconds]
Virtualize has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
benzrf has quit [Ping timeout: 260 seconds]
Kilo`byte has quit [Quit: kilobyte22.de]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
Es0teric has joined #ruby
LadyRainicorn has joined #ruby
interactionjaxsn has joined #ruby
jedimind has joined #ruby
robscomputer has joined #ruby
LadyRainicorn has quit [Max SendQ exceeded]
robscomputer has quit [Client Quit]
meatherly has quit [Read error: Connection reset by peer]
kristiandelay has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
mary5030 has joined #ruby
Virtualize has joined #ruby
LadyRainicorn has quit [Max SendQ exceeded]
meatherly has joined #ruby
Virtualize has quit [Client Quit]
clamstar has joined #ruby
dodosan has joined #ruby
LadyRainicorn has joined #ruby
phat4life has joined #ruby
LadyRainicorn has quit [Max SendQ exceeded]
ahmedelgabri has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
meatherly has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
meatherly has joined #ruby
Kricir has joined #ruby
Kilo`byte has joined #ruby
dawkirst has joined #ruby
duggiefresh has joined #ruby
bradhe has joined #ruby
bean__ has joined #ruby
dodosan has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
apeiros has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
mmcclimon has joined #ruby
phat4life has quit [Quit: Leaving.]
ahmedelgabri has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
angusigu1ss has joined #ruby
enebo has joined #ruby
jlast has quit [Remote host closed the connection]
<pontiki> mathnode: is that the last arg? and is it actually a bound string like that?
jfelchner has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
danshult_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
scarolan has quit [Ping timeout: 246 seconds]
tobago has quit [Remote host closed the connection]
krz has joined #ruby
jfelchner has joined #ruby
<pontiki> if so, you don't with getopt* or any other option parser. It's just an argment then, and when getoptlong is done, it would be whatever is left in ARGV
bradhe has quit [Ping timeout: 259 seconds]
<pontiki> also, mathnode, unless this is for learning purposes, there are better ways to go about doing a cli script
sailias has joined #ruby
tyl_ has joined #ruby
phat4life has joined #ruby
nateberkopec has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
angusigu1ss has quit [Ping timeout: 245 seconds]
jfelchner has quit [Read error: Connection reset by peer]
h_kon has quit [Remote host closed the connection]
aep has joined #ruby
Zubin has joined #ruby
jfelchner has joined #ruby
<pontiki> thor, gli, methadone, slop
tyl has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
thesheff17 has joined #ruby
<Zubin> is there any module in ruby for bluetooth and wireless communication?
shime has joined #ruby
enebo has quit [Ping timeout: 248 seconds]
relix has joined #ruby
monkegji_ has quit [Ping timeout: 252 seconds]
mmcclimon has quit [Quit: WeeChat 0.4.2]
freerobby has joined #ruby
Hanmac has joined #ruby
<canton7-mac> what level are you talking about? serial comms? sure. anything lower? probably not
<Zubin> no just simple bluetooth and wireless i mean wifi and bluetooth?
dawkirst has quit [Ping timeout: 245 seconds]
mordocai` has joined #ruby
coderhs has quit [Quit: Leaving]
<LadyRainicorn> What do you want to do?
wc- has joined #ruby
tagrudev has quit [Remote host closed the connection]
awarner_ has quit [Read error: Connection reset by peer]
<mathnode> pontiki: yes that's the last arg, I got it just by sticking ARGV[0] into a string then set ARGV = []. Unfortunately this script must behave like the bash script it precedes.
<wc-> hi all, im having a lot of issues getting unicorn to host my ruby rest api w/ upstart
awarner has joined #ruby
byprdct has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zubin> create an application which supports bluetooth and wifi enabled chat for pc.
<wc-> ive seen a couple different ways of going about setting up the pre and post fork commands in the unicorn config and upstart config
<wc-> anyone have any personal recommendations / guides?
<Takumo> Hi I've got an array of hashes which all have a :project_id attribute
MatthewsFace has joined #ruby
ciwolsey has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
<Takumo> how can I filter this array down to hashes where :project_id == a_value
gz4rth_ has left #ruby ["Leaving"]
<pontiki> mathnode: ah so.
<hoelzro> Takumo: hashes.select { |h| h[:project_id] == a_value }
<LadyRainicorn> Do you mean you want it to use internet, or do magical custom things?
<Takumo> ah cool
jfelchner has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
<pontiki> mathnode: you can do the last bit in one operation with `bigarg = ARGV.shift` as well
mspah_ has joined #ruby
machuga is now known as machuga|away
meatherly has joined #ruby
<Zubin> a kind of loacl chat using bluetooth ports and wireless host service.
coderhs has joined #ruby
<LadyRainicorn> Bluetooth is very short-range. Why is it useful to have a message app over it?
yasushi has joined #ruby
<LadyRainicorn> It would be much easier to talk to the person a meter away from you.
dkamioka has quit [Remote host closed the connection]
<Zubin> Its sort of project I need to develop for someone else so I was wondering?
Rainicorn has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
ewnd9_ has joined #ruby
dkamioka has joined #ruby
<Zubin> does ruby supports internet chat facilities?
<Rainicorn> Do you mean IP?
<Zubin> yes.
mengu has quit [Remote host closed the connection]
<Rainicorn> Yes.
forrest has joined #ruby
monkegjinni has joined #ruby
burlyscudd has joined #ruby
<Zubin> ok and about bluetooth and wifi?
vlad_starkov has quit [Remote host closed the connection]
phat4life has quit [Quit: Leaving.]
<Rainicorn> Possibly, but I am almost certain you do not want that.
<mathnode> pontiki: oh ok, so don't reset ARGV, just shift?
forrest has left #ruby [#ruby]
<Rainicorn> You just want to use the internet, right?
RaCx has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
<Rainicorn> Or are you actually want to send raw packets?
<Rainicorn> s/want/&ing
<shevy> ack
<sickweezle> syn
maletor has joined #ruby
<shevy> we have a Rainicorn and also a LadyRainicorn
<shevy> this seems to be like an invasion
<Zubin> anything will be useful. ya user has to choose what kind of communication channel he wants to use either internet or bluetooth or wifi.
LadyRainicorn has quit [Ping timeout: 260 seconds]
<Rainicorn> (If you do not kmow what thosw are, you do not want to send them.)
<Rainicorn> It is.
reset has joined #ruby
mordocai` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jfelchner has quit [Read error: Connection reset by peer]
<sickweezle> There may be three of me once I get to work.
<pontiki> mathnode: shift will return the first element an array and remove it from the array at the same time
<Rainicorn> I think you may not fully understand what sort of interface the OS presents to you.
LekeFly has joined #ruby
jfelchner has joined #ruby
mordocai` has joined #ruby
<Rainicorn> Therefore, you almost certainly just want TCPSocket.
monkegjinni has quit [Remote host closed the connection]
<canton7> Zubin, the user will get the bluetooth connected using the stuff provided by windows. then he'll tell you want COM port that bluetooth device is sitting on (or you can try and auto-discover that), then you can talk serial over that COM port
monkegjinni has joined #ruby
<canton7> same with network stuff - the user sets up the network connection (wifi, etc) using windows' utilities, then you get to send data over whatever's been established
<Zubin> yes but configuring sockets isn't a problem for me. but I need to see if it supports or not.
cjsarette has joined #ruby
Brolen has joined #ruby
LastWhisper has joined #ruby
brennanMKE has joined #ruby
renklaf has quit [Remote host closed the connection]
<Rainicorn> https://github.com/brandonprry/rubytooth may be helpful.
<Rainicorn> I am not sure if it is current.
<LastWhisper> sup guys - any of you guys familiar with factorygirl?
<Rainicorn> But do you really want to create a chat application ovwr Bluetooth?
<mathnode> pontiki: that is perfect thanks, also removed the next issue of having a 'gets' in there :P
<Rainicorn> Really no one will ever want that.
mmcclimon has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
Rainicorn is now known as LadyRainicorn
monkegji_ has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
<pontiki> Rainicorn: i might want to chat with myself on the phone while i'm at my desk...
aryaching has joined #ruby
<Zubin> I have created an chat application based on .net framework in C#. but I want to translate some of the codes in ruby so I need to see if there is any packages or gems to support it.
<canton7-mac> Zubin, supports *what*?
reset has quit [Ping timeout: 252 seconds]
jfelchner has joined #ruby
mmcclimon has quit [Client Quit]
lmickh has quit [Remote host closed the connection]
<canton7-mac> you haven't actually clarified that question yet
<Zubin> bluetooth, wifi controllers and tcp sockets.
<canton7-mac> define "wifi controllers"
<canton7-mac> what do you mean by that?
<LadyRainicorn> lol pontiki
mmcclimon has joined #ruby
<pontiki> ruby is just a language. the standard library supports talking over all kinds of interfaces
<LadyRainicorn> But this is an insane idea.
<pontiki> that's Zubin's perogative, tho, is it not?
<LadyRainicorn> I suppose.
monkegjinni has quit [Ping timeout: 260 seconds]
geggam has joined #ruby
<Zubin> LandyRainicorn, have you used whatsapp?
sambao21 has joined #ruby
cgore has joined #ruby
<canton7-mac> Zubin, if you're asking if you can tell windows to connect to a specific wireless network from ruby, the answer is "probably not"
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
lfox has joined #ruby
<Zubin> thanks canton7 -mac that's what I needed to know. So now I will do it merrily in Java.
<LadyRainicorn> There is a fairly low level COM binding you could use I think
timonv has joined #ruby
meatherly has quit []
shaunbaker has quit [Remote host closed the connection]
<canton7-mac> Zubin, can you do that with java? Google's not bringing up anything if I ask it for ways to talk to the netive wifi api with java
<LadyRainicorn> Win32API
<canton7-mac> yeah, you could do it manually with the win32api
<Zubin> thanks all for the help. I am deeply oblidged.
<LadyRainicorn> It's probably a unique issue.
<Zubin> search for JSR-82.
mengu has joined #ruby
mengu has joined #ruby
<canton7-mac> doubt anyone's wrapped it up yet
<LadyRainicorn> I suspect Win32API will be the easiest path.
<canton7-mac> Zubin, that's bluetooth access for embedded devices such as mobile phones?
<canton7-mac> which is entirely irrelevant?
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
b00stfr3ak has joined #ruby
jlast has joined #ruby
rubidious has joined #ruby
coder_neo has quit [Read error: Connection reset by peer]
jfelchner has quit [Read error: Connection reset by peer]
<Zubin> ok will see to it I have Bluetooth self development kit in java. I think it might help
Zubin has quit [Quit: Leaving]
ryantm has joined #ruby
<rubidious> Hi. I'm new to ruby. I'm a bit confused as to what the :keyword (symbol?) is in the context of objects/methods. Can someone clarify or point me to documentation?
jfelchner has joined #ruby
AndrewMartin has joined #ruby
mmcclimon has quit [Quit: mmcclimon]
meatherly has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<LadyRainicorn> Keywords aren't the same as symbols.
<rubidious> sory
<LadyRainicorn> A symbol looks like :this.
<rubidious> sorry*
<LadyRainicorn> Is that what you mean?
<rubidious> yes
meatherly has quit [Remote host closed the connection]
AndrewMartin is now known as Amart41
<rubidious> keyword was just an example (apparently a poorly chosen one)
<LadyRainicorn> Symbols are like immutable strings that are never garbage collected
<LadyRainicorn> They all exist at the same memory loxation.
meatherly has joined #ruby
burlyscudd has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 260 seconds]
<rubidious> I see them used as methods and/or objects in tutorials though?
<LadyRainicorn> Think of it like #define constants in C.
<rubidious> or am I misunderstanding
<LadyRainicorn> You mean &:symbol?
<rubidious> no just :symbol (I may be wrong)
<rubidious> I've only just started learning ruby this morning
<LadyRainicorn> :symbol can't be called as a method, no.
vpretzel has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jlast_ has joined #ruby
kevind has joined #ruby
senayar has joined #ruby
<LadyRainicorn> But you can send(:symbol)
<rubidious> ah so it's more like a static argument
<LadyRainicorn> Or public(:symbol)
predator117 has joined #ruby
vpretzel has joined #ruby
<rubidious> I think my issue is more understanding the syntax heh
<LadyRainicorn> ah ok
<rubidious> I was reading through the rails guide
<rubidious> and saw this
<rubidious> form_for :post, url: posts_path do |f|
wildroman2 has quit [Remote host closed the connection]
jfelchner has quit [Read error: Connection reset by peer]
<LadyRainicorn> Internally those things would use method(:symbol) and call the resultant method.
mengu has quit [Read error: Connection reset by peer]
<rubidious> and got confused because they reference the 'identifying object' for the method form_for as the symbol ':post'
<rubidious> that makes much more sense to me (what you said)
falood has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
jfelchner has joined #ruby
<rubidious> there seems to be a bit more abstraction in ruby than I'm used to
<rubidious> thanks for your help LadyRainicorn
figgleberry has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
danshult_ has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 260 seconds]
atraylen has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
<LadyRainicorn> np good luck on your Ruby voyage.
chrisseaton has quit []
synergy_ has joined #ruby
<LadyRainicorn> ugh wtf is draining my battery? ;-;
monkegji_ has quit [Remote host closed the connection]
estebanrules has joined #ruby
figgleberry has joined #ruby
<shevy> LadyRainicorn a rainbow!
monkegjinni has joined #ruby
<LadyRainicorn> I've used like 30% already!
<LadyRainicorn> And I have ~9hrs left.
<LadyRainicorn> ; - ;
Xeago__ has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 252 seconds]
<terrellt> LadyRainicorn: Hopes and dreams. Don't let it run out.
<estebanrules> is anyone here familiar with dRuby?
<terrellt> I've heard of it. Their site hasn't had an update since 2009.
* LadyRainicorn fills her battery with hopes and dreams.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<estebanrules> I was reading a book on it last night, looks very interesting
<estebanrules> Hmm well the book I was reading was from last year
Brolen has quit []
<estebanrules> I believe its part of the stdlib
maletor has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
Brolen has joined #ruby
<terrellt> Oh, not the ruby implementation, the class.
<estebanrules> oh ok
relix has quit [Client Quit]
drumusician has joined #ruby
troessner has quit [Quit: Leaving]
<estebanrules> yes
danshultz has quit [Ping timeout: 252 seconds]
<terrellt> I've never used it directly.
<estebanrules> looks like one can do some very cool stuff
<shevy> I thought so too
<shevy> but I can never remember the syntax offhand
<estebanrules> I haven't seen anything very similar in other languages
atmosx has joined #ruby
<estebanrules> I was just looking at a simple example last night where you could get a web server and client up in a few lines of code
monkegjinni has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
scarolan has joined #ruby
ckinni has joined #ruby
figgleberry has quit [Ping timeout: 245 seconds]
yasushi has quit [Remote host closed the connection]
wildroman2 has joined #ruby
mmcclimon has joined #ruby
shaunbaker has joined #ruby
yasushi has joined #ruby
rayners has joined #ruby
dangerousdave has joined #ruby
maletor has joined #ruby
bradhe has joined #ruby
blandflakes has joined #ruby
griffindy has joined #ruby
lmickh has joined #ruby
<estebanrules> anyone mind taking a look at some simple code for me? Just want to clarify something
figgleberry has joined #ruby
<estebanrules> It's from the Chris Pine book, chapter on classes
yasushi has quit [Remote host closed the connection]
dodosan has joined #ruby
mmcclimon has quit [Client Quit]
<canton7-mac> post it, see who responds :)
<estebanrules> ok ;) http://goo.gl/tbUKCJ - the if statement, the code is "if @asleep", is that referring to the previous state of @asleep, which is true?
mmcclimon has joined #ruby
nathancahill has joined #ruby
_Andres has joined #ruby
<canton7-mac> yes
bradhe has quit [Ping timeout: 252 seconds]
<canton7-mac> although who knows that 'passageOfTime' does - it might set @asleep to false
<canton7-mac> s/that/what
<estebanrules> ok that's what I thought. Thank you
pardusf has joined #ruby
parduse is now known as Guest20152
pardusf is now known as parduse
parduse has quit [Changing host]
parduse has joined #ruby
<estebanrules> yeah
yarou has joined #ruby
gja has joined #ruby
habanany has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
dodosan has quit [Ping timeout: 245 seconds]
Guest20152 has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
mocfive has joined #ruby
einarj has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
digital-ghost has joined #ruby
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
mmcclimon has quit [Quit: mmcclimon]
angusigu1ss has joined #ruby
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Remote host closed the connection]
Brolen has quit []
Brolen has joined #ruby
mmcclimon has joined #ruby
mocfive has quit [Ping timeout: 265 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
drakezhard has joined #ruby
Rickmasta has quit [Ping timeout: 252 seconds]
relix has joined #ruby
drakezhard has left #ruby [#ruby]
spider-mario has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
DouweM has joined #ruby
Zubin has joined #ruby
senayar has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
lethjakman has joined #ruby
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
senayar has joined #ruby
wildroman2 has quit [Remote host closed the connection]
larissa has joined #ruby
soulcake has joined #ruby
aspires has joined #ruby
aspires has quit [Client Quit]
Zubin has quit [Client Quit]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
scarolan has quit [Ping timeout: 245 seconds]
mmcclimon has quit [Quit: mmcclimon]
Es0teric has joined #ruby
Zubin has joined #ruby
ktosiek_ has joined #ruby
ktosiek has quit [Ping timeout: 248 seconds]
Rickmasta has joined #ruby
zipper has quit [Quit: leaving]
<alex88> mmhh on class 1, streamer = Streamer.new(logger), class Streamer has def initialize(logger) @logger = logger end
Es0teric has quit [Max SendQ exceeded]
<alex88> but I get ArgumentError (method 'initialize': given 1, expected 0)
<alex88> what's the problem?
Megtastique has joined #ruby
noname001__ has quit [Ping timeout: 272 seconds]
heftig has quit [Quit: Quitting]
mmcclimon has joined #ruby
Heskie has quit []
mmcclimon has quit [Client Quit]
sambao21 has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
mmcclimon has joined #ruby
mmcclimon has quit [Client Quit]
mmcclimon has joined #ruby
mmcclimon has quit [Client Quit]
aspires has joined #ruby
jlebrech has joined #ruby
niharvey has quit [Ping timeout: 272 seconds]
mwlang has joined #ruby
Zubin has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 0.4.2]
Brolen has quit [Remote host closed the connection]
mmcclimon has joined #ruby
<mwlang> Working on a begin/ensure block and was wondering… Does this method return line #5 or #7 as result if line #9 is omitted? https://gist.github.com/anonymous/8562006
monkegjinni has joined #ruby
Brolen has joined #ruby
mmcclimon has quit [Client Quit]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Advocation has quit [Quit: Advocation]
Guest2542 has joined #ruby
<Guest2542> hello ruby people
<Guest2542> it is benzrf but with a different nick because screw nickserv
<LadyRainicorn> >> begin 1 ensure 2 end
<eval-in> LadyRainicorn => 1 (https://eval.in/93416)
<LadyRainicorn> mwlang: ^ #5 apparently
<mwlang> never mind, whipped up a test to figure it out. #5 is the answer.
<mwlang> kinda neat!
cyberarm has joined #ruby
<mwlang> A little surprised, though.
yekta has joined #ruby
<Guest2542> hey LadyRainicorn did you see the new-ish ep
tacos1de has quit [Ping timeout: 240 seconds]
<LadyRainicorn> >> begin raise() rescue 1 ensure 3 end
<eval-in> LadyRainicorn => 1 (https://eval.in/93417)
wildroman2 has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
<LadyRainicorn> huh now that's odd
mmcclimon has joined #ruby
mmcclimon has quit [Client Quit]
<LadyRainicorn> Which one?
mmcclimon has joined #ruby
reset has joined #ruby
burlyscudd has quit [Quit: Leaving.]
brimstone has joined #ruby
<mwlang> LadyRainicorn: actually, that makes sense to me given how begin / ensure behaves.
Brolen has quit [Ping timeout: 252 seconds]
<Takumo> in ruby how do you check if two arrays contain the same stuff (i.e. [:id , :parent_id] == [:parent_id , :id] but not checking order)
<mwlang> begin / rescue, I've used enough to know the rescue block is the value returned
<Guest2542> Takumo: you could convert them to sets or somethin
mmcclimon has quit [Client Quit]
<DaniG2k> Takumo: array1 == array2
mmcclimon has joined #ruby
<Takumo> or sort one, there's only two items ;)
zigomir has quit [Remote host closed the connection]
<Guest2542> Takumo: or you could do '(a1 - a2).empty?'
ndrei has joined #ruby
zigomir has joined #ruby
meatherly has joined #ruby
<mwlang> but the ensure block's execution and return value is appearentry squashed (outside current context)
<brimstone> i have a loop going over an array, is there a way to have an array available inside the loop that doesn't contain the current array item?
gja has quit [Quit: This computer has gone to sleep]
<DaniG2k> Takumo: [1,2,3].sort == [3,2,1].sort
<Guest2542> Takumo: youd also need to #uniq
CaptainJet has joined #ruby
gja has joined #ruby
blaxter_ is now known as blaxter
figgleberry has joined #ruby
<LadyRainicorn> I guess ir does make sense.
soulcake has quit [Read error: Connection reset by peer]
<mwlang> Takumo: [1,2,3] - [3,2,1] == []
figgleberry has quit [Client Quit]
ffranz has quit [Read error: Operation timed out]
<LadyRainicorn> brimstone: Do magic.
soulcake has joined #ruby
<brimstone> LadyRainicorn: i'm new to ruby, could you be more specific?
<Guest2542> brimstone: be more specific
<Guest2542> are you doing equality checking or something?
<Guest2542> cartesian product?
<LadyRainicorn> (i.e. create a wrapper class that prevents access to the specified element)
<Guest2542> brimstone: i assume you are doing a cartesian product?
<mwlang> actually, you probably need two tests… [1,2,3] - [3,2,1,4] == [] && [1,2,3] & [3,2,1,4] == [1,2,3]
<Guest2542> brimstone:
ffranz has joined #ruby
<brimstone> Guest2542: this is to automate some vagrant stuff, no cartesian product that i'm aware
<Guest2542> a1.product(a2).each do |a1thing, a2thing|
w4pm has joined #ruby
<Guest2542> next if a1thing.equal? a2thing
<Guest2542> # etc
<Guest2542> end
tylersmith has quit [Remote host closed the connection]
<LadyRainicorn> (Alternatively, create a duplicate and mutate it on each iteration
deception has joined #ruby
reset has quit [Ping timeout: 272 seconds]
pskosinski has joined #ruby
aryaching_ has joined #ruby
<brimstone> i'm thinking .each_index and creating a duplicate is the way instead
<brimstone> thanks LadyRainicorn, Guest2542
<LadyRainicorn> BEWARE: Do not dup on each iteration.
aryaching_ has quit [Client Quit]
zigomir has quit [Ping timeout: 272 seconds]
aryaching_ has joined #ruby
<LadyRainicorn> (This will be very nasty for performance.)
aryaching has quit [Quit: sayonara! ^_^]
gregf has joined #ruby
punkzio has quit [Remote host closed the connection]
niharvey has joined #ruby
mmcclimon has quit [Quit: mmcclimon]
aryaching_ has quit [Client Quit]
<Guest2542> brimstone: xy problem detected
<Guest2542> brimstone: pls elaborate on use csae
top4o has joined #ruby
<Guest2542> *case
lmickh_ has joined #ruby
abk has joined #ruby
aspires has quit [Remote host closed the connection]
daxroc has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
<daxroc> What format are gemfile.lock?
<brimstone> Guest2542: i'm defining a set of boxes in vagrant, then looping through each of them passing the current box as self, the other boxes as an array otherboxes into chef
aspires has joined #ruby
zarul has quit [Remote host closed the connection]
<Guest2542> sounds like a cartesian produc to meee
<Guest2542> *product
lmickh has quit [Ping timeout: 260 seconds]
<Guest2542> or not
jfelchner has quit [Read error: Connection reset by peer]
<Guest2542> hmmm
mansi has quit [Remote host closed the connection]
<Guest2542> brimstone: how about 'boxes - [this_box]'
Justin4770 has quit [Ping timeout: 265 seconds]
jfelchner has joined #ruby
mansi has joined #ruby
LekeFly has joined #ruby
<brimstone> Guest2542: does that work with arrays?
Hobogrammer has joined #ruby
apeiros has joined #ruby
<brimstone> arrays of hashes
coder_neo has joined #ruby
zarul has joined #ruby
aaronmcadam has quit [Read error: Operation timed out]
<Guest2542> brimstone: i would imagine so
shime has quit [Ping timeout: 260 seconds]
ciwolsey has quit [Read error: Connection reset by peer]
<Guest2542> brimstone: you need an array, and not iteration?
niharvey has quit [Ping timeout: 265 seconds]
ciwolsey has joined #ruby
JZTech101 has quit [Read error: Operation timed out]
<brimstone> i have an array of hashes, i need a hash and an array that doesn't contain that hash anymore
Hobogrammer_ has joined #ruby
<Guest2542> alright
DanBoy has quit [Remote host closed the connection]
<brimstone> i'm using the dup and delete method now
<Guest2542> ew
<brimstone> seems to be working
<Guest2542> :\
mansi_ has joined #ruby
<brimstone> i'm open to a more slick way though
<Guest2542> hm
JZTech101 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has quit [Remote host closed the connection]
coder_neo has quit [Read error: Connection reset by peer]
aganov has quit [Quit: Leaving]
mansi has joined #ruby
user258467 has quit [Quit: Quitte]
<Guest2542> brimstone: i got little to nothin
ghr has quit [Quit: Computer has gone to sleep.]
<Guest2542> :(
tyl_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<brimstone> ok, thanks for trying
Hobogrammer has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ryantm has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn> brimstone: pop and insert
<LadyRainicorn> delete is fine
<LadyRainicorn> But yeah, just make sure not to create a new array every time
Justin4770 has joined #ruby
chrisseaton has joined #ruby
estebanrules has quit [Ping timeout: 245 seconds]
jlast_ has quit [Ping timeout: 248 seconds]
<LadyRainicorn> (The array-elem method does that btw.)
camilasan has quit []
senayar_ has joined #ruby
<Guest2542> array-elem?
Guest2542 is now known as benzrf
<benzrf> fuckin finally
angusigu1ss has joined #ruby
dkamioka has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
<brimstone> LadyRainicorn: i like that idea, let's see if that works out
ffranz1 has joined #ruby
dagobah has quit [Quit: Leaving...]
saarinen has joined #ruby
mehlah has quit [Quit: Leaving...]
<LadyRainicorn> It's very very very bad for performance.
dkamioka has joined #ruby
craigp has quit [Remote host closed the connection]
<LadyRainicorn> (O(n^2))
<brimstone> so i'd just box = boxes.pop(index) right?
dkamioka has quit [Remote host closed the connection]
<LadyRainicorn> The correct solution is to insert and delete the element you need every time.
<LadyRainicorn> Yep.
<brimstone> now box is my current hash, and boxes is now missing that index?
<LadyRainicorn> And then make sure to insert it back once you're done.
<brimstone> right, boxes.insert(index,box) at the bottom of the loop
yacks has quit [Quit: Leaving]
bluenemo has quit [Remote host closed the connection]
dkamioka has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
kaldrenon has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
mikecmpbll has joined #ruby
zeeraw has joined #ruby
lethjakman has quit [Ping timeout: 264 seconds]
<Mon_Ouie> Takumo: You can use the Set class to represent collections that don't have duplicate elements and where order doesn't matter
troyready has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
sparrovv has joined #ruby
<Mon_Ouie> (well, if it's only 2-element arrays it doesn't really matter what you do)
chrisseaton has quit []
ahmedelgabri has joined #ruby
zeeraw has quit [Client Quit]
alexfreidah has joined #ruby
ffranz1 has quit [Ping timeout: 260 seconds]
_tpavel has quit [Quit: Leaving]
abk has quit [Ping timeout: 248 seconds]
niharvey has joined #ruby
MatthewsFace has joined #ruby
mspah_ has joined #ruby
shredding has quit [Quit: shredding]
ewnd9_ has quit [Remote host closed the connection]
TMM has quit [Quit: Ex-Chat]
bradhe has quit [Ping timeout: 252 seconds]
zarusky has joined #ruby
<brimstone> huh, i'm not sure the index from array.each_index is an integer
Davey has joined #ruby
<DaniG2k> jeez
<DaniG2k> getting tired of my job
saarinen has quit [Quit: saarinen]
zarul has quit [Ping timeout: 245 seconds]
<DaniG2k> im thinking of going into rails dev
ewnd9 has joined #ruby
<DaniG2k> or ruby dev
<DaniG2k> but I'm a junior programmer
<DaniG2k> :-\ might be problematic
sparrovv has quit [Remote host closed the connection]
tulak has quit [Quit: Leaving.]
wiku5_ has quit [Remote host closed the connection]
thumpba has joined #ruby
abk has joined #ruby
Xeago has joined #ruby
tkuchiki has quit [Remote host closed the connection]
CaptainJet has quit [Read error: No route to host]
vlad_starkov has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
zeeraw has joined #ruby
sambao21 has joined #ruby
benzrf has quit [Quit: leaving]
pel_daniel has joined #ruby
<DaniG2k> does anyone here have a junior ruby job?
<DaniG2k> junior ruby dev?
<DaniG2k> or junior rails?
ahawkins has quit [Remote host closed the connection]
niharvey has quit [Ping timeout: 245 seconds]
<xybre> DaniG2k: Not the best intro if you're actually looking for work ;)
zeeraw has quit [Client Quit]
burlyscudd has joined #ruby
<DaniG2k> xybre: thats true
CaptainJet has joined #ruby
<DaniG2k> xybre: then again I need to start somewhere
zeeraw has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
jlast has quit [Remote host closed the connection]
<shevy> OFFER YOUR SOUL, SLAVE!
<workmad3> DaniG2k: didn't you say a little while ago that you were really glad that you didn't code full time because it would drive you crazy? :)
sepp2k has joined #ruby
<DaniG2k> workmad3: that is also true
<shevy> PEOPLE'S OPINION CAN CHANGE QUICKLY!
<DaniG2k> workmad3: although the pay is good
<shevy> hehe
<atmosx> she drives me craaaazy
<atmosx> or was it he drives me craaazy?
<DaniG2k> workmad3: how do you remember everything? wtf are you
<shevy> atmosx noone remembers songs before the year 2000
<shevy> workmad3 has a big brain
<DaniG2k> but a small...
<DaniG2k> ego
jlast has joined #ruby
Kruppe has joined #ruby
<workmad3> DaniG2k: I'll offer you two alternatives - 1) my memory is oddly peculiar and remembers the weirdest specifics about things, or 2) I spend a lot of time regexing through IRC logs when talking to people ;)
<DaniG2k> workmad3: you regex through irc logs? jeez
<workmad3> dammit, I should have made the lie more obvious... :P
<brimstone> how do you get the type of a variable to print?
nvrch has quit [Quit: nvrch]
<brimstone> surprisingly, there's not a .type method
<Takumo> .inspect
<workmad3> brimstone: .class
<workmad3> brimstone: or .inspect
haggen has joined #ruby
<workmad3> brimstone: also, in ruby variables don't have types... objects have classes
<brimstone> thanks, .class looks like what i want
haggen has left #ruby [#ruby]
<DaniG2k> brimstone .class ?
<pragmatism> Morning all
thumpba has quit [Read error: Connection reset by peer]
<workmad3> brimstone: a variable just holds a reference to an object ;)
<Mon_Ouie> Though inspect is to print general information about an object, there's no requirement for it to print the class name (e.g. integers, strings, symbols, etc. don't print it)
<RubyPanther> Wait, they still made songs after 2000?
<workmad3> RubyPanther: no, they only made crap after 2000
* DaniG2k agrees
<RubyPanther> oh, okay, that's what I thought lol
Marfi has joined #ruby
niharvey has joined #ruby
thumpba has joined #ruby
angusiguess has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Kruppe has quit [Client Quit]
<RubyPanther> I just remembered, there was one good album after that... the poignant guide soundtrack!
wc- has left #ruby [#ruby]
alexfreidah has quit [Ping timeout: 260 seconds]
<DaniG2k> im out
DaniG2k has quit [Quit: leaving]
<brimstone> can anyone tell me why this is failing? slexy.org/view/s20z8pizOl
Kruppe has joined #ruby
vlad_starkov has joined #ruby
mansi_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<atmosx> workmad3: I disagree, there are great songs after 2000 in almost all categories, what kind of music do you like?
mansi has joined #ruby
Marfi has left #ruby ["Wychodzi"]
<workmad3> atmosx: way to take a joke seriously and beat it to death with literalism :P
craigp has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
<shevy> wasn't workmad3 born when the beatles still were alive?
<workmad3> shevy: hahahaha
<workmad3> shevy: no
<workmad3> shevy: a good percentage of my favourite music is older than I am ;)
<shevy> there are some cool songs from pre-2000 ... "Insomnia" from faithless in the year 1995. I hear it when I can't get any sleep
coderhs has quit [Ping timeout: 252 seconds]
ohwhoa has quit [Quit: woah!]
mercwithamouth has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lele has quit [Ping timeout: 252 seconds]
craigp has quit [Ping timeout: 264 seconds]
Kruppe has quit [Quit: ZNC - http://znc.in]
fijimunkii has joined #ruby
ndrei has quit [Read error: Operation timed out]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arctarus has quit [Remote host closed the connection]
Marfi has joined #ruby
theRoUS has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
<Marfi> hello . Please help me with xml
baroquebobcat has joined #ruby
Kruppe has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
nomenkun_ has quit [Ping timeout: 260 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lele has joined #ruby
<Marfi> How I read text from xml and each element into this text . example: <txt fuj="1">This is <b>text</b>, and <b>not</b></txt><txt>Next</txt> How I can read each element = txt, b,txt b.....
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
CaptainJet has joined #ruby
mocfive has joined #ruby
<atmosx> workmad3: AM by the Arctic Monkeys is awesome
<atmosx> and it's 2013
jlebrech has quit [Quit: Konversation terminated!]
<DouweM> Yeah, AM is great
<atmosx> Seven Nation Army and "Somebody Told me" are after 2000 and these are just a few. Of course there are loads of shit but there's good music too.
Mindmaster has joined #ruby
zz_anildigital is now known as anildigital
<atmosx> I'm currently listening to: I Wanna Be Yours by Arctic Monkeys from the album AM
<atmosx> see?
<atmosx> lol
<atmosx> I wanna beeee yourrsss
<DouweM> I just put on Do I Wanna Know :)
timonv has joined #ruby
charlies_ has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
<atmosx> Do I wanna knowwww
scarolan has joined #ruby
* atmosx is listening to Arctic Monkeys — Do I Wanna Know?, from the album AM [Song] [4:32 mins] [played 38 times]
<workmad3> atmosx: put down the baseball bat
<workmad3> atmosx: the joke has suffered enough
jfelchner has joined #ruby
<atmosx> workmad3: why is that? What band do you consider great, let us know so we can trash it.
<atmosx> workmad3: the beatles?
Mindmaster has quit [Client Quit]
godd2 has joined #ruby
Kilo`byte has quit [Quit: kilobyte22.de]
mansi has quit [Remote host closed the connection]
reset has joined #ruby
roolo has quit [Remote host closed the connection]
mansi has joined #ruby
lethjakman has joined #ruby
<atmosx> crawling back to youuuuu, ever thought of calling when you've had a feww?????
<workmad3> atmosx: I'm not trashing bands
<atmosx> workmad3: no, I do.
<workmad3> atmosx: I was making a goddamn joke
<atmosx> workmad3: you pick them!
mocfive has quit [Ping timeout: 252 seconds]
<atmosx> workmad3: I'm just teasing youuu, love trashing the beatles though
<workmad3> atmosx: fine... I'm a big fan of rebecca black, allison gold and myley cyrus! :P
SilentHobo has joined #ruby
Kilo`byte has joined #ruby
<atmosx> a friend of mine is ... you know crazy about them and the stones and we were trying to find arguments to trash them (not very easy, but doable)
<Marfi> i need each elements
charliesome has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
<atmosx> workmad3: Cyrus, I listen everyone talking about this little lady but I don't know not even 1 song she sings... I mean I don' t eve know how she looks like
<atmosx> workmad3: I don't know the other two, not even by name
<atmosx> lol
<workmad3> atmosx: that's ok, they're all actually shit
<workmad3> atmosx: and 2 of them are only famous through memes
timonv has quit [Ping timeout: 240 seconds]
canton7-mac has quit [Quit: Leaving]
dodosan has joined #ruby
<atmosx> I see
phansch has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
<workmad3> atmosx: I'm really more of a fan of some classic rock, then various forms of metal
<atmosx> r u mine is a masterpiece
monkegjinni has joined #ruby
Hobogrammer_ has quit [Ping timeout: 252 seconds]
max96at has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 260 seconds]
<atmosx> workmad3: I was too, when I was younger. Now it doesn't matter anymore, the kind. I think there's *good* and *bad* in every kind of music. Of course I don't like everything, but generally speaking.. You can find quality everywhere
reset has quit [Ping timeout: 252 seconds]
<atmosx> workmad3: I saw metallica live in 1998 iirc
<DouweM> I love Knee Socks as well. Not sure what itis is but I can't get enough of it
<atmosx> workmad3: although I don't like any of their post-92 albums
lfox has quit [Quit: ZZZzzz…]
<atmosx> I like the Dire Straits, it's the guitar and the lyrics (i.e. your latest trick)
<workmad3> atmosx: I've only ever encountered 1 metallica song I like :)
<atmosx> workmad3: which one?
bricker`LA has joined #ruby
Advocation has joined #ruby
terrellt has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
mlpinit_ has joined #ruby
monkegjinni has joined #ruby
<atmosx> workmad3: the metal bands i was *really* listening were: Metallica, Iron Maiden and Dream Theater (later on).
rubyracer has joined #ruby
Brolen has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<atmosx> I need to configure nginx properly and I'm so bored.
sassamo has quit [Remote host closed the connection]
<atmosx> blah, I'll do next week
Advocation has quit [Client Quit]
<workmad3> atmosx: Enter Sandman for metallica... I like a fair bit of Maiden, I enjoy some Dream Theater, sometimes I like some cradle of filth, murderdolls, thus defiled
terrellt has joined #ruby
<workmad3> atmosx: what sort of config :)
sassamo has joined #ruby
pskosinski has quit [Quit: http://igg.me/p/597505/x/6111010 Resurrect Revenge Of The Cats: Ethernet As Open-Source Project]
Davey has quit [Quit: Computer has gone to sleep.]
tyl has joined #ruby
Advocation has joined #ruby
noop has quit [Quit: Leaving]
bbloom has quit [Ping timeout: 272 seconds]
zeeraw has joined #ruby
<atmosx> workmad3: mod_security and put everything (I have 2 virtual hosts, actually only 1 virtual host... since) on a freebsd jail.
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
banjara has joined #ruby
sassamo has quit [Read error: No route to host]
thumpba has quit [Remote host closed the connection]
sassamo has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
coderhs has joined #ruby
jlast has quit [Remote host closed the connection]
iliketurtles has joined #ruby
monkegjinni has quit [Remote host closed the connection]
iliketurtles has quit [Excess Flood]
monkegjinni has joined #ruby
iliketurtles has joined #ruby
ebobby has joined #ruby
iliketurtles has quit [Excess Flood]
monkegjinni has quit [Read error: Connection reset by peer]
ebobby has quit [Client Quit]
<workmad3> atmosx: ah, I haven't gone quite that paranoid with my nginx config :)
monkegjinni has joined #ruby
zoscoy has joined #ruby
<workmad3> atmosx: but then, I've gone for a VM setup where there's not much on each node
jlast has joined #ruby
francisfish has quit [Remote host closed the connection]
superscott[8] has joined #ruby
zxd has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
senj has joined #ruby
wildroman2 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
iamsean has joined #ruby
<chipotle> anyone here in the boston area?
CaptainJet has quit [Read error: No route to host]
monkegjinni has joined #ruby
havenwood has joined #ruby
ffranz has joined #ruby
ffranz has quit [Read error: Connection reset by peer]
<atmosx> workmad3: yeah I know, most people wouldn't bother. I just want to make sure nothing goes rogue without me noticing.
g0bl1n has quit [Ping timeout: 252 seconds]
Guest37337 has quit [Read error: Operation timed out]
<workmad3> atmosx: maybe you should look @ apparmour and HIDS setups for that?
MrZYX|off is now known as MrZYX
Kruppe has quit [Quit: ZNC - http://znc.in]
ndrei has joined #ruby
ffranz has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
julweber has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<atmosx> workmad3: the problem with IDSs is that you have to actually... install and forge the system. Because at every update there's an entire procedure (policy) that you need to follow which complciates things.
Kruppe has joined #ruby
<atmosx> workmad3: apparmour is linux specific iirc
mathnode has left #ruby ["PONG :barjavel.freenode.net"]
bradhe has joined #ruby
abk has quit [Quit: Leaving]
lmickh has joined #ruby
yarou has quit [Quit: This computer has gone to sleep]
klaut has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 265 seconds]
Kruppe has quit [Client Quit]
Baluse has quit [Ping timeout: 252 seconds]
Baluse has joined #ruby
Spami has joined #ruby
lmickh_ has quit [Ping timeout: 260 seconds]
Kruppe has joined #ruby
lmickh_ has joined #ruby
fedesilv_ has joined #ruby
yfeldblum has joined #ruby
<atmosx> workmad3: so you are both a developer and sys-admin?
bradhe has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
fedesilva has quit [Ping timeout: 246 seconds]
<workmad3> atmosx: more devops than sys-admin
Vitor has quit [Ping timeout: 246 seconds]
francisfish has joined #ruby
<workmad3> atmosx: had to learn that side of things in order to set up infrastructure for various things
<atmosx> workmad3: interesting
olivier_bK has quit [Ping timeout: 260 seconds]
Rainicorn has joined #ruby
yarou has joined #ruby
<atmosx> cool
mojjojo has joined #ruby
shadoi has joined #ruby
vpretzel_ has joined #ruby
<workmad3> atmosx: so currently our nodes have ossec installed by default, talking to a central server that emails me (probably about 50 times a day because I haven't set up the alert levels properly yet) about violations :)
lmickh has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
poulson has quit [Ping timeout: 260 seconds]
Hobogrammer_ has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
<atmosx> workmad3: is it any good?
<LastWhisper> hey guys
<LastWhisper> what does "before_save :block_write"
<LastWhisper> mean?
Rainicorn is now known as LadyRainicorn
<atmosx> I had deployed snort and samhain which is probably a little bit old now
LekeFly has joined #ruby
<LadyRainicorn> LastWhisper: #rails
Baluse has quit [Ping timeout: 256 seconds]
<LastWhisper> woops :>
<DouweM> #rubyOnRails even
<LadyRainicorn> Both exist, confusingly.
tauebel has joined #ruby
<LastWhisper> yea im already in the #RubyOnRails
Kruppe has quit [Quit: ZNC - http://znc.in]
<LadyRainicorn> (and are not aliases)
<workmad3> atmosx: it seems reasonable... I considered snort, but running on digital ocean, so I didn't fancy having to try to set things up to filter out all the background noise as they don't have proper private networks for your VMs
mmcclimon has joined #ruby
andikr has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
<DouweM> LadyRainicorn: but there, one is clearly the "real"/active one. The real confusion is with #ruby/#ruby-lang ;)
<workmad3> atmosx: at some point, I need to badger work to pick up a raspberry pi and some wifi dongles so I can play around with building cheap wifi monitors :)
<Marfi> hello anybody can help me with xml? how I can parse each element of "txt" http://dark-code.bulix.org/6s5pf1-85495
poulson has joined #ruby
vpretzel has quit [Ping timeout: 272 seconds]
<LadyRainicorn> #rails is real
Kruppe has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<LadyRainicorn> and active
SilentHobo has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
hypnosb has left #ruby [#ruby]
mojjojo has quit [Quit: mojjojo]
<workmad3> LadyRainicorn: #rails isn't particularly active
openstandards has joined #ruby
smathieu has joined #ruby
<workmad3> LadyRainicorn: unless things have changed since I was last in there
<DouweM> oh is it? I just saw the topic having been set in 2009 :/
Kruppe has quit [Client Quit]
lfox has joined #ruby
brimstone has left #ruby ["WeeChat 0.4.2"]
<atmosx> workmad3: the RPi are awesome, I am going to open a medical office next month in Greece (shrug) and I found an RPi bundle for monitoring blood pressure, etc. Could be integrated in a (non existant yet) web-app :D
<LadyRainicorn> anyway ×WHYDOESITEXIST.
banjara has quit [Quit: Leaving.]
i_s has quit [Ping timeout: 260 seconds]
<atmosx> workmad3: I already set up 2 digital signage systems with 2 Pi's that's another possible business where I live
<workmad3> LadyRainicorn: because IRC channels get created on the fly by the first person who /joins it
dodosan has quit [Read error: Connection reset by peer]
lmickh_ has quit [Remote host closed the connection]
Kruppe has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
dodosan has joined #ruby
mojjojo has joined #ruby
lmickh has joined #ruby
clamstar has joined #ruby
ffranz has quit [Quit: Leaving]
banjara has joined #ruby
bbloom has joined #ruby
iliketurtles has joined #ruby
mojjojo has quit [Client Quit]
iliketurtles has quit [Excess Flood]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
machuga|away is now known as machuga
kaldrenon has joined #ruby
<shevy> can you join 0
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ereslibre has quit [Remote host closed the connection]
aalmenar has quit [Remote host closed the connection]
<LadyRainicorn> #0?
<LadyRainicorn> Yes.
tylersmith has joined #ruby
ereslibre has joined #ruby
iamsean has quit [Quit: iamsean]
<shevy> you can't!
aalmenar has joined #ruby
aalmenar has joined #ruby
<shevy> well
<shevy> perhaps ponicorns can
<shevy> but regular people can't
gja has quit [Quit: This computer has gone to sleep]
mityaz has quit [Quit: See ya!]
<LadyRainicorn> I can!
<LadyRainicorn> And I did.
<openstandards> exit
openstandards has quit [Quit: WeeChat 0.3.7]
<shevy> openstandards no!
<LadyRainicorn> yay ponicorn magic!
ffranz has joined #ruby
<LadyRainicorn> opensstandards: You must not exit from ponicornland.
angusiguess has joined #ruby
iamsean has joined #ruby
danshultz has quit [Remote host closed the connection]
browndawg1 has quit [Ping timeout: 272 seconds]
lfox has quit [Quit: ZZZzzz…]
danshultz has joined #ruby
mocfive has joined #ruby
x1337807x has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
dik_dak has joined #ruby
w4pm has joined #ruby
<havenwood> shevy: a ponicorn is a corn on the cob with the head and tail of a pony?
gja has joined #ruby
<LadyRainicorn> No.
<LadyRainicorn> A ponicorn is me.
danshultz has joined #ruby
mrsolo has joined #ruby
craigp has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
ebetancourt has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gja has quit [Client Quit]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has joined #ruby
ebetancourt has joined #ruby
ebetancourt has quit [Max SendQ exceeded]
max96at has joined #ruby
Baluse has joined #ruby
dodosan has quit [Ping timeout: 252 seconds]
Voodoofish4302 has joined #ruby
n1x has quit [Ping timeout: 252 seconds]
ahmedelgabri has quit []
Voodoofish4301 has quit [Ping timeout: 252 seconds]
gja has joined #ruby
apeiros has quit [Remote host closed the connection]
vinmaster has joined #ruby
apeiros has joined #ruby
workmad3 has quit [Read error: Operation timed out]
Kricir has quit [Remote host closed the connection]
RaCx has quit [Read error: Operation timed out]
robbyoconnor has joined #ruby
poulson has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 272 seconds]
browndawg has joined #ruby
mmcdaris has joined #ruby
RaCx has joined #ruby
kamioool has joined #ruby
scarolan has quit [Ping timeout: 252 seconds]
<kamioool> Anyone know why when i write in console "rails s" that create new project name "s" not start server?
<MrZYX> #rubyonrails (and you're probably not inside a rails project)
<shevy> havenwood it's those strange thing on a rainbow
interactionjaxsn has quit [Remote host closed the connection]
<kamioool> don@don-desktop:~/kamioool$ ls
<kamioool> app config.ru Gemfile.lock node README.rdoc test
<kamioool> bin db lib public s tmp
<kamioool> config Gemfile log Rakefile server vendor
<shevy> ack
<atmosx> kamioool: that should start the server iirc
coder_neo has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
vinmaster has left #ruby [#ruby]
ryandeussing has joined #ruby
ryandeussing has quit [Remote host closed the connection]
shadoi has joined #ruby
ryandeussing has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<kamioool> somthing happend bad when i restart my system
gja has quit [Quit: This computer has gone to sleep]
<kamioool> i think i shuld install rubu and rails again
baroquebobcat has quit [Quit: baroquebobcat]
fijimunk1i has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
wij has joined #ruby
phansch has joined #ruby
wij has left #ruby [#ruby]
fijimunkii has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
<shevy> poor guy
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Voodoofish4302 is now known as voodoofish4301
<shevy> I would uninstall rubu as well
Wolland has joined #ruby
tannerburson has quit [Quit: tannerburson]
RaCx has quit [Ping timeout: 248 seconds]
RaCx_ has joined #ruby
vlad_starkov has joined #ruby
bthesorceror has quit [Remote host closed the connection]
rootshift has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
tannerburson has joined #ruby
gabriham_lincoln has joined #ruby
rezzack has joined #ruby
mocfive has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
fijimunk1i has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
mocfive has joined #ruby
Matriks has quit [Remote host closed the connection]
alex88 has quit [Quit: Leaving...]
vinmaster has joined #ruby
tauebel1 has joined #ruby
LadyRainicorn has quit [Quit: Bye]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
jprovazn has joined #ruby
mojjojo has quit [Quit: mojjojo]
vlad_starkov has quit [Remote host closed the connection]
mojjojo has joined #ruby
mocfive has quit [Ping timeout: 248 seconds]
Hanmac has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
coder_neo has quit [Read error: Connection reset by peer]
tauebel has quit [Ping timeout: 252 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Advocation has quit [Quit: Advocation]
ckinni has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
craigp has quit [Remote host closed the connection]
apeiros has joined #ruby
robbyoconnor has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
allaire has quit []
bradhe has joined #ruby
jzinedine has joined #ruby
momomomomo has joined #ruby
julweber has joined #ruby
mocfive has joined #ruby
mark_locklear has joined #ruby
Caleb has joined #ruby
Caleb is now known as Guest20145
bradhe has quit [Ping timeout: 260 seconds]
Matriks has joined #ruby
jlast has quit [Remote host closed the connection]
allaire has joined #ruby
craigp has joined #ruby
Marfi has left #ruby ["Wychodzi"]
nanoyak has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Squarepy has quit [Quit: Leaving]
baroquebobcat has joined #ruby
Guest20145 has quit [Client Quit]
dawe has joined #ruby
julweber has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
aaronmcadam has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
ndrei has joined #ruby
baroquebobcat has quit [Client Quit]
apeiros has joined #ruby
kirun has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
iliketurtles has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
iliketurtles has quit [Excess Flood]
ewnd9 has quit [Ping timeout: 248 seconds]
iliketurtles has joined #ruby
reset has joined #ruby
jlast has joined #ruby
Hiall has quit [Ping timeout: 260 seconds]
recurrence has joined #ruby
_reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
<pragmatism> rubu stinks
kpshek has quit []
danshultz has quit [Read error: Connection reset by peer]
<pragmatism> #fuckrubu #yolo
danshultz has joined #ruby
whatasunnyday has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
fire has quit [Quit: WeeChat 0.4.1]
sski has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
Kricir has joined #ruby
<iliketurtles> If I place a `require` statement outside of a module definition will it be available inside classes nested within the module? ie: https://gist.github.com/Lordnibbler/c51a82c9c5bf6cb5a45c
kpshek has joined #ruby
<kaldrenon> I'm writing tests with Test::Unit, and I'm more familiar with RSpec - does Test::Unit have a technique for 'grouping' tests that's comparable to RSpec's context ?
<MrZYX> iliketurtles: require isn't context aware or dependent in any way
Al___ has quit [Quit: Al___]
<iliketurtles> MrZYX: so its just a matter of preference then?
whatasunnyday has quit [Client Quit]
<MrZYX> yes
superscott[8] has joined #ruby
<iliketurtles> it would seem best to have them at the top of the file to avoid not seeing them
ndrei has quit [Ping timeout: 260 seconds]
<MrZYX> I agree
<iliketurtles> MrZYX: thanks :)
Kricir_ has joined #ruby
Baluse has quit [Ping timeout: 272 seconds]
Baluse has joined #ruby
ndrei has joined #ruby
dodosan has joined #ruby
colonolGron has joined #ruby
burlyscudd has joined #ruby
fire has joined #ruby
VTLob has quit [Ping timeout: 260 seconds]
willb2 has quit [Ping timeout: 252 seconds]
fire is now known as Guest63129
Guest63129 has quit [Client Quit]
Kricir__ has joined #ruby
jzinedine has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has quit [Ping timeout: 260 seconds]
VTLob has joined #ruby
dodosan has quit [Ping timeout: 252 seconds]
Kricir_ has quit [Ping timeout: 248 seconds]
magoo has joined #ruby
orionstein_away is now known as orionstein
mojjojo has quit [Quit: mojjojo]
alexfreidah has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
vpretzel_ is now known as vpretzel
alekst has quit [Quit: Leaving...]
fth5665 has joined #ruby
jprovazn has quit [Quit: Odcházím]
alexfreidah has quit [Ping timeout: 240 seconds]
angusiguess has joined #ruby
mmcdaris has quit [Ping timeout: 272 seconds]
<fth5665> Microsoft Destroys Bitcoin Mining Botnet Sefnit http://cur.lv/6n0su
<pragmatism> kaldrenon: describe blocks, I blieve
fth5665 has quit [Killed (idoru (Spam is off topic on freenode.))]
yfeldblum has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
jtdowney_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
jtdowney_ has quit [Max SendQ exceeded]
<pragmatism> That may be minitest though
daxroc has quit [Read error: Operation timed out]
jtdowney_ has joined #ruby
jtdowney_ has quit [Max SendQ exceeded]
<kaldrenon> pragmatism: I'll try it - vim doesn't recognize it as a keyword, but Ruby doesn't care what vim thinks.
rezzack has quit [Quit: Leaving.]
<pragmatism> True story
kevinykchan has joined #ruby
blackmesa has joined #ruby
timonv has joined #ruby
<pragmatism> I wonder if you can update the Ruby Vim to see it
jtdowney_ has joined #ruby
jtdowney_ has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
uzo has joined #ruby
dfranciosi has quit [Remote host closed the connection]
dangerousdave has joined #ruby
browndawg has left #ruby [#ruby]
ndrei has joined #ruby
baba has joined #ruby
zcreative has joined #ruby
dogweather has joined #ruby
baba has quit [Client Quit]
<kaldrenon> Something I have installed in Vim supports context and describe for rspec, but I'm not even sure which plugin is doing that.
zoo-zed has joined #ruby
<zcreative> Is anybody familiar with creating ACH files for sending to banks?
jfelchner has quit [Ping timeout: 240 seconds]
xlogic has quit [Remote host closed the connection]
zoo-zed has quit [Client Quit]
willb1 has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby
baba has joined #ruby
zoo-zed has joined #ruby
zoo-zed has quit [Max SendQ exceeded]
<pragmatism> kaldrenon: hmm. Let me know if you figure it out, I'm in the process of switching over to VIM
<pragmatism> And that's gonna be pretty useful
tauebel1 has quit [Ping timeout: 252 seconds]
kamioool has left #ruby ["Wychodzi"]
ringaroses has joined #ruby
<Morrolan> Switching over from what?
openstandards has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
baba is now known as fire_
<kaldrenon> pragmatism: Looks like rake test has no problem with a describe block
interactionjaxsn has joined #ruby
shime has joined #ruby
blandflakes has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
<pragmatism> Cool
<pragmatism> Didja get the highlighting figured out?
<kaldrenon> pragmatism: not yet, but I'll let you know if I do
<pragmatism> Awesome, thank you.
Riking has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
anildigital is now known as zz_anildigital
wildroman2 has quit []
zoscoy has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
zoscoy has quit [Client Quit]
tauebel has joined #ruby
jailbot has joined #ruby
<havenwood> bnagy: they fixed Queue on trunk :) (it was affecting ConditionVariable too!)
tauebel has quit [Client Quit]
gabriham_lincoln has quit [Remote host closed the connection]
w4pm_ has joined #ruby
SilentHobo has joined #ruby
<kaldrenon> pragmatism: 1) turns out I was using minitest and didn't realize it (writing a few quick tests for an app where I haven't done much test writing) -- 2) https://github.com/sunaku/vim-ruby-minitest
<kaldrenon> https://github.com/vim-ruby/vim-ruby supports regular Test::Unit syntax in vim
Riking has joined #ruby
openstandards has quit [Quit: WeeChat 0.4.2]
blackmesa has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 264 seconds]
<pragmatism> kaldrenon: Perfect! Thanks. Minitest is a great way to go, esp. in Ruby >= 2
blackmesa has joined #ruby
ciwolsey has quit [Remote host closed the connection]
LekeFly has joined #ruby
Hobogrammer_ has quit [Read error: Connection reset by peer]
depesz has left #ruby ["WeeChat 0.4.2"]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willb1 has quit [Read error: Operation timed out]
bradhe has joined #ruby
apeiros has joined #ruby
SilentHobo has quit [Read error: Operation timed out]
MatthewsFace has joined #ruby
heftig has joined #ruby
mspah_ has joined #ruby
Kricir__ has quit [Remote host closed the connection]
alvaro_o has joined #ruby
byprdct has joined #ruby
byprdct has quit [Remote host closed the connection]
byprdct has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
camilasan has joined #ruby
tauebel has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
sLi- has joined #ruby
Txandy has joined #ruby
aaronmcadam has joined #ruby
<lectrick> Is there a gem out there that is about a hundred times lighter than Rails and JUST lets you build REST API's?
<lectrick> Or is it easier to just roll-my-own solution
<lectrick> maybe as a Rack app
<MrZYX> sinatra?
<Morrolan> Sinatra?
<Morrolan> Hah. :P
<lectrick> Is there something even thinner than Sinatra?
<Morrolan> Rack.
<MrZYX> Rack
<MrZYX> :D
teddyp1cker has joined #ruby
jailbot has quit [Remote host closed the connection]
<Morrolan> \o/
<lectrick> So basically, directly on Rack. OK fair enough :)
<lectrick> you guys are hilariously in sync today
ndrei has quit [Ping timeout: 264 seconds]
<Morrolan> Quite. :P
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<blackmesa> hi all. I thought If put "include FileUtils" in my class I could leave the FileUtils out in "FileUtils.cd(File.dirname(__FILE__))". but I get undefined method on 'cd'
rootshift has joined #ruby
<havenwood> there also almost_sinatra, which is 6 lines on top of Rack :P, heh: https://github.com/rkh/almost-sinatra/blob/master/almost_sinatra.rb
tuttinator has joined #ruby
<havenwood> lectrick: or NYNY: https://github.com/alisnic/nyny#readme
<pragmatism> blackmesa: FileUtils isn't a namespace, it's the name of a class.
<MrZYX> blackmesa: they may not be defined as module functions
<pragmatism> You're calling a class method, which is not callable that way.
ctp has quit [Quit: Linkinus - http://linkinus.com]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> pragmatism: FileUtils is a module
<apeiros> not a class
<pragmatism> oh word
<pragmatism> I kid
<lectrick> havenwood: lol at the "almost sinatra"
<apeiros> blackmesa: it depends on where you call `cd` and where you did the include
<havenwood> lectrick: there's a 5-line almost_rack to go along
<havenwood> lectrick: 11 lines and unicorn, g2g
kenndel has joined #ruby
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
<blackmesa> apeiros: right now outside any method in my class
ringaroses has quit [Quit: Leaving]
<apeiros> blackmesa: I don't want to riddle. gist it.
saarinen has joined #ruby
rootshift_ has joined #ruby
revans has joined #ruby
unixpro1970 has joined #ruby
tauebel has quit [Quit: Leaving.]
rmorello has joined #ruby
<apeiros> blackmesa: yeah, that doesn't work
<apeiros> you'd need `extend FileUtils` there
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LordSilent has joined #ruby
<apeiros> include FileUtils adds the methods as instance methods
pu22l3r__ has joined #ruby
<apeiros> but you use it as a class method there
rootshift has quit [Ping timeout: 264 seconds]
unixpro1970 has quit [Max SendQ exceeded]
* pragmatism feels partially validated
jibi has quit [Ping timeout: 252 seconds]
<apeiros> pragmatism: so I shouldn't tell you that your feeling is for all the wrong reasons? :D
burlyscudd has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
RaCx_ has quit [Quit: Computer has gone to sleep.]
dik_dak has quit [Quit: Leaving]
pu22l3r__ has quit [Remote host closed the connection]
<blackmesa> apeiros: thx. now I also know the reason when to use include or extend :-)
pu22l3r__ has joined #ruby
pu22l3r_ has quit [Ping timeout: 245 seconds]
rootshift_ has quit [Ping timeout: 245 seconds]
saarinen has quit [Client Quit]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Virtualize has joined #ruby
<apeiros> blackmesa: there are more reasons for extend than this one ;-)
sambao21 has joined #ruby
iamsean has quit [Quit: iamsean]
<lectrick> havenwood: where's the almost-rack? :)
Kricir has quit [Remote host closed the connection]
Rida has joined #ruby
HoboGrammer has quit [Ping timeout: 272 seconds]
n1x has joined #ruby
decoponio has quit [Quit: Leaving...]
heidi is now known as heidi-ramen
<blackmesa> apeiros: now it doesnt work with 'mv' inside a method. https://gist.github.com/anonymous/7b8a486a9101465d4624
<lectrick> havenwood: What's the point of rand/321 in https://github.com/rkh/almost-rack/blob/meister/almost-rackup ?
aspires has quit []
Kricir has joined #ruby
<havenwood> lectrick: i dunno
<lectrick> maybe a log line identifier
prc has joined #ruby
InSighter has joined #ruby
jedimind has quit [Ping timeout: 260 seconds]
stkowski has quit [Quit: stkowski]
dodosan has joined #ruby
InSighter has quit [K-Lined]
Rida has quit []
jedimind has joined #ruby
rezzack has joined #ruby
rootshift has joined #ruby
niklasb has joined #ruby
RaCx has joined #ruby
banjara has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
smathieu has quit [Remote host closed the connection]
byprdct has joined #ruby
smathieu has joined #ruby
dodosan has quit [Ping timeout: 272 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
drumusician has joined #ruby
Xeago_ has joined #ruby
i_s has joined #ruby
postmodern has joined #ruby
samuel02 has quit []
i_s has quit [Read error: Connection reset by peer]
superscott[8] has quit [Quit: superscott[8]]
banisterone has joined #ruby
i_s has joined #ruby
vpretzel has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
vpretzel has joined #ruby
aspires has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
gener1c has joined #ruby
gener1c has joined #ruby
momomomomo has quit [Quit: momomomomo]
angusiguess has joined #ruby
craigp has quit [Remote host closed the connection]
colonolGron has joined #ruby
gabriham_lincoln has joined #ruby
snkcld has quit [Remote host closed the connection]
richo has joined #ruby
nomenkun has joined #ruby
Hanmac has joined #ruby
<richo> Does anyone know offhand if there's hooks in rugged to hash an object, but not write it to the ODB?
<richo> I'm not spotting anything offhand.
nanoyak has quit [Quit: Computer has gone to sleep.]
devinus has joined #ruby
Cooler__ has quit []
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yekta has quit [Quit: yekta]
Cache_Money has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jibi has joined #ruby
vlad_starkov has joined #ruby
i_s has quit [Remote host closed the connection]
Soda has joined #ruby
<apeiros> blackmesa: well, extend adds FileUtils methods only as class methods
<apeiros> if you want to use them in class and instance scope, you have to add it to both of those scopes
<apeiros> extend for the class scope, include for the instance scope
Wolland has quit [Remote host closed the connection]
byprdct has joined #ruby
Fractional has joined #ruby
tauebel has joined #ruby
smathieu has quit [Remote host closed the connection]
danman has joined #ruby
lxsameer has joined #ruby
smathieu has joined #ruby
<lxsameer> how can i force sprockets ro compress my assets ?
freezey has joined #ruby
Xeago_ has quit [Remote host closed the connection]
i_s has joined #ruby
momomomomo has joined #ruby
Cache_Money has left #ruby [#ruby]
danman has quit [Client Quit]
momomomomo has quit [Client Quit]
iliketurtles has joined #ruby
Cache_Money has joined #ruby
iliketurtles has quit [Excess Flood]
senj has quit [Quit: Sleep Now]
diegoviola has quit [Quit: WeeChat 0.4.2]
richo has left #ruby [#ruby]
achru has quit [Remote host closed the connection]
achru has joined #ruby
bradhe has joined #ruby
samsonasu has quit [Quit: samsonasu]
<apeiros> lxsameer: wrong channel?
Wolland has joined #ruby
rdark has quit [Quit: leaving]
wolfman has joined #ruby
<lxsameer> apeiros: no since, there is no channel for sprockets, I asked here hop some one know about it
banjara has joined #ruby
<apeiros> sprockets is rails, I'd say…
fire has joined #ruby
EngierkO has quit [Ping timeout: 252 seconds]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
achru has quit [Ping timeout: 260 seconds]
<Fractional> Got any good documents for naming counter variables used for looping? Instead of the usual i, j, k etc.
<apeiros> name variables after what they are
<apeiros> what they represent
shadoi has quit [Quit: Leaving.]
<Fractional> apeiros: Yes, do you have any examples?
Cache_Money has quit [Quit: Cache_Money]
Kricir has quit [Remote host closed the connection]
Virtualize has quit [Read error: Connection reset by peer]
i_s has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
Guest96553 is now known as ktun
i_s has joined #ruby
ktun has quit []
Kricir has joined #ruby
nanoyak has joined #ruby
ktun has joined #ruby
Xeago has quit [Remote host closed the connection]
cyberarm has left #ruby ["Leaving"]
burlyscudd has quit [Quit: Leaving.]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digifiv5e has quit [Quit: quit]
jailbot has joined #ruby
tvw has quit []
cj3kim has quit [Remote host closed the connection]
jfelchner has joined #ruby
i_s has quit [Read error: Connection reset by peer]
i_s has joined #ruby
digifiv5e has joined #ruby
ckinni has joined #ruby
timonv has joined #ruby
i_s has quit [Read error: Connection reset by peer]
i_s has joined #ruby
vlad_sta_ has joined #ruby
HoboGrammer has joined #ruby
HoboGrammer is now known as Hobogrammer
dec_ has joined #ruby
wolfman has quit [Ping timeout: 260 seconds]
jonno11 has joined #ruby
<jonno11> Hi guys! Ruby RegEx problem here... I'm a n00b so apologies. https://gist.github.com/jonlambert/97c5bbebf8bc9e81dad4
Lewix has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 272 seconds]
vlad_sta_ has quit [Remote host closed the connection]
<apeiros> Fractional: no, not off-hand
<apeiros> jonno11: do NOT use regexp to parse xml. use an xml parser.
<apeiros> jonno11: like e.g. Nokogiri
<jonno11> apeiros: I know, it's more for a quick experiment!
<jonno11> apeiros: For now, do you know why this issue is happening?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fractional> apeiros: What do you think about that?
Cache_Money has quit [Quit: Cache_Money]
iliketurtles has joined #ruby
<havenwood> jonno11: m = content.xml
iliketurtles has quit [Excess Flood]
Lewix has joined #ruby
digifiv5e has quit [Quit: quit]
jlast_ has joined #ruby
<havenwood> jonno11: are you doing a File.read or something?
subbyyy has joined #ruby
pu22l3r__ has quit [Remote host closed the connection]
<havenwood> jonno11: check that `m` is what you think it is
<jonno11> havenwood: It's pseudo haha
<jonno11> havenwood: it is, it was more for example purposes..
<apeiros> Fractional: I'd probably call it inner_ and outer_
n1x has quit [Ping timeout: 248 seconds]
<havenwood> jonno11: still, i worry your issue is with `m` not with the regex because it works fine
mrsolo has joined #ruby
centrx has joined #ruby
digifiv5e has joined #ruby
<apeiros> jonno11: with plain // a . does not match newlines
<apeiros> you need //m to have . match newlines too
ZKM has joined #ruby
simoz4 has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
LiquidInsect has quit [Ping timeout: 246 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
momomomomo has joined #ruby
* Hanmac is currently reshaping his RAID ... that could take a while ;P
timonv has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
teddyp1c_ has joined #ruby
krawchyk has quit []
dec_ has quit []
maletor has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit [Remote host closed the connection]
florentferry has joined #ruby
aspires has joined #ruby
Eiam has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
francisfish has quit [Ping timeout: 252 seconds]
atraylen has joined #ruby
rmorello has joined #ruby
Fractional has quit [Quit: Leaving]
evenix has joined #ruby
<jonno11> havenwood: Trust me, the content is the same. I've tested
dodosan has joined #ruby
pu22l3r_ has joined #ruby
<havenwood> jonno11: whew! :P
skulker_ has quit [Remote host closed the connection]
simoz4 has quit [Ping timeout: 265 seconds]
samsonasu has joined #ruby
synergy__ has joined #ruby
samsonasu has quit [Remote host closed the connection]
Xeago has joined #ruby
ckinni has joined #ruby
meatherly has quit [Remote host closed the connection]
synergy__ has quit [Read error: Connection reset by peer]
zoscoy has joined #ruby
meatherly has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
justsee has joined #ruby
meatherly has joined #ruby
justsee has quit [Client Quit]
tylersmith has quit [Read error: Connection reset by peer]
<havenwood> >> "<LineStatus ID=\"4\" StatusDetails=\"\">\n <BranchDisruptions />\n <Line ID=\"4\" Name=\"Jubilee\" />\n <Status ID=\"GS\" CssClass=\"GoodService\" Description=\"Good Service\" IsActive=\"true\">\n <StatusType ID=\"1\" Description=\"Line\" />\n </Status>\n</LineStatus>"; m.scan(/Jubilee"\s\/>\s.*Description="(.*)"\s/)
<eval-in> havenwood => undefined local variable or method `m' for main:Object (NameError) ... (https://eval.in/93513)
benzrf has joined #ruby
<havenwood> >> m = "<LineStatus ID=\"4\" StatusDetails=\"\">\n <BranchDisruptions />\n <Line ID=\"4\" Name=\"Jubilee\" />\n <Status ID=\"GS\" CssClass=\"GoodService\" Description=\"Good Service\" IsActive=\"true\">\n <StatusType ID=\"1\" Description=\"Line\" />\n </Status>\n</LineStatus>"; m.scan(/Jubilee"\s\/>\s.*Description="(.*)"\s/)
<eval-in> havenwood => [["Good Service"]] (https://eval.in/93514)
<havenwood> jonno11: ^
tylersmith has joined #ruby
<havenwood> uhg, spam :(
<havenwood> sry
mojjojo has quit [Quit: mojjojo]
<havenwood> jonno11: Do you get that same result? Is it not what you expected? Maybe I just need coffee!!
dodosan has quit [Ping timeout: 260 seconds]
<jonno11> havenwood: Hold on, I'll gist the whole file!
zenhob has joined #ruby
freezey has quit [Remote host closed the connection]
<havenwood> oh, it was only part of the file?
<havenwood> what is this mysterious `m` :P
<benzrf> hows it goin
zenhob has left #ruby [#ruby]
<benzrf> havenwood: YOU CANT PARSE HTML WITH REGEX
* benzrf swats havenwood
alexfreidah has joined #ruby
<havenwood> benzrf: caveat already been given, (s)he is trying to understand for learning experiment only
gabriham_lincoln has quit [Remote host closed the connection]
<benzrf> oh
<jonno11> benzrf: ^ that... :)
<jonno11> havenwood: ^
mojjojo has joined #ruby
<havenwood> benzrf: still, it is horrifying though, isn't it? :O
dams has joined #ruby
maoko has joined #ruby
francisfish has joined #ruby
<havenwood> ohhh xml...
dams has left #ruby [#ruby]
<jonno11> haha
teddyp1c_ has quit []
<benzrf> havenwood: yes ;-;
chipotle has quit [Quit: cya]
wtfitsme has quit [Quit: wtfitsme]
<benzrf> for the love of god use nokogiri
<jonno11> benzrf: I am
<apeiros> jonno11: you've been told what the problem and what the solution is
shadoi has joined #ruby
Baluse has quit [Ping timeout: 245 seconds]
meatherly has quit [Remote host closed the connection]
<apeiros> jonno11: if you don't read the replies, why bother to ask?
nobitanobi has joined #ruby
Baluse has joined #ruby
<jonno11> apeiros: It's more I don't want to leave it if I don't know why it didn't work! And what replies?
meatherly has joined #ruby
chipotle has joined #ruby
<apeiros> jonno11: read the backlog. both havenwood and I told you the same.
<havenwood> apeiros: /m
<havenwood> apeiros: i saw
<nobitanobi> If I want to use select on an Array, but the condition is pretty complex (I have a method for it). How can I use that method on the block? - Like so: images = images.select { |img| have_same_contrast(img, @image) }
evenix has quit []
<bnagy> just like that
mmcclimon has left #ruby [#ruby]
alexfreidah has quit [Ping timeout: 248 seconds]
devdazed has quit [Quit: Bye]
freezey has joined #ruby
<nobitanobi> bnagy, uhm. undefined method `have_same_contrast' for main:Object (NoMethodError)
devdazed has joined #ruby
<havenwood> apeiros: oh, right - i'm just all over the place today - gunna quit typing till i get coffee >.>
<apeiros> havenwood: lol
beneggett has joined #ruby
angusiguess has joined #ruby
<bnagy> nobitanobi: sooo define it? Or invoke it on something with it defined?
<nobitanobi> bnagy, never mind.
<nobitanobi> I was defining it
<nobitanobi> after the block
<jonno11> havenwood, apeiros: but why does it work in Rubular and not Ruby?
wtfitsme has joined #ruby
<jonno11> apeiros: http://rubular.com/r/xV3pgShltf - with /m
<jonno11> apeiros: http://rubular.com/r/yWRpGBOqvz without
<nobitanobi> Anyone quite familiar with RMagick here?
atraylen has quit [Read error: Connection reset by peer]
<apeiros> maybe because one has \r\n as newline and the other \n.
nomenkun has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 240 seconds]
<jonno11> apeiros: What do you mean?
simoz4 has joined #ruby
Virtualize has joined #ruby
meatherly has joined #ruby
Jetchisel has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Kricir has quit [Read error: Connection reset by peer]
simoz5 has joined #ruby
LiquidInsect has joined #ruby
coca_rails has joined #ruby
Kricir has joined #ruby
<apeiros> jonno11: I see that you match the newline with \s
angusiguess has quit [Ping timeout: 240 seconds]
<apeiros> jonno11: you said the content was the same
<apeiros> I suspect you inspected it visually
fede_ has quit [Ping timeout: 245 seconds]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros> so I suspect something in the whitespace (not visible just like that) differs
<jonno11> apeiros: So in one Rubular permalink, it has /r/n, and the other it has /n?
x1337807x has joined #ruby
<apeiros> I'd suspect it the other way round
<apeiros> also \r\n, not /r/n
<jonno11> sorry \*
<jonno11> lol yeah
Kricir_ has joined #ruby
emptymag00 has quit [Ping timeout: 272 seconds]
<jonno11> all I've done, is literally added \m
benzrf has quit [Quit: Lost terminal]
<jonno11> apeiros: try adding and removing it
soulcake has quit [Quit: ZNC - http://znc.in]
wolfman has joined #ruby
simoz4 has quit [Ping timeout: 252 seconds]
REdOG has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
pu22l3r_ has quit [Ping timeout: 272 seconds]
colonolGron has left #ruby [#ruby]
gabriham_lincoln has joined #ruby
malkomalko has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
skulker has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
<agent_white> Afternoon folks
bradhe has joined #ruby
lxsameer has quit [Read error: No route to host]
<centrx> Ahoy
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
mark_locklear has quit [Ping timeout: 272 seconds]
aapole has joined #ruby
jonah has joined #ruby
jkamenik has quit [Quit: Leaving.]
shaunbaker has joined #ruby
sambao21 has joined #ruby
jonno11_ has joined #ruby
jonno11 has quit [Quit: jonno11]
bradhe has quit [Ping timeout: 248 seconds]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raar has joined #ruby
raar is now known as Guest8424
tannerburson has quit [Quit: tannerburson]
heidi-ramen is now known as heidi
iamsean has joined #ruby
Txandy has quit [Quit: Leaving...]
coca_rails has quit [Remote host closed the connection]
mneorr has joined #ruby
Kricir_ has quit [Remote host closed the connection]
maximveksler has joined #ruby
coca_rails has joined #ruby
tauebel has quit [Quit: Leaving.]
Kricir has joined #ruby
sassamo has quit [Remote host closed the connection]
skulker has quit [Remote host closed the connection]
sassamo has joined #ruby
skulker has joined #ruby
mansi has quit [Read error: Connection reset by peer]
shaunbaker has quit []
mansi has joined #ruby
ryandeussing has quit []
w4pm_ has quit [Ping timeout: 265 seconds]
VTLob has quit [Quit: VTLob]
lkba has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Neomex has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
willb1 has joined #ruby
sassamo has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
spider-mario has quit [Remote host closed the connection]
emptymag00 has joined #ruby
tannerburson has joined #ruby
skulker has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
octoberry has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
ndrei has joined #ruby
<Hanmac> shevy did you use raid before?
workmad3 has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
RutabegaShuffle has joined #ruby
<maximveksler> I have a large block of text, which I want to join by specific line termination chars. combining full sentences from fragments (explained here) https://gist.github.com/maximveksler/ab941ad3017835d8901b what would be the most elegant / smart way to implement this in ruby? my current naive solution is checking each line what it's last char is, and if it's not any or the required ones (].?!) appending to a local buffer which is being dumped once a matching
<maximveksler> char is found.
fire has quit [Quit: WeeChat 0.4.1]
jonno11_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<RutabegaShuffle> I have a question
<RutabegaShuffle> I have a text file of words seperates by /n (so a word every line) and I want to read that file into a hash
<RutabegaShuffle> how would I go about this?
v10energy has joined #ruby
<bnagy> keyed by what?
<RutabegaShuffle> entries = File.read(path).split("\n")
deception has quit [Quit: Goodbye]
<RutabegaShuffle> I'm not quite sure myself
<RutabegaShuffle> it's kind of a learning process for me
<bnagy> ok well sort yourself out and then ask a question that has an answer :)
chipotle has quit [Ping timeout: 245 seconds]
<bnagy> a Hash is a structure where you can look up values by a key
sailias has quit [Quit: Leaving.]
<Hanmac> maximveksler: give me a bit of time, i wil fix that
<maximveksler> Hanmac: fix what?
fire_ has quit [Quit: WeeChat 0.4.1]
<Hanmac> i mean fix your problem
RoxasShadowRS has quit [Quit: Leaving]
mehlah has joined #ruby
<maximveksler> Hanmac: hmmm. ok.
ndrei has quit [Ping timeout: 245 seconds]
jobewan has quit [Quit: Leaving]
<bnagy> your naive solution sounds fine to me
<bnagy> a 'real' naive solution would be to read it all and then split by the terminators and join with "\n"
tannerburson has quit [Quit: tannerburson]
<bnagy> but yours is 'better', although more code and probably less clear
jonno11 has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
<maximveksler> bnagy: I like that, but splitting alone is not enough because the instructor might say "Ok? Good I see everyone got it"
<maximveksler> this by itself is 1 sentence not 2.
yfeldblum has joined #ruby
<maximveksler> so I need to verify it's the last char of the sentence.
<bnagy> uh.. no it's two sentences
<bnagy> that's why Good is capitalized
aaronmcadam has joined #ruby
<bnagy> so that sounds more like a rule to merge sentences below a length limit
<maximveksler> well yeah, but then it's a really small sentence. plus I've just made it up, as an example.
chipotle has joined #ruby
ndrei has joined #ruby
rootshift has joined #ruby
<maximveksler> yeah, I guess a length would also be cool as a merge rule
<Hanmac> maximveksler: try this: puts File.read("pointdata").scan(/.+?[\.!?\]]\n?/m).map{|s|s.chomp.gsub("\n"," ")}
<RutabegaShuffle> hi bnagy!
<RutabegaShuffle> as the key, and each one has a garbage value
<RutabegaShuffle> so what if I were to have the word
aaronmcadam has quit [Client Quit]
kpshek has quit []
<RutabegaShuffle> @bnagy
<Hanmac> bnagy: you look like some one that used raid before .. did you already reshape an existing raid ? ;P
<maximveksler> Hanmac: ok reading it now. will update
angusigu1ss has quit [Ping timeout: 245 seconds]
<bnagy> what do you mean reshape? I've added volumes and replaced dead ones
brennanMKE has quit [Remote host closed the connection]
<bnagy> but I don't know if I've migrated raid levels
Matriks has quit [Remote host closed the connection]
<bnagy> except maybe like 1 -> 10
<Hanmac> bnagy: i am currently "reshaping" and RAID5 ... from 4 to 5 volumes ;P
brennanMKE has joined #ruby
<bnagy> oh that should be trivial
<Hanmac> it is ... but it take a long long time ;P
<maximveksler> Hanmac: I liked that. what "/m" in the regex means?
IceyEC has quit [Quit: IceyEC]
<bnagy> but usually your raid card would do it, so the process is specific to that
<bnagy> RutabegaShuffle: so you just want to see if a word is in the hash?
<RutabegaShuffle> yessir
<Hanmac> maximveksler: m means that . also parses new lines ... thats why need to mark .+ as non greedy with ?
yfeldblum has quit [Ping timeout: 272 seconds]
<bnagy> the clearest is to iterate the list and do word_hsh[word]=true inside the block
<Hanmac> bnagy: software raid (because different parts has different raid levels=
<bnagy> like linux mdadm stuff?
<bnagy> lulz
<REdOG> is there some way to get linecache19 working with 1.9.1?
w4pm has joined #ruby
<REdOG> It fails to build
<bnagy> y u no lvm noob
<maximveksler> Hanmac: sound very cool. will get back to this 1st thing tomorrow morning. thank you.
<REdOG> trace_nums.c:(.text+0x22): undefined reference to `ruby_current_thread'
atmosx has quit [Quit: Lost in trance]
francisfish has quit [Remote host closed the connection]
kpshek has joined #ruby
<Hanmac> bnagy i have lvm ... in my raid (so 5 Disks -> 1 Raid -> LVM)
francisfish has joined #ruby
robscomputer has joined #ruby
<bnagy> using software raid
<Hanmac> yeah ...
<bnagy> meh, fair enough I guess. I'm not a giant fan of md, but hey I've used it
tannerburson has joined #ruby
<bnagy> anyway, was there are actual question anywhere?
<bnagy> apart from 'this sux, it's slow'?
<bnagy> cause yeah, raid5 rebuilds are slow cause they have to move a shitload of data around - more so if the volume is almost full
<Hanmac> any idea howto get the reshaping faster?
brennanMKE has quit [Ping timeout: 265 seconds]
<bnagy> take the data out of it
<RutabegaShuffle> @bnagy, in this case would I still need to pass the file in as an array?
<bnagy> RutabegaShuffle: nah just iterate the file by lines
<RutabegaShuffle> and then loop the values into the hash?
robscomputer has quit [Remote host closed the connection]
<bnagy> File.foreach for example
ndrei has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
<RutabegaShuffle> alright, thanks bnagy, I'll try this out
<bnagy> there are like 5 ways to read a file line by line
robscomputer has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
tauebel has joined #ruby
<bnagy> Hanmac: uh but don't abort the rebuild if it has already started
<bnagy> o_0
revans has quit [Quit: Linkinus - http://linkinus.com]
robscomputer has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
<Hanmac> bnagy: yeah i know ... once started there is no save way to stop it ... like americas finance crisis ;D
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
banisterone has quit [Ping timeout: 260 seconds]
francisfish has quit [Ping timeout: 265 seconds]
jtdowney_ has joined #ruby
jtdowney has quit [Disconnected by services]
jtdowney_ is now known as jtdowney
ferr has joined #ruby
malkomalko has quit []
LekeFly has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
LekeFly has joined #ruby
Al___ has joined #ruby
skulker has joined #ruby
<Hanmac> bnagy: it only would be problematic when i want to replace then with newer disks (like HDD with twice that much space) ...
Xeago has quit [Remote host closed the connection]
<bnagy> hm.. I don't know what's fastest there
ferr has quit [Client Quit]
ferr has joined #ruby
<bnagy> I think I would probably just create a new volume and then move the stuff
<bnagy> unless you are short of physical connectors, then you can just fail out the small ones disk by disk and rebuild with a big one as a replacement
<bnagy> super fiddly though, esp if it's not nice hotswap hardware
ferr has quit [Client Quit]
ferr has joined #ruby
kaldrenon has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
<bnagy> I cloned a whole cluster once by 'rebuilding' from a raid-1 boot disk in each new server in turn :/
mrsolo has joined #ruby
maximveksler has quit [Quit: maximveksler]
Hanmac1 has joined #ruby
soulcake has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
dodosan has quit [Ping timeout: 260 seconds]
<Hanmac1> bnagy: hm ... when i make the big ones into a new raid ... and then add them to the same LVM (so 2 Raids -> 1LVM) ... wouldnt it work that i let the LVM move the data from one Raid to another for me?
bakedb has quit [Remote host closed the connection]
kpshek has quit []
<jonno11> Stepping into Nokogiri... this isn't working at all, it's so frustrating and so simple. Can't work out why. Any ideas? https://gist.github.com/jonlambert/cbd23cba38cba6c61c30
angusiguess has joined #ruby
agjacome has quit [Ping timeout: 272 seconds]
bakedb has joined #ruby
mehlah has quit [Quit: Leaving...]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
danshultz has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 260 seconds]
sergicles has quit [Quit: sergicles]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
florentferry has quit [Quit: florentferry]
danshultz has joined #ruby
subbyyy has quit [Ping timeout: 272 seconds]
ferr has quit [Quit: leaving]
ferr has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit []
maoko has joined #ruby
Hanmac has joined #ruby
kirun has quit [Quit: Client exiting]
<bnagy> Hanmac1: I.. don't know why it would do that if both raids are inside the same volume
<bnagy> but tbh I am not very good at lvm, I've only done super basic stuff
<Hanmac> hm i asking in #lvm maybe they know more
maoko has quit [Client Quit]
jedimind has quit [Quit: screw you guys, im going home!]
aryaching has joined #ruby
<bnagy> I would mount both devices and just mv, the decomission the old device
<bnagy> then add the new one to the volume
danshultz has quit [Read error: Operation timed out]
<bnagy> but yeah, some other place is probably better :)
n1x has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
<Hanmac> jonno11: i tested it with the content.xml ... it works for me
ghr has quit [Disconnected by services]
apeiros has quit [Remote host closed the connection]
robscomputer has quit [Remote host closed the connection]
apeiros has joined #ruby
ferr has quit [Quit: leaving]
<jonno11> Hanmac: Hmm that's weird
tannerburson has quit [Quit: tannerburson]
apeiros has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
ferr has joined #ruby
<jonno11> Hanmac: Why do you think it works with content.xml and not with the HTTP response?
apeiros has joined #ruby
<Hanmac> i dont know
Kricir has quit [Read error: Connection reset by peer]
skulker has quit [Remote host closed the connection]
<RutabegaShuffle> @bnagy, just wanted to say thanks, I got it
robscomputer_ has joined #ruby
<bnagy> huzzah! :)
Kricir has joined #ruby
bradhe has joined #ruby
<jonno11> Hanmac: So frustrating
sassamo has joined #ruby
n1x has quit [Max SendQ exceeded]
burlyscudd has joined #ruby
<bnagy> if in doubt, check your raw inputs
Baluse has quit [Ping timeout: 260 seconds]
robscomputer has quit [Ping timeout: 245 seconds]
<jonno11> Does anybody else have any ideas? I'm stepping into Nokogiri... this isn't working at all, it's so frustrating and so simple. When testing by pasting in content.xml, it works fine. But it wont parse the HTTP response. Any ideas? https://gist.github.com/jonlambert/cbd23cba38cba6c61c30
n1x has joined #ruby
Baluse has joined #ruby
ndrei has joined #ruby
<bnagy> pasting the same question over and over will just annoy people
Kricir has quit [Read error: Connection reset by peer]
<jonno11> bnagy: I'm sure - I've just modified it.
ferr has quit [Quit: leaving]
<jonno11> bnagy: It's an updated version of the question.
ferr has joined #ruby
Kricir has joined #ruby
duggiefresh has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
ferr has quit [Client Quit]
ferr has joined #ruby
n1x has quit [Max SendQ exceeded]
griffindy has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
n1x has joined #ruby
tannerburson has joined #ruby
Brolen has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
freidahpatch has joined #ruby
nfk has joined #ruby
simoz5 has quit [Ping timeout: 252 seconds]
aspires has quit []
ferr has quit [Client Quit]
julweber has joined #ruby
ferr has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
Al___ has joined #ruby
mojjojo has quit [Quit: mojjojo]
simoz5 has joined #ruby
gabriham_lincoln has quit []
aryaching_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
simoz6 has joined #ruby
ffranz has quit [Quit: Leaving]
<shevy> xml annoys people too!
x1337807x has quit [Ping timeout: 240 seconds]
RutabegaShuffle has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
n1x has quit [Max SendQ exceeded]
Nogbit has joined #ruby
mojjojo has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
ferr has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
n1x has joined #ruby
simoz5 has quit [Ping timeout: 248 seconds]
shime has quit [Ping timeout: 260 seconds]
MrThePlague has joined #ruby
MrThePlague has quit [Remote host closed the connection]
wtfitsme has joined #ruby
<jonno11> shevy: XML might be my most hated thing
rubyracer has quit [Quit: Konversation terminated!]
Squarepy has quit [Quit: Leaving]
subbyyy has joined #ruby
<shevy> :D
alexfreidah has joined #ruby
punkcat has joined #ruby
x1337807x has joined #ruby
yfeldblum has quit [Remote host closed the connection]
benzrf has joined #ruby
<benzrf> sup yo
yfeldblum has joined #ruby
asteros has joined #ruby
aapole has quit [Quit: Lost terminal]
Hanmac1 has joined #ruby
emptymag00 has quit [Ping timeout: 260 seconds]
orionstein is now known as orionstein_away
wolfman has quit [Ping timeout: 245 seconds]
Kabaka has quit [Ping timeout: 246 seconds]
Rylee has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
cj3kim has joined #ruby
jlast_ has quit [Remote host closed the connection]
aryaching has joined #ruby
jlast has joined #ruby
x1337807x has quit [Client Quit]
subbyyy has quit [Ping timeout: 240 seconds]
Al___ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
Fire-Dragon-DoL has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
thesheff17 has quit [Ping timeout: 272 seconds]
Rylee has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
Kabaka has joined #ruby
jerius has quit [Ping timeout: 260 seconds]
mrsolo has joined #ruby
mikepack has joined #ruby
dawe has quit [Quit: leaving]
mrsolo has left #ruby [#ruby]
yasushi has joined #ruby
IcyDragon has joined #ruby
yfeldblum has joined #ruby
simoz6 has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
_Andres has quit [Ping timeout: 245 seconds]
havenwood has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
simoz6 has joined #ruby
havenwood has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IcyDragon is now known as IceDragon
<pontiki> did jonno11 leave??
monkegjinni has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
_Andres has joined #ruby
<shevy> yeah
casheew has quit [Read error: Connection reset by peer]
alexfreidah has quit [Ping timeout: 240 seconds]
casheew has joined #ruby
<centrx> bummer
i_s has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
claymore has quit [Quit: Leaving]
tauebel has quit [Read error: Operation timed out]
beneggett has quit [Client Quit]
pietr0 has quit [Quit: pietr0]
freezey has quit [Remote host closed the connection]
_HolyCow is now known as Guest99999
Jdubs has joined #ruby
Guest99999 is now known as _HolyCow
robscomputer_ has quit [Remote host closed the connection]
mojjojo has joined #ruby
kpshek has quit []
robscomputer has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
octoberry has quit [Ping timeout: 240 seconds]
Kricir has quit [Read error: Connection reset by peer]
emptymag00 has joined #ruby
julweber has quit [Remote host closed the connection]
Hanmac has joined #ruby
gusblan has joined #ruby
Kricir has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: dblessing]
jonahR has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
zigidias_ is now known as zigidias
zigidias has quit [Changing host]
zigidias has joined #ruby
n1x has quit [Quit: Ex-Chat]
<shevy> Hanmac I did not use raid before I think
_Andres has joined #ruby
dodosan has joined #ruby
yasushi has joined #ruby
kobain has joined #ruby
Amart41 has quit [Remote host closed the connection]
robscomputer has quit [Ping timeout: 245 seconds]
Al___ has quit [Quit: Al___]
clamstar has quit [Quit: Computer has gone to sleep.]
sassamo has quit [Remote host closed the connection]
Kricir has quit [Read error: Operation timed out]
sassamo has joined #ruby
byprdct has joined #ruby
sassamo has quit [Read error: Connection reset by peer]
sassamo_ has joined #ruby
punkcat has quit [Ping timeout: 245 seconds]
phansch has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
Jetchisel has joined #ruby
gusblan has quit []
Hanmac has joined #ruby
freezey has joined #ruby
tannerburson has quit [Quit: tannerburson]
sambao21 has quit [Quit: Computer has gone to sleep.]
alexfreidah has joined #ruby
bradhe has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_Andres has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
mansi has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 265 seconds]
lfox has joined #ruby
mansi has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
subbyyy has joined #ruby
allaire has quit []
pietr0 has joined #ruby
whomp_ has joined #ruby
julweber has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
_Andres has joined #ruby
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
mansi has quit [Ping timeout: 245 seconds]
Beoran_ has quit [Read error: Connection reset by peer]
lfox has quit [Ping timeout: 265 seconds]
renklaf has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
Neomex has quit [Quit: Neomex]
mercwithamouth has quit [Ping timeout: 265 seconds]
mojjojo has quit [Quit: mojjojo]
renklaf has quit [Read error: Operation timed out]
law has joined #ruby
<law> hey all, how am I butchering my case-statement here? http://pastebin.com/2DvuBjnc
lmickh has quit [Remote host closed the connection]
Megtastique has quit []
wtfitsme_ has joined #ruby
cgore has quit [Remote host closed the connection]
pel_daniel has left #ruby [#ruby]
wtfitsme has quit [Ping timeout: 248 seconds]
wtfitsme_ is now known as wtfitsme
sambao21 has joined #ruby
_Andres has quit [Ping timeout: 252 seconds]
agent_white has quit [Quit: bbl]
lfox has joined #ruby
<centrx> law, You are using expressions in the when statement
<centrx> So you do case when filesize.to_i < ARGV[2]
<shevy> law no > in case when menus
<centrx> not case filesize.to_i when < ARGV[2]
danshultz has quit [Ping timeout: 240 seconds]
<centrx> incomplete expressions I should say
<shevy> law you use case when like if/else here which is wrong
baroquebobcat has joined #ruby
_Andres has joined #ruby
<Hanmac> case when without value with case looks so wrong
<shevy> law in your case, I would go back to classical if/else, it will be easier for this
pietr0 has quit [Quit: pietr0]
<law> fair enough, thanks guys
aspires has joined #ruby
<shevy> case when is usually rather flexible
<shevy> x = foo; case x; when /^f/; puts 'yup starts with a f!'; end
<shevy> oops
<shevy> x = 'foo'; case x; when /^f/; puts 'yup starts with a f!'; end
<pragmatism> shevy: I did actually read up looking for the definition of foo
drumusician has quit [Read error: Connection reset by peer]
<pragmatism> Stop playing with my heart.
<Jason> hmm
drumusician has joined #ruby
Jason has left #ruby [#ruby]
Jason has joined #ruby
Hanmac1 has joined #ruby
<Hanmac1> shevy & law: what would work: case filesize.to_i when proc{|v| v < ARGV[2] } :P
MrZYX is now known as MrZYX|off
bean__ has joined #ruby
<centrx> awful
meatherly has quit [Remote host closed the connection]
duggiefresh has joined #ruby
bean__ has quit [Client Quit]
duggiefresh has quit [Remote host closed the connection]
<centrx> Hanmac, Why not have it save the value to a file and then read from the file in the when expression?
Hanmac has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
<Hanmac1> centrx: better than "case when" without case variable
Hanmac1 is now known as Hanmac
ZKM has quit [Remote host closed the connection]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
rayners has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
julweber has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
sethen has joined #ruby
<havenwood> or >.>: when 0..ARGV[2]; when ARGV[3]..Float::INFINITY
<havenwood> \o/
<Hanmac> hmyeah thats nice too
bearjew has joined #ruby
<havenwood> maybe half and half
<havenwood> keep folks on their toes
bambuka has quit [Remote host closed the connection]
hiall_ has joined #ruby
meatherly has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
kevind has quit [Quit: kevind]
Beoran_ has joined #ruby
julweber has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
burlyscudd has quit [Quit: Leaving.]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar_ has joined #ruby
zxd has joined #ruby
wiku5_ has joined #ruby
<whomp_> how do i do a method literal for Pathname.new? i tried array.map(&:Pathname.new) but it didn't work
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jtdowney has quit []
wiku5_ has quit [Client Quit]
chomskiii has quit [Read error: Connection reset by peer]
mocfive has quit [Remote host closed the connection]
chomskiii has joined #ruby
ner0x has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
wolfman has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<centrx> whomp_, method literal?
jonno11 has joined #ruby
<havenwood> nice rubytapas today
<havenwood> >> { best_bet: 20 }.merge({ best_bet: 40 }) { |_, x, y| (x + y) / 2 }
<eval-in> havenwood => {:best_bet=>30} (https://eval.in/93636)
robbyoconnor has quit [Excess Flood]
<benzrf> havenwood: rubytapas ?
octoberry has joined #ruby
robbyoconnor has joined #ruby
<benzrf> havenwood: also whats the first arg there?
<havenwood> benzrf: the key
<benzrf> oh derp
<havenwood> benzrf: http://www.rubytapas.com/
<rubidious> Hi. I'm getting the following error when I run script/server
<rubidious> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /var/lib/gems/1.9.1/gems/activesupport-1.4.2/lib/active_support/inflector.rb:266: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) when 1: "#{number}st"
<rubidious> can someone point me in the right direction?
trickyhero has joined #ruby
<centrx> rubidious, Don't use : with case-when
mojjojo has joined #ruby
<centrx> use when 1 then
<havenwood> whomp_: 'fee', 'fie', 'fo', 'fum'].map { |path| Pathname.new path }
<rubidious> this is in a rubygem though right?
<rubidious> I shouldn't be modifying rubygem files, right?
aspires has quit []
geggam has quit [Remote host closed the connection]