apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: 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
<shevy> you don't say what problem you have
<shevy> {"welcome"=>2, "to"=>2, "the"=>2, "jungle"=>2, "baby"=>1}
<shevy> you can use a regex btw
<shevy> ["welcome", "to", "the", "jungle", "book,", "baby"]
<shevy> if you don't need the ,
<shevy> you can delete it
<shevy> from: current_word = string.downcase.split(" ")
<shevy> to: current_word = string.downcase.delete(',').split(" ")
<shevy> ruby is little operations combined together rubie
az7ar is now known as az7ar_away
<rubie> but what if i dont know what puctuation marks i will get
<rubie> here is a similar one to mine
<rubie> but it works
<rubie> with all punctuation
<rubie> i dont understand why
havenwood has joined #ruby
Joufflu has joined #ruby
timonv_ has joined #ruby
az7ar_away is now known as az7ar
gtrak has joined #ruby
Takle has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
mary5030_ has quit [Remote host closed the connection]
ht__th has quit [Remote host closed the connection]
phutchins has joined #ruby
<nowthatsamatt> tmoore: haha, nice
<nowthatsamatt> i ended up just doing it all in bash
<shevy> rubie you need to start thinking in operations
<rubie> what do you mean by that
<shevy> you have input, you want to achieve a desired output
<shevy> so you must apply an operation in between those two right?
<rubie> right
<shevy> k, so the input is given to you, but you can modify it
az7ar is now known as az7ar_away
<shevy> so the next thing is - you need to ensure that you have a proper output
<shevy> <rubie> but what if i dont know what puctuation marks i will get
<shevy> you have if/else clauses
<shevy> if string.include? ','
<shevy> elsif string.include? '.'
j_mcnally has joined #ruby
<shevy> everything can be built around operations
jimmyhoughjr has joined #ruby
<shevy> the array in your second example is:
<shevy> ["howdy", "partner,", "sit", "down!", "how's", "it", "going?"]
asmodchan has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 272 seconds]
<rubie> im with you
Avahey has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maplatoj35 has joined #ruby
<shevy> for debugging use p object
<shevy> or require 'pp'; pp object
<shevy> the 2nd example is simpler to understand because he breaks the chunk down into an intermediary value
<shevy> you really should also use temp variables, they make everything much simpler
<rubie> what are temp variables
<maplatoj35> anyone can point me in the right direction...smth im missing. my methods always return false https://gist.github.com/anonymous/9fa444ec0196a0a4429d
jdj_dk has joined #ruby
Wolland has joined #ruby
tvw has quit []
armyriad has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
Photism has quit [Quit: Leaving]
<shevy> rubie to break chunks of code down
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> _ = object.some_method.result
<shevy> if _.include? key_word
<shevy> do_this
<epitron> >> [1,3,1,4,2,3,5,4].map{|x| x.is_a? Integer }
<eval-in__> epitron => [true, true, true, true, true, true, true, true] (https://eval.in/210346)
govg has quit [Read error: Connection reset by peer]
<epitron> maplatoj35: i dunno :)
<rubie> .result?
parabolize has joined #ruby
Wolland_ has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
Wolland has joined #ruby
havenwood has joined #ruby
<maplatoj35> epitron: can you try running on your side to see if you get the same result
<maplatoj35> epitron: the test do not pass here
<epitron> maplatoj35: i found the problem
<epitron> your array is inside another array
<epitron> because you used *args, and didn't do ".new *positions"
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
chipotle has quit [Quit: cya]
chrisja has quit [Quit: leaving]
stoddart has quit [Quit: leaving]
<maplatoj35> epitron: thanks a lot. expect(leaves.all_integers?).to be_truthy undefined method `truthy?' yet its in the rspec doc
<epitron> i just use .should == :)
<maplatoj35> epitron: be_true seems to work yet its not in the doc
sevenseacat has joined #ruby
<epitron> sounds about right
kyb3r_ has joined #ruby
klaut has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
jimms has joined #ruby
<rubie> shevy: i fixed it by creating a nested loop. to me it seems that by asking if the dictionary word is included in the substring word, if its not an exact match it will still say that its included. so it gets around the punctuation, but if you had a word like jungleeee it would still count it, because jungle is included in the element jungleee
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
chrishough has joined #ruby
SilkFox has quit [Ping timeout: 265 seconds]
Tricon has quit [Quit: Lost terminal]
jdj_dk has quit [Ping timeout: 244 seconds]
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
charliesome has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
_djbkd has quit [Remote host closed the connection]
parduse has quit [Ping timeout: 258 seconds]
moritzs has quit [Ping timeout: 272 seconds]
ramfjord has quit [Quit: Reconnecting]
ramfjord has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
az7ar_away is now known as az7ar
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
tkuchiki has joined #ruby
Takle has quit [Remote host closed the connection]
<havenwood> rubie: you're showing three welcomes when there're two, huh?
phutchins has quit [Ping timeout: 255 seconds]
<rubie> humm good catch
rajeshchawla has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 272 seconds]
gsd has joined #ruby
parduse has joined #ruby
Wolland has joined #ruby
<rubie> any idea why
phutchins has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
abuzze has joined #ruby
Wolland_ has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
<shevy> # => {"welcome"=>3, "to"=>2, "the"=>2, "jungle"=>2, "baby"=>1}
<shevy> your code simply does not work correctly
<shevy> I told you before - the other solution was better because the guy broke the code chunk into separate, smaller units of operation
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
Wolland has quit [Read error: Connection reset by peer]
nonks has quit [Ping timeout: 246 seconds]
az7ar is now known as az7ar_away
abuzze has quit [Ping timeout: 240 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
nettoweb_ has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
niklasb_ has joined #ruby
Spami has joined #ruby
jdj_dk has joined #ruby
fabrice31 has joined #ruby
niklasb has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
<rubie> how do you debug soemthing?
<sevenseacat> with a debugger.
jottr has quit [Ping timeout: 265 seconds]
<havenwood> rubie: or delete it, go back to your last test, and do something you understand
nonks has joined #ruby
jenrzzz has joined #ruby
<havenwood> rubie: your test case doesn't look like the problem description
fabrice31 has quit [Ping timeout: 256 seconds]
<banisterfiend> rubie http://pryrepl.org ;)
rajeshchawla has quit []
<havenwood> +1 pry
jasooon has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tokik has joined #ruby
<havenwood> rubie: how many times each item from the dictionary is found in the string
reinaldob has joined #ruby
<havenwood> rubie: assume dictionary has no duplicates
<havenwood> rubie: your dictionary has duplicates
<havenwood> rubie: "substrings (your dictionary)"
riceandbeans has quit [Quit: leaving]
jimbach has quit [Remote host closed the connection]
agjacome has joined #ruby
cleopatra has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
jimms has quit [Remote host closed the connection]
riceandbeans has joined #ruby
mikepack has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 244 seconds]
Ulrike_Rayne has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
maletor_ has joined #ruby
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gtrak has quit [Ping timeout: 260 seconds]
ringaring has quit [Ping timeout: 265 seconds]
<havenwood> rubie: just for something else to consider: https://gist.github.com/havenwood/341877b6f4a7a300233c
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<rubie> thanks
virtualize has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
jdj_dk has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 250 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
it0a has quit [Quit: WeeChat 1.0.1]
arup_r has joined #ruby
<rubie> havenwood: i figured it out
<havenwood> rubie: nice
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<rubie> it was counting we as being welcome
<havenwood> rubie: you get that it's supposed to be how many times each item in the Array is repeated in the String?
willywos has joined #ruby
<havenwood> rubie: And case insensitivity should presumably mean lower and uppercase is ignored in both the String and Array of sub-Strings.
Techguy305 has quit [Ping timeout: 260 seconds]
<rubie> ya im not interested so much in getting the correct answer as i am understanding how each part of the program works and why
Scotteh_ has joined #ruby
<havenwood> rubie: ahh, assumed you wanted the method to match its comments' behavior
<rubie> ya i should have made that more clear
<havenwood> rubie: documentation that lies is worse than no documentation
<rubie> lol
<rubie> very true
<havenwood> sea of grey stuff
tkuchiki has quit [Read error: Connection reset by peer]
Scotteh has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
moritzs has joined #ruby
timonv_ has joined #ruby
jimmyhoughjr has joined #ruby
nateberkopec has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
SpikeMaster has joined #ruby
klaut has quit [Remote host closed the connection]
hamakn has joined #ruby
<SpikeMaster> what is most popular for ruby? Emacs since mattz uses it? Or Vim?
Synthbread has joined #ruby
Synthead has quit [Disconnected by services]
<shevy> neither
Synthbread is now known as Synthead
<shevy> sublime, gedit, geany and I guess textmate
<benzrf> i use vim!!!!
<benzrf> but i use haskell more than ruby
<shevy> yeah but you are young and have much to learn
<sevenseacat> people use different things. there's probably no 'most popular'
Synthbread has joined #ruby
<shevy> are cats most popular?
<shevy> my idol was Garfield
<rpag> was?!
mercwithamouth has quit [Ping timeout: 250 seconds]
mengu has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
<maplatoj35> epitron: does testing with rspec bypasss private methods?
<maplatoj35> how to test for those
jdj_dk has joined #ruby
<sevenseacat> you dont test private methods
<sevenseacat> they are private
<shevy> rpag well he eats lasagne bolognese I guess; I eat vegetable lasagne :(
moritzs has quit [Remote host closed the connection]
<rpag> i've tested them before, i usually do something like: subject { method(:name) } it { expect(subject.call).to eq(1) }
mercwithamouth has joined #ruby
<sevenseacat> that defeats the purpose of them being private
<rpag> why?
<sevenseacat> if they're private, the outside world does not know about their presence
<sevenseacat> they can be moved, changed, rearranged, deleted, have their interface change, and the outside world does not give a shit
<sevenseacat> but now your tests do
<sevenseacat> which is wrong
<shevy> perhaps he wants to do secret private testing
mengu has quit [Ping timeout: 265 seconds]
<maplatoj35> sevenseacat: then it defeats the purpose of testing..we don't test for the outside world
<havenwood> but are you testing your tests?
<banisterfiend> sevenseacat do u mock private methods though?
<sevenseacat> banisterfiend: no.
<banisterfiend> stub?
<SpikeMaster> testing the internals should be OK. Like testing the car engines defribulator is OK even if that is not exposed throught the drivers interface.
<sevenseacat> private methods do not exist outside the class.
<banisterfiend> i meant stub, sorry
<sevenseacat> no.
<banisterfiend> you dont mock methods, you mock objects :)
Synthead has quit [Ping timeout: 256 seconds]
<havenwood> i mock mocking
<rpag> it can get pretty insane if you do too much of it
<havenwood> mime style
<shevy> I mock my tests and test my mocks
Synthead has joined #ruby
<shevy> sometimes my tests mock me back :(
jimms has joined #ruby
<SpikeMaster> hey you guys. What is the most modern hip hopping language now? ruby was cool back in 2013. IOt
<SpikeMaster> It's almost 2015
<rpag> swift, go
<havenwood> SpikeMaster: Now it's Ruby.
<rpag> probably go
<havenwood> rpag: no, go is for old people now
<havenwood> rpag: too late
<rpag> havenwood, ruby is the new perl5, dont cha know
<SpikeMaster> can't be go cuz go was made by a big company. I need something cooler and more grass roots.
r0bby_ has joined #ruby
<sevenseacat> lol
<rkazak> Scala....
<rpag> swift? apple is as hip as it gets
<havenwood> SpikeMaster: Nim.
<havenwood> rkazak: ew
<havenwood> rkazak: Clojure!
<rkazak> :)
<SpikeMaster> ok. i'm gonna go learn nim.
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<oniMaker> What's the secret of nim?
<shevy> that you must compile it
<rpag> close interop with C
<banisterfiend> hehe
<banisterfiend> fowl would be happy
<havenwood> banisterfiend: was thinking of fowl ;)
<banisterfiend> fowl is the shizzlenit
<banisterfiend> really awesome programmer, he just doesn't know it ;)
<banisterfiend> i'd love to work with fowlie
<banisterfiend> i bet he's a k00 colleague
<banisterfiend> rpag u me and fowlie should start a company \o/
<rpag> done
<banisterfiend> code entirely in nimrod
<havenwood> banisterfiend: don't leave me out!
<banisterfiend> code from the future
* havenwood rabble rabble
<banisterfiend> havenwood sure thing;)
bluOxigen has joined #ruby
<machty> is there a version of Socket#read_nonblock that doesn't accept a max length but just returns everything that's available?
<riceandbeans> I already have a business idea
<machty> i'm wondering why there's an argless verison of #read that just reads til EOF but for read_nonblock you still need to provide a len
bjhaid has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<bjhaid> any reason for this behavior: `"10,000".to_f #=> 10.0`
sepp2k has quit [Read error: Connection reset by peer]
<sevenseacat> whats your locale set as?
<shevy> >> "10,000".to_f
<eval-in__> shevy => 10.0 (https://eval.in/210350)
<banisterfiend> how do i get 'info libc' working on osx? eam
sinequanon has joined #ruby
cocoabean has joined #ruby
<havenwood> >> "10_000".to_f
<eval-in__> havenwood => 10000.0 (https://eval.in/210351)
<havenwood> bjhaid: ^
<bjhaid> havenwood: that is not a comma
<bjhaid> it is an underscore
<bjhaid> I mean with the ","
krz has joined #ruby
<havenwood> bjhaid: what, are you a human?
<bjhaid> havenwood: I don't get you
<havenwood> bjhaid: i jest, Ruby just doesn't use commas like humans to delimit here it uses underscores
<benzrf> bjhaid: some countries swap , and . in numbers
<havenwood> bjhaid: some humans*
doug1 has joined #ruby
<bjhaid> benzrf: out of curiosity can you give me an example country, I am not doubting you here
cocoabean has quit [Quit: WeeChat 0.4.2]
sinequanon has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<benzrf> i think many european ones do
<banisterfiend> benzrf problem with focussing entirely on haskell is that it can make you pretty unemployable
zorak8 has joined #ruby
<bjhaid> benzrf: like which one
<banisterfiend> though im sure you learan a bunch of prettiy interesting stuff
jimmyhoughjr has joined #ruby
<benzrf> bjhaid: idk off the top of my head -.-
<banisterfiend> bu it shoud be background language htat informs and deepen you rproramming in something moremainstreain
nowthatsamatt has quit [Quit: nowthatsamatt]
<banisterfiend> rahter than your full focus om
Roa has quit [Ping timeout: 265 seconds]
mobiGeek5 has joined #ruby
<mobiGeek5> morning folks!
nonks has quit [Ping timeout: 246 seconds]
<mobiGeek5> I'm trying to use mechanize to scrape a rails website. But whenever I "login" I get back "400 Bad Request". Not sure where to look next?
mary5030 has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
r0bby_ is now known as robbyoconnor
<benzrf> >morninng
siwica has quit [Ping timeout: 260 seconds]
echooo has quit [Ping timeout: 265 seconds]
echooo has joined #ruby
dannyanderson has joined #ruby
sinequanon has joined #ruby
<mobiGeek5> it seems that the authenticity_token is being submitted correctly.
RyanV has joined #ruby
havenwood has left #ruby [#ruby]
<mobiGeek5> When I check out the rails log and compare the mechanize output to the browser output, they seem identical (same SQL, etc) except for where mechanize all of a sudden returns 400 but the browser continues on to 200.
<RyanV> the following regexp is invalid at the look-behind, specifically while trying to match 0 or more spaces. how can i make this work? /(?<=Tagged:\s*)(.+)(?=\n)/
Roa has joined #ruby
_ixti_ has quit [Ping timeout: 260 seconds]
twistedpixels is now known as zz_twistedpixels
mary5030 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
mchelen has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
bjhaid has quit [Quit: Page closed]
mchelen has joined #ruby
hmsimha has joined #ruby
robbyoconnor has quit [Ping timeout: 258 seconds]
mikepack has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
krz has quit [Ping timeout: 250 seconds]
koderok has joined #ruby
pu22l3r has quit [Remote host closed the connection]
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
willywos has joined #ruby
Sgeo is now known as BillCipher
BillCipher is now known as Sgeo
nateberkopec has quit [Quit: Leaving...]
nowthatsamatt has joined #ruby
patrick99e99 has joined #ruby
blueOxigen has joined #ruby
abuzze has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
renderful has joined #ruby
nonks has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
tyll_ has joined #ruby
jdj_dk has joined #ruby
abuzze has quit [Ping timeout: 258 seconds]
patrick99e99 has quit [Ping timeout: 250 seconds]
blueOxigen has quit [Ping timeout: 245 seconds]
renderful has quit [Ping timeout: 244 seconds]
benzrf is now known as benzrf|offline
VanillaGoat__ has joined #ruby
govg has joined #ruby
tyll has quit [Ping timeout: 265 seconds]
rshetty has joined #ruby
jackyalcine has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
VanillaGoat_ has quit [Ping timeout: 245 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
jimms has quit []
fabrice31 has joined #ruby
rahult has joined #ruby
sinequanon has quit [Remote host closed the connection]
mikepack has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
rahult_ has quit [Ping timeout: 255 seconds]
larsam has quit []
fabrice31 has quit [Ping timeout: 240 seconds]
dannyanderson has left #ruby [#ruby]
sinequanon has joined #ruby
pu22l3r has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
Synthead has joined #ruby
koderok has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 250 seconds]
banister has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
sinequanon has quit [Remote host closed the connection]
pyon has quit [Quit: stupid emacs]
krz has quit [Quit: WeeChat 1.0.1]
jenrzzz has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
krz has joined #ruby
armyriad has quit [Ping timeout: 258 seconds]
jasooon has joined #ruby
jackyalcine is now known as jalcine
armyriad has joined #ruby
skolman_ has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
doug1 has quit [Ping timeout: 255 seconds]
koderok has joined #ruby
<parabolize> Denmark uses ',' for decimal and '.' for 10^3
<maplatoj35> can i have some feedbacks please https://gist.github.com/anonymous/6c757699848631cf57f4
helpa has joined #ruby
diegoviola has quit [Remote host closed the connection]
mattblang has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<maplatoj35> epitron: ?
krz has joined #ruby
mary5030 has joined #ruby
magic__ has joined #ruby
doug1 has joined #ruby
rshetty has quit [Remote host closed the connection]
krz has quit [Client Quit]
magic_ has quit [Ping timeout: 250 seconds]
sinequanon has joined #ruby
krz has joined #ruby
gsd has joined #ruby
desktop has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has quit [Client Quit]
krz has joined #ruby
Synthead has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
nonks has joined #ruby
msmith has quit [Remote host closed the connection]
ndrei has joined #ruby
ndrei_ has joined #ruby
BTRE has joined #ruby
Synthead has joined #ruby
magic__ has quit [Quit: Leaving]
magic__ has joined #ruby
timonv_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
leothrix_ has joined #ruby
leothrix_ has quit [Client Quit]
jack_rabbit has joined #ruby
xenomorph is now known as {xenomorph}
timonv_ has quit [Ping timeout: 244 seconds]
Cache_Money has joined #ruby
{xenomorph} is now known as xenomorph
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tkuchiki has joined #ruby
mary5030 has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahult has quit [Read error: Connection reset by peer]
rahult has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
rahult has quit [Read error: Connection reset by peer]
narcan has joined #ruby
ZucchiniZe has joined #ruby
jdj_dk has joined #ruby
mattblang has quit [Read error: Connection reset by peer]
mobiGeek5 has quit []
mobiGeek5 has joined #ruby
<mobiGeek5> is there a #rubyonrails channel somewhere?
<sevenseacat> yep, and thats what its called.
charliesome has quit [Quit: zzz]
braincrash has quit [Quit: bye bye]
<mobiGeek5> hrmph, I do /j #rubyonrails and i get "Cannot join channel (+r) - you need to be identified with services (#rubyonrails)"
endash has quit [Ping timeout: 265 seconds]
endash has joined #ruby
<sevenseacat> are you identified with services?
mobiGeek5 is now known as mobiGeek
Avahey has quit [Quit: Connection closed for inactivity]
<mobiGeek> ah, somehow identify got wronged :( Thanks!
Synthead has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
koderok has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
yfeldblum has joined #ruby
arya_ching has joined #ruby
yfeldblu_ has joined #ruby
<Hijiri> hey Scotteh_
starless has quit [Quit: WeeChat 1.0.1]
<Scotteh_> Hi, Hijiri
koderok has joined #ruby
tonini has joined #ruby
keen______ has joined #ruby
yfeldbl__ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
IceDragon has quit [Quit: Space~~~]
arya_ching has quit [Ping timeout: 250 seconds]
keen_____ has quit [Ping timeout: 255 seconds]
rubie has quit [Ping timeout: 246 seconds]
rkazak has left #ruby [#ruby]
Synthead has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
yfeldbl__ has quit [Ping timeout: 258 seconds]
arup_r has quit [Quit: Leaving.]
rshetty has joined #ruby
decoponio has joined #ruby
Synthead has quit [Max SendQ exceeded]
endash has quit [Ping timeout: 265 seconds]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
vivekrai has joined #ruby
jasooon has quit [Ping timeout: 265 seconds]
jdj_dk has quit [Ping timeout: 255 seconds]
efulmer has joined #ruby
pyon has joined #ruby
Synthead has joined #ruby
havenwood has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
efulmer has quit [Read error: Connection reset by peer]
RyanV has quit [Quit: (null)]
havenwood has quit [Remote host closed the connection]
Synthead has quit [Max SendQ exceeded]
Synthead has joined #ruby
gsd has joined #ruby
Scotteh_ has quit [Ping timeout: 244 seconds]
Channel6 has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
eric_f has joined #ruby
eric_f has quit [Client Quit]
yfeldblum has joined #ruby
shortCircuit__ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
cajone has left #ruby [#ruby]
abuzze has joined #ruby
larsam has joined #ruby
msmith has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
psyprus has quit [Ping timeout: 258 seconds]
duncannz has joined #ruby
jusmyth has joined #ruby
psyprus has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
msmith has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
arya_ching has joined #ruby
jdj_dk has joined #ruby
fabrice31 has joined #ruby
patrick99e99 has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
Cache_Money has quit [Quit: Cache_Money]
doug1 has quit [Ping timeout: 245 seconds]
Synthead has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
Synthead has quit [Max SendQ exceeded]
patrick99e99 has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
noop has joined #ruby
tlarevo has joined #ruby
arya_ching has quit [Ping timeout: 256 seconds]
boombadaroomba has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
tonini has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
arya_ching has joined #ruby
efulmer has joined #ruby
User458764 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
boombadaroomba has quit [Ping timeout: 272 seconds]
sumark has quit [Quit: Lost terminal]
duncannz has quit [Remote host closed the connection]
sinequanon has quit [Remote host closed the connection]
sumark has joined #ruby
arya_ching has quit [Ping timeout: 265 seconds]
duncannz has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
arya_ching has joined #ruby
timonv_ has joined #ruby
Deele has joined #ruby
sinequanon has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jasooon has joined #ruby
User4587_ has joined #ruby
jenrzzz has joined #ruby
arya_ching has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
User458764 has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Morkel has joined #ruby
duncannz has quit [Remote host closed the connection]
doug1 has joined #ruby
sinequanon has quit [Remote host closed the connection]
duncannz has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
arya_ching has joined #ruby
robbyoconnor has joined #ruby
duncannz has quit [Remote host closed the connection]
sinequanon has joined #ruby
robbyoconnor has quit [Client Quit]
doug1 has quit [Ping timeout: 265 seconds]
duncannz has joined #ruby
Joufflu_ has joined #ruby
User458764 has joined #ruby
User4587_ has quit [Ping timeout: 244 seconds]
jusmyth has left #ruby [#ruby]
oleo has quit [Quit: Verlassend]
Joufflu has quit [Ping timeout: 244 seconds]
duncannz has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 258 seconds]
mikepack has joined #ruby
psyprus has joined #ruby
sinequanon has quit [Remote host closed the connection]
User4587_ has joined #ruby
kristofferR has joined #ruby
kristofferR has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 265 seconds]
jdj_dk has joined #ruby
mistermocha has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 244 seconds]
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
mistermocha has joined #ruby
msmith has joined #ruby
Techguy305 has joined #ruby
dawkirst has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
msmith has quit [Ping timeout: 240 seconds]
arup_r has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
apxm has joined #ruby
User458764 has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
mobiGeek has quit [Quit: Nettalk6 - www.ntalk.de]
User4587_ has quit [Ping timeout: 258 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
anarang has joined #ruby
maplatoj35 has quit [Quit: Page closed]
Guest13245 is now known as ixx
nrsk has joined #ruby
endash has joined #ruby
Jello_Raptor has quit [Ping timeout: 265 seconds]
User4587_ has joined #ruby
ARCADIVS has joined #ruby
rshetty_ has joined #ruby
User458764 has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Ping timeout: 244 seconds]
rshetty has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
arya_ching has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
rbrs has joined #ruby
SouL_ has quit [Ping timeout: 240 seconds]
echooo has quit [Read error: Connection reset by peer]
echooo has joined #ruby
njames has joined #ruby
User4587_ has quit [Ping timeout: 245 seconds]
alem0lars|away is now known as alem0lars
Techguy305 has quit [Ping timeout: 265 seconds]
arya_ching has joined #ruby
sigurding has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
Jello_Raptor has joined #ruby
efulmer has quit [Quit: leaving]
abuzze has joined #ruby
User4587_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
alem0lars is now known as alem0lars|away
alem0lars|away is now known as alem0lars
abuzze has quit [Ping timeout: 265 seconds]
Joufflu_ has quit [Read error: Connection reset by peer]
rpag has quit [Ping timeout: 245 seconds]
lampd1 has quit [Remote host closed the connection]
Macaveli has joined #ruby
tagrudev has joined #ruby
pranny has joined #ruby
pranny has left #ruby [#ruby]
fabrice31 has joined #ruby
jdj_dk has joined #ruby
starkhalo has quit [Ping timeout: 250 seconds]
skolman_ has quit [Remote host closed the connection]
msmith has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
lxsameer has quit [Quit: Leaving]
mistermocha has quit [Remote host closed the connection]
MrSamuel has joined #ruby
msmith has quit [Ping timeout: 256 seconds]
Morkel has quit [Ping timeout: 244 seconds]
dawkirst has quit [Remote host closed the connection]
Morkel has joined #ruby
kamilc__ has joined #ruby
patrick99e99 has joined #ruby
bMalum has joined #ruby
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
poppingtonic has joined #ruby
abuzze has joined #ruby
renderful has joined #ruby
<poppingtonic> Emacs users: Is there any YASnippet library for Ruby code that's easy to update?
az7ar_away is now known as az7ar
shredding has joined #ruby
lxsameer has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
shredding has quit [Client Quit]
abuzze has quit [Ping timeout: 265 seconds]
renderful has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
abuzze has joined #ruby
sinkensabe has joined #ruby
timonv_ has joined #ruby
sigurding has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
abuzze has quit [Ping timeout: 265 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
SouL_ has joined #ruby
rbrs has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
timonv_ has quit [Ping timeout: 256 seconds]
edwardly has quit [Quit: Leaving]
michael_mbp has joined #ruby
VanillaGoat has joined #ruby
edwardly has joined #ruby
muhammadn has joined #ruby
bal has joined #ruby
oo__ has quit [Remote host closed the connection]
VanillaGoat__ has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has joined #ruby
aganov has joined #ruby
rshetty_ has quit [Remote host closed the connection]
j416_ has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
andrewlio has joined #ruby
dumdedum has joined #ruby
<wasamasa> uh, yasnippet is a library
<wasamasa> what exactly are you asking for?
j416 is now known as j416__
j416_ is now known as j416
j416__ has quit [Quit: o/]
jasooon has joined #ruby
ht__th has joined #ruby
fabrice31 has joined #ruby
Xeago has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
koderok has quit [Ping timeout: 255 seconds]
gauke has joined #ruby
fr1eza has joined #ruby
danijoo_ has joined #ruby
cmxu has joined #ruby
Macaveli has joined #ruby
Xeago_ has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
doev has joined #ruby
jdj_dk has joined #ruby
Deejay has joined #ruby
Deejay is now known as Guest91117
danijoo has quit [Ping timeout: 250 seconds]
Guest91117 has quit [Client Quit]
Xeago has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
tvw has joined #ruby
j416 has quit [Quit: o/]
j416 has joined #ruby
alem0lars is now known as alem0lars|away
bigkevmcd has joined #ruby
klaut has joined #ruby
SouL_ has quit [Ping timeout: 272 seconds]
timonv_ has joined #ruby
SouL_ has joined #ruby
harax_ has joined #ruby
koderok has joined #ruby
msmith has joined #ruby
koderok has quit [Client Quit]
timonv^ has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
fr1eza has quit [Changing host]
fr1eza has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
msmith has quit [Ping timeout: 256 seconds]
nrsk has joined #ruby
tesuji has joined #ruby
arya_ching has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
valeriansaliou has joined #ruby
dawkirst has joined #ruby
theotherstupidgu has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
shredding has joined #ruby
pranny has joined #ruby
valeriansaliou has quit [Ping timeout: 260 seconds]
njames has quit [Remote host closed the connection]
njames has joined #ruby
mistermocha has joined #ruby
JohnBat26 has joined #ruby
mahyuddin has quit []
TomyWork has joined #ruby
njames has quit [Ping timeout: 244 seconds]
<shevy> dumdedum
sinkensabe has quit [Remote host closed the connection]
amundj has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
kaspergrubbe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Juanchito has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
timonv^ has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
jgt has joined #ruby
SouL_ has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
fr1eza has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SouL has joined #ruby
kaspergrubbe has joined #ruby
alex88 has joined #ruby
jdj_dk_ has joined #ruby
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
bayed has joined #ruby
michael_mbp has joined #ruby
spider-mario has joined #ruby
timonv_ has quit [Remote host closed the connection]
rshetty has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
yokel has quit [Ping timeout: 245 seconds]
<shevy> is sleep '2' also ok?
<shevy> TypeError: can't convert String into time interval
<shevy> :(
yokel has joined #ruby
xcesariox has joined #ruby
ta has quit [Ping timeout: 245 seconds]
xcesariox has quit [Client Quit]
schaerli has joined #ruby
rbrs has joined #ruby
thsig_ has joined #ruby
jasooon has joined #ruby
shredding_ has joined #ruby
shredding has quit [Ping timeout: 272 seconds]
shredding_ is now known as shredding
codecop has joined #ruby
thsig has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
xcesariox has joined #ruby
MrSamuel has joined #ruby
crazydiamond has joined #ruby
ta has joined #ruby
tlarevo_ has joined #ruby
xcesariox has quit [Client Quit]
WormDrink has joined #ruby
jasooon has quit [Ping timeout: 265 seconds]
olivier_bK has joined #ruby
rbrs has quit [Quit: Leaving]
rbrs has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
tlarevo has quit [Ping timeout: 255 seconds]
Xeago_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
terlar has joined #ruby
<theotherstupidgu> why we add the "&" in &block?
ringarin has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
CaptainHeavy has joined #ruby
<shevy> theotherstupidgu I think the ruby parser requires syntactic information
<apeiros> theotherstupidgu: to tell ruby to treat the argument as a block
<apeiros> or in case of method definition, to tell ruby that this argument receives a passed block
Hobogrammer has quit [Ping timeout: 272 seconds]
jdj_dk_ has quit [Ping timeout: 245 seconds]
M3M0CooL has joined #ruby
hellangel7 has joined #ruby
abuzze has joined #ruby
ephemerian has joined #ruby
msmith has joined #ruby
Xeago has joined #ruby
asmodlol has joined #ruby
Xeago_ has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
msmith has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
sinkensabe has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
kyb3r_ has quit [Ping timeout: 255 seconds]
AFKGeek has joined #ruby
marr has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 265 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cya]
njames has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
sigurding has quit [Quit: sigurding]
roolo has joined #ruby
pranny has quit [Quit: Leaving.]
njames has quit [Ping timeout: 265 seconds]
pranny has joined #ruby
poppingtonic has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Remote host closed the connection]
MrSamuel has quit [Quit: MrSamuel]
jdj_dk_ has joined #ruby
sigurding has joined #ruby
boombadaroomba has joined #ruby
<theotherstupidgu> shevy, apeiros thanks
pranny has quit [Client Quit]
pranny has joined #ruby
tokik has quit [Read error: Connection reset by peer]
j416 has quit [Quit: o/]
j416 has joined #ruby
jhass has quit [Ping timeout: 245 seconds]
boombadaroomba has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
AlSquire has joined #ruby
AlSquire has quit [Client Quit]
Hanmac has quit [Ping timeout: 244 seconds]
tokik has joined #ruby
einarj has joined #ruby
jhass has joined #ruby
joonty has joined #ruby
elaptics`away is now known as elaptics
pranny has quit [Read error: Connection reset by peer]
pranny1 has joined #ruby
hanmac1 has joined #ruby
ringaring has joined #ruby
ringarin has quit [Ping timeout: 255 seconds]
Xeago_ has quit [Remote host closed the connection]
nfk has joined #ruby
existensil has joined #ruby
jdj_dk_ has quit [Ping timeout: 240 seconds]
Darryl_ has quit [Quit: Connection closed for inactivity]
wpp has joined #ruby
godd2 has quit [Ping timeout: 250 seconds]
maasha has joined #ruby
jasooon has joined #ruby
RyanV has joined #ruby
<maasha> Anyone good with GNUplot? I find that the ruby_gnuplot gem is as difficult to use as using gnuplot. I was wondering if there was a better way of calling/modeling gnuplot using ruby?
Hanmac has joined #ruby
<maasha> GNUplot docs are scary.
jusmyth1 has joined #ruby
<maasha> The problem is clearly how to deal with plotting of multiple datasets.
jasooon has quit [Ping timeout: 258 seconds]
keen_______ has joined #ruby
keen______ has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
<maasha> So would something like this be doable: https://gist.github.com/maasha/3b5525eeedeca773b6b7 ?
Xeago has quit [Remote host closed the connection]
danjordan has joined #ruby
Xeago has joined #ruby
TPBallbag has joined #ruby
danjordan has left #ruby [#ruby]
danjordan has joined #ruby
danjordan has left #ruby [#ruby]
danjordan has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
ayaz has joined #ruby
blz37 has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
valeriansaliou has joined #ruby
Fire-Dragon-DoL has joined #ruby
danjordan has left #ruby [#ruby]
danjordan has joined #ruby
msmith has joined #ruby
blz37 has joined #ruby
valeriansaliou has quit [Ping timeout: 255 seconds]
craigp has joined #ruby
sk87 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
echooo1 has joined #ruby
desktop has joined #ruby
bMalum has quit [Quit: bMalum]
msmith has quit [Ping timeout: 244 seconds]
gawaine has joined #ruby
echooo has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
timonv_ has joined #ruby
rbrs has quit [Quit: Leaving]
jdj_dk_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
arya_ching has joined #ruby
Xeago has joined #ruby
njames has joined #ruby
j_mcnally has joined #ruby
Xeago_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
harax_ has quit [Ping timeout: 256 seconds]
RyanV has quit [Quit: (null)]
timonv_ has joined #ruby
rbrs has joined #ruby
njames has quit [Ping timeout: 272 seconds]
rbrs has quit [Client Quit]
AlSquire has joined #ruby
harax_ has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
j_mcnally has quit [Ping timeout: 244 seconds]
<cHarNe2> hi, i get this on one machine and on anoter i get the "proper" rack-exeption page, what might be wrong? http://i.imgur.com/TXGQr7L.png
timonv_ has quit [Remote host closed the connection]
livathinos has joined #ruby
PierreRambaud has joined #ruby
klaut has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 260 seconds]
nonks has joined #ruby
<arup_r> Can I skip a iteration while using ::foreach http://ruby-doc.org/stdlib-2.1.2/libdoc/csv/rdoc/CSV.html#class-CSV-label-A+Line+at+a+Time
jusmyth1 has quit [Read error: Connection reset by peer]
<arup_r> ?
razieliyo has joined #ruby
DrCode_ has joined #ruby
jusmyth has joined #ruby
AlSquire has joined #ruby
DrCode has quit [Ping timeout: 246 seconds]
<canton7> in the same as any other block-based iteration?
<canton7> *same way
ringarin has joined #ruby
ringaring has quit [Ping timeout: 256 seconds]
rylev has joined #ruby
<arup_r> canton7: you meant *next* ?
<canton7> yup
<arup_r> Then why mine is not working ?
<canton7> dunno
<arup_r> Let me re check
<canton7> why not pastie some code which replicates your issue
pu22l3r has joined #ruby
Takle has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
jusmyth1 has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
jdj_dk_ has quit [Ping timeout: 265 seconds]
jusmyth has quit [Ping timeout: 265 seconds]
unshadow has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
<unshadow> What is the right way to close the current thread i'm running at ? doing Thread.current.join yeilds "Target thread must not be current thread"
<canton7> define "close the current thread"
jusmyth has joined #ruby
jusmyth1 has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
ldnunes has joined #ruby
<zenspider> unshadow: spawner generally does the join
<unshadow> lets say i have a loop that spawns a new thread for each event, in the new thread I have a different loop which checks for specific parameters, if the parameters are blabla i'll do something , else i'll do something else, lets say that in the "if" after i did my magic I want to close the current thread so it wont execute unneeded code, is there a thread.stop or thred.exit ?
<canton7> just end whatever operation you're doing in the thread
lolmaus has quit [Quit: Konversation terminated!]
Takle has joined #ruby
lolmaus has joined #ruby
<canton7> so if the thread contains a loop at its root, break out of the loop
bal has quit [Quit: bal]
<zenspider> unshadow: thread's loop should break, thread will stop running at the end of its block
<unshadow> will it be ok to write exit ? or this will stop the whole main loop ?
<zenspider> spawning loop should be adding threads to some collection and ensuring they're all joined before the program exits
sigurding has quit [Quit: sigurding]
<canton7> just break out of the loop
<zenspider> while true do break end
Macaveli has joined #ruby
<unshadow> ok
<unshadow> ill just wrap it in while true
<zenspider> in other words, have the thread "stop itself" by stopping doing stuff
<zenspider> unshadow: wrap what up?
<soahccc> What is wrong with Thread.current.kill ?
<zenspider> let me back up...
<unshadow> Thread.current.kill ? will that work ?
<zenspider> unshadow: what are you actually trying to do?
jasooon has joined #ruby
joonty1 has joined #ruby
<zenspider> don't use the word "thread"
timonv_ has joined #ruby
<canton7> unshadow, why are you trying so hard to do things in a very different way to the norm?
thsig_ has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
<zenspider> canton7: how does that question help _anyone_?
joonty1 has quit [Client Quit]
thsig has joined #ruby
joonty1 has joined #ruby
<canton7> you never know, he might 1) tell us why it doesn't want to simply stop doing things, or 2) think about what he's trying to do *shrug*
rbrs has joined #ruby
<soahccc> I wrote a threaded application which manages threads in an array and regulary scrubs dead threads in case they died which will happen if you kill it or it just "exited"
M3M0CooL has quit []
sinkensabe has quit [Remote host closed the connection]
<unshadow> zenspider: my issue is this, in the begging of the thread I have a small check, if the check fails I want to kill the execution of the remaining code, the thread is not in a loop so if i want to use break i'll need to redisgin my whole thread
joonty has quit [Ping timeout: 244 seconds]
<zenspider> unshadow: I asked what you were actually trying to make your code do, and to not use the word thread.
<soahccc> unshadow: You can kill it like I said but I sounds to me that you want producer/consumer instead of spawning a new thread for each event... https://github.com/2called-chaos/mcl/blob/master/vendor/handlers/_buildin/snap2date.rb#L35
<zenspider> unshadow: break works for any block
<canton7> Thread.new{ break if check; stuff; }
jasooon has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 256 seconds]
<soahccc> you will get trouble though if you are in any other block (each or something)
<unshadow> sorry, its quite a long code so it is kind of hard to explain, give me a sec and ill parse a better question :)
TPBallbag has joined #ruby
<zenspider> Nevermind. I've lost interest. If I wanted to pull teeth I would have become a dentist.
<txdv> you can become a hooligan
<zenspider> do hooligans pull teeth?!?
<zenspider> I guess it's prolly cheaper to start as a hooligan
<deepy> If I were a hooligan, I would pull your teeth and sell them to a dentist
<zenspider> but I still don't want to pull teeth, so that's out. Not into sports either.
<zenspider> deepy: good luck. last person who pulled my teeth had to put their knee in my chest to get leverage
rbrs has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<deepy> My father is a carpenter, I know how convincing a hammer can be
sevenseacat has joined #ruby
<apeiros> zenspider: sounds like you should change your dentist :D
rbrs has joined #ruby
<zenspider> that's certainly a better choice. he was using (essentially) pliers
<zenspider> apeiros: I gots roots
<zenspider> deep roots
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> "give me a sec" == >5 minutes... for a simple question. right. what a waste of time.
<zenspider> I'm going to bed
kirun has joined #ruby
eka has joined #ruby
jusmyth has left #ruby [#ruby]
arup_r has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
kartouch is now known as caugello|brb
caugello|brb is now known as kartouch
SouL has joined #ruby
timonv_ has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: ARCADIVS]
<unshadow> zenspider: dude, give me some credit, i'm makeing a gist
jdj_dk_ has joined #ruby
kith_ is now known as kith
msmith has joined #ruby
<txdv> is there a library for parsing something like "Everyday at 1:00pm" ?
benzrf|offline is now known as benzrf
<txdv> chronic
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
benzrf is now known as benzrf|offline
<unshadow> zenspider:
<unshadow> here it is :)
msmith has quit [Ping timeout: 255 seconds]
<canton7> unshadow, line 27: 'return'
<unshadow> ok, that will stop all ohter executions ?
rylev has quit [Ping timeout: 265 seconds]
<canton7> surely you know what return does ;)
<soahccc> Does it make sense to #join !#alive? threads?
<unshadow> ;) never thought it will be that simple, thanks !
<zenspider> soahccc: there's no problem with it, it's a standard idiom
patrick99e99 has joined #ruby
<soahccc> Because I just did a threads.select!(&:alive?)
<zenspider> threads.map(&:join)
<zenspider> the ones you toss are done and they'll get GC'd
<zenspider> assuming there's no other references to them
joonty1 is now known as joonty
weemsledeux has joined #ruby
sigurding has joined #ruby
jusmyth1 has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
jusmyth1 has left #ruby [#ruby]
sinkensabe has joined #ruby
Brando753 has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
<cHarNe2> hi, i get this on one machine and on anoter i get the "proper/regular" rack-exeption page, what might be wrong? http://i.imgur.com/TXGQr7L.png
<zenspider> an image??
<zenspider> did you look at the error message?
njames has joined #ruby
<cHarNe2> zenspider: yes, thats an image
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
njames has quit [Ping timeout: 265 seconds]
thsig_ has joined #ruby
nonks has joined #ruby
robustus is now known as robustus|Off
jdj_dk_ has quit [Ping timeout: 265 seconds]
thsig has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
mengu has joined #ruby
muhammadn has quit [Remote host closed the connection]
fsapo has joined #ruby
pranny1 has quit [Quit: Leaving.]
phutchins has joined #ruby
bal has joined #ruby
dANO_ has joined #ruby
sigurding has quit [Quit: sigurding]
fabrice31 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Takle has quit [Remote host closed the connection]
Guest8130 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
craigp has quit [Remote host closed the connection]
Takle has joined #ruby
Lewix has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
nateberkopec has joined #ruby
Darryl_ has joined #ruby
cina has joined #ruby
<Fire-Dragon-DoL> design question for today: http://stackoverflow.com/questions/26586674/how-to-drop-dependency-on-class-method any experienced guy would like to help me with it? I definitely want to upgrade myself :P
roolo has quit [Ping timeout: 244 seconds]
jasooon has joined #ruby
reinaldob has joined #ruby
SouL has quit [Ping timeout: 244 seconds]
tier has joined #ruby
craigp has joined #ruby
timonv_ has joined #ruby
valeriansaliou has joined #ruby
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
jxf has quit [Ping timeout: 245 seconds]
craigp has quit [Remote host closed the connection]
Xeago has joined #ruby
Lewix has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
klaut has joined #ruby
craigp has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
SouL has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
jdj_dk_ has joined #ruby
_ixti_ has joined #ruby
sepp2k has joined #ruby
hmsimha has quit [Ping timeout: 245 seconds]
drawingthesun has joined #ruby
timonv_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
shazaum has joined #ruby
Takle has quit [Remote host closed the connection]
Devr3d has joined #ruby
msmith has joined #ruby
frozon has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
frozon has quit [Client Quit]
frozon has joined #ruby
msmith has quit [Ping timeout: 265 seconds]
ta has quit [Quit: Leaving...]
TPBallbag has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 265 seconds]
rshetty_ has joined #ruby
davidhq has joined #ruby
ta has joined #ruby
pagios has joined #ruby
<pagios> i am getting a syntax error when executing `vim -s <(echo '/wd'; echo ':s/^/#/'; echo :wq) /blah.txt`
<pagios> any idea?
nonks has quit [Ping timeout: 246 seconds]
rshetty has quit [Ping timeout: 260 seconds]
jdj_dk_ has quit [Read error: Connection reset by peer]
nrsk has quit [Remote host closed the connection]
rylev has joined #ruby
<apeiros> pagios: it's your shell complaining, not ruby.
jimmyhoughjr has joined #ruby
<pagios> apeiros: it works on command line
roolo has joined #ruby
njames has joined #ruby
rbrs has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
<apeiros> so probably your command line differs from the shell you invoke via ``
rylev has quit [Ping timeout: 255 seconds]
<cHarNe2> zenspider: what did you mean?
aclearman037 has joined #ruby
<pagios> apeiros: sh: 1: Syntax error: "(" unexpected
gccostabr has joined #ruby
<apeiros> as I said. your shell complains.
gtrak has joined #ruby
Spami has joined #ruby
bMalum has quit [Client Quit]
robustus|Off is now known as robustus
bluenemo has joined #ruby
njames has quit [Ping timeout: 265 seconds]
<pagios> apeiros: it is the same command i use on command line
<apeiros> you're telling me you use sh?
<pagios> yea bash apeiros
craigp has quit []
tier has quit [Remote host closed the connection]
<sevenseacat> sh != bash
desktop has quit [Ping timeout: 245 seconds]
nrsk|2 has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
TPBallbag has joined #ruby
<pagios> system("/bin/bash -c /usr/bin/vim -s not good also
rylev has joined #ruby
tier has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
<apeiros> "not good" is not good
TPBallbag has quit [Remote host closed the connection]
<tobiasvl> hmm, http://greyblake.com/blog/2013/09/21/how-to-call-bash-not-shell-from-ruby/ suggests system("bash -c #{command}") should work
mengu has quit [Remote host closed the connection]
arya_ching_ has joined #ruby
govg has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
<pagios> tobiasvl: doesnt work
arya_ching_ has quit [Client Quit]
<apeiros> well, I ain't got patience to help people who think "is not good" and "doesn't work" is a useful problem description.
* apeiros off to more useful work.
arya_ching has quit [Ping timeout: 272 seconds]
kil0byte has joined #ruby
<pagios> http://pastebin.com/GsxkErrC apeiros here is the code
<apeiros> just throwing code is no problem description either. and too late anyway.
rbrs has joined #ruby
<pagios> i already told you about my problem with that error code related to bash
<pagios> what would you like me to do? i dont get it
<tobiasvl> you didn't say what error you got with the latest code, using bash explicitly
<pagios> same error reported http://pastebin.com/GsxkErrC
<pagios> this is the rror: sh: 1: Syntax error: "(" unexpected
himsin has quit [Quit: himsin]
Scotteh has joined #ruby
spastorino has joined #ruby
benzrf|offline is now known as benzrf
Aryasam has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
rbrs has quit [Client Quit]
vt102 has joined #ruby
<tobiasvl> so the error is from sh, even though you're using bash now?
jdj_dk_ has joined #ruby
SouL has joined #ruby
<tobiasvl> you didn't escape the command like in the link I gave you though
Takle has joined #ruby
LekeFly has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
ht__th has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Lewix has quit [Remote host closed the connection]
<tobiasvl> Shellwords.escape
sigurding has joined #ruby
tuelz has joined #ruby
<tuelz> is there something built into the ruby logger where I can disable writing to file while running tests?
Aryasam has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: Leaving]
Scotteh has quit [Quit: Later, folks]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mandei has joined #ruby
rshetty_ has quit [Remote host closed the connection]
yeticry has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mandei is now known as mandee
nrsk|2 is now known as nrsk
CaptainHeavy has quit [Ping timeout: 265 seconds]
bMalum has joined #ruby
niko has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
krz has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Xeago has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rshetty has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
timonv_ has quit [Read error: Connection reset by peer]
<mandee> rebuts flophouse bumbles mower solecism Wesley tweedier preens abetters West assignation nosediving fiancé deregulate humored clunker scrawl whizzing exchequer moisturizing mace shinbone spoilsport hysteria Bushnell
<mandee> unselfishness scrub mercerized existential entertainers nannied commencing neighborly romances luscious carbohydrate attacker Bernie pita dizzily unstabler marquesses fulcrum putrescent Tanya squirmier pinks stiffened bestirring Kory
<mandee> intermissions sword legions undignified Gantry effectuate doubtless extensiveness energizers bleeders uproars sweaters misspent carryall strophe expositions brunting dissident recompiled unfetters semis paroxysms pestering husbands magnetism
<mandee> rebuke extolled clinkers Shenyang onshore townhouses operatives Descartes thralldom Chongqing zests saucepan imparting dishonored igneous outflanked abbots spitball sugars unobtainable Burch roe debonair smashes beet
<mandee> tool driveway reamers startlingly jackhammered aileron daddy crooner thirteenth charcoal skylarking beheading instils membrane twirling skillful Slovak boutique beltways ginning furnish admissibility twinkled limiest orthodoxy
<mandee> conscience Yves unearned timetables deforests Chang surprise spurting tamale badgered anticlimaxes mammal tenant mummification bilinguals Nigerians understudies horrific launderers waived hijacks poltroon ascendents zipped derivative
<mandee> incautious inboards dedication plusher edifice buzzwords misogynists fraternizing hulls gourmand noncommittal classical swabs watercolors didactics altimeters compared o'er hawed sibyl hurtling fluoridating squareness proprietresses welshed
timonv_ has joined #ruby
<mandee> boobs slurring nightsticks indelibly assist alphabeting cavil Southwest exterminate brink defoliant rejection thallium unpublished teaser healthy plutocrats transships deviate maggots madmen sanguine clove attendances Tracey
<mandee> jabber diskette coerce tipster Weizmann bassoons complementary Confucius remission magma veterans sportier loves Hancock wagon geodesics universality transnational confided dauphins detach Calvinism birdies sawed elected
<mandee> perforce aides twisting Stonehenge windward dismantle doggier backstage Arthurian familiarization whale abruptest miscalculating anorexic chloroformed afraid womanhood incinerated torques snowdrops emetics manuscript Xochipilli slaked washboard
<mandee> truth spoonerisms eliminates defaults emotionalism pallor corpulent equestrienne components coil and aromas propensity Malory reverberated complains lingo oversizing ammeter midwiving toddling bile pizzas Cato pitiless
<mandee> womenfolks marches distortion reproaching dunces Chrysler dandling irresolute numskulls cables jawbone spectacularly ugly heraldic Tricia sancta spies misruling annotation starchiest sync fiduciary gallivanting obstreperous cloistering
marienz has joined #ruby
<mandee> unchanging Bogotá debaters concerned hims seer Harper limned shrouded story sleazes cookery backgrounds Toyota Antaeus shekels packaged lithographer Tinseltown pouting cars bisections hunkering recuperation peremptorily
<mandee> Starr pitches exhaustively roadways mushier extrudes scoutmaster witless forestry outcast rookier policemen decayed succinct antagonizing roger Pentecostal blaze shadowboxed finalizing livelongs pap Confederate carpels gangrenes
<mandee> jumping concertos milestone importunates fiscal irresolutely counselled prefabricating wheresoever thriftiness cogency Barbary falseness sneaker biting startles desolate custards Bauhaus cassocks infests artless Dunlap figment naves
<mandee> Colombo headland benefactions longtime Slavs culotte abandon forgathers astounding battlefields tony cashew combining desperation variation Sara inexpressible sandalwood premenstrual Athena gearing Cognac harnessing tray activated
<mandee> singsong enlargement Janissary pretentious classmates O Hanoi feminines mulishly serous forlorn comestible roundelays foregrounded motleyer Tessa exemption steamboat nonreturnable snider vases spirit greengrocer Eastwood Gorey
<mandee> dissenter e'er interruptions mechanically watercourses patrimony Drake Berber banister ingrains nosedive retools nerviest stupidly minuting management deigned rethinks Avicenna concluding forerunners unbeaten woefullest hangdog slept
<mandee> stares swivels cures incapacitated detract instrumentality intentional insurgency devised ineffably discontentedly gore pebbled overdone tatty Cyprian Colgate flint nerdy Portland taping Pamela pedigree parliamentary Octobers
<mandee> Moore chasms domiciles Sydney flaying dividers revitalization soccer rewording regulatory depredations placement toothed dolloped berates Hoyle hesitantly readjustment undiscriminating stubby microcomputer bedded allergens designating happiness
<mandee> rares theology Alcoa outstretch procrastinated crop aloe exists slingshot profess swankiest devilishly separate hedonist Tampax shoehorning passion Popsicles sorties Chambers putsches Templar adherents perilous siphon
<mandee> handstands molten tower immorally luxuriating crocheted argots ukuleles panicking triplied outrank complex imperialists primate flyweights fluent facial scull kale ambiences contributors mastheads therapists disembowelled continua
<mandee> precept useful aureoled photography Jersey debugs equalling raspberries flickers assigned soulfulness pedestrians redevelops babble Caesars deciduous hips huge shutouts mimeographs frostbitten Afrikaners novella Wesson premiered
<mandee> Antoninus addendum anthologize croak conductors spiciness mechanized Provencals wantons Olympiads gem waken pi mysteried chiefly swatting reallocate victualed rephrase gouge blanker acclamation celibate indigo garlics
<mandee> preoccupation dialings quipping workman showcasing introverted jumbos bowel Belinda rockiness letdowns livened teat gym blacken evidences currycombed glaciers bedevil beetle earthquaking wicks slammed thwacking Dubrovnik
<mandee> hoopla Benacerraf sneezed spinster numbest kerosene dissimulating Arkansas governors undergo overbites censers unfortunates perjuring ricochetted abjures fuck intoned requiting worthwhile oversimplify transfusing curlicued gunshot livestock
Deejay has joined #ruby
<mandee> deposing earned dropped scythes Chattanooga commutes atavistic loom ump imprimatur interconnect swan lapsed magnifier veeps formless smokers vagary Ashlee veneers Huff headlocks planed circular campusing
<mandee> Welshman Sheldon repressive coach maltreatment browsing his impasses irrigating Gill Bruce affirms placements sewed speculating sureness waiter reapportioned As Hormel purblind Judson imperious fragmentary fawn
<mandee> Curacao later pencil schooling opposing impracticable infelicities innately defame orator free bankbooks beading wallpaper madden crating sagebrush surpass tromps sewage priming clergies males disconnections reversible
<mandee> crush supposed outputting snipes Aventine splotchiest Mg spindles cowpox comedy cicatrices tidbits herself intend times foulest clergywomen Vietnam orange adman xenophobic summed saga sophists Tasmanian
<mandee> dorkiest Altai valentine pleasingly visitation unoffensive mincemeat bistro mausoleums systematize poisoner shift McCoy rightists Suriname Estrada remedies shinning sexed bag mislays Dulles tracks results tridents
<mandee> litterbug reportedly Viacom crux toughing Dracula entitle windburning underneath Cameroon probationaries questionably koshering sulfurs choosiest Superfund yodelled moos catheters horoscopes industrialization bobsledded cursory Hess theorists
<mandee> peevishness reacted beeves boozers neurology Shawnee bequeathed forelock constrictors binnacle depths Herero bruised tolls Artaxerxes gratefuller Christy rebinds starred bluff toffy Felice reactivated revile tutorial
<mandee> molester restless gazettes rind overdo Jephthah shoon centrifuging avows calypsos Kellogg ovule hie cubicles nipped sportsmanlike molding profanes playoffs wasted fiftieth trackers fissures unhinging ricing
<mandee> shriller groupers implicate ganging sparsest nuzzled larch institutionalize solidifies decentralizing waylaid tameable subverts resolutes invasive tartars ministration neutralized linings peseta scored Aristophanes Elanor Ravel Beijing
<mandee> maturities rueful differentiating contentedly unearths Democrat experts magnet insatiably extremely blurriest bankrolls Gopher chaplets dryads looked plighted dells Gd irony blaspheming rowing obstetrical text expedients
<mandee> creeper Simenon welted communicates Rufus interned caressed tensors deposit probing parthenogenesis wipe brawniness snoopiest localling internationalized unsightliness toffees sniping clinked canapés bravely stalagmites Ashmolean agglutinating
<mandee> oceangoing rationality northernmost manors mizzenmast Utrecht cattiest Melisa subjugates star teens Eric doohickey pursuer skiting rumpuses misstepping farmland punches Amazon idiomatic certainty ubiquity reagents efface
<mandee> Candice castle exerting incurables quahogs interviewee defused datelining demographer wiled medicals schoolwork Jivaro coarser travesties Medea Norberto saved crassest fountainhead indecenter Ramanujan septa franchising observing
Deejay is now known as Guest58065
<mandee> defeated crawfish measured paintwork rationalization Greece ascetics toothier nimbi venerable grumpy hammerhead Decalogue throttle cosmetic unreconstructed replacements despair Lynda kielbasa mercantile able unidentifiable imperturbable spanning
mike32 has joined #ruby
<mandee> foursome breastbones flocking tautness pew duets zing lurk Valenzuela cowslip admirers humidors moan greasiest exorcizes Biscay gunmen drop innings rates shoulder validations insecurity Britten Northrop
<mandee> Greer firing corolla misquotations binders tints bedrolls Abbas theologian relabelled amorously distilling pregnant rattiest polling paramedicals launched sleeked inattentive velds snug cowling pinprick placid Nazism
<mandee> routed irregardless antipersonnel scattering girlfriends specifics quizzed foreshorten if affronting Finn disses pushiness causation manhunts deepens medicinals Bellatrix Tomas maze helpfulness substantiating taciturnity marginals cacheting
mandee was kicked from #ruby by apeiros [mandee]
mandee has joined #ruby
thsig_ has quit [Remote host closed the connection]
mandee was banned on #ruby by apeiros [mandee!*@*]
mandee was kicked from #ruby by apeiros [mandee]
<txdv> Colgate
<apeiros> the fuck?
jimbach has joined #ruby
<txdv> probably pasted by mistake
<txdv> :D
rpag has joined #ruby
<apeiros> na, seems more like some idiot kiddo's bot
<ddv> lol
max96at|off is now known as max96at
<crome> haha
livingstn has joined #ruby
Guest58065 has quit [Client Quit]
benzrf is now known as benzrf|offline
TPBallbag has joined #ruby
<mike32> does sinatra use for big sites?
<pagios> for some reason this works from ruby: cronCommand = "/usr/bin/vim -s <(echo '/wvdial'; echo ':s/^/#/'; echo :wq) /var/spool/cron/crontabs/root" but this does not work: cronCommand = "/usr/bin/vim -s <(echo '/wvdial'; echo ':s/^.\{1}//'; echo :wq) /var/spool/cron/crontabs/root"
cleopatra has quit [Ping timeout: 245 seconds]
GreatSUN has joined #ruby
jdj_dk_ has quit [Read error: Connection reset by peer]
<GreatSUN> rehi
danjordan has quit [Quit: danjordan]
mengu has joined #ruby
thsig has joined #ruby
gaussblurinc1 has joined #ruby
<gaussblurinc1> hi!
<GreatSUN> I have a problem at the moment with some subthreading :-(
<gaussblurinc1> does anybody use guard-rubocop or guard-reek?
<rpag> mike32, yup, it can
danjordan has joined #ruby
nowthatsamatt has joined #ruby
<GreatSUN> I am defining a function outside of the thread, creating the new subthread which is calling the function somewhere
mengu has quit [Remote host closed the connection]
<GreatSUN> afterwards waiting for the thread to finish
kwd has left #ruby ["Textual IRC Client: www.textualapp.com"]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<GreatSUN> the funtions first line is creating output via puts
<mike32> rpag, if i have alot controller method , how can i organaze in sinatra?
sk87 has joined #ruby
<GreatSUN> but this output is never seen, as well as the subthread seams not to be ending
nowthatsamatt has quit [Client Quit]
<GreatSUN> any ideas on that?
msmith has joined #ruby
<pagios> tobiasvl: any idea?
jasooon has joined #ruby
<tobiasvl> pagios: nope
<rpag> mike32, by making smaller controllers? you can create "controllers" in sinatra by subclassing Sinatra::Base, it ends up as a rack map you can mount to a path
<rpag> rack app*
banister has quit [Ping timeout: 258 seconds]
weemsledeux has joined #ruby
TPBallbag has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
msmith has quit [Ping timeout: 244 seconds]
<rpag> mike32, it takes more effort though, you might want to check out padrino as well
patrick99e99 has joined #ruby
desktop has joined #ruby
renderful has joined #ruby
banister has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
<unshadow> while using sslsocket.pending, sometimes I see that though the number is 0, there is more information waiting on the socket, why is that ?
himsin has joined #ruby
Squarepy has joined #ruby
[[vedic]] has joined #ruby
<GreatSUN> lol
<GreatSUN> just found the problem...
patrick99e99 has quit [Ping timeout: 255 seconds]
dblessing has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
<GreatSUN> no error message, but using non existent variable :D
renderful has quit [Ping timeout: 255 seconds]
<apeiros> GreatSUN: Thread.abort_on_exception = true
<apeiros> otherwise, threads die silently on exception
<apeiros> IMO that should be the default and should be possible to set it per thread :-/
<rpag> yeah, it'd be useful if you could pass an option like that to Thread.new
pothibo has joined #ruby
danjordan has quit [Quit: danjordan]
himsin has quit [Ping timeout: 240 seconds]
taptapdan has quit [Quit: taptapdan]
<apeiros> it'd also be nice to be able to spawn a stopped thread
Timgauthier has joined #ruby
<apeiros> right now that's unnecessarily complex
njames has joined #ruby
<rpag> not sure what you mean by 'spawn a stopped thread' ?
danjordan has joined #ruby
<apeiros> essentially what `Thread.new do sleep; …code… end` does, but without the race condition this code introduces.
<rpag> ahh
<apeiros> right now my solution is (iirc) a mutex and a condition variable. quite expensive compared to what native ruby could do.
<GreatSUN> apeiros: you are right :-)
<GreatSUN> but finally I found the issue :-)
<apeiros> GreatSUN: that's great. I'd recommend you still set that option. will help you with future problems.
ghr has joined #ruby
LekeFly has quit [Read error: Connection reset by peer]
Deejay_ has joined #ruby
Axy has quit [Read error: Connection reset by peer]
LekeFly has joined #ruby
joonty1 has joined #ruby
Zettam has joined #ruby
njames has quit [Ping timeout: 265 seconds]
Takle has quit [Read error: Connection reset by peer]
TPBallbag has joined #ruby
alex88_ has joined #ruby
doev has quit [Ping timeout: 244 seconds]
robustus is now known as robustus|Off
Takle has joined #ruby
TPBallbag has quit [Remote host closed the connection]
<unshadow> How would you write while either a=1 or b=1 do something ?
toretore has joined #ruby
unclouded has quit [Ping timeout: 265 seconds]
<apeiros> unshadow: you mean ==?
boombadaroomba has joined #ruby
<unshadow> yeha sorry
<rpag> almost like that, "while a==1 or b==2; something(); end"
<apeiros> while a == 1 || b == 1; …do something…; end
alex88 has quit [Ping timeout: 265 seconds]
<unshadow> || isnt for while both ?
bmurt has joined #ruby
joonty has quit [Ping timeout: 265 seconds]
Deejay_ has quit [Client Quit]
<rpag> thats &&/and
<apeiros> || is logical or
<apeiros> && is logical and
<apeiros> `||` and `or` differ in precedence only. but precedence of `or` makes it usually unsuitable.
<apeiros> (same for && vs. and)
<toretore> only idiots use `or`
<toretore> and `and`
Xeago has joined #ruby
<apeiros> hm, I beg to differ. but I don't use it because I know it to be a cause of confusion.
<toretore> "oh look, my expression looks like a sentence in english"
nowthatsamatt has joined #ruby
<unshadow> ok thanks
<rpag> it does read better
hanmac1 has quit [Read error: Connection reset by peer]
<apeiros> I'd prefer if ruby didn't have both &&/|| and and/or
<toretore> it reads like you're an idiot!!!!!11
_ixti_ has quit [Ping timeout: 265 seconds]
<canton7> they had to copy *some* bits of perl :P
jxf has joined #ruby
<apeiros> canton7: most bits they copied they'd better not have copied.
<canton7> not disagreeing with that :)
boombadaroomba has quit [Ping timeout: 244 seconds]
practition3r has joined #ruby
<rpag> luckily it didnt borrow too much syntax-wise :)
jdj_dk_ has joined #ruby
<canton7> 'or' makes sense when used with 'die' or 'exit' - which rubyists rarely do :P
Takle has quit [Remote host closed the connection]
Macaveli has joined #ruby
hanmac1 has joined #ruby
<GreatSUN> apeiros: surely, but I forgot it this time
<toretore> try or die
arya_ching has joined #ruby
<apeiros> I found `do stuff or die` a bad idiom in perl already. but then again, perl was my second language and I wasn't a particularly good coder back then.
TPBallbag has joined #ruby
<rpag> what does "die" in perl actually do?
danjordan has quit [Quit: danjordan]
<canton7> exit with an error, I think
<canton7> same as PHP
browndawg has joined #ruby
<txdv> "die" is never good if you want to have a reentrant library
<txdv> however if you have just a perl script, then it is ok
Takle has joined #ruby
govg has joined #ruby
<apeiros> o0
SouL has quit [Ping timeout: 260 seconds]
valeriansaliou has joined #ruby
tlarevo_ has quit [Ping timeout: 245 seconds]
gtrak has quit [Ping timeout: 250 seconds]
<practition3r> Hello! I need help in my mini project. So I'm trying to bring the internet using SMS to our not-so-advanced country. So We already have an NLP-interpreter so one can just sms "what's the weather?" I need your help in giving me which APIs are nice to use for more info...like traffic API or IMDB api or idk.
unclouded has joined #ruby
it0a has joined #ruby
wald0 has joined #ruby
Hijiri has quit [Ping timeout: 260 seconds]
gitesh has joined #ruby
valeriansaliou has quit [Ping timeout: 255 seconds]
shazaum_ has joined #ruby
<gitesh> Hello ruby
Lewix has joined #ruby
jespada has joined #ruby
shazaum has quit [Ping timeout: 255 seconds]
anarang has quit [Ping timeout: 240 seconds]
Hijiri has joined #ruby
govg has quit [Quit: Fatal error]
Xeago has quit [Remote host closed the connection]
danjordan has joined #ruby
Digital-_ has joined #ruby
Digital-_ is now known as digital-ghost_
bMalum has joined #ruby
digital-ghost_ is now known as dg__
<dg__> test.
beef-wellington has joined #ruby
bMalum has quit [Client Quit]
robustus|Off is now known as robustus
rbrs has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
gitesh has left #ruby [#ruby]
jerius has joined #ruby
tlarevo has joined #ruby
zorak8 has joined #ruby
<apeiros> shevy: your brother uses irc now too?
iamjarvo has joined #ruby
dbugger has joined #ruby
<shevy> huh
<apeiros> shevy: "14:36 dg__: test."
alex88_ is now known as alex88
<shevy> oh
<shevy> hey dg__
<shevy> he has a crazy nick
<dbugger> Hi guys. If I have installed ruby 2.1.3 with RVM, what parameter should I pass to "passenger_ruby" on the nginx file?
jdj_dk_ has quit [Read error: Connection reset by peer]
iamjarvo has quit [Client Quit]
paulfm has joined #ruby
anarang has joined #ruby
fred-inRio has joined #ruby
frozon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
govg has quit [Client Quit]
dbugger has quit [Quit: Leaving]
siwica has joined #ruby
<gaussblurinc1> I have found this sheet: https://github.com/bbatsov/ruby-style-guide#single-line-blocks. Why first example is 'bad'?
francisfish has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Xeago has joined #ruby
dg__ has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 272 seconds]
govg has joined #ruby
kamilc__ has quit [Quit: Leaving...]
Channel6 has joined #ruby
benzrf|offline is now known as benzrf
havenwood has joined #ruby
<rpag> gaussblurinc1, because according to the guide you should use '{}' for what could be a one-liner
sinkensabe has joined #ruby
<gaussblurinc1> rpag: uh, see. in guide case it should be 'undesirable' to use 'do..end' multiline instead of '{}' single-line
Xeago has quit [Read error: Connection reset by peer]
CaptainHeavy has joined #ruby
Takle has quit [Remote host closed the connection]
rpag has quit [Quit: Leaving]
tesuji has quit [Read error: Connection reset by peer]
Takle has joined #ruby
JewlianGoldberg has joined #ruby
JewlianGoldberg has quit [Read error: Connection reset by peer]
jasooon has joined #ruby
enebo has joined #ruby
[[vedic]] has quit [Ping timeout: 258 seconds]
fsapo has quit [Remote host closed the connection]
devdazed has joined #ruby
tvw has quit []
devdazed has quit [Client Quit]
msmith has joined #ruby
alem0lars|away is now known as alem0lars
msmith has quit [Remote host closed the connection]
devdazed has joined #ruby
msmith has joined #ruby
<olivier_bK> I try to automated upload file in youwatch and i blocked here ! When i execute the code it's like he doesn't send the file because,in the output i've #http://ebox2.youwatch.org/cgi-bin/upload.cgi?upload_id=>}
jdj_dk_ has joined #ruby
niklasb_ has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
lampd1 has joined #ruby
njames has joined #ruby
arya_ching_ has joined #ruby
xymbol has joined #ruby
arya_ching has quit [Ping timeout: 258 seconds]
joonty1 is now known as joonty
njames has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
GPH|work has joined #ruby
arya_ching_ has quit []
desktop has left #ruby [#ruby]
lampd1 has quit [Remote host closed the connection]
mistermocha has joined #ruby
willywos has joined #ruby
gtrak has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
grepwood has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
<grepwood> Hello everyone. Is there anyone here using rbenv?
leizzer has joined #ruby
moritzs has joined #ruby
<grepwood> I am trying to install this gem https://github.com/crewmate/crewmate on Ruby 2.1.3 installed via rbenv and it keeps nagging me to install Ruby 1.9.3
<grepwood> I grepped for "1.9.3" in the entire repo and can't find what triggers this requirement
ursooperduper has joined #ruby
<grepwood> Does anyone know how to walk around such arbitrary requirement?
niklasb_ has joined #ruby
allcentury has joined #ruby
Channel6 has quit [Quit: Leaving]
oleo has joined #ruby
mercwithamouth has joined #ruby
<brushdemon> I'd help but i'm not familiar with rbenv sadly
VanillaGoat has quit [Ping timeout: 245 seconds]
rbennacer has joined #ruby
Timgauthier is now known as timgauthier_away
<rbennacer> hey guys, what is the best ruby library to make postgres query
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisleech has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
<krisleech> is there anywhere which shows the approx. userbase for different versions of Ruby?
<apeiros> rbennacer: define "best"
<apeiros> rbennacer: some options: pg gem, sequel, active record.
<rbennacer> well, the easiest to use and the most readable
<apeiros> krisleech: I don't think there's a reasonable way to collect such data in the first place
<grepwood> hah! got it
<apeiros> rbennacer: IMO sequel then.
<havenwood> rbennacer: give sequel a look: http://sequel.jeremyevans.net
[[vedic]] has joined #ruby
<krisleech> apeiros: I was thinking companies like NewRelic might know, not found anything yet..
<rbennacer> apeiros, thanks
jdj_dk_ has quit [Ping timeout: 245 seconds]
pushpak has joined #ruby
<havenwood> grepwood: Gist the exact command you're running, full text of error and your: gem env
practition3r has quit [Ping timeout: 246 seconds]
<grepwood> havenwood, I run this and found out where the version is http://pastebin.com/qjguqBr9
<havenwood> grepwood: there isn't an rbenv channel like #rvm or #chruby
<havenwood> grepwood: ah, yeah dotfile
rbennacer has left #ruby ["Leaving"]
<grepwood> havenwood, I'm pretty damn sure you would encounter this error outside of rbenv given that your system has a different version of Ruby packaged
pu22l3r has joined #ruby
snath has quit [Ping timeout: 245 seconds]
<havenwood> grepwood: I would not!
<grepwood> how come?
stef204 has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
rpag has joined #ruby
j2p2 has joined #ruby
oo_ has joined #ruby
<havenwood> grepwood: chruby doesn't auto-switch on .ruby-version files unless you enable chruby-auto, this little script: https://github.com/postmodern/chruby/blob/master/share/chruby/auto.sh
kp666 has joined #ruby
<havenwood> grepwood: it's a simple tool and I understand what it's doing
Deejay has joined #ruby
IceDragon has joined #ruby
lxsameer has quit [Quit: Leaving]
Deejay is now known as Guest94833
<havenwood> grepwood: Anyways, beside the point. I'd suggest a PR to crewmate adding that .ruby-version file to the .gitignore.
mengu has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
<havenwood> and delete it
<grepwood> .ruby-version is optional?
<havenwood> yes, if you'd like to auto-switch rubies when entering the directory
Guest94833 has quit [Client Quit]
<havenwood> grepwood: it's a common format supported by the popular Ruby version switchers. RVM and chruby support it with fuzzy matching and rbenv kinda limps in. :P
<grepwood> I wonder if .ruby-version supports logical operators
<rpag> its just a dumb string afaik
<grepwood> so that for instance the gem could only install on Ruby X.Y.Z or newer/older
tlarevo has quit [Remote host closed the connection]
<havenwood> rpag: aye
<havenwood> grepwood: nope
mengu has joined #ruby
<havenwood> grepwood: none of the switchers happen to support that
camt has quit [Remote host closed the connection]
<rpag> required_ruby_version on Gem::Specification is all i can think of thats close
rylev has quit [Read error: Connection reset by peer]
rylev has joined #ruby
jobewan has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
Tricon has joined #ruby
<havenwood> grepwood: in RVM or chruby you could add say a `ruby-2` to get the latest 2.X
gsd has joined #ruby
eka has joined #ruby
<havenwood> grepwood: rbenv wouldn't know what to do with it though
taptapdan has joined #ruby
<rpag> thats an annoying problem when you work on a team who use variations of rvm/chruby/rbenv
<havenwood> rpag: mmm, i bet
<havenwood> rpag: ban rbenv! muahahah!
<grepwood> ouch
Kricir has joined #ruby
Senjai has joined #ruby
<havenwood> rpag: i guess the hope is it's better than the .rvmrc/.rbenv-version/.rbenv-vars/.rbfu-version days
djstorm has joined #ruby
<havenwood> rpag: i do see .ruby-version files out there now ;)
dorei has joined #ruby
mikepack has joined #ruby
jottr has joined #ruby
<rpag> i think its better yeah
<havenwood> rbenv says: "If you want cute shortcuts & aliases, you can always make symlinks."
rkalfane has joined #ruby
<rpag> thats not exactly like fuzzy matching though
djstorm has quit [Remote host closed the connection]
* havenwood mutters about shims
<rpag> the only version manager i havent tried is rbfu
<rpag> and the windows one, i think its "pik" ?
renderful has joined #ruby
<havenwood> rpag: rbfu self-deprecated in favor of chruby
<havenwood> rpag: so did ruby-version
<havenwood> rpag: pik lives on
<rpag> yeah chruby is the one i ended up being most happy with tbh
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
<rpag> rbenv was close though
<rpag> i mostly missed the fuzzy match
<havenwood> rpag: rehash didn't drive you bonkers?
mikepack_ has joined #ruby
ursooperduper has joined #ruby
<havenwood> they've finally made that automatic
Macaveli has quit [Ping timeout: 244 seconds]
<havenwood> which they should have done from the start if they *must* shim
doev has joined #ruby
<rpag> forgot about that :)
mikepack has quit [Remote host closed the connection]
<rpag> i guess it wasnt too bad because by then i was using 'bundle exec' most of the time
claw_ has quit [Read error: Connection reset by peer]
<rpag> for system gems its annoying ya
<havenwood> mm
claw__ has joined #ruby
<brushdemon> gems are rather nice, just the delivery method is a pain
jdj_dk has joined #ruby
<havenwood> brushdemon: <3 RubyGems
<brushdemon> like trying to compile the mysql gem for using actual mysql
<brushdemon> not mariadb
dANO__ has joined #ruby
<havenwood> brushdemon: so broken C-exts are a pain
<rpag> C exts in general are a pain
<brushdemon> yeah :/
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<brushdemon> however they're pretty fast
claw__ has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
claw__ has joined #ruby
<brushdemon> like look at the json and json-pure gems for example
<brushdemon> claw__: pls
<rpag> tbh if you're on linux its less painful unless you're doing a ubuntu/debian mix
allcentury has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
moritzs has quit [Ping timeout: 255 seconds]
ght has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
<rpag> i think 'oj' might be the fastest JSON parser in ruby not sure, it uses C too though
ghr has joined #ruby
<havenwood> brushdemon: json-pure on JRuby looks pretty fast
<brushdemon> give them a speed test
dANO_ has quit [Ping timeout: 256 seconds]
<brushdemon> json-pure is quick enough for most things
<brushdemon> rpag: I use gentoo or funtoo across most of my systems, ubuntu servers for VPS's and such
<brushdemon> I personally would prefer a CentOS VPS right now but i'm too lazy to back up my data for it
<havenwood> brushdemon: i do love pure Ruby implementations! a notable one recently is the nokogiri alternative, oga: https://github.com/YorickPeterse/oga#readme
nrsk has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<Senjai> Nooo! not fast enough :P
<GreatSUN> ok
<GreatSUN> will drive to other office and then home now
<GreatSUN> see ya tomorrow guys
<GreatSUN> bye for now
patrick99e99 has joined #ruby
oo_ has joined #ruby
az7ar is now known as az7ar_away
GreatSUN has quit [Quit: Page closed]
einarj has quit [Remote host closed the connection]
lampd1 has joined #ruby
<brushdemon> hmmm, actually I was thinking of writing a pure ruby implementation of rsync
<brushdemon> since the one in the gems repo is pretty un-satisfying
<Senjai> brushdemon: :P I can do that. %x{....}
<Senjai> I wouldnt reinvent the wheel
<rpag> brushdemon, ubuntu is alright-ish for ruby, it sometimes trips people up that a separate package is needed to even be able to compile a C ext
lolmaus has quit [Quit: Konversation terminated!]
<Senjai> Otherwise you would get crap like this: https://github.com/isaacs/rimraf
<Senjai> Just shell out
<brushdemon> >rm -rf for node
<brushdemon> I actually just snorted
charliesome has joined #ruby
rshetty has joined #ruby
<Senjai> Look at the implimentation
<Senjai> Why not just shell out
<Senjai> There is no reason for code like that to exist
Takle has quit [Remote host closed the connection]
<Senjai> And it can't possibly be faster than the systems 'rm'
<brushdemon> rpag: yeah, there was a bit of tinkering to get ruby to work on ubuntu
<brushdemon> Senjai: taking a look now
<Senjai> rpag: What package is that
<rpag> brushdemon, i bypass the package manager for ruby stuff usually, at least nowadays
TPBallbag is now known as Guest329804
thsig has quit [Remote host closed the connection]
<shevy> hah
<shevy> you are a SINNER
patrick99e99 has quit [Ping timeout: 244 seconds]
oo_ has quit [Ping timeout: 250 seconds]
<rpag> i think its ruby-dev
<shevy> SINNER!
Guest329804 is now known as TPBallbag
<havenwood> yeah, or ruby-full
thsig has joined #ruby
<brushdemon> Senjai: what... why?
<brushdemon> Senjai: why is this actually a thing?
<rpag> shevy, do you manage your ruby through a package manager?
<brushdemon> rpag: that's what i've done... I went with full rvm and gem for ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<brushdemon> i've yet to play with rails properly
<rpag> apart from arch linux i dont think ive ever found a distro that had the latest ruby available, and didnt screw around with rubygems
vivekrai has quit [Quit: Connection closed for inactivity]
<brushdemon> gentoo is pretty current with it...
<rpag> true
<brushdemon> just it's got a messed up name
<Senjai> chruby ftw
<Senjai> chruby + ruby-install
<brushdemon> 'ruby19' 'ruby20' 'ruby21'
<brushdemon> ugh
<havenwood> rpag: fedora's is good these days, but not quite as good at keeping current as arch
thsig has quit [Read error: Connection reset by peer]
<Senjai> Nothing is as good as arch is
<Senjai> :P
thsig_ has joined #ruby
<Senjai> Its just arch is a pain to setup
<rpag> i cant be bothered with arch since they removed the installer
<rpag> and then the initial setup
<brushdemon> arch is easy to setup
<shevy> rpag nope, I compile everything from source, using some ruby scripts
<havenwood> i don't grok the package manager
<shevy> unfortunately I broke them about 2 weeks ago when I started to rewrite them :(
doodlehaus has joined #ruby
<havenwood> shevy: there's this script i heard of... called ruby-install! :P
moritzs has joined #ruby
<shevy> can you install everything with ruby-install?
<Senjai> havenwood: I've also heard of that mystical fairy dust thing
<havenwood> shevy: ALL THE THINGS \o/
<rpag> shevy, so you wrote your own package manager? :-)
<Senjai> THE THINGS, THE THINGS ARE REAL
<havenwood> shevy: no, just Rubies
<shevy> rpag yeah though I am not really sure it is a package manager, it is more an attempt to have a toolbox ready that I can modify
<havenwood> shevy: i saw some thing about folk actually porting brew to linux :O
<Senjai> Eww
<shevy> I heard this years ago!
<Senjai> Why
<shevy> but they abandoned it!
fred-inRio has quit [Read error: Connection reset by peer]
<Senjai> We have so many things
<shevy> Senjai because good software should not care on which OS it runs
<Senjai> npm, pip, apt, yum, bundle
<shevy> bundle is like apt?
<Senjai> Im just saying
camt has joined #ruby
<Senjai> sorry
<Senjai> gem
<shevy> ok but compare apples with cats... man
<shevy> ;P
<shevy> well gem is restricted
cina has quit [Quit: leaving]
<Senjai> So is brew
jdj_dk has quit [Ping timeout: 245 seconds]
<Senjai> so is apt
<Senjai> :/
<shevy> you can use apt to install whatever they made available
treehug88 has joined #ruby
<Senjai> apt-get install SUPERDUPERSYSTEMDDER
<Senjai> you need sudo
<havenwood> shevy: i prefer cats to apples
<Senjai> ergo, restricted
<havenwood> shevy: apples are great, but... cats!
<shevy> from the amount of choices Senjai
<shevy> gem install glibc
<Senjai> shevy: That's not an excuse :P. Apt has glibc
<shevy> YES
<shevy> apt is BIG
<Senjai> I woudnt get node packages from.... gem
<shevy> gem is cute and tiny
<rpag> shevy, thats probably possible though :P (gem install glibc)
<shevy> rpag if the name was not stolen yet... lemme check
<Senjai> Nor would I install python packages with npm
<Senjai> I'd use pip
<shevy> https://rubygems.org/search?utf8=%E2%9C%93&query=glibc " No gems found " we can take it rpag \o/
<Senjai> If I want a straight up executable, I use apt
<Senjai> or yum
anarang has quit [Ping timeout: 245 seconds]
<shevy> except that debian-based distributions often eliminate mkmf
<havenwood> Senjai: cracked me up a while back when i saw an iOS dev install their package manager, cocoapods, with gem
<havenwood> turtles all the way down
<shevy> I prefer cats over turtles
<Senjai> haha
<rpag> coffeescript was a gem once too wasnt it?
<shevy> though a turtle is handy... if you ever need a shield against a fire breathing dragon in reallife, you just gotta find a big turtle, then pick it up
<havenwood> rpag: seems a lot of things start life as a gem then mature onto package managers
pranny has joined #ruby
<Senjai> havenwood: s/other package managers/other language implimentations
xymbol has quit [Quit: Be back later ...]
<Senjai> :P
banister_ has joined #ruby
xymbol has joined #ruby
<havenwood> shevy: turtles or apples?
<rpag> havenwood, yeah i guess gem is easier
<rpag> works everywhere
<brushdemon> ports and pkg are possibly the best
<brushdemon> however I still prefer portage over ports
<rpag> compiling from source for everything = no time
unshadow has quit [Quit: leaving]
<BaNzounet> Hey do you know why runing this : `docker ps --no-trunc -q` returns unexpected error error="No such file or directory - docker"
<rpag> and then, a dreaded compile error :(
<brushdemon> eh, I have a home server which I use to build everything on
<brushdemon> I kind of maintain my own rsync mirror and binary repo
paulfm has quit []
banister has quit [Ping timeout: 244 seconds]
Hijiri has quit [Ping timeout: 265 seconds]
<brushdemon> I wrote up an emerge frontend in bash... kind of tried to make it more user friendly I guess
<rpag> nice
<brushdemon> I was thinking of either re-writing it in either ruby or python
<havenwood> BaNzounet: docker isn't installed? or your PATH is messed up?
chipotle has quit [Quit: cya]
<brushdemon> more leaning towards python because that way I can interact more directly with the portage API
jasooon has joined #ruby
Takle has joined #ruby
rshetty has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<rpag> portage is python?
<BaNzounet> havenwood: I can access docker CLI from a regular shell :(
mengu has quit [Remote host closed the connection]
<Senjai> BaNzounet: You should ask in the docker related channels :P
jdrumheller has joined #ruby
<brushdemon> yeah, most things built by gentoo are either python or bash
<brushdemon> or perl
<rpag> shudder@perl
<brushdemon> perl is great
nrsk has joined #ruby
<BaNzounet> I though It was related to my synthax or something :
<brushdemon> if you're egyptian
<sweeper> walk like an egyptian...
<rpag> haha
agrinb has joined #ruby
hanmac1 has quit [Quit: Leaving.]
hanmac1 has joined #ruby
<rpag> was looking through perl code the other day, and yeah, its syntax doesn't woo me
<brushdemon> it's like reading hieroglyphics :')
<nrsk> Hi all! I have exception and want to get only summary, not a full message. How can I get it?
<Senjai> brushdemon: YOUR LIKE READING HEIROGLYPHICS! #owned
<Senjai> nrsk: exception.message
lmickh has joined #ruby
iamjarvo has joined #ruby
<Senjai> want it smaller? exception.message[0..250]
<rpag> there's just Exception#message, its usually not big
<rpag> like a single line
<brushdemon> Senjai: that explains why my relationships always end up 'complicated' ;-;
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
<Senjai> haha
tagrudev has quit [Remote host closed the connection]
<brushdemon> maybe they think i'm just like perl
<brushdemon> hahaha
momomomomo has joined #ruby
<nrsk> ex.message - still have full message with "Validation failed... Summary: ... Resolution ..."
sepp2k has joined #ruby
<nrsk> I rescue Mongoid::Errors::Validations => ex
<havenwood> Why aren't you guys on the latest Ruby?!
<havenwood> apeiros: Topic could use a bump :)
avril14th has joined #ruby
<apeiros> havenwood: what? 2.1.4 already out?
<havenwood> CVE
<apeiros> damn quick release cycles :D
<rpag> luckily no one uses rexml :p
Asher has joined #ruby
<havenwood> rpag: unfortunately they do use OpenSSL
Macaveli has joined #ruby
fsapo has joined #ruby
gsd has joined #ruby
workmad3 has joined #ruby
<rpag> wow @ monkey patch
jfran has joined #ruby
mistermocha has joined #ruby
max96at is now known as max96at|off
renderful has quit [Remote host closed the connection]
<rpag> never used it directly, but openssl doesn't look fun to use from that
<havenwood> also 2.0.0-p594 & 1.9.3-p550
gaussblurinc1 has quit [Quit: Leaving.]
hellangel7 has quit [Remote host closed the connection]
Asher has quit [Client Quit]
Asher has joined #ruby
<workmad3> rpag: yeah, openssl can be a PITA
<Senjai> HAH
<Senjai> that finally happened
<Senjai> that was supposed to happen MONTHS ago
<workmad3> Senjai: what was? :)
<Senjai> the ext changes
<Senjai> openssl default settings
<Senjai> But the core group shot it down
<Senjai> then buddy went public about it
stunder has joined #ruby
chipotle has joined #ruby
<workmad3> ah
rylev has quit [Remote host closed the connection]
jusmyth1 has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
rylev has joined #ruby
mary5030 has joined #ruby
jusmyth has quit [Ping timeout: 265 seconds]
fred-inRio has joined #ruby
jdj_dk has joined #ruby
hanmac1 has quit [Quit: Leaving.]
Soda has joined #ruby
hamakn has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
maasha has quit [Ping timeout: 246 seconds]
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
renderfu_ has joined #ruby
rylev has quit [Ping timeout: 250 seconds]
banister_ is now known as banister
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
az7ar_away is now known as az7ar
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
robustus is now known as robustus|Off
dawkirst has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
snath has joined #ruby
rh1n0 has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
rh1n0 has quit [Max SendQ exceeded]
Asher has joined #ruby
arup_r has joined #ruby
psyprus has joined #ruby
hiyosi has quit [Read error: Connection reset by peer]
rh1n0 has joined #ruby
hiyosi has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
kamilc__ has joined #ruby
Xeago has joined #ruby
lampd1 has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
rylev has joined #ruby
Guest51196 has quit [Quit: ZNC - http://znc.in]
arup_r has quit [Quit: Leaving.]
rippa has joined #ruby
valeriansaliou has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
bal has quit [Quit: bal]
schaerli has quit [Ping timeout: 255 seconds]
az7ar is now known as az7ar_away
avril14th has quit [Remote host closed the connection]
icarus has joined #ruby
cndiv has joined #ruby
sigurding has joined #ruby
ta has quit [Ping timeout: 250 seconds]
grepwood has quit [Quit: Leaving]
hamakn has joined #ruby
Deejay has joined #ruby
Deejay has quit [Client Quit]
starkhalo has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
skolman_ has joined #ruby
pauly_oc has joined #ruby
ghostmoth has joined #ruby
rkalfane has joined #ruby
harax_ has quit [Ping timeout: 244 seconds]
syntaxritual has joined #ruby
syntaxritual has quit [Client Quit]
IceDragon has quit [Ping timeout: 265 seconds]
IcyDragon has joined #ruby
Psy-Q has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
xiq has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
IcyDragon is now known as IceDragon
<Psy-Q> when testing a gem, what would i require in my rspec files? can i require 'cider_client' in this case? https://github.com/psy-q/cider_client
freezey has joined #ruby
<Psy-Q> it's my first gem, sorry if that's basic
ta has joined #ruby
<rpag> as long as 'lib/' is on $LOAD_PATH that should work
gauke has quit [Quit: gauke]
<Psy-Q> rpag: that's why i was wondering: when i execute rspec (even with bundle), it should add the lib/ from this very gem to the load path, right?
<Psy-Q> the spec seems to work at least, but i'm not sure if that's some magic happening
<rpag> you dont seem to require the library or try to, but anyway, if you plan to use bundler you could require 'bundler/setup' followed by Bundler.require :default to require all the dependencies in your Gemfile
charliesome has quit [Quit: zzz]
<Psy-Q> ah, damn, i haven't pushed the latest stuff. just a second
TPBallbag has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
leon1 has joined #ruby
danijoo has joined #ruby
bricker`work has joined #ruby
TPBallbag has joined #ruby
wpp has quit [Quit: ZZZzzz…]
leon1 is now known as Hijiri
<Psy-Q> i'll punch the first test until it's green, then i'll push. will be a few minutes :)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
havenwood has joined #ruby
siwica has quit [Remote host closed the connection]
troyready has joined #ruby
danijoo_ has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BadQuanta has joined #ruby
rshetty has joined #ruby
thagomizer has joined #ruby
siwica has joined #ruby
fabrice31 has quit [Remote host closed the connection]
doev has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
<olivier_bK> someone here
<olivier_bK> as already made a crowler ?
danman has joined #ruby
<apeiros> no. someone is over in #pyhton
<apeiros> *#python
gawaine has quit [Quit: Leaving]
Takle has joined #ruby
harax_ has joined #ruby
<Psy-Q> okay, pushed it. this require seems to work fine, is that the correct way to write specs for your own gem? https://github.com/psy-q/cider_client/blob/master/spec/attachments_spec.rb#L6
rockdon_ has joined #ruby
kobain has joined #ruby
<Psy-Q> olivier_bK: a crawler? i made one. for HTML and XML, with nokogiri
klaut has quit [Remote host closed the connection]
<Psy-Q> it's an incredibly stupid crawler though.
xcyclist has quit [Quit: Page closed]
kobain has quit [Max SendQ exceeded]
<olivier_bK> Psy-Q, did you use mechanize or watir or anything else
<havenwood> olivier_bK: postmodern isn't here right now, but check out Spidr: https://github.com/postmodern/spidr#readme
kobain has joined #ruby
asmodchan has joined #ruby
<Psy-Q> olivier_bK: nah, just nokogiri and.. err.. nothing
kobain has quit [Max SendQ exceeded]
livathinos has quit []
Timgauthier has joined #ruby
kobain has joined #ruby
<Psy-Q> well, open-uri of course
<rpag> Psy-Q, its fine, but if you're using bundler then i'd probably just use: require 'bundler/setup'; Bundler.require :default
<olivier_bK> havenwood, i use it with ruby 1.9.3 ?
aspires has joined #ruby
kobain has quit [Max SendQ exceeded]
<havenwood> olivier_bK: sure
<rpag> maybe :default, :test - you can use groups to include just what you want/need
kobain has joined #ruby
<havenwood> olivier_bK: 1.9.3-p550 \o/
claw___ has joined #ruby
kobain has quit [Max SendQ exceeded]
aganov has quit [Quit: Leaving]
asmodlol has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
rajeshchawla has joined #ruby
<olivier_bK> havenwood, good
allcentury has quit [Ping timeout: 250 seconds]
<olivier_bK> because i think i blocked with mechanize
diegoviola has joined #ruby
chrisbolton has joined #ruby
claw__ has quit [Ping timeout: 244 seconds]
shredding has quit [Quit: shredding]
<IceDragon> general programming question, whats the name of the ^ operator?
geggam has joined #ruby
fred-inRio has quit [Ping timeout: 255 seconds]
<eam> IceDragon: xor
<eam> specifically bitwise xor
<eam> or actually, is it bitwise in ruby?
<chrisbolton> I have a nested hash and I’m trying to remove a key/value pair at multiple levels without a lot of looping. Here is a sample hash (https://gist.github.com/cbolton-sge/69b5258b4398affc3d3f) and I’m trying to remove application_id and value at every level. Any ideas? I can do it looping just looking for something a little more elegant.
Photism has joined #ruby
<IceDragon> eam: thanks much, I rarely used it and didn't know its name P:
<eam> looks like there's no boolean version of xor in ruby
<eam> that's weird
jimbach has quit [Remote host closed the connection]
siwica has quit [Remote host closed the connection]
<apeiros> eam: there is
<apeiros> >> true ^ false
<eval-in__> apeiros => true (https://eval.in/210563)
<eam> yeah I mean there's no separate boolean version
<apeiros> ^ is a method, so implementation depends on receiver
<eam> >> 10 ^ 11
<eval-in__> eam => 1 (https://eval.in/210564)
<apeiros> and Integer#^ is bitwise
<eam> yeah, that's what I mean, it's a weird odd man out
<eam> vs &, &&, |, || and so on
<apeiros> no
<eam> >> 10 && 11
<eval-in__> eam => 11 (https://eval.in/210565)
<apeiros> & and | are methods too
<eam> wait
<apeiros> &&, ||, or, and are syntax
<eam> is & and && the same thing?
<apeiros> no
<eam> in ruby?
jobewan has quit [Ping timeout: 265 seconds]
<eam> oh because it returns the true val
<eam> apeiros: so that's weird
<IceDragon> >> [1, 2, 3] & [2, 3, 4]
<eval-in__> IceDragon => [2, 3] (https://eval.in/210566)
<apeiros> &&, ||, `or`, `and` --> syntax/operators
<eam> I'd expect xor to have ^ and ^^
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros> &, |, ^, +, **, - etc. --> methods
<IceDragon> I wonder if array has xor...
<IceDragon> >> [1, 2, 3] ^ [2, 3, 4]
<eval-in__> IceDragon => undefined method `^' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/210567)
harax_ has quit [Ping timeout: 260 seconds]
gaganjyot has joined #ruby
<eam> apeiros: that means you can say fixnum && fixnum, but can't say fixnum ^^ fixnum
<apeiros> IceDragon: yeah, that set operation is missing
<eam> just ... strange
<IceDragon> -,- It has and and or, but doesn't have xor
TPBallbag has quit [Remote host closed the connection]
<eam> there's good reason to have separate binary/boolean methods/operators
Macaveli has quit [Ping timeout: 272 seconds]
danijoo has quit [Quit: Leaving...]
jusmyth1 has left #ruby [#ruby]
olivier_bK has quit [Ping timeout: 265 seconds]
<apeiros> yeah, I guess xor was not considered an often needed use-case to have it as an operator
danijoo has joined #ruby
<eam> come to think of it, is there a bitwise not?
max96at|off is now known as max96at
AlSquire has quit [Ping timeout: 265 seconds]
ilia_ has joined #ruby
<apeiros> ~
<apeiros> >> ~0b110101
<eval-in__> apeiros => -54 (https://eval.in/210572)
siwica has joined #ruby
shredding has joined #ruby
<apeiros> due to ruby's integers having (what was the correct term again?) arbitrary length, you need to fix the length yourself, tho. e.g.:
<apeiros> >> ~0b110101 & 0xff
<eval-in__> apeiros => 202 (https://eval.in/210574)
<apeiros> >> "%08b" % (~0b110101 & 0xff)
<eval-in__> apeiros => "11001010" (https://eval.in/210575)
stunder has quit [Quit: Leaving]
patrick99e99 has joined #ruby
aspires has quit []
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ilia_ has quit [Remote host closed the connection]
ilia_ has joined #ruby
chipotle has quit [Quit: cya]
ilia_ has left #ruby [#ruby]
nurey has joined #ruby
TPBallbag has joined #ruby
Senjai has quit [Quit: WeeChat 0.3.7]
bklane has joined #ruby
Senjai`work has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
<nurey> i have a module with method “foobar” that is memoized using Memoist i need to refactor so that there is another module with the same method “foobar” that is not memoized
kobain has joined #ruby
<nurey> any ideas?
lampd1 has joined #ruby
arup_r has joined #ruby
<havenwood> >> class Array; def ^ array; (self - array).concat(array - self) end end; [1, 2, 3] ^ [2, 3, 4]
<eval-in__> havenwood => [1, 4] (https://eval.in/210576)
kobain has quit [Max SendQ exceeded]
<apeiros> nurey: call the other module's non-memoized foobar in the memoized implementation
kobain has joined #ruby
<apeiros> havenwood: alternative implementation: (self | other) - (self & other)
Devr3d has quit [Quit: Quitte]
<nurey> let me clarify. I want to be able to “extend Foobar” and also “extend Foobar::Memoized”. Foobar module has a foobar method that is not memoized. Foobar::Memoized module has the same foobar method that is memoized
AlSquire has joined #ruby
<havenwood> apeiros: interesting
ramfjord has joined #ruby
lampd1 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
WormDrink has quit [Ping timeout: 272 seconds]
jobewan has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
<havenwood> nurey: so you're going to change the name of one of them?
Hijiri has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
sinequanon has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
mityaz has quit [Quit: Leaving]
JustinAiken has joined #ruby
sinequanon has quit [Remote host closed the connection]
<JustinAiken> If you accidently run a spec file that has binding.pry where you're going to have 50 times it goes into pry mode,
<JustinAiken> is there a way to get out of it (run through guard) without breaking the terminal?
<JustinAiken> if you ctrl-c, it breaks the guard process, leaving rspec high and dry
hamakn has quit [Remote host closed the connection]
<JustinAiken> but typing 'exit' 50 times is no fun :p
<havenwood> JustinAiken: try?: exit-program
Xeago has joined #ruby
<havenwood> JustinAiken: or: !!!
jasooon has joined #ruby
CuriousMind has joined #ruby
gauke has joined #ruby
joonty has quit [Quit: Leaving]
<JustinAiken> no luck - same effect as plain ol 'exit'
<CuriousMind> Hello everyone.
lkba has joined #ruby
<havenwood> JustinAiken: hrm, `exit-all` or its alias `!!@`?
<rpag> disable-pry
<havenwood> rpag: ah, nice
<JustinAiken> aah, disable-pry does the trick :)
<havenwood> JustinAiken: look under: help navigating
<JustinAiken> thanks, that will save me hours of unpleasantness
gkra_ is now known as gkra
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
agrinb has quit [Remote host closed the connection]
<rockdon_> whoa
<rockdon_> that's a great trick
CuriousMind has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
bMalum has joined #ruby
francisfish has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
i_s has joined #ruby
wallerdev has joined #ruby
rshetty has joined #ruby
chrisbolton has quit [Quit: chrisbolton]
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pabloh has joined #ruby
Hobogrammer has joined #ruby
Takle has joined #ruby
danjordan has quit [Quit: danjordan]
spyderman4g63 has joined #ruby
AFKGeek has quit [Quit: Leaving]
pu22l3r_ has joined #ruby
<pabloh> Hi!, anybody around understand possessive quantifiers/atomic grouping?
jasooon has quit [Ping timeout: 244 seconds]
JustinAiken has left #ruby [#ruby]
<aep> any idea why sinatra/rack would take forever to respond to a request when there is no internet available?
sambao21 has joined #ruby
boombadaroomba has joined #ruby
bklane has quit [Remote host closed the connection]
jenrzzz has joined #ruby
supersym has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
rshetty has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
bklane has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mary5030 has joined #ruby
siwica has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
jottr_ has joined #ruby
siwica has joined #ruby
<aep> people seem to recommend changing the webrick gem itself
mary5030 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 258 seconds]
zorak8 has joined #ruby
pandaant has joined #ruby
<rpag> webrick is alright for development but id probably use thin/unicorn/something else in production
<havenwood> pabloh: trying to solve something in particular or just understand?
<rpag> thin is good for development too
jaequery has joined #ruby
bklane has quit [Ping timeout: 244 seconds]
<havenwood> so are puma or unicorn
<pabloh> havenwood, sort of both
omosoj has joined #ruby
<pabloh> I was expecting this to fail, but it doesn't:
<rpag> i think unicorn requires a little bit of config
momomomomo_ has joined #ruby
<rpag> but other than that yeah
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
<havenwood> rpag: like what config, trying to think
<pabloh> "aab" =~ /(?>(aa)*)(ab)/
rajeshchawla has quit [Remote host closed the connection]
<pabloh> havenwood, ok
allcentury has joined #ruby
<pabloh> will checit it out
<pabloh> check*
<rpag> maybe it doesn't require config? usually config/unicorn.rb or something like that
siwica has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
<havenwood> rpag: works out of the box for me
<rpag> hm alright
<rpag> i take that back :)
bklane has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
bklane has quit [Remote host closed the connection]
siwica has joined #ruby
<havenwood> i've been using puma lately though, that's been nice too :)
ob has joined #ruby
bklane has joined #ruby
<rpag> ive been sticking with thin, no real reason to though
<havenwood> *just works*
bklane has quit [Read error: Connection reset by peer]
<rpag> yup
dANO__ has quit []
mike32 has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
bklane has joined #ruby
<BaNzounet> Is there another to write this : ? https://gist.github.com/AlexGaspar/6065c725ad2aafd145ee I look ugly to me like that
<BaNzounet> it*
rajeshchawla has joined #ruby
<rpag> readlines maybe?
zorak8 has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
<BaNzounet> it's a socket I don't know if it matters
michael_mbp has quit [Excess Flood]
ephemerian has quit [Quit: Leaving.]
jdj_dk has joined #ruby
<BaNzounet> rpag: thanks it works ;)
jenrzzz has quit [Ping timeout: 255 seconds]
michael_mbp has joined #ruby
Xeago has quit [Remote host closed the connection]
<rpag> i think your original solution isn't ugly btw :P
bluenemo has quit [Quit: Verlassend]
<havenwood> pabloh: just scanned that talk and atomic grouping actually doesn't seem to be in it >.>
zorak8 has joined #ruby
<havenwood> pabloh: consider: "aab" =~ /(?>(xx)*)(ab)/ #=> 1
ghr has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
iamjarvo has joined #ruby
kaspergrubbe has joined #ruby
leizzer has quit [Quit: WeeChat 0.4.2]
<pabloh> havenwood, is not really equivalent
Linell has joined #ruby
<pabloh> if you use 'xx', that atom, will never match
siwica has quit [Remote host closed the connection]
<pabloh> but with 'aa', the first atomic group should match at least once
danjordan has joined #ruby
econerd4ever has joined #ruby
<havenwood> pabloh: then + instead of *
siwica has joined #ruby
<pabloh> havenwood, that would simply fail
freezey has quit [Remote host closed the connection]
<havenwood> pabloh: as expected. am i just not getting the point?
<pabloh> "aab" =~ /(?>(xx)*)(ab)/, I'm confused about why does this expression fails
jenrzzz has joined #ruby
wallerdev has quit [Quit: wallerdev]
bMalum has quit [Quit: bMalum]
<pabloh> sorry this expression: "aab" =~ /(?>(aa)*)(ab)/
hamakn has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
moskovski has joined #ruby
roolo has quit [Remote host closed the connection]
reset has joined #ruby
<pabloh> havenwood, since the first 'aa', should match, I thought the regexp engine should not backtrack for other possible matches, since the atomic group would tell it not to
<havenwood> pabloh: by fails you mean returns `1` instead of `0`?
wpp has joined #ruby
<pabloh> well, instead of nil
ramfjord has joined #ruby
<havenwood> ah
<pabloh> my idea was that after the first 'aa' matching, the whole expression will fail, but aparently it just keeps going, and match after the 1st letter
freezey_ has joined #ruby
<pabloh> matches*
Spami has quit [Quit: This computer has gone to sleep]
tonini has joined #ruby
<eam> >> "aab" =~ /^(?>(aa)*)(ab)/
<eval-in__> eam => nil (https://eval.in/210611)
<eam> pabloh: I believe you have to anchor it
Akagi201 has quit [Remote host closed the connection]
<pabloh> eam, do you know why?
<eam> I don't know, but perldoc perlre has some text on this subject
stunder has joined #ruby
agrinb has joined #ruby
jenrzzz_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<pabloh> eam, may be the non-backtracking behavior, activates only if there is some string previously matched?
jerius has quit []
<eam> perldoc leads me to believe that (?>) depends on being anchored
timonv_ has joined #ruby
<pabloh> eam, allright I will try reading that, thanks!
rh1n0 has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
kil0byte has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
<eam> fwiw whenever regexes get this complicated I tend to switch to something more structured
wallerdev has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
rh1n0 has quit [Max SendQ exceeded]
garbanotas has quit [Quit: This computer has gone to sleep]
renderfu_ has quit [Remote host closed the connection]
rh1n0 has joined #ruby
<benzrf> use parsec(tm)
jdj_dk has quit [Read error: Connection reset by peer]
rh1n0 has quit [Max SendQ exceeded]
zorak8 has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
zorak8 has quit [Max SendQ exceeded]
<eam> "(?>pattern)" does not disable backtracking altogether once it has matched. It is still possible to backtrack past the construct, but not into it. So "((?>a*)|(?>b*))ar" will still match "bar".
zorak8 has joined #ruby
djbkd has joined #ruby
<eam> I think this is the relevant part
Xeago has joined #ruby
philwantsfish has joined #ruby
zorak8 has quit [Max SendQ exceeded]
zorak8 has joined #ruby
reset has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<philwantsfish> i have a script that runs a windows bat file that ends in a pause command. It prints each line, for some reason the program hangs on the stdout.gets. But when i run the bat file from command line it does not hang. Is there anything unusual about my script? Can any output cause ruby to hang?
kp666 has quit [Read error: Connection reset by peer]
kp666 has joined #ruby
<philwantsfish> the script is here: http://pastebin.com/eTaajfMC
sinkensabe has joined #ruby
alex88 has quit []
<pabloh> eam, alright, thanks a lot!
renderful has joined #ruby
zB0hs has joined #ruby
rh1n0 has joined #ruby
rh1n0 has quit [Remote host closed the connection]
nurey has quit [Quit: nurey]
wpp has quit [Quit: ZZZzzz…]
freerobby has quit [Quit: Leaving.]
siwica has quit [Remote host closed the connection]
pyon has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
siwica has joined #ruby
Kricir has quit [Remote host closed the connection]
n3b has quit [Ping timeout: 265 seconds]
twohlix_ has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkope has joined #ruby
kasperti_ has joined #ruby
reset has joined #ruby
jerius has joined #ruby
nateberkope has quit [Client Quit]
francisfish has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
rylev has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
gauke has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
jimbach has joined #ruby
carraroj has quit [Ping timeout: 265 seconds]
n3b has joined #ruby
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 255 seconds]
<ismell> hrmm, how do I get rvm to install ruby with the built in osx openssl?
shredding has quit [Quit: shredding]
<rpag> i donno, someone here might, there's also #rvm
lampd1 has joined #ruby
shredding has joined #ruby
francisfish has quit [Client Quit]
<ismell> oh i;ll ask in rvm
fr1eza has joined #ruby
rbrs has quit [Remote host closed the connection]
djbkd has joined #ruby
mityaz has joined #ruby
Hightower666 has joined #ruby
yfeldblum has joined #ruby
schaerli has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<workmad3> ismell: you can't with new rubies
robbyoconnor has joined #ruby
<workmad3> ismell: as the built in osx openssl is only 0.9.8
psyprus has quit [Ping timeout: 258 seconds]
<havenwood> ismell: RVM can use brew or macports openssl packages or install its own with autolibs.
<havenwood> ismell: Why do you ask?
francisfish has joined #ruby
psyprus has joined #ruby
freerobby has joined #ruby
jenrzzz_ has quit [Quit: leaving]
sinequanon has joined #ruby
jenrzzz has joined #ruby
pu22l3r has joined #ruby
jimbach has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
_ixti_ has joined #ruby
pushpak has quit [Ping timeout: 260 seconds]
pu22l3r_ has quit [Ping timeout: 265 seconds]
Kiwiheretic has joined #ruby
<workmad3> havenwood: I think he wants ruby to use the openssl library that comes with OSX
<workmad3> havenwood: despite it only being 0.9.8 and ruby needing 1.0.1 nowadays :)
<havenwood> workmad3: i was just wondering what the reason for wanting to do that was
mikhailvs has joined #ruby
Takle has quit [Remote host closed the connection]
<workmad3> havenwood: I'm assuming to avoid installing another library... so for crazy reasons :)
<havenwood> workmad3: hard disk space or not having sudo or what, dunno
Photism has quit [Quit: Leaving]
<shevy> you are way too curious havenwood
<havenwood> shevy: the answer depends sometimes, and yeah i'm curious :P
<shevy> on IRC I almost always try to not want to find out why people want something
gccostabr has quit [Quit: See you later!]
jenrzzz has quit [Client Quit]
Brando753 has joined #ruby
<eam> shevy: I'm curious why you wouldn't want to find out
sinequanon has quit [Ping timeout: 265 seconds]
<shevy> eam because I would not know why I'd want to know!
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robertt_dex has joined #ruby
<shevy> I'd have to dive into the wicked minds of people
<workmad3> shevy: I'm jealous of your lack of curiosity... if I could achive that, I'd have had a lot less conversations that drove me to the brink of insanity due to wacky idiocy :(
[[vedic]] has quit [Ping timeout: 272 seconds]
<shevy> hahaha
jusmyth has joined #ruby
<shevy> I like the word wacky
jasooon has joined #ruby
jordsmi has joined #ruby
<fr1eza> Hello
<rpag> most likely reason is because it's another package to install
<rpag> hey
AlHafoudh has joined #ruby
<fr1eza> Just started looking at ruby, does anyone know why Matrix is immutable?
<rpag> havent used the Matrix class at all, so nope, sorry
fmcgeough has joined #ruby
<fr1eza> There is probably a reason, just seems strange at first glance to me
jobewan has quit [Ping timeout: 255 seconds]
<AlHafoudh> is it possible to bundle vendor/cache inside .gem so when I install the .gem it does not need to download dependencies?
<rpag> its possible yeah
jenrzzz has joined #ruby
jdj_dk has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<rpag> i doubt you'll find a lot of people doing that unless there's good reason though
<rpag> bandwidth usually isnt one, gems are small
benzrf is now known as benzrf|offline
sigurding has joined #ruby
Guest8130 has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
sigurding has quit [Client Quit]
<shevy> I can make the MOTHER OF ALL GEMS
<shevy> the gem that includes them all!
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<rpag> i wonder how long a require would take :D
<eam> gem install mom
terlar has quit [Ping timeout: 265 seconds]
<lampd1> ERROR: Loading command: install (LoadError)
<lampd1> dlopen(/Users/eam/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
<jenrzzz> lampd1: did you install with ruby-install or compile it yourself?
nrsk has quit [Ping timeout: 256 seconds]
<lampd1> rbenv/homebrew
mercwithamouth has quit [Ping timeout: 250 seconds]
<lampd1> just installed a different version. seems to be working fine
[[vedic]] has joined #ruby
<lampd1> probably just need to uninstall/reinstall 2.1.0
nrsk has joined #ruby
fabrice31 has joined #ruby
<AlHafoudh> rpag: its a private gor used for deploying on server...
tlarevo has joined #ruby
Xeago has joined #ruby
<AlHafoudh> rpag: how can I configure the gem to do that?
Hightower666 has quit [Read error: Connection reset by peer]
tyll_ has quit [Ping timeout: 245 seconds]
<rpag> it should be straight forward enough, add the gem(s) files to Gem::Specification#files, and add a custom path to Specification#require_paths
ikaros has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
cmckee has joined #ruby
<rpag> probably need to add the 'lib' of every gem to require_paths
Takle has joined #ruby
<rpag> id recommend just adding a dependency tbh :)
[[vedic]] has quit [Ping timeout: 255 seconds]
timonv_ has quit [Read error: Connection reset by peer]
_2_ambersaysrawr has joined #ruby
tyll has joined #ruby
paulfm has joined #ruby
<_2_ambersaysrawr> hey
bMalum has joined #ruby
doodlehaus has joined #ruby
CaptainHeavy has quit [Remote host closed the connection]
_2_ambersaysrawr has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
jerius has quit []
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
Jackneill has joined #ruby
shosti has joined #ruby
[[vedic]] has joined #ruby
AmBienCeD has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
graydot has joined #ruby
Senjai`work is now known as Senjai
arup_r has quit [Quit: Leaving.]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hightower666 has joined #ruby
gaganjyot has quit [Quit: Leaving]
ramfjord has joined #ruby
Timgauthier has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
tercenya has quit []
kp666 has quit [Quit: Konversation terminated!]
jdj_dk has quit [Ping timeout: 244 seconds]
freezey_ has quit [Remote host closed the connection]
shredding has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
moskovski has quit [Quit: Be back later ...]
Eiam_ has joined #ruby
Eiam has quit [Disconnected by services]
Eiam_ is now known as Eiam
jerius has joined #ruby
pabloh has quit [Quit: Saliendo]
jhwhite has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tyll has quit [Ping timeout: 255 seconds]
aclearma_ has joined #ruby
paulfm_ has joined #ruby
gtrak has quit [Ping timeout: 255 seconds]
bousquet has joined #ruby
Timgauthier is now known as timgauthier_away
tyll has joined #ruby
TeresaP has joined #ruby
paulfm has quit [Ping timeout: 250 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scotteh has joined #ruby
gtrak has joined #ruby
aclearman037 has quit [Ping timeout: 265 seconds]
claw has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
kaspergrubbe has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
timonv_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TeresaP> Is it possible to pipe only errors from a system call to the console?
<eam> TeresaP: you mean system()?
<TeresaP> Yes
entrenador has joined #ruby
<eam> there are a few ways, mostly depending on whether you're invoking a subshell or not
<TeresaP> One of my coworkers had attempted system("command > /dev/null 2>&1") but that does not do the trick
<eam> just drop the 2>&1, that part isn't necessary
<eam> stdout and error both already go to the termianl
skolman_ has quit [Remote host closed the connection]
claw___ has quit [Ping timeout: 245 seconds]
jusmyth has quit [Quit: Leaving.]
<eam> ideally you'd avoid the subshell entirely, but
mikepack_ has quit [Remote host closed the connection]
<TeresaP> > /dev/null and &> /dev/null don't do the trick either
Linell has left #ruby [#ruby]
<TeresaP> It's not possible to avoid system calls
7GHAAGM3I has joined #ruby
<TeresaP> I just want to ignore positive output and only display negative output
<eam> TeresaP: avoiding the subshell is different than avoiding calling system()
<eam> and those aren't system calls
jenrzzz has joined #ruby
<eam> TeresaP: system "foo > /dev/null" will ignore stdout and only display stderr
<TeresaP> when I say "system" I mean "system()
<certainty> 2 > /dev/null if you insist on using system
mistermocha has joined #ruby
<eam> certainty: other way around
<TeresaP> That is not working for me, eam
boombadaroomba has quit [Remote host closed the connection]
<eam> TeresaP: then your program is probably not printing to stderr
<certainty> eam: oh yeah sorry. he doesn't want stdout
<certainty> misread
<eam> TeresaP: can you share the command you're running?
<TeresaP> system("#{@setup_dyld_library_path} && #{IDEVICEINSTALLER_BINARY_PATH} -i #{APP_BUNDLE_PATH} -u #{DEVICE_ID} > /dev/null 2>&1")
psyprus has quit [Read error: Connection reset by peer]
dumdedum has quit [Ping timeout: 245 seconds]
<eam> TeresaP: that's the problem
mityaz has quit [Quit: Leaving]
<eam> the &&
<TeresaP> Well I have to have it, unfortunately
jimmyhoughjr has joined #ruby
<eam> TeresaP: you just need more 2>
TPBallbag has quit [Remote host closed the connection]
psyprus has joined #ruby
<certainty> or do one command after the other
<eam> TeresaP: like this: system("#{@setup_dyld_library_path} >/dev/null && #{IDEVICEINSTALLER_BINARY_PATH} -i #{APP_BUNDLE_PATH} -u #{DEVICE_ID} > /dev/null")
<TeresaP> certainty I can't.
<certainty> only if the first succeeds of course to not break semantics
<eam> TeresaP: you can, you just need to test $?
<TeresaP> Hmm ok eam I'll try that, thanks
<eam> any logic you write in shell can be written in ruby
<rpag> or perl
7GHAAGM3I has quit [Ping timeout: 255 seconds]
boombadaroomba has joined #ruby
<eam> system "#{@setup_dyld_library_path} >/dev/null"; next unless $?.success?
<eam> or whatever
<eam> and then instead of >/dev/null, change-up $stdout
<rpag> imo it'd be nice if system returned Process::Status
timonv_ has quit [Remote host closed the connection]
<TeresaP> @setup_dyld_library_path = "export DYLD_LIBRARY_PATH=#{LIBIMOBILEDEVICE_FOLDER_PATH}"
<TeresaP> I can't do that on a separate line
<eam> you shouldn't
<eam> you should ENV["DYLD_LIBRARY_PATH"] = LIBIMOBILEDEVICE_FOLDER_PATH
<eam> in ruby
<eam> you really do not need to write any shell at all
<TeresaP> When I asked this question in this forum awhile back I was told this is how I had to do it
<TeresaP> :)
<eam> mmm I was there and I remember advising you differently
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<TeresaP> I don't know what to say
<eam> what you're doing will work, it's just suboptimal
mengu has quit [Remote host closed the connection]
jheg has joined #ruby
shredding has joined #ruby
renderful has quit [Remote host closed the connection]
<certainty> also d
<certainty> erm
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> you probably don't want to replace the current dyld_library_path but just add your path to it?
tlarevo has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby
mikepack has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
jdj_dk has joined #ruby
einarj has joined #ruby
<TeresaP> certainty I just want it set for the current session, not permanently
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
<TeresaP> I don't need or want to append as I want to force the variable to be set to a specific folder
shredding has quit [Quit: shredding]
tonini has joined #ruby
<eam> generally dyld_library_path is unset
Hijiri has joined #ruby
mistermocha has quit [Remote host closed the connection]
<certainty> TeresaP: alright. didn't know what commands run before/after yours.
<eam> it'd be nice if system took a with_env argument
<eam> and had a better way to avoid shell execution
<eam> one of my favorite "seems easy but is really hard to answer" question is "which of these system() invocations runs /bin/sh?"
<certainty> well #popen is easy enough
<eam> eg: system "ls"; system "ls -l"; system "ls -l *" # which of these three runs /bin/sh?
sinequan_ has joined #ruby
<eam> certainty: popen has the same problem
freezey has joined #ruby
<jenrzzz> eam: don't they all?
<certainty> it accepts an environment argument iirc
<eam> jenrzzz: only the last one does
sambao21 has quit [Quit: Computer has gone to sleep.]
<jenrzzz> eam: you sure?
<eam> ostensibly a shell would be needed to tokenize "ls -l" but ruby does that internally
shredding has joined #ruby
<eam> jenrzzz: yes I am
<rpag> i thought system() always spawns /bin/sh
<eam> nope
econerd4ever has quit [Remote host closed the connection]
[[vedic]] has quit [Ping timeout: 245 seconds]
freezey has quit [Read error: Connection reset by peer]
<eam> the fun followup is how to guarantee it never does
<jenrzzz> yeah I'm reading the docs and it sounds like any invocation with a single string argument runs it in a shell
<eam> jenrzzz: sometimes
<fr1eza> whats the standard syntax practice for ruby to access instance variables
<eam> here's how you can avoid it (exec has the same calling convention) https://github.com/square/prodeng/blob/master/mssh/lib/mcmd.rb#L29-35
<fr1eza> like in java its getVariable()
ghr has joined #ruby
<eam> system/exec have a very nonintuitive interface
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rpag> dynamically? instance_variable_get
<certainty> eval("@#{var_name}")
* certainty hides
<fr1eza> I mean like when you define a class
sinequan_ has quit [Ping timeout: 265 seconds]
<fr1eza> you would have @variable = something in the constructor
<fr1eza> and then when you want to be able to acess that at runtime
<jenrzzz> eam: i'm still not sure about that. the docs for system/spawn say that any single string argument gets run in a subshell.
<eam> jenrzzz: try it :)
Kiwiheretic has quit [Quit: Bye]
<certainty> fr1eza: you mean a reader?
benzrf|offline is now known as benzrf
kil0byte has joined #ruby
pranny has quit [Quit: Leaving.]
TPBallbag has joined #ruby
<jenrzzz> eam: i did, and it works as expected. system("ls *") expands the glob, system('ls', '*') does not
moskovski has joined #ruby
pu22l3r_ has joined #ruby
<eam> jenrzzz: right, that one always runs a shell
<eam> we're talking about case 1 & 2
<eam> those do not
<jenrzzz> what are case 1-2?
kasperti_ has quit []
TPBallbag has quit [Remote host closed the connection]
rajeshchawla has quit [Remote host closed the connection]
<eam> 11:54 < eam> eg: system "ls"; system "ls -l"; system "ls -l *" # which of these three runs /bin/sh?
<eam> if a shell metacharacter like * isn't present, no shell is invoked
<eam> given a single-arg form
<jenrzzz> how do you know that?
<eam> because I've read rb_exec_fillarg() in process.c
<apeiros> eam is a ruby-jedi - he uses the source
<eam> and am familiar with debuggers :)
<apeiros> s/he/they/
<eam> (and, bugs in it have bitten me before)
<apeiros> I fail. again.
* certainty used to be familiar with burgers
pu22l3r has quit [Ping timeout: 245 seconds]
<eam> apeiros: I am a he
sambao21 has joined #ruby
rajeshchawla has joined #ruby
<apeiros> I now ponder whether I'm too lazy to remember the gender of all people I interact with on IRC :D
Helious has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
pu22l3r_ has quit [Ping timeout: 265 seconds]
Hightower666 has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
<eam> :)
St_Marx has quit [Quit: Ex-Chat]
<certainty> doesn't matter, just pick one $gender and stick to it for the rest of the context
<eam> use the gender-neutral "bro"
<certainty> sis
<Nilium> I remember gender if someone tells me it, otherwise I have no idea and they remain an it, like apeiros.
<j416> lol gender-neutral "bro"
<certainty> or in your case sith
<rpag> the irc population seems to be predominately male
<apeiros> Nilium: if I wouldn't IRC so much, I'd probably do that too. but there's sooo many people :-|
<Nilium> There's a lot of people but I generally only speak with a few of them and am told the gender of even fewer
<apeiros> rpag: yeah, and by reinforcing the stereotype, it will stay that way. hence I do the effort of being gender neutral.
<apeiros> or trying to be.
pietr0 has joined #ruby
bjessbrown has joined #ruby
<rpag> for some reason unknown to me males are attracted to programming more than anyone else
<certainty> rpag: it's because they can't give birth
<apeiros> rpag: there's a lot of reading material
<rpag> at least on irc
<apeiros> because it didn't use to be that way.
<rpag> really? o_O
<apeiros> really
momomomomo has quit [Ping timeout: 260 seconds]
<certainty> when apeiros was younger, like when he was in school with metusalem, there were more female programmers
<certainty> *scnr*
<apeiros> and I think if men were less dickish, it might even change again.
momomomomo has joined #ruby
<jenrzzz> eam: huh, that's a clever optimization :)
<apeiros> certainty: you think I'm that young? why, thank you :D
sambao21 has quit [Quit: Computer has gone to sleep.]
<certainty> nah, just wanted to be charming
<TeresaP> eam thanks for the ENV[] reiteration. It works and looks a lot cleaner.
<rpag> apeiros, tbh i always thought it was just because females preferred other trades
ursooperduper has joined #ruby
shazaum_ is now known as shazaum
<TeresaP> Oh geez, are we doing this conversation again?
<certainty> rpag: ever heard of lady ADA?
shazaum has quit [Changing host]
shazaum has joined #ruby
<rpag> ceej, i have
<rpag> woops
<rpag> certainty, i have*
<certainty> i'm quite sure she was female
<apeiros> TeresaP: I think we'll have that conversation again and again for a couple of years to come. enjoy.
<TeresaP> honestly I got a lot less crap from men for being female and interested in computers than other women growing up
<certainty> of course that doesn't say anything about the distribution of female programmers accross the total population at that time
<certainty> it's just an interesting point
<TeresaP> lol apeiros
omosoj has quit [Ping timeout: 245 seconds]
<TeresaP> I guess I should say 'girls' since we were kids
<TeresaP> and 'boys'
<apeiros> I think local culture can differ by large amounts with regards to that
<certainty> the women i got to know where pretty good at programming.... they used to program the boys around them
<TeresaP> Good point. I grew up in midwest USA
freezey has joined #ruby
<eam> certainty: in the early days there were more female computer operators, but this isn't synonymous with "programmer" as we understand it
<TeresaP> My mother used to discourage me, my father encouraged me. My teachers encouraged me. My female classmates made fun of me. My male classmates thought it was cool. Mixed messages, ftw.
<certainty> eam: what days are we talking about here?
<eam> certainty: pre-80s
<eam> it was perceived (and primarily was) data entry
<eam> aka something a secretary would do
ptrrr has joined #ruby
rkalfane has joined #ruby
<TeresaP> My dad made programming seem boring, but my physics teacher freshman year made it sound cool. 1997 for reference.
<certainty> eam: alright... interestingly almost all "famous" computer engineers of those days i remember are male
<Nilium> My dad gave me a Perl book and put me off programming for a few years as a result.
<eam> the thing is, the women doing data entry also ended up implementing nontrivial logic and being compsci experts
<certainty> Nilium: you have my sympathy
<TeresaP> lol
<eam> and when the personal computer took off the social expectations shifted
wald0 has quit [Ping timeout: 256 seconds]
jdj_dk has quit [Ping timeout: 258 seconds]
<Nilium> He only knew how to do stuff in assembly, so I guess Perl was his idea of a starter language
pranny has joined #ruby
<certainty> "how perl nearly killed my carreer as a programmer"
<certainty> goot title for a book
<certainty> erm, good
<rpag> perl was my first language
timonv_ has joined #ruby
<rpag> when i look at it now, i think ruby has spoiled me
<eam> perl's an ok language, it's no better or worse than basic
<Nilium> WDL was my first language after Perl.
Metics has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
<eam> (considerably better than say, gw-basic)
<Nilium> After that, I used BlitzBasic, which is still a good Basic
jerius has quit []
<apeiros> eam: I certainly prefer perl over basic
alaa00 has joined #ruby
<rpag> visual basic 6 *memories*
<apeiros> at least my memories for VB6 (without using the V part of it) are rather bad
<certainty> i basically prefer certainty over perl
benzrf is now known as benzrf|offline
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<rpag> VB6 made it incredibly easy to build windows applications though
bjessbrown has quit []
<eam> gw-basic -> qbasic -> pascal -> c -> perl
renderful has joined #ruby
<rpag> i cant say the same for perl :
zai has joined #ruby
<rpag> :)
<apeiros> hence my emphasis on having it used for non-visual stuff
<apeiros> i.e. the language/library part itself was horrible IMO
<rpag> then there was vbscript
godd2 has joined #ruby
<eam> some of us learned to program before the advent of the GUI environment
<certainty> dim foo as variant
<certainty> bah
<eam> actually I picked up assembly when I was doing pascal in high school, so I could do graphics
pranny has quit [Ping timeout: 260 seconds]
Morkel has quit [Quit: Morkel]
<apeiros> afair I had to use like 3 different interface implementations because non was complete, and each lacked in a different area.
<apeiros> +database
<zai> Hi! Say, you do something like "cat script | ruby". Is there any way to access the contents of the script in string form inside ruby?
<eam> the graphics libraries that shipped with turbopascal weren't fast, I adapted stuff from mike abrah's black book and wrote pascal ffi bindings
<apeiros> (insert randomly, I'm sure it'll still make sense)
<eam> it wasn't ffi of course
<apeiros> zai: $stdin.read
* certainty learned enough vbscript to understand the loveletter worm
<zai> apeiros: thanks! :)
<certainty> back at that time
<eam> the good old days where you just called int 10h to set the video mode and then wrote to memory
phutchins has quit [Ping timeout: 240 seconds]
<rpag> certainty, i remember that, it was huge
<certainty> my dad used to be a pascal programmer. that pretty much drove me away from programming
<eam> pascal was great
cajone has joined #ruby
<certainty> i don't think so. I had to use it again in university during the foundation
<eam> what's not to like?
<certainty> ^dunno :)
<Nilium> I never learned Pascal, though I like some of the stuff in it.
<eam> certainty: I'll take it over .*
Deejay_ has joined #ruby
claymore has joined #ruby
<zai> apeiros: hm... when I just enter "put $stdin.read" in my script and then pipe it into ruby, I don't get "puts $stdin.read" as output, but an empty line
<apeiros> zai: you said `cat script | ruby`
<zai> apeiros: yes
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
Metics has quit []
paulfm_ has quit []
Cork has quit [Ping timeout: 250 seconds]
timonv^ has joined #ruby
kasperti_ has joined #ruby
Eiam has joined #ruby
shosti has quit [Ping timeout: 245 seconds]
<apeiros> oh, I see. I thought you meant catting a file to a ruby script. but you cat your code to ruby to get it executed and want to access that code.
m8 has joined #ruby
<apeiros> I'm not aware of a way to get at that code, no.
mikhailvs has left #ruby [#ruby]
zarubin has joined #ruby
jasooon has joined #ruby
paulfm has joined #ruby
<zai> I say :( (and yes, that's what I'm trying to do)
<certainty> eam: it's basically what many languages in that regard are bad. too much syntax, too much semantics (procedure/function separation as an example)... I like it the the "clinger-way", don't pile feature on feature but just eliminate the shortcomings that make those features appear to be neeeded
<zai> *I see
kasperti_ is now known as kaspertidemann
<havenwood> zai: Like?: echo "hi\nthere" | ruby -e 'ARGF.each_line { |line| puts "#{line.chomp} ..." }'
<zai> apeiros: but thanks! :)
<apeiros> yw
rajeshchawla has joined #ruby
pranny has joined #ruby
jobewan has joined #ruby
gauke has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<zai> havenwood: hm, let me try that and think about it for a moment
<apeiros> zai: you could if you'd eval it manually
sambao21 has joined #ruby
chipotle has joined #ruby
freezey has quit [Remote host closed the connection]
<apeiros> e.g. cat script | ruby -e '$CODE = $stdin.read; eval $CODE'
timonv_ has quit [Ping timeout: 255 seconds]
<havenwood> zai: ah, you want to *run* the code?
<zai> havenwood: no, just output
<apeiros> now I'm confused again as to what you want, zai :-p
<certainty> only running code is good code
<apeiros> well, I got to attend different things anyway
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
genta has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
<apeiros> certainty: my code is unafraid. it walks.
<certainty> :)
<zai> apeiros: me too, I think ^^ so yes, I want to run it but within that running code, I want to be able to access itself as string
gtrak has quit [Quit: No Ping reply in 180 seconds.]
wallerdev has quit [Quit: wallerdev]
<pontiki> maybe 'my_code = File.read(__FILE__)' ?
<zai> Like I would if I'd do File.open, but I wouldn't have a file
<certainty> then fiddle with it and eval it again
jasooon has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
timonv^ has quit [Read error: Connection reset by peer]
freezey has joined #ruby
pranny has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
<pontiki> maybe you could tell us why you want to do so, and that might help someone figure out how to help, too
<zai> Yust fiddle and output afterwards
pranny has joined #ruby
gtrak has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
<zai> it might sound weird, as it's not something that makes a lot of sense. I want to have ruby code in an SVG, but in order to do that, I have to "tail -n +2 svgname.svg | ruby". but then I want to post process that whole svg file.
entrenador has quit [Quit: Textual IRC Client: www.textualapp.com]
pranny1 has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
pranny has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
shosti has joined #ruby
olrrai has joined #ruby
<pontiki> what does having ruby code embedded in an SVG file enable you to do?
<pontiki> i.e, zai, what's the goal you're trying to accomplish with this?
shredding has quit [Quit: shredding]
timonv_ has joined #ruby
<pontiki> maybe there's another approach that's not so weird, even tho i do like weird :)
olrrai has left #ruby [#ruby]
<certainty> weird is the new hot
claymore has joined #ruby
<pontiki> but weird is not the new orange!
jottr_ has quit [Ping timeout: 256 seconds]
<certainty> nope orange is the new black though
<certainty> clockwork orange is weired too
crazydiamond has quit [Ping timeout: 245 seconds]
neoxquick has joined #ruby
pyon has joined #ruby
<zai> pontiki: nothing meaningful. there's a way to encrypt a PNG (with AES128) and turn it into another valid PNG. It involves some tricks, but it's possible. I want an SVG that encrypts to a PNG. But I don't want to add an extra script for the encryption. I want to have the script inside the SVG as well.
<pontiki> that's the old orange, and one of my favourite weirds
chrishough has joined #ruby
doubleemms has joined #ruby
<pontiki> interesting
pranny1 has quit [Ping timeout: 265 seconds]
jdj_dk has joined #ruby
<jenrzzz> zai: can you do it the other way around and put the SVG into a ruby file's DATA?
<certainty> zai: sounds like you want to read that file from within ruby then extract the code and run it inside a sandboxed environment
ceej has quit [Ping timeout: 244 seconds]
klaut has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
<zai> jenrzzz: unfortunately not, as the SVG isn't valid anymore afterwards
tmoore has quit [Ping timeout: 244 seconds]
<jenrzzz> zai: is the ruby code gonna be in CDATA or something?
ggherdov has quit [Ping timeout: 244 seconds]
ckrailo has quit [Ping timeout: 244 seconds]
PhilK has quit [Ping timeout: 272 seconds]
ramblinpeck has quit [Ping timeout: 272 seconds]
bove has quit [Ping timeout: 272 seconds]
andrewcarter has quit [Ping timeout: 272 seconds]
mjc_ has quit [Ping timeout: 272 seconds]
kyote has quit [Ping timeout: 272 seconds]
<zai> jenrzzz: in a comment <!-- ruby code here -->
<pontiki> this would be an SVG that you can pass around and it would always be a valid SVG, until you ran the embedded code, and it would turn into a valid (encrypted?) PNG ?
freerobby has quit [Quit: Leaving.]
<zai> certainty: then I'd have to write another script again to extract the code. would love to have it all in one
joshingly has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 272 seconds]
ckrailo has joined #ruby
<zai> pontiki: exactly
tmoore has joined #ruby
mroth_ has joined #ruby
ramblinpeck has joined #ruby
bove has joined #ruby
joshingly has joined #ruby
kyote has joined #ruby
andrewcarter has joined #ruby
PhilK has joined #ruby
mjc_ has joined #ruby
<pontiki> right off, i can't think of a way without an intervening filter of some kind to pass non-ruby code containing ruby code into ruby and have ruby directly understand that
p8952_ is now known as p8952
ceej has joined #ruby
apeiros has joined #ruby
<pontiki> but there are things you put on a ruby command to do filtering and (a little) preprocessing, i think?
axl_ has joined #ruby
<zai> I'd have <xml header><svg><!-- ruby code; __END__ --> more svg stuff, some extra bits as comment that become the PNG later on, some data that the ruby script reads and then </svg>
<terrellt> Er, so you'd have to strip out the comments too, no?
<zai> and i'd cut off the <xml header><svg><!-- with the tail -n and then pipe the rest to ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<zai> terrellt: ruby will ignore everything after the __END__
<terrellt> Right
<terrellt> And you can't access the file content with DATA?
<zai> though in the string, I'd like to have all of it. also the stuff after __END__
yfeldblum has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
n3b has quit [Ping timeout: 272 seconds]
<terrellt> DATA will be a string with everything after __END__
<zai> terrellt: it has to be the whole file. I don't want just the part after __END__
<terrellt> You want the header you tail'd away?
<terrellt> Or you want the ruby code you embedded?
ggherdov_ has joined #ruby
<zai> well, no, I can't have that
<zai> the ruby code + the __END__ and everything after
<zai> as string
axl_ has quit [Client Quit]
p8952 has quit [Quit: ZNC - http://znc.in]
<terrellt> Okay. Why not a shim? <!-- my_ruby_code = "rubycodeasstring"; eval my_ruby_code; __END__ stuff
p8952 has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL_ has joined #ruby
<terrellt> zai: By the way, this is neat.
<terrellt> If you make it work I want the file, so I can try it out
<terrellt> Assuming it's not some sorta trade secret.
kaspergrubbe has joined #ruby
Mars` has joined #ruby
n3b has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
shredding has joined #ruby
<zai> terrellt: lol, no trade secret ^^ I'll have it on my blog afterwards. /msg me your mail address or twitter handle or so and I'll ping you when it's live
ndrei has joined #ruby
ndrei_ has joined #ruby
alaa00 has quit [Ping timeout: 258 seconds]
<jenrzzz> it'd be cool if ruby had something like __BEGIN__ that did the opposite of __END__
Imofftopic has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
fabrice31 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bklane has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
<certainty> zai: the entire code fits two lines? why not just ruby -e $(tail -n 2 file) < head -n -2 file ... the code would have to reald from stdin then
<zai> jenrzzz: it has BEGIN{} but it's not really the same, as it doesn't just ignore the parts before. if the parts before have a parser error then it will break. unfortunately :/ (tried that)
<certainty> anyway, gotta go
sssilver has left #ruby [#ruby]
jhwhite has quit [Quit: jhwhite]
bklane has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
zB0hs has joined #ruby
rodfersou has quit [Quit: leaving]
<zai> certainty: hm... have to think about this. thanks for the suggestions! have a good day
kaspergrubbe has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 272 seconds]
<pontiki> could you do something with BEGIN{} and END{} so that you suck up the entire content in the BEGIN{} block, extract the ruby code and evaluate it?
fabrice31 has quit [Ping timeout: 245 seconds]
pietr0 has quit [Quit: pietr0]
nonks has joined #ruby
skolman has joined #ruby
postmodern has joined #ruby
doug1 has joined #ruby
graydot has quit [Quit: graydot]
<zai> pontiki: it wouldn't be a valid svg anymore if I had the svg part in BEGIN{}
claymore has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
<pontiki> no, the BEGIN{} isn't part of the SVG, it's what you give the ruby command
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
jdj_dk has quit [Remote host closed the connection]
User458764 has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
jdj_dk has joined #ruby
sambao21 has joined #ruby
<pontiki> like: ruby -e 'BEGIN{#ruby code run before}' -e 'END{#ruby code run after}' SVGFILE
<pontiki> i don't really know, i'm just tossing it out
benzrf|offline is now known as benzrf
n3b has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
Deejay_ has joined #ruby
User4587_ has quit [Ping timeout: 256 seconds]
ndrei_ has quit [Ping timeout: 265 seconds]
<zai> pontiki: hmm... I'm not sure. but maybe. I'll add it to my list of possibilities for further investigation
<pontiki> yeah, this is an interesting problem, zai
pietr0 has joined #ruby
noop has quit [Ping timeout: 244 seconds]
elimin8r has joined #ruby
emmesswhy has joined #ruby
<pontiki> i'd love to hear what you come up with
ghr has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 265 seconds]
<certainty> depending on the filesize you could also store the entire file in an environment variable
<certainty> there are upper limits though
KC9YDN has joined #ruby
n3b has joined #ruby
<zai> pontiki: I can ping you when I got something
timonv_ has quit [Ping timeout: 245 seconds]
<pontiki> SVGs can certainly get complex, but at least they're just text
boombadaroomba has joined #ruby
<zai> certainty: oh, like FOO="$(cat mysvg.svg)" and access that later within ruby?
<certainty> zai: yeah
Hightower666 has joined #ruby
deadskinmask is now known as zombiejames
<pontiki> zai: if i'm not on (unlikely :) ), use mesgserv :)
sea_local has joined #ruby
jottr_ has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
<zai> certainty: hmm... could work. but yeah, filesize might be an issue...
<benzrf> pontiki: nice tactic for parenthesized smiley o/
elimin8r has left #ruby [#ruby]
thagomizer has quit [Quit: Leaving.]
<zai> pontiki: okido :)
<pontiki> hehe
thagomizer has joined #ruby
klaut_ has joined #ruby
Wolland has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
zombiejames is now known as totimkopf
jordsmi has quit [Quit: Connection closed for inactivity]
claymore has quit [Ping timeout: 255 seconds]
<certainty> zai: also tempfiles are not an option?
klaut has quit [Ping timeout: 265 seconds]
claymore has joined #ruby
<zai> certainty: everything is an option. also passing the original filename as argument somehow... so wouldn't have to be a tmp file
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has quit [Quit: Leaving]
chrishough has joined #ruby
<zai> certainty: everything that doesn't have too much shellcode, as I'd like to have that minimal and most/all done within that svg code
robbyoconnor has quit [Ping timeout: 265 seconds]
User4587_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Scub has quit [Quit: WeeChat 0.4.3]
<certainty> zai: i'd go with ruby -e $(tail -n 2 file) < file ... that's pretty straight forward
ghr has joined #ruby
<zai> certainty: my fav would be to have something like ruby -option svgfile.svg where the option tells it to just skip the first two lines. then I could just use __SCRIPT__ to get the file name and work with that
Parker0 has joined #ruby
Jonah11_ has joined #ruby
twohlix_ has quit [Quit: quiiiiit]
User458764 has quit [Ping timeout: 245 seconds]
<zai> certainty: that'll give me the file available in $stdin.read, right?
ringaring has joined #ruby
<certainty> zai: yes
<Jonah11_> Why am I getting invalid date here: Date.strptime("11/16/2012 1:37:35 PM EST","%-m/%-d/%Y %-l:%M:%S %p %Z") -- https://eval.in/210672
zorak8 has joined #ruby
mityaz_ has quit [Quit: See ya!]
n3b has quit [Ping timeout: 245 seconds]
skolman has quit [Remote host closed the connection]
<eam> zai: what are you trying to do?
<zai> certainty: yeah, then it really seems to be the cleanest I can get...
<certainty> zai: also you could add a shebang line at the end of your svg data then put the code there. Execute it with ruby -x ... it will ignore everything until shebang
skolman_ has joined #ruby
<certainty> i hope that you can access the files content with __FILE__ then
kaspergrubbe has quit [Remote host closed the connection]
<jhass> apeiros: new rubies ;)
schaerli has quit [Ping timeout: 255 seconds]
<zai> certainty: no shit? really?? that's perfect! That'd be what I need!!
<certainty> zai: yeah
<zai> omg... let me try this. sec
IceDragon has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
<TeresaP> Anyone know a better way to state STEP_PAUSE = ((ENV['STEP_PAUSE'] or 0.5).to_f) unless defined?(STEP_PAUSE)
jaequery has joined #ruby
<TeresaP> I keep getting warning: previous definition of STEP_PAUSE was here
<zai> certainty: OMG, you're the best!! thank you so much for this! best solution. A+ :D
harax_ has joined #ruby
n3b has joined #ruby
<certainty> zai: yw
chrishough has quit [Ping timeout: 240 seconds]
<certainty> TeresaP: STEP_PAUSE ||=ENV.fetch('STEP_PAUSE',0.5)
<Jonah11_> TeresaP: ENV.fetch('STEP_PAUSE', 0.5).to_f shoudl work
<zai> eam: something really weird. but certainty already found a way to accomplish it :)
<certainty> ah missed the .to_f
<Wolland> Jonah11_: try removing - s
<Wolland> DateTime.strptime("11/16/2012 1:37:35 PM EST","%m/%d/%Y %l:%M:%S %p %Z")
<TeresaP> Ooh shiny, I did not know about that
<zai> I'll get back to tinkering with this. bye folks! and thanks for all the suggestions and help :)
<TeresaP> Thanks certainty, Jonah11_
NovapaX has joined #ruby
<certainty> zai: give me an update once the blogpost is live .... twitter will do @dkrentzlin
<Jonah11_> Wolland: but I need to handle the single digit case which might be like "1/1/2014 etc"
skolman_ has quit [Ping timeout: 244 seconds]
shredding has quit [Quit: shredding]
<zai> certainty: certainly :)
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Wolland> Jonah11_: should work as well
<Wolland> >> DateTime.strptime("1/1/2012 1:37:35 PM EST","%m/%d/%Y %l:%M:%S %p %Z")
<eval-in__> Wolland => uninitialized constant DateTime (NameError) ... (https://eval.in/210674)
<Wolland> blargh
emmesswhy has joined #ruby
Darryl_ has quit [Ping timeout: 244 seconds]
chrisseaton has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
<Jonah11_> Wolland: I see what your getting at, it works, but why? The "-" flag is supposed to subtract leading space padding....
NovapaX has quit [Client Quit]
harax_ has quit [Ping timeout: 272 seconds]
HashNuke has quit [Ping timeout: 244 seconds]
ghr has quit [Read error: Connection reset by peer]
oleo is now known as Guest11324
oleo__ has joined #ruby
HashNuke has joined #ruby
User458764 has joined #ruby
chrisseaton has joined #ruby
chrishough has joined #ruby
ec__ has quit [Ping timeout: 265 seconds]
Jackneill has quit [Ping timeout: 255 seconds]
Darryl_ has joined #ruby
ec__ has joined #ruby
mattmcclure has joined #ruby
shredding has joined #ruby
Parker0 has joined #ruby
Guest11324 has quit [Ping timeout: 244 seconds]
rajeshchawla has joined #ruby
User4587_ has quit [Ping timeout: 265 seconds]
skolman has joined #ruby
Akagi201 has joined #ruby
iamjarvo has joined #ruby
<cschneid> I'm seeing some weird behavior where a newly created directory (from `mkdir_p`) is getting 655 permissions. So the owner can't get into it... I explicitly set mode: 0755, but that doesn't seem to change the behavior
jasooon has joined #ruby
<cschneid> anybody seen this kind of weirdness? What should I look at
<cschneid> umask looks right (0022)
TPBallbag has quit [Remote host closed the connection]
<eam> cschneid: what's strace say
<TeresaP> eam just to double-check, this is supposed to only output errors right? system("#{IDEVICEINSTALLER_BINARY_PATH} -U #{BUNDLE_ID} -u #{DEVICE_ID} > /dev/null")
vcoinminer______ has quit [Ping timeout: 272 seconds]
jrunning_ has quit [Ping timeout: 272 seconds]
yo61 has quit [Ping timeout: 272 seconds]
dnyy has quit [Ping timeout: 272 seconds]
<eam> TeresaP: it should only output stderr
<eam> cschneid: strace -emkdir
<TeresaP> I don't see the output when I run it :-S
<eam> TeresaP: your program may be printing "errors" to regular old stdout
jenrzzz has joined #ruby
<TeresaP> That would be annoying
<cschneid> oh weird. Turns out uname is weird in my delayed_job process, but not in my main rails process. What the heck!
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
<eam> cschneid: was one started from a login shell and the other from bootup / rc.d?
jrunning_ has joined #ruby
dnyy has joined #ruby
ndrei has joined #ruby
<cschneid> eam: one was started via a monit script, so I think it did lose its environment
banister_ has joined #ruby
vcoinminer______ has joined #ruby
<eam> I suggest thinking the other way around - the non-login environment is correct
ndrei_ has joined #ruby
yo61 has joined #ruby
<eam> logins are always variable
Akagi201 has quit [Ping timeout: 260 seconds]
Deejay_ has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has quit [Ping timeout: 272 seconds]
<cschneid> well, its giving me a uname of `0122`, which is a very weird one
banister has quit [Ping timeout: 245 seconds]
n3b has quit [Ping timeout: 240 seconds]
<eam> running from monit? check monit itself (walk up the process tree)
tercenya has joined #ruby
<certainty> s/uname/umask/
<cschneid> yeah, umask, sorry
<certainty> compensated it :)
ghr has joined #ruby
shredding has quit [Quit: shredding]
psyprus has joined #ruby
<certainty> i suspect monit is started from some rc script
wallerdev has joined #ruby
axl_ has joined #ruby
jgrevich has joined #ruby
n3b has joined #ruby
chipotle has quit [Quit: cya]
govg has quit [Quit: leaving]
User4587_ has joined #ruby
govg has joined #ruby
<cschneid> certainty: checking the umask of monit - it is 0022, so its not monit itself doing it. It's downstream, so ruby/rails/one of the thousand gems
pranny has joined #ruby
<eam> fun
<certainty> aww man
pu22l3r has quit [Remote host closed the connection]
<benzrf> it would be nice
<benzrf> to have a thousand gems
<cschneid> anyway, this is odd - I'll look into it more
<benzrf> tthen i could sell em and have some funds
b3itz has joined #ruby
<eam> benzrf: I will email you over this fortune file
<eam> it's full of gems
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<benzrf> kek
<b3itz> hey guys, so i need to create a fixed size array with random numbers in the array, for example, user enters array size 10, i need 10 random numbers in the array
pietr0 has quit [Quit: pietr0]
<eam> b3itz: what have you tried so far?
shadeslayer has joined #ruby
reinaldob has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 250 seconds]
freezey has quit [Remote host closed the connection]
chrishough has joined #ruby
<shadeslayer> hi there, I was wondering, where do I start if I want to process HTTP requests with ruby?
<b3itz> eam: array = Array.new(1+rand(highRange)) and thats not right obviously lol
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty> b3itz: Array.new(size){ rand(border) }
govg has quit [Client Quit]
pietr0 has joined #ruby
govg has joined #ruby
<benzrf> shadeslayer: can you be a lil more detailed?
ghostmoth has quit [Quit: ghostmoth]
decoponio has quit [Quit: Leaving...]
<benzrf> shadeslayer: at what level of abstraction do you want to work?
<b3itz> boom. thanks certainty
Helious has quit [Quit: Be back later ...]
<shadeslayer> benzrf: I want to listen for HTTP GET requests on a certain port
ghostmoth has joined #ruby
<certainty> b3itz: yw
pranny has quit [Ping timeout: 250 seconds]
<eam> shadeslayer: you want an http server?
<benzrf> shadeslayer: fyi inheritance is a complete ripoff of star wars <- fact
psyprus has quit [Ping timeout: 258 seconds]
sinequanon has joined #ruby
<shadeslayer> eam: yep
<shadeslayer> benzrf: heh
<graft_> anyone used rubyvis before?
graft_ is now known as graft
<benzrf> shadeslayer: you want to write a website or do something more low-level like a program that you access via http requests
<shadeslayer> benzrf: the latter
<benzrf> shadeslayer: try plain rack
<benzrf> shadeslayer: it's a pretty simple api
<b3itz> certainty: if i need to get the average of the array, would i use an each loop to iterate and add, then divide?
_ixti_ is now known as ixti
emmesswhy has quit [Quit: This computer has gone to sleep]
<certainty> b3itz: most likely you would sum
<shadeslayer> hm
<certainty> so reduce(:+)
<b3itz> is there a sum array method? certainty
<benzrf> shadeslayer: https://rack.github.io/
<shadeslayer> benzrf: Star Wars didn't have Dragons :P
<shadeslayer> benzrf: yep, looking at that
chrishough has quit [Ping timeout: 245 seconds]
nonks has quit [Ping timeout: 246 seconds]
<shadeslayer> what I was specifically looking was for something like def foo() in my ruby code becomes a HTTP GET method that I can just query using magic.com/api/foo
<certainty> >> a=Array.new(10){ rand(10) }; a.reduce(:+) / a.size
<eval-in__> certainty => 3 (https://eval.in/210678)
<certainty> b3itz: ^
<certainty> something like this maybe
<benzrf> shadeslayer: why not just use sinatra then.
<certainty> i have a gut feeling that this should be easier
<shadeslayer> benzrf: I'm not sure what that is, but googling
<benzrf> dang
ghr has quit [Read error: Connection reset by peer]
Tuxero has joined #ruby
<shadeslayer> benzrf: note that I can atmost do things like basic loops in ruby :P
WormDrink has joined #ruby
sinequanon has quit [Ping timeout: 265 seconds]
<j2p2> yeah sinatra looks like just the thing
<benzrf> shadeslayer: ah
<rpag> sinatra or padrino for quicker prototyping
<benzrf> i assumed you already knew of sinatra and didnt want to use it for some rsn
sambao21 has quit [Quit: Computer has gone to sleep.]
psyprus has joined #ruby
<shadeslayer> nope, and sinatra looks just like what I want
<b3itz> sweeeet thanks certainty eval-in__
<shadeslayer> so thx :)
sambao21 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shadeslayer> yeah, this is going to be barely 10 lines with sinatra ;)
freerobby has joined #ruby
User458764 has joined #ruby
n3b has quit [Ping timeout: 272 seconds]
bmurt has quit [Remote host closed the connection]
sinkensabe has joined #ruby
TPBallbag has joined #ruby
<j2p2> :)
micahjam97 has joined #ruby
<Tuxero> hello
cocotton has joined #ruby
<certainty> yow
nonks has joined #ruby
<micahjam97> anybody here has a mac?
<benzrf> i don't!
fmcgeough has quit [Quit: fmcgeough]
User4587_ has quit [Ping timeout: 240 seconds]
<certainty> nope
<micahjam97> well, has anybody tried building ruby 2.1.3 or 2.1.4 from source?
TPBallbag has quit [Remote host closed the connection]
<certainty> nope
<jenrzzz> yes
bmurt has joined #ruby
<jenrzzz> something not working?
jasooon has quit [Ping timeout: 255 seconds]
n3b has joined #ruby
<benzrf> micahjam97: use ruby-install
chrishough has joined #ruby
paulfm has quit []
<micahjam97> on my mac osx lion, when I try building 2.1.3 or higher, it pauses for the longest time on linking miniruby
<micahjam97> 2.1.2 works fine though, even though I'd like to have the latest
<rpag> builds fine here but im on linux
gauke has quit [Quit: gauke]
<graft> micahjam97: what are you building with?
<micahjam97> graft: what do you mean?
aclearma_ has quit [Quit: I'm out!]
<graft> micahjam97: i mean where did you get the source and how are you building it?
<micahjam97> I came from using ubuntu, and mac is annoying little bitch
<cschneid> certainty: eam: turns out it is monit doing it to me. They have a bug which sets uname wrong, rolling back a version fixed it
<graft> micahjam97: use rbenv and ruby-build
<cschneid> s/uname/umask/ GAH
<graft> micahjam97: it is pretty painless
<micahjam97> graft: I downloaded the source from ruby-lang.org
<certainty> cschneid: which version is this?
<micahjam97> then I ran ./configure
<micahjam97> make
<cschneid> 2.9 is bad, 2.8.x is ok
<eam> insidious
<micahjam97> make test
<micahjam97> make install
<graft> micahjam97: yeah, don't bother with all of that shit, just use rbenv and ruby-build
<certainty> cschneid: alright. thanks
bmurt has quit [Client Quit]
<micahjam97> although it gets stuck on make
Hobogrammer has joined #ruby
<cschneid> certainty: oh sorry - 5.9 vs. 5.8.1
<cschneid> got the leading number wrong. Today really isn't my day
carraroj has joined #ruby
<certainty> :)
<micahjam97> how do you use rbenv to get the latest?
n3b has quit [Ping timeout: 244 seconds]
<eam> 0122 is the weirdest umask
<cschneid> eam: yep. That wasted me and my pairs whole morning
<cschneid> plus a few hours
<graft> micahjam97: install rbenv, there is also a link to ruby-build on that github page. clone ruby-build, you'll get access to rbenv install, then just do rbenv install <version>
omosoj has joined #ruby
djbkd has quit [Remote host closed the connection]
<certainty> eam: thanks for the heads up. weired bug
bmurt has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> micahjam97: better yet, ruby-install and chruby :)
<micahjam97> graft: thanks, you were very helpful
<certainty> well 0111 would be even more weired, i reckon
djbkd has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
n3b has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<micahjam97> mac osx 10.7.5 comes with ruby 1.8.7, so, this is a giant improvement
<rpag> 1.8.7 is so old by now :)
rkalfane has joined #ruby
djbkd has joined #ruby
<b3itz> how do i do a calculation and store as a float? like, average = (1 + 2 + 3)/2
<havenwood> micahjam97: Yosemite ships with ruby 2.0.0p481
<jenrzzz> (1 + 2 + 3)/ 2.0
<certainty> b3itz: make sure at least one operant is a ploat
<rpag> 2.to_f sould do it
<b3itz> how do i store the average variable as float
<b3itz> oh der
<rpag> or 2.0, yeah :)
<b3itz> thats right. thanks
<certainty> erm float
User4587_ has joined #ruby
<b3itz> oh..
<b3itz> so what i have is an array with random ints. i need to take the average of the array
ptrrr has quit [Quit: ptrrr]
<b3itz> and store that average as a float. so i can't directly make a float in the array
<eam> b3itz: to_f turns an int into a float
bklane has quit [Remote host closed the connection]
<micahjam97> havenwood: my macbook is from 2007, so it can only go up to lion
<graft> b3itz: ary.inject(&:+)/ary.size.to_f
sambao21 has quit [Quit: Computer has gone to sleep.]
<jenrzzz> ^
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Hobogrammer has left #ruby ["WeeChat 0.4.2"]
<rpag> >> [1,2,3,4].inject(:+)
<j2p2> yeah that
<b3itz> cool thanks graft
<eval-in__> rpag => 10 (https://eval.in/210679)
bklane has joined #ruby
chrishough has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<micahjam97> it was $350 so I'm not gonna complain
<j2p2> haha, finish your food rpag
<rpag> ?
<havenwood> micahjam97: then do a /usr/local install of Ruby: sudo ruby-install ruby 2.1.4 --system
sinkensabe has joined #ruby
User458764 has quit [Ping timeout: 256 seconds]
<j2p2> oh, with the division and stuff
<havenwood> micahjam97: unless you want to switch rubies, then chruby
atmosx has joined #ruby
bmurt has quit [Ping timeout: 258 seconds]
<atmosx> hello
<rpag> i just couldnt remember if &:+ was neccessary with inject or not :P
<j2p2> :p
<havenwood> atmosx: hey
emmesswhy has joined #ruby
W0rmDr1nk has quit [Quit: Leaving]
<atmosx> anyone ever created a SaaS?
sambao21 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
agrinb has quit [Remote host closed the connection]
<certainty> rpag: it doesn't hurt but it's not needed
<atmosx> If I have a project that I want to open source now, but hten I'd like to create a SaaS version of the same project (with additional features), what kind of license do I need to choose? Are there any limitations for me (since I'm the original dev) ? Anyone knows this kind of things?!
<atmosx> havenwood: hey, how's life? :-)
Versality has joined #ruby
<eam> atmosx: you can license code you write any way you wish
<rpag> atmosx, seen people use a dual license for that in the past
<micahjam97> so, I was trying to build ruby because I wanted to relearn it. I haven't touched it months, and I completely forgot pretty much everything about ruby. I'm looking for some really in-depth tutorials for Ruby that just don't say, like, this is how you print, but I want to go into types and stuff
<atmosx> eam: and change it later on?
cndiv has quit [Ping timeout: 260 seconds]
<micahjam97> any suggestions?
<havenwood> atmosx: la bonne vie
<atmosx> rpag: yes but GPLv3 can do it?!
<eam> atmosx: you may not be able to revoke the terms, however you can always supply additional terms (dual license)
<eam> and you can change the terms on new code
<rpag> oh i have no idea, i don't understand licenses well enough - sorry
<atmosx> havenwood: the sweet life?!
<rpag> sidekiq is dual licensed
<atmosx> rpag: yes me either, I need to study but a few leads could save me some time
bklane has quit [Ping timeout: 258 seconds]
<atmosx> yeap I'm using the free version :-P
<havenwood> atmosx: nice out, windy, new Ruby versions
<atmosx> that's interesting
<certainty> b3itz: alternatively use some_int.fdiv(other_value)
micahjam97 has quit [Quit: Page closed]
Tuxero has quit [Quit: Tuxero]
<b3itz> thanks certainty
chrishough has quit [Ping timeout: 260 seconds]
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ has joined #ruby
<atmosx> havenwood: yes 2.1.4 released
Jonah11_ has quit [Quit: Page closed]
alvaro_o has joined #ruby
<atmosx> hahaha a guy a few days was crying out loud about default openssl settings in ruby https://www.ruby-lang.org/en/news/2014/10/27/changing-default-settings-of-ext-openssl/
Lewix has joined #ruby
doug1 has quit [Ping timeout: 265 seconds]
<rpag> well, 'insecure by default' isnt a good default :P
<havenwood> why oh why doesn't OpenSSL have good defaults to begin with? >.>
<certainty> depends
<atmosx> havenwood: no idea, really.
<certainty> havenwood: because legacy
lightbringer has joined #ruby
<eam> good is a moving target
chrishough has joined #ruby
charliesome has joined #ruby
<certainty> hart to hit
<eam> at one point in time these defaults were good
<lightbringer> anybody know any good resources or books for in-depth ruby
<certainty> also it depends on the usecases.
<b3itz> can i convert an int to a string AND round to 4 places? I tried average.to_s.round(4) with no luck
User458764 has joined #ruby
<certainty> don't get me started on ciphersuites
<havenwood> but they don't move so downstream has to scramble to find folk competent to make sane decisions
<lightbringer> rubybot
<rpag> i think the openbsd guys forked openssl?
<lampd1> b3itz: what about rounding before converting to string?
<brushdemon> a long time ago
<certainty> rpag: yes libressl
<brushdemon> libressl
chrishou_ has joined #ruby
<rpag> i wonder if that'll take off or not
<lampd1> average.round(4).to_s
<brushdemon> just it got more popular with heartbleed
<lampd1> or something
<brushdemon> it's openbsd... they'll take off in their own OS
<rpag> hey, openssh took off :P
<certainty> it will not. openbsd folks like to say that at some point others may benifit from their patches but in reality that's not the case and probably never will be
<certainty> it's just a fork and the upstream openSSL remains "bad"
<b3itz> lampd1: i need the long decimal to calculate standard deviation
jerius has quit []
bklane has joined #ruby
<eam> upstream has been incorporating fixes
<eam> general code quality aside
<lampd1> well, what about creating a variable that gets logged and then rounding and converting to string after logging?
User4587_ has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
<b3itz> lampd1: gimme a sec
<certainty> b3itz: there's a series of blogposts that you might find interesting. It uses ruby as an example language ... http://sam-koblenski.blogspot.de/2014/09/everyday-statistics-for-programmers_17.html
chrishough has quit [Ping timeout: 255 seconds]
Azure has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
chrishou_ has quit [Ping timeout: 265 seconds]
pietr0 has quit [Quit: pietr0]
djbkd has joined #ruby
bklane has quit [Remote host closed the connection]
shosti has quit [Ping timeout: 265 seconds]
<b3itz> awesome link thanks certainty
elaptics is now known as elaptics`away
<b3itz> lampd1: i used deviation.round(4).to_s
<fr1eza> Whats the best way to achieve something like overloading constructor in ruby
cina has joined #ruby
<certainty> fr1eza: you mean overloading my arguments? i'm not aware of a method other than taking arbritary arguments and dispatch on your own
<rpag> yeah, same
<fr1eza> hmm ok
<fr1eza> like just take initialize(args) and parse ?
carraroj has joined #ruby
<certainty> fr1eza: yeah
<rpag> def initialize(*args); end
<certainty> fr1eza: more like initialize(*args)
<rpag> then switch on args.size
<fr1eza> ok ill do that
djbkd has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
djbkd has joined #ruby
pothibo has joined #ruby
axl_ has joined #ruby
chrishough has joined #ruby
banister_ is now known as banisterfiend
User4587_ has joined #ruby
renderful has quit [Remote host closed the connection]
skolman has quit [Remote host closed the connection]
<fr1eza> this sort of thing is alien to me as a java developer
skolman_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 256 seconds]
<certainty> fr1eza: i hear you. on the other hand there are things that are alies as well but pretty neat
<fr1eza> yeh I very much like the syntax of ruby compared with java, but I dont think its hard to beat
<certainty> indeed
sinkensabe has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<certainty> also java's typesystem is pretty bad (at least it used to be), so that's a relief as well. I remember when i came from c++ i was looking for overloaded methods too but i rarely have cases for them today
<b3itz> whats the rule when finding the median of an EVEN number array like [1, 3, 6, 9]
skolman_ has quit [Ping timeout: 244 seconds]
<certainty> i usually don't dispatch, i simplify the constructor to have only one valid signature
<jenrzzz> b3itz: take the average of the middle two
<b3itz> jenrzzz: ok awesome
tier has quit [Remote host closed the connection]
<b3itz> i emailed my prof to make sure
bklane has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
tier has joined #ruby
ikaros has quit [Quit: Ex-Chat]
renderful has joined #ruby
kaspergrubbe has joined #ruby
chipotle has joined #ruby
cocotton_ has joined #ruby
Takle has joined #ruby
<fr1eza> would it be acceptable do you think to do something liek this http://hastebin.com/avupufibok.rb
altamic has joined #ruby
yfeldblum has joined #ruby
<fr1eza> using the second initialize
chrishough has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
User458764 has joined #ruby
<rpag> 'application error', but tbh that *args trick for faking method overloading isnt popular in ruby, seen it discouraged a few times
<certainty> fr1eza: hastebin fails me
it0a has quit [Ping timeout: 255 seconds]
axl_ has left #ruby [#ruby]
cocotton has quit [Ping timeout: 244 seconds]
zorak8 has quit [Ping timeout: 258 seconds]
thsig has joined #ruby
<b3itz> how would i read a command line argument and store it as an int such as ./assignment.rb 10 - and store 10 as an int
pranny has joined #ruby
User4587_ has quit [Ping timeout: 244 seconds]
<fr1eza> ARGV is the command line arguments
<certainty> fr1eza: yeah but you could also use optional arguments (depending on your ruby version)
<fr1eza> oh no Im thinking of python
cocotton_ has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
<fr1eza> oh nope I was right actually
<fr1eza> certainty optional arguments?
<certainty> fr1eza: yeah
<certainty> >> def foo(a,b: "bar"); [a,b]; end; [foo(1,2),foo(1)]
<eval-in__> certainty => wrong number of arguments (2 for 1) (ArgumentError) ... (https://eval.in/210686)
<certainty> hmpf
reinaldob has joined #ruby
thsig_ has quit [Ping timeout: 245 seconds]
<certainty> >> def foo(a,b: "bar"); [a,b]; end; [foo(1,2), foo(1, b: 3)]
<eval-in__> certainty => wrong number of arguments (2 for 1) (ArgumentError) ... (https://eval.in/210687)
<certainty> bah
zorak8 has joined #ruby
<b3itz> fr1eza: so i would do number = ARGV[0]?
<certainty> anyway there are basically two ways. using optional keyword arguments or positional args
<fr1eza> try puts ARGV[0] etc
tier has quit [Remote host closed the connection]
skolman_ has joined #ruby
pranny has quit [Ping timeout: 258 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
musl has quit [Quit: WeeChat 0.4.3]
TPBallbag has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
<b3itz> ok so now im having issues making it think its an int... i tried highRange = ARGV[0] highRange.to_s
reinaldob has quit [Ping timeout: 260 seconds]
<fr1eza> .to_i
hmsimha has joined #ruby
Nahra has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
<b3itz> thats what i mean
<b3itz> t
fabrice31 has joined #ruby
Akagi201 has joined #ruby
MightyFrogMan22 has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
<fr1eza> the to_i method doesnt change the existing varibale
Kricir has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
<fr1eza> high_range = ARGV[0].to_i
<b3itz> ./ArrayCalc.rb:17:in `initialize': can't convert String into Integer (TypeError) from ./ArrayCalc.rb:17:in `new' from ./ArrayCalc.rb:17:in `<main>'
<fr1eza> try that
<b3itz> ah
Kricir has joined #ruby
Hightower666 has quit [Ping timeout: 255 seconds]
<fr1eza> im also told you should avoid camel case in ruby :P
<b3itz> ohhh sorry. java tendencies lol
mistermocha has joined #ruby
<mg^> getting out of camelCase habit was very hard.
WormDrink has quit [Ping timeout: 256 seconds]
musl has joined #ruby
<fr1eza> yeh I had the same lol
<lampd1> snake_case?
livingstn has quit []
<rpag> yup
<mg^> I like the underscores, though... it's rather more readable
jheg has quit [Quit: jheg]
mistermocha has quit [Remote host closed the connection]
<b3itz> so instead i'd use high_range?
<lampd1> snakes are just more badass than camels too
<b3itz> or just highrange
alem0lars is now known as alem0lars|away
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
User4587_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
max96at is now known as max96at|off
altamic has quit [Quit: altamic]
Azure has joined #ruby
mistermocha has joined #ruby
<certainty> what type of case is foo-bar?
Nahra has quit [Remote host closed the connection]
TPBallbag has quit [Ping timeout: 256 seconds]
pfg has quit []
User458764 has quit [Ping timeout: 244 seconds]
Nahra` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Akagi201 has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
<lampd1> nocase
<lampd1> idk :P
<lampd1> i like SCREAMING_SNAKE_CASE
<certainty> an any case i like that one best. too bad it doesn't work with ruby
havenwood has quit [Remote host closed the connection]
cina has quit [Quit: leaving]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
havenwood has joined #ruby
Hijiri has joined #ruby
mistermocha has quit [Remote host closed the connection]
<rpag> its popular in lisp, i like it too
Nahra has joined #ruby
<fr1eza> they use it in java for constants
<b3itz> so the 'unless ARGV == 2' makes sure there are 2 command line arguments, how to i make sure ARGV[0] >= 1?
<certainty> fr1eza: back to your question i would probably have the constructor like this: initialize(session_token, message_number, message_body, sha1 = generate_sha1)
<rpag> ARGV will never equal 2
<fr1eza> yeh I went with that
<certainty> alright
kaspergrubbe has quit [Remote host closed the connection]
<b3itz> the == 2 makes sure there are 2 argbs entered
<b3itz> argvs
<rpag> sounds like u want ARGV.size
<b3itz> that will just get me the number of digits right?
<certainty> fr1eza: that doesn't seem to be the same. in your case you dispatch on sha1_hash being the symbol :generate. In my case i use your method generate_sha1 to get the default value in the case where sha1 is not given
<b3itz> i want to make sure argv[0] thats entered is larger than 1
<rpag> it'll give you the number of args passed at the command line
<rpag> ARGV[0].to_i > 1
jobewan has quit [Quit: Leaving]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fr1eza> hmm, what would you check in the method to check if it had been generated or set by the method
<b3itz> ah ok thanks rpag ill try that
jdj_dk has quit [Quit: Leaving...]
sinequanon has joined #ruby
<certainty> fr1eza: you don't need to check. the value will be generate only if you don't pass teh sha1_hash argument
<fr1eza> then what if they pass a value
<fr1eza> how do you assign it
<fr1eza> oh
<fr1eza> im retarded doh
<certainty> my typing is totally off :/
kaspergrubbe has joined #ruby
<rpag> fr1eza, arguably you couldn't pass the SHA1 _and_ generate it, interface is kinda confusing
momomomomo_ has quit [Quit: momomomomo_]
Cork has joined #ruby
chrishough has quit [Ping timeout: 256 seconds]
Cork is now known as Guest26662
User458764 has joined #ruby
lightbringer has quit [Ping timeout: 246 seconds]
shazaum has quit [Quit: Leaving]
valeriansaliou has joined #ruby
<fr1eza> certainty will that work if the sha1 method depends on the other arguments being passed
<certainty> rpag: i think that's ok. you either have the hash or let the method create it
chrishough has joined #ruby
Asher has quit [Quit: Leaving.]
sinequanon has quit [Ping timeout: 244 seconds]
WormDrink has joined #ruby
User4587_ has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Ping timeout: 255 seconds]
renderful has quit [Remote host closed the connection]
<certainty> fr1eza: yes
kil0byte has quit [Remote host closed the connection]
<certainty> >> def bar(other); other; end; def foo(a,b=bar(a)); [a,b]; end; foo(1)
<eval-in__> certainty => [1, 1] (https://eval.in/210688)
<certainty> slightly contrieved example
Asher has joined #ruby
<rpag> if it were me i'd make #initialize always accept the SHA, and have another utility method generate the SHA for you, so you could just pass that to #initialize
geggam has quit [Ping timeout: 255 seconds]
<certainty> bar is basically identity to just make it clear
digital-ghost has quit []
kil0byte has joined #ruby
kil0byte has quit [Remote host closed the connection]
ramfjord has joined #ruby
<certainty> rpag: i like that generally. The only counter argument i can currently think of is if you don't want to expose the actual hashing algorithm, in which case you wouldn't make it an argument either
omosoj has quit [Ping timeout: 240 seconds]
nonks has quit [Ping timeout: 246 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
nateberkopec has joined #ruby
Versality has quit [Ping timeout: 244 seconds]
omosoj has joined #ruby
nonks has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
ndrei_ has quit [Ping timeout: 255 seconds]
BadQuanta has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Remote host closed the connection]
xymbol has quit [Quit: Be back later ...]
spyderman4g63 has joined #ruby
graydot has joined #ruby
pietr0 has joined #ruby
User4587_ has joined #ruby
chrishough has quit [Ping timeout: 256 seconds]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n3b has quit [Ping timeout: 244 seconds]
User458764 has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
n3b has joined #ruby
Soda has quit [Remote host closed the connection]
b3itz has quit [Ping timeout: 246 seconds]
drawingthesun has quit [Ping timeout: 245 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<MightyFrogMan22> why am I having trouble running rails c in a Ubuntu14.04 vps
nfk has quit [Quit: yawn]
hamakn has joined #ruby
User458764 has joined #ruby
n3b has quit [Ping timeout: 256 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
DylanJ has quit [Quit: ggwp]
nowthatsamatt has quit [Quit: nowthatsamatt]
blahwoop has joined #ruby
claymore has quit [Quit: Leaving]
msmith has quit [Remote host closed the connection]
<blahwoop> hi all. i had a question using methods with question marks
n3b has joined #ruby
niklasb_ is now known as niklasb
<atmosx> blahwoop: question marks return a true/false value
<atmosx> that's all
DylanJ has joined #ruby
<blahwoop> how can i use it like this player.bust?
User4587_ has quit [Ping timeout: 255 seconds]
<blahwoop> right now i have bust?(player)
emmesswhy has joined #ruby
<blahwoop> is that possible
devdazed has quit [Quit: Computer has gone to sleep.]
<atmosx> don't know what this method is
<blahwoop> in the bust method i have player.point_total > 21 ? true : false
<atmosx> but probably returns true or false...
sambao21 has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Ping timeout: 256 seconds]
<atmosx> ok
<atmosx> that should wok
Fire-Dragon-DoL has quit [Quit: Leaving.]
<blahwoop> the bust method has to be in player though right?
<blahwoop> it will allow me to do player.bust?
omosoj has quit [Quit: leaving]
<Wolland> why not just player.point_total > 21
<Wolland> you don't need true : false, it's already boolean
icarus has quit [Remote host closed the connection]
t0rc has joined #ruby
<blahwoop> oh okay
codecop has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
n3b has quit [Ping timeout: 255 seconds]
Synthead has joined #ruby
KC9YDN-2 has joined #ruby
KC9YDN has quit [Ping timeout: 244 seconds]
<blahwoop> is player.bust? the same as bust?(player)
beef-wellington has quit [Ping timeout: 265 seconds]
<rpag> no
<rpag> you'd want to add "bust?" method to the Player class
<rpag> or just implement it as accepting an arg
<eam> blahwoop: bust?(player) is the same as self.bust?(player)
valeriansaliou has quit [Quit: Be back later ...]
<blahwoop> okay.
kaspergrubbe has joined #ruby
<blahwoop> thanks
tuelz has quit [Ping timeout: 256 seconds]
n3b has joined #ruby
Lewix has quit [Remote host closed the connection]
<blahwoop> not sure if there was a cleaner way
<blahwoop> seems like it's pretty common
freerobby has quit [Quit: Leaving.]
emmesswhy has quit [Quit: This computer has gone to sleep]
DylanJ has quit [Quit: ggwp]
tuelz has joined #ruby
User4587_ has joined #ruby
charliesome has quit [Quit: zzz]
m8 has quit [Quit: Sto andando via]
allcentury has quit [Ping timeout: 245 seconds]
andrewlio has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
freerobby has joined #ruby
davasaurous has joined #ruby
[[vedic]] has joined #ruby
pranny has joined #ruby
chipotle has quit [Quit: cya]
aspires has joined #ruby
xymbol has joined #ruby
xymbol has quit [Client Quit]
blahwoop has quit []
<apeiros> one key difference between `self.bust?(player)` and `bust?(player)`: the former will not work if `bust?` is a private method
<apeiros> d'oh, he already left
n3b has quit [Ping timeout: 256 seconds]
<apeiros> *they
<apeiros> damit!
jimbach has quit [Remote host closed the connection]
<jhass> more time for topic updates! ;)
n3b has joined #ruby
emmesswhy has joined #ruby
davasaurous has quit [Remote host closed the connection]
apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
thsig has quit [Remote host closed the connection]
pranny has quit [Ping timeout: 265 seconds]
<apeiros> jhass: thanks for re-reminding me :)
cnj has quit [Ping timeout: 258 seconds]
<eam> apeiros: why is that btw? re: private
<jhass> you're welcome :P
weemsledeux has joined #ruby
<apeiros> eam: ruby's "private" is basically "won't work with explicit receiver"
<apeiros> but even that rule has an exception: self.foo= works with private foo= methods.
Takle has quit [Remote host closed the connection]
<apeiros> so… no idea really :)
<apeiros> it confused the heck out of me when I first stumbled over it
<jhass> I guess the idea was private == no receiver and then somebody noticed that it makes private = methods impossible
chinaski has joined #ruby
<apeiros> probably
<eam> hmm
<eam> neat!
User458764 has joined #ruby
<eam> how would I make that non-private?
<eam> I thought methods were public by default?
cnj has joined #ruby
<apeiros> yes, they are
<csmrfx> dont use private
zorak8 has quit [Ping timeout: 265 seconds]
lmickh has quit [Remote host closed the connection]
<eam> I'm not going to but, why the error about it being private if it isn't?
<apeiros> what I said applies to methods you marked as private. or those rare ones which are private by default (initialize e.g.)
<apeiros> hm? I said "when it is private"
<apeiros> s/when/if/
DylanJ has joined #ruby
adamholt has quit [Ping timeout: 258 seconds]
<apeiros> the error only occurs if you call a method which is private with an explicit receiver. even if that receiver is self.
<apeiros> >> class Foo; def bar; self.baz; end; private def baz; end; end; Foo.new.bar
<eval-in__> apeiros => private method `baz' called for #<Foo:0x41858d38> (NoMethodError) ... (https://eval.in/210711)
<apeiros> >> class Foo; def bar; self.baz = 1; end; private def baz=(val); end; end; Foo.new.bar
adamholt has joined #ruby
<eval-in__> apeiros => 1 (https://eval.in/210712)
jasooon has joined #ruby
User4587_ has quit [Ping timeout: 265 seconds]
<benzrf> apeiros: [sad trombown]
<benzrf> wait
<benzrf> der
<csmrfx> haha
shosti has joined #ruby
<rpag> obj.foo= works with private setters too
chrishough has quit [Ping timeout: 245 seconds]
avelldiroll has quit [Ping timeout: 258 seconds]
willgorman has quit [Ping timeout: 244 seconds]
<benzrf> l a m e!
reinaldob has joined #ruby
<csmrfx> good jive apeiros
<apeiros> rpag: no. only self.foo=
<apeiros> >> class Foo; def bar; self.baz = 1; end; private def baz=(val); end; end; Foo.new.baz = 1
<eval-in__> apeiros => private method `baz=' called for #<Foo:0x42350d44> (NoMethodError) ... (https://eval.in/210713)
thsig has joined #ruby
iamjarvo has joined #ruby
<eam> >> def bust?(p); p; end; [bust?(5), self.bust?(6)]
<eval-in__> eam => private method `bust?' called for main:Object (NoMethodError) ... (https://eval.in/210714)
<eam> I don't get why bust? is private
<apeiros> ah, toplevel method
<apeiros> those default to private :)
<eam> ah is that a special case?
<eam> aha
mary5030 has quit [Read error: Connection reset by peer]
<apeiros> and I think they at least used to be file-local
mary5030 has joined #ruby
<csmrfx> it is nice to make your own christmas tree
spider-mario has quit [Remote host closed the connection]
<apeiros> not sure whether that still applies. I think at one point in time it didn't apply anymore. but that might have been a bug too.
St_Marx has joined #ruby
<csmrfx> where you hang your methods
<apeiros> csmrfx: you excrete fir tree seeds?
<csmrfx> well...
* apeiros tries not to picture that
danijoo has quit [Read error: Connection reset by peer]
<csmrfx> >> my_tree = Object.new
<eval-in__> csmrfx => #<Object:0x41515040> (https://eval.in/210715)
<csmrfx> theres one!
<eam> pine codes
doug1 has joined #ruby
treehug88 has quit []
danijoo has joined #ruby
GPH|work has quit [Ping timeout: 265 seconds]
Scotteh_ has joined #ruby
kaspertidemann has quit []
<eam> >> 5.instance_eval { def a;end}
<eval-in__> eam => no class/module to add method (TypeError) ... (https://eval.in/210716)
chinaski has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
<eam> I get why, but weird
<rpag> apeiros, ahh, sorry about that
<rpag> i thought it worked :)
davasaurous has joined #ruby
User4587_ has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
Scotteh has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
robertt_dex has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
User458764 has quit [Ping timeout: 240 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
Imofftopic has quit [Quit: Leaving]
Jarboe has joined #ruby
Takle has joined #ruby
danman has quit [Quit: danman]
thsig has quit [Ping timeout: 245 seconds]
nowthatsamatt has joined #ruby
willgorman has joined #ruby
KC9YDN-2 is now known as KC9YDN
nateberkopec has joined #ruby
marr has quit [Ping timeout: 265 seconds]
nonks has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
mukuduk has joined #ruby
kirun has quit [Quit: Client exiting]
icole has joined #ruby
t0rc has quit [Quit: WeeChat 1.0.1]
snath has quit [Ping timeout: 256 seconds]
Buoy172 has joined #ruby
User4587_ has quit [Ping timeout: 260 seconds]
zorak8 has joined #ruby
chinaski has joined #ruby
crack_user has joined #ruby
Buoy172 has left #ruby [#ruby]
<crack_user> hello
<crack_user> any one knows witch port bundle acess to download Gemfile's gems?
rajeshchawla has quit []
Channel6 has joined #ruby
Lewix has quit [Remote host closed the connection]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
<rpag> 443(https) or 80(http)
cmckee has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
luckyruby has joined #ruby
crack_user has quit [Quit: Leaving.]
chinaski has quit [Remote host closed the connection]
whatasunnyday has joined #ruby
musl has quit [Quit: WeeChat 0.4.3]
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
User4587_ has joined #ruby
fr1eza has quit [Ping timeout: 250 seconds]
mikepack has quit [Remote host closed the connection]
segmond has joined #ruby
shosti has quit [Ping timeout: 272 seconds]
sea_local has quit [Remote host closed the connection]
doug1 has quit [Ping timeout: 260 seconds]
User458764 has quit [Ping timeout: 245 seconds]
TeresaP has quit [Quit: Page closed]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
snath has joined #ruby
WormDrink has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has quit [Max SendQ exceeded]
thsig has joined #ruby
zarubin has quit [Quit: Leaving.]
gsd has joined #ruby
rrichardsr3 has joined #ruby
tris has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
willgorman has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
sea_local has joined #ruby
gtrak has quit [Ping timeout: 260 seconds]
jdrumheller has quit [Ping timeout: 265 seconds]
MightyFrogMan22 has quit [Quit: MightyFrogMan22]
snath has quit [Ping timeout: 265 seconds]
icole has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
User458764 has joined #ruby
Lewix has joined #ruby
cmckee has joined #ruby
fabrice31 has joined #ruby
Akagi201 has joined #ruby
User4587_ has quit [Ping timeout: 244 seconds]
icole has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
MightyFrogMan22 has joined #ruby
AmBienCeD has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
Akagi201 has quit [Ping timeout: 265 seconds]
zmyrgel has quit [Ping timeout: 240 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pranny has joined #ruby
MightyFrogMan22 has left #ruby [#ruby]
tuelz has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Quit: Leaving...]
pietr0 has quit [Quit: pietr0]
snath has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
enebo has quit [Quit: enebo]
volty has joined #ruby
User4587_ has joined #ruby
bousquet has quit [Read error: Connection reset by peer]
bousquet_ has joined #ruby
pranny has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
BadQuanta has joined #ruby
marr has joined #ruby
rotad has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
sinequanon has joined #ruby
asmodchan has quit [Read error: Connection reset by peer]
orzel has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
<Blizzy> so I'm making a blog. I was going to use Rails, yet Rails seems to 'big' for a simple blog.
davidhq has joined #ruby
sinequanon has quit [Ping timeout: 244 seconds]
Blizzy is now known as BlizzyFox
<orzel> hello. Can someone explains what "~>" means in a gemlock file ? I have this exact line : "mysql2 (~> 0.3.11)"
<orzel> does it mean "requires 0.3.11 or better, or on the contrary no more than 0.3.11 ?
davidhq has quit [Client Quit]
<benzrf> here u dropped this "
einarj has quit [Remote host closed the connection]
<benzrf> orzel: and it means 'precisely'
<eam> it broke when it dropped: ''
<BlizzyFox> #Since no one can read this, Ruby > Python
jottr_ has joined #ruby
<BlizzyFox> wait, comments don't work in IRC.
<BlizzyFox> lol.
Xiti has quit [Read error: Connection reset by peer]
jasooon has joined #ruby
BlizzyFox is now known as VBlizzard
<orzel> benzrf: ouch. It seems i can't install anything else than 0.3.16 with "gem install mysql2"
whatasunnyday has quit [Quit: whatasunnyday]
<benzrf> ow
User458764 has joined #ruby
MightyFrogMan22 has joined #ruby
<eam> mysql 3:16
VBlizzard is now known as BlizzyFox
<MightyFrogMan22> Can’t run Rails C on ubuntu14 VPS
rrichardsr3 has joined #ruby
crack_user has joined #ruby
[[vedic]] has quit [Ping timeout: 258 seconds]
BlizzyFox is now known as VBlizzard
rrichardsr3 has quit [Client Quit]
<orzel> eam: ..? is this for me ?
jxf has quit [Ping timeout: 244 seconds]
BadQuanta has quit [Ping timeout: 244 seconds]
VBlizzard is now known as blizzyfox
User4587_ has quit [Ping timeout: 258 seconds]
<orzel> ah. fortunately i can find an old gentoo package for it.
ghostmoth has quit [Quit: ghostmoth]