apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 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
MrWharfsnort has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
apeiros has joined #ruby
kitak has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has quit [Quit: Computer has gone to sleep.]
<happytux> jenrzzz: well, basically I am a PHP guy and started with more sophisticated build scripts. The most popular tools out there are ant and rake. But rake seems to be less complicated so I migrate the ant scripts to it.
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has joined #ruby
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
debajit has joined #ruby
<lethjakman> you're using rake for PHP?
Solnse has quit [Ping timeout: 264 seconds]
<happytux> lethjakman: some projects are in PHP :)
<happytux> lethjakman: but I will try ruby out, too
<jenrzzz> happytux: try to think like make(1) instead of ant. rake is just a more powerful make
<happytux> jenrzzz: yes, no complicated xml stuff. I started with ant because there were php related examples.
<lethjakman> happytux: I feel like there should be a good tool written in PHP for stuff like this...
<happytux> jenrzzz: there is also phing, but I prefer to use a more versatile build tool. Rake seems to be the right tool for this.
<lethjakman> that just seems weird.
<lethjakman> not saying anything against rake...I love and use it all the time.
<happytux> lethjakman: are you using gradle, too?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has quit [Ping timeout: 255 seconds]
<lethjakman> no.
<terrellt> happytux: What do you mean when you say build scripts? DEPLOY scripts?
<benzrf> sup lethjakman
jottr_ has quit [Ping timeout: 264 seconds]
<debajit> Newbie Rake q: I have a rake task which look like this: https://gist.github.com/debajit/482a4410be4d98449e62. How do I get it to return the error-value from the system call? (Currently it returns true every time)
jhulten_ has quit [Remote host closed the connection]
<happytux> terrellt: currently deployment is done using fabric (python based). Rake scripts are used for building (calling the dependency tools, compiling assets and so on).
lw has joined #ruby
<jenrzzz> debajit: the return code is in $?
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it]
<happytux> I also took a look on capistrano and vlad. Capistrano 3 (rake based) only supports git pulling but in my specific setup I have to git push.
<terrellt> happytux: What do you mean you have to git push?
<happytux> cap3 connects over ssh to deployment target (server) and invokes git pull from it
<happytux> this means that the repository has to be reachable publicly from the deployment target
momomomomo has quit [Quit: momomomomo]
nateberkopec has joined #ruby
<jenrzzz> happytux: that’s usually the right way to do it
b00stfr3ak has quit [Ping timeout: 240 seconds]
<happytux> jenrzzz: why is pulling better than pushing the build result?
diegoviola has joined #ruby
Megtastique has joined #ruby
jamto11 has quit [Remote host closed the connection]
<jenrzzz> happytux: it depends on your VCS workflow, but usually i want to deploy from a “blessed” repository that is the single point of truth
x1337807x has joined #ruby
wldcordeiro|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<terrellt> happytux: Not..."publically". Just, via the deploy user's SSH key.
e^0 has joined #ruby
bMalum_ has joined #ruby
dayepa has joined #ruby
wldcordeiro has joined #ruby
<jenrzzz> debajit: did that work?
nhmood has quit [Quit: Connection closed for inactivity]
<debajit> jenrzzz: Trying it out.. I believe I did try out $? earlier, but that didn't work.. let me see..
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
toretore has quit [Quit: This computer has gone to sleep]
pietr0 has quit [Quit: pietr0]
bMalum_ has quit [Ping timeout: 240 seconds]
<debajit> jenrzzz: Nope $? or $?.success? didn't work for me :(
<jenrzzz> debajit: didn’t work?
figgleberry has joined #ruby
Avahey_ has joined #ruby
saarinen has quit [Quit: saarinen]
<debajit> jenrzzz: No, the task still returns success
kitak_ has joined #ruby
lw has quit [Quit: s]
Lucky_ has joined #ruby
<jenrzzz> debajit: code plz. what do you want it to do?
<debajit> jenrzzz: Looks like this now: https://gist.github.com/debajit/482a4410be4d98449e62
acl_ has quit [Ping timeout: 240 seconds]
<debajit> jenrzzz: What I'd like to do is run "rake build sync" and have "sync" not run if "build" fails
Lucky_ has quit [Client Quit]
<debajit> jenrzzz: I feel i'm overlooking something really obvious here :P
yakko has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
lukec has quit [Quit: lukec]
yakko has joined #ruby
<debajit> jenrzzz: Instead of using the system call, if I use backticks, then it works correctly: task :build do
<debajit> end
<debajit> `BUILD_SHELL_COMMAND`
nathancahill has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jenrzzz> debajit: when do you fail? if BUILD_SHELL_CMD returns nonzero?
<debajit> jenrzzz: So with the given code (using the system call) — the puts works correctly, which means the error value is captured correctly, however the task doesn't seem to return the same success value
<debajit> jenrzzz: Correct
thesheff17 has quit [Remote host closed the connection]
i_s has joined #ruby
<jenrzzz> debajit: system(BUILD_SH_CMD) or fail(‘Build failed’)
thesheff17 has joined #ruby
i_s has quit [Remote host closed the connection]
<debajit> jenrzzz: Perhaps this is an easier question: How do I return a value from a Rake task?
<jenrzzz> debajit: you cannot
<debajit> jenrzzz: When I chain tasks, then how does the next task in the chain pick up the success value?
<debajit> jenrzzz: ... of the previous task in the chain i mean?
<jenrzzz> debajit: a task is successful if it doesn’t fail. so call exit or fail or raise an exception if you want it to fail
kitak_ has joined #ruby
<jenrzzz> debajit: if you use rake’s #sh helper i think it will do that for you
EasyCo has joined #ruby
acl_ has joined #ruby
<debajit> jenrzzz: Yes, you're right. I believe there isn't really a way to return a value from a task.. (just found some documentation saying something similar as well)
vpretzel has joined #ruby
<debajit> jenrzzz: What is the sh helper you refer to?
jlast has joined #ruby
zz_karupa is now known as karupa
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
replay has quit [Ping timeout: 265 seconds]
<debajit> jenrzzz: Nice :) Thanks a ton :) I think that should work.. trying it out now..
upsell5 has joined #ruby
anomaly_ has joined #ruby
<anomaly_> I am seeing a lot of books mention 'this is intended for those who already know ruby. not a beginner's book.' so.. what are good fundamental books on learning ruby?
Lucky_ has joined #ruby
<jenrzzz> anomaly_: do you have experience in any other languages?
sinkensabe has quit [Remote host closed the connection]
Sol has joined #ruby
derek_ has quit [Remote host closed the connection]
Sol has quit [Client Quit]
<anomaly_> jenrzzz python and php to an intermediate degree. I am not new to programming in general. yet, I am still working on building on my basics on programming.
eka has joined #ruby
sinkensabe has joined #ruby
<jenrzzz> anomaly_: the pickaxe book (ISBN10 1937785491) is always a good place to start
<agent_white> Pickaxe is also here: puts "Connecting to #{name}..."
<agent_white> ^ :P
livcd has joined #ruby
doodlehaus has joined #ruby
<jenrzzz> anomaly_: _why’s poignant guide is great too but also weird http://mislav.uniqpath.com/poignant-guide
<EasyCo> Hey guys, I sometimes need to remove (with JS) the readonly attribute on an input field generated with simple_form. The problem is when the form is then submitted and there's a validation error, the form is rerendered with the readonly attribute enabled again. I know this is how it's suppose to work but I'm not sure how to tackle the issue. See my gist for
<agent_white> weirdly amazing! I loved it.
<jenrzzz> agent_white: is that the latest version?
<agent_white> jenrzzz: Not quite sure, I believe so?
john3213 has joined #ruby
replay has joined #ruby
<vim_shim> anomaly_: http://ruby.bastardsbook.com/ is really good too. Some very practical exercises with webscrapers and db's, as well as data transformation.
<EasyCo> Any thoughts or help would be appreciated
<jenrzzz> EasyCo: #RubyonRails is probably a better place for that
<EasyCo> Oh shit
ktun has joined #ruby
<EasyCo> Oops
<EasyCo> Sorry, wrong chat :)
<EasyCo> My bad
meatherly has quit [Remote host closed the connection]
<anomaly_> I can see the newest version on Amazon from last year. I would hope the site you listed, agent_white is in fact the new one :)
sinkensabe has quit [Ping timeout: 252 seconds]
torresga has quit [Ping timeout: 258 seconds]
ktun has quit [Client Quit]
<anomaly_> you have all been very helpful. I intend on using ruby for web development and in general programming. python and php seem to be pushing me in that direction after I saw how beautiful the code is in ruby and rails
<agent_white> anomaly_: Hmmm I'm not sure sure not.. poking through the preface and it says "This book documents Version 1.6 of Ruby, which was released in September 2000."
livcd has quit [Ping timeout: 258 seconds]
binaryhat has quit [Quit: Leaving]
<jenrzzz> anomaly_: good luck! it’s not a perfect language but it’s the closest thing i’ve come across
<agent_white> Either way! Still a good resource... at least it's been on my bookmarks bar for quite awhile now.
sinkensabe has joined #ruby
<anomaly_> jenrzzz I do not seek an imaginary silver bullet, haha. it does look nice though :)
<acl_> the "pickaxe" book is the one by Dave Thomas, right?
john3213 has left #ruby [#ruby]
<jenrzzz> acl_: yeah. the one with the pickaxe on the cover
<agent_white> Yup!
<EasyCo> On the Ruby side of things, can you do something like a computed property? i.e send a parameter as a function that will return either true or false?
<acl_> that pickaxe book had a 4th edition come out June last year (I think)
beneggett has joined #ruby
JBreit has joined #ruby
oo_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<agent_white> anomaly_: Also, you might want to check out Practical Object Oriented Design in Ruby (POODR), by Sandy Metz. I've found it very very helpful.
rrios has joined #ruby
replay_ has joined #ruby
datafirm has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
r_rios has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
LexicalScope` has joined #ruby
LexicalScope has joined #ruby
replay has quit [Ping timeout: 245 seconds]
dorei has joined #ruby
<benzrf> poodr
gverma has quit [Quit: Leaving]
marcdel has quit []
meatherly has joined #ruby
Lightsword has joined #ruby
chrisja has quit [Quit: leaving]
<anomaly_> thanks again for the help.
anomaly_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
apeiros has joined #ruby
<jenrzzz> EasyCo: not entirely sure what you’re asking
doodlehaus has joined #ruby
JBreit has left #ruby ["Leaving"]
marcdel has joined #ruby
jshepherd has quit []
mrmargol_ has joined #ruby
toastynerd has joined #ruby
abstrakt has joined #ruby
<Lightsword> hi, I need to check multiple addresses for a particular etag, I'm not getting any output from the callback though https://gist.github.com/jameshilliard/db16d9ee9437062af5ac
marcdel has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
mrmargolis has quit [Ping timeout: 240 seconds]
<Lightsword> I'm passing an array of ip addresses
toastynerd has quit [Ping timeout: 255 seconds]
<acl_> why does ruby return 3379.9999999999995 for 33.8 * 100, but returns 4480.0 for 44.8 * 100
tkuchiki has joined #ruby
<acl_> I'm reading the pickaxe book
<acl_> and playing with irb
mrmargol_ has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Leaving...]
<abstrakt> acl_, floating point maths
Hanmac1 has joined #ruby
<jenrzzz> acl_: IEEE 754
amclain has joined #ruby
<arrubin> acl_: In Python:
<arrubin> >>> 33.8 * 100
<eval-in__> arrubin => /tmp/execpad-af7bc0818a90/source-af7bc0818a90:2: syntax error, unexpected '>' ... (https://eval.in/151460)
<arrubin> 3379.9999999999995
<acl_> i'll look that up then, thanks - but the book says "floating point numbers don't always have an exact internal representation"
<arrubin> As jenrzzz and abstrakt point out, this is not a Ruby thing.
<acl_> i'm guessing that's the reason?
<acl_> ah
<arrubin> acl_: Yes.
mrmargolis has joined #ruby
<abstrakt> acl_, doing floating point math calculations in a computer is problematic in general regardless of language
<jenrzzz> Lightsword: any reason you’re using EM for this? HTTParty’s API is easier to work with
<abstrakt> acl_, it has to do with the fact that, by default, there's generally no concept of a decimal place in the binary number system
Hanmac has quit [Ping timeout: 245 seconds]
codeurge has joined #ruby
<arrubin> >> require 'bigdecimal'; BigDecimal.new("33.8") * BigDecimal.new("10")
<eval-in__> arrubin => (https://eval.in/151461)
<abstrakt> nor is there a concept of negative numbers, at least not in the way(s) that computers represent binary information
<acl_> abstrakt: i see
nari has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
xiq has quit [Read error: Connection reset by peer]
<Lightsword> jenrzzz, well, this request will go to hundreds if not thousands of devices at once, isn't EM better at something like that?
afex has quit [Ping timeout: 245 seconds]
<abstrakt> acl_, negative numbers are usually represented by having a single bit indicate negative/positive, however if you have e.g. an 8 bit integer, and one of those bits represents negative/positive, you can only represent a number half as large as the entire 8 bits
<acl_> abstrakt: that's certainly a better explanation than some of the books i've read
<abstrakt> acl_, that's the easy part to understand, floating point numbers, by necessity, must resort to some form of "representing" and this has consequences for calculations
<arrubin> >> require 'bigdecimal'; n = BigDecimal.new("33.8") * BigDecimal.new("10"); puts n.to_s("F")
<eval-in__> arrubin => (https://eval.in/151463)
<arrubin> Bah.
<jenrzzz> Lightsword: depends on your constraints. but sending hundreds of requests is no big deal regardless of the gem you’re using
oo_ has quit [Remote host closed the connection]
<abstrakt> most notably, that often times calculations that would be easy/exact in the base 10 world (that is, in normal human pencil and paper problems) come out with small margins of error
<jenrzzz> Lightsword: i’d say start simple and then parallelize later if you need to
<arrubin> acl_: Try that code if you wish to explore arbitrary precision.
<acl_> doing that
<abstrakt> acl_, in other words, there's something analogous that happens with floating point numbers, though it's more complicated and not as easy to describe as how negative numbers works
<Lightsword> jenrzzz, I know the request works...at least when I pass a single IP and remove the for loop
<abstrakt> work*
mrmargolis has quit [Ping timeout: 252 seconds]
Sigma00 has joined #ruby
<Lightsword> jenrzzz, I think it has something to do with me not using a unique http variable for each request, not sure how I would fix that though
wallerdev has joined #ruby
nateberkopec has joined #ruby
oo_ has joined #ruby
<wallerdev> hey
mjsmith2 has joined #ruby
marcdel has joined #ruby
selina345 has joined #ruby
bMalum_ has joined #ruby
<arrubin> acl_: And if you want to know more about the topic in general: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems
<selina345> why does .split turn variables into an array?
<centrx> It turns strings into an array, not just any variable
freggles has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<jenrzzz> Lightsword: read the docs more if you’re gonna use EM. you’re doing a lot of things wrong
dideler|work has quit [Ping timeout: 264 seconds]
<Lightsword> jenrzzz, should I be using the Multi interface?
<jenrzzz> Lightsword: you can, but it’s gonna be a lot more complicated than it needs to be
robustus has quit [Ping timeout: 252 seconds]
bMalum_ has quit [Ping timeout: 245 seconds]
selina345 has quit [Quit: Page closed]
robustus has joined #ruby
<jenrzzz> Lightsword: i still think you should just do it with HTTParty or another simple way to make HTTP requests and be done with it. pretty sure it will be fast enough. if it’s not, you’ll have working code that you can optimize further
<vim_shim> "Make it work - then make it work fast."
benzrf is now known as benzrf|offline
Megtastique has quit []
<jenrzzz> amen
benzrf|offline is now known as benzrf
gigetoo has quit [Remote host closed the connection]
<jenrzzz> dammit, c2 is almost as bad as tvtropes
<arrubin> But is it web scale?
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_ has joined #ruby
<jenrzzz> not as web scaley as mongo
<jenrzzz> or /dev/null
gigetoo has joined #ruby
<vim_shim> I'd say I've gotten *much* more value from falling into a c2 hole, than a trope trip. :D
doodlehaus has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
<jenrzzz> > c2-hole
oo_ has quit [Remote host closed the connection]
<jenrzzz> > trop trip
<jenrzzz> vim_shim: do you do drugs? :P
* vim_shim goes back and erases erroneous comma
Lucky_ has quit [Client Quit]
<jenrzzz> because i think those are apt analogies
<vim_shim> jenrzzz: I pity the sad straight jacket life of those who haven't seen they don't exist! ;)
* jenrzzz does not understand the reference
subbyyy has quit [Ping timeout: 264 seconds]
bijan07077 has joined #ruby
<vim_shim> A general nod to the more or less universal dissolution of the ego on experiences on a high enough does of psychedelics.
<vim_shim> *one
<jenrzzz> ohhh
<jenrzzz> haven’t seen *that* they don’t exist
<vim_shim> I kind of piled on the double negatives there.
mercwithamouth has quit [Ping timeout: 255 seconds]
<jenrzzz> my parser got all fucked up
<vim_shim> I should have used a better encoding scheme. ;)
<jenrzzz> yeah dude. tried DMT for the first time last month and haven’t fully come to terms with it yet
* vim_shim whistles
mrmargolis has joined #ruby
nari has joined #ruby
<vim_shim> Noice. Closest I've come to that level was with salvia. I'm a mushroom tea aficionado m'self.
aiguu has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<jenrzzz> i’d describe it as like salvia, but fun
<jenrzzz> salvia makes me turn into objects and doesn’t give me questions or answers. so not really a fan
acl__ has joined #ruby
<vim_shim> ya, same here
acl__ has quit [Client Quit]
<vim_shim> The effects of the edges of my peripheral vision were spectacular tho. I never really contemplated the boundaries of my vision until then.
<debajit> newbie/style q: In ruby, if I have two functions f(arg) and g(arg) and if a want to call "g(f(arg))" — is it acceptable to say "g f arg" instead? I was wondering what is generally done when one wants to nest functions, and doesn't like using parentheses
<jenrzzz> whoa
<abstrakt> cuz like, this all has so much to do with ruby...
nanoyak has quit [Quit: Computer has gone to sleep.]
acl_ has quit [Ping timeout: 240 seconds]
<jenrzzz> i think an above-average number of rubyists are also into psychedelics
<jenrzzz> debajit: use parentheses anyways
<debajit> jenrzzz: Even when not using nested calls?
marcdel has quit []
<debajit> jenrzzz: Darn, I was just falling in love with not having to use parens with each call :P
<benzrf> debajit: ignore jenskarlsen
<benzrf> * jenrzzz
<jenrzzz> debajit: unless you’re _why and are writing “poetry” you almost always want to use parentheses when passing arguments, and especially with nested calls
<benzrf> debajit: i usually do 'f g(v)'
<jenrzzz> yeah that works ^^
<debajit> I like benzrf's approach :)
charliesome has joined #ruby
<debajit> for single calls I tend to avoid parens — is that the "ruby" way of doing things?
<jenrzzz> debajit: i think there is some contention on that point
<benzrf> debajit: TIMTOWTDI :I
<jenrzzz> FWIW, rails says “Use MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.”
<debajit> jenrzzz: If it saves me typing, and the language fully allows it, why make things more complex?
<jenrzzz> because code is read orders of magnitude more times than it is written
rm_ has quit [Remote host closed the connection]
<arrubin> debajit: Are you unable to touch type?
toastynerd has joined #ruby
<debajit> jenrzzz: Touché :) but for simple calls I think it doesnt get in the way of readability at all
MrWharfsnort has quit [Ping timeout: 245 seconds]
<debajit> arrubin: Yes, sir
<debajit> arrubin: I meant, I am able to :)
_reset has joined #ruby
<arrubin> Saving a few keystrokes just does not seem important.
livcd has joined #ruby
agjacome has joined #ruby
<jenrzzz> debajit: ruby lets you do lots of things because you’re a responsible adult. but there are always tradeoffs
sepp2k has quit [Quit: Leaving.]
oo_ has joined #ruby
<debajit> jenrzzz: Just found this: http://stackoverflow.com/questions/340624/do-you-leave-parentheses-in-or-out-in-ruby — seems adding parens is the general guideline. Got it now :)
reset has quit [Ping timeout: 245 seconds]
<debajit> I guess the general guideline is to err on the side of readability
tyll has quit [Ping timeout: 252 seconds]
tyll_ has joined #ruby
Megtastique has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<bricker`LA> Long shot... I'm setting a message expectation on an object and then trying to Marshal-dump that object, but message expection doesn't register the method as being stubbed, so this monkey patch fails: https://github.com/rspec/rspec-mocks/blob/2c80c4a70e0d078a9799e619fec873cb2e16b404/lib/rspec/mocks/extensions/marshal.rb
livcd has quit [Ping timeout: 240 seconds]
_reset has quit [Ping timeout: 255 seconds]
<bricker`LA> What's a good way around this?
mjsmith2 has quit [Remote host closed the connection]
doodlehaus has joined #ruby
thomasxie has joined #ruby
<jenrzzz> bricker can you have easier problems plz
<bricker`LA> :P
doodlehaus has quit [Remote host closed the connection]
<happytux> thank people
<happytux> jenrzzz: thanks
<jenrzzz> happytux: de nada
<happytux> There is a Rakefile and I require several gems which contain Rake tasks. Now I got the problem that there is a gem which defines not only tasks I want to use in the Rakefile but also one task (named 'spec') which I want to overwrite / redefine.
maximski has quit []
ascarter has joined #ruby
sdwrage has joined #ruby
<happytux> Because currently both spec tasks are run, the one from the required gem and the one I defined by myself (and should be used alone).
<happytux> I have to require that gem because I need all the other tasks.
<omosoj> Is it possible to use crontab to run ruby scripts?
<centrx> Is it not possible use crontab to run any kind of script?
<omosoj> * * * * * cd /home/comp/ruby/scripts && ruby script.rb
<omosoj> Not working...
hamakn has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
<centrx> omosoj, Does it work when you run that exact command on the console?
<omosoj> centrx, Yes.
mr_rich101 has quit [Ping timeout: 264 seconds]
rm__ has joined #ruby
<omosoj> Is that the correct syntax? I've tried a few different ways...
nanoyak has joined #ruby
yvemath has quit [Quit: ~Surprise.]
meatherly has quit [Remote host closed the connection]
<centrx> Looks right
phoo1234567 has quit [Remote host closed the connection]
mr_rich101 has joined #ruby
pu22l3r has joined #ruby
Rahul_Roy has joined #ruby
meatherly has joined #ruby
toastynerd has quit [Remote host closed the connection]
ce_afk is now known as cescalante
<bricker`LA> omosoj: set PATH at the top of your crontab
<bricker`LA> omosoj: crontab is run with a very limited, so the ruby bin probably isn't available
<bricker`LA> very limited path*
silkfox has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
yvemath has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
LexicalScope` has quit [Ping timeout: 252 seconds]
yvemath is now known as Guest59042
_justin has quit [Quit: _justin]
<Lightsword> how do I access just the etags from this response by key? https://gist.github.com/jameshilliard/fea8b6c1ebb5ece65689
<Lightsword> by IP
Adran has quit [Quit: Este é o fim.]
Gooder``` has quit [Remote host closed the connection]
<arrubin> Lightsword: What have you tried so far?
dorei has quit []
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
tyll_ has quit [Ping timeout: 276 seconds]
mjsmith2 has joined #ruby
<Lightsword> I tried using resp.response_header
<omosoj> bricker`LA, how do I do that?
<rkazak> l o peeps.
<Lightsword> arrubin but I get a no method error
irvingprime has joined #ruby
tyll has joined #ruby
codeFiend has joined #ruby
Es0teric has joined #ruby
hamakn has joined #ruby
<bricker`LA> omosoj: PATH=$PATH:/path/to/ruby
<Lightsword> I basically want to get a hash with the IP as the key and the etag as the value
<bricker`LA> omosoj: or better yet, just point to the ruby bin directly in the command
<bricker`LA> /usr/bin/ruby script.rb
Gooder has joined #ruby
george2 has joined #ruby
<omosoj> so: * * * * * cd /home/comp/ruby/scripts && /usr/bin/ruby script.rb
chipotle has joined #ruby
<bricker`LA> omosoj: try it
<bricker`LA> omosoj: what's the actualy problem? You just said "it's not working"
<bricker`LA> actual*
Adran has joined #ruby
<omosoj> K. It's setup. ... The command shows up when I type crontab -l, but it doesn't run.
<omosoj> The script checks twitter trends and puts them in a log file.
Es0teric has quit [Ping timeout: 258 seconds]
ixti has quit [Ping timeout: 240 seconds]
<omosoj> Hmm. Doesn't seem to be working. I'm probably doing something wrong at a very fundamental level. I'm thinking of just calling it quits and using the sleep function.
jwang has joined #ruby
St_Marx has quit [Ping timeout: 272 seconds]
shashank_rs has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
Es0teric has joined #ruby
chipotle has quit [Quit: cya]
Hobogrammer has joined #ruby
<bricker`LA> omosoj: are you sure it's not running? How do you know?
<jenrzzz> omosoj: when do you want the job to run? you didn’t specify a time
<bricker`LA> jenrzzz: the syntax he has is valid
<jenrzzz> what’s that supposed to do? run every minute?
aspires has joined #ruby
<bricker`LA> yes
<jenrzzz> hmm
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
<bricker`LA> omosoj: check your mail on your system (or the mail of whichever user's crontab that is), if there's an error it will tell you
wallerdev has joined #ruby
jamto11 has joined #ruby
St_Marx has joined #ruby
<omosoj> bricker`LA because it doesn't update the logfile. Also, I put a random puts "Updated" there so that it would write something every time it ran.
bMalum_ has joined #ruby
<bricker`LA> omosoj: write something where?
lw has joined #ruby
<omosoj> Heh, hoping that it would write it to the terminal
<bricker`LA> omosoj: nope
acl_ has joined #ruby
<bricker`LA> omosoj: where is your ruby binary installed?
upsell5 has quit [Quit: upsell5]
<rkazak> omosoj: paste the error?
acl_ is now known as isxek
<omosoj> not sure where it's installed. I'll look.
<omosoj> rkazak, there's no error. It's just that nothing happens
<bricker`LA> omosoj: type `which ruby`, that's where you should be pointing in the crontab
<bricker`LA> omosoj: there's probably an error, you just need to go looking for it, in mail for example
<rkazak> how about using ‘( command )’ ?
<rkazak> omosoj: send it all to a subshell…
pu22l3r has quit [Remote host closed the connection]
<omosoj> sorry i'm a newbie. how do I do that?
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj> (i adjusted the ruby binary path)
MrWharfsnort has joined #ruby
<bricker`LA> omosoj: it should work with the fixed path
rostam has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
<omosoj> How do I check the mail thing you mentioned?
<omosoj> rkazak, how do I do that?
bMalum_ has quit [Ping timeout: 265 seconds]
<rkazak> omosoj: put the command in parentheses ( cd /tmp && /usr/bin/ruby script.rb )
<omosoj> rkazak, ok, done.
cjsarette has quit [Excess Flood]
<rkazak> omosoj: if configured cron will send you mail on the status of a background/batch job.
<rkazak> oh, there is also debugflags… -x test for cron…
nanoyak has quit [Quit: Computer has gone to sleep.]
Lightsword has quit [Ping timeout: 240 seconds]
rostam has joined #ruby
<rkazak> omosoj: that traces but does not execute....
Megtastique has quit []
Royalb15_1 has quit [Read error: Connection reset by peer]
hornairs has joined #ruby
jeregrine has joined #ruby
nateberkopec has joined #ruby
memorozovm has joined #ruby
livcd has joined #ruby
radic has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
marcdel has joined #ruby
radic has joined #ruby
_justin has joined #ruby
cjsarette has joined #ruby
ffranz has quit [Quit: Leaving]
cjsarette has quit [Max SendQ exceeded]
marcdel_ has joined #ruby
mgomezch has quit [Remote host closed the connection]
n34762 has joined #ruby
irvingprime has quit [Quit: Leaving]
n34762 has left #ruby [#ruby]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
marcdel has quit [Ping timeout: 240 seconds]
livcd has quit [Ping timeout: 255 seconds]
figgleberry has quit [Read error: Connection reset by peer]
railsbro has quit [Quit: Leaving]
figgleberry has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
mrmargol_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bMalum_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
irvingprime has joined #ruby
bMalum_ has quit [Ping timeout: 240 seconds]
Guest59042 has quit [Excess Flood]
_justin has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
benzrf is now known as benzrf|offline
server129 has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
codeFiend has quit [Quit: codeFiend]
figgleberry has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
EasyCo has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
andrewstewart has quit [Ping timeout: 245 seconds]
jeregrine has quit [Ping timeout: 245 seconds]
ballPointPenguin has quit [Ping timeout: 245 seconds]
bjeanes has quit [Read error: Connection reset by peer]
Dysruption has joined #ruby
bjeanes_ has joined #ruby
EasyCo has joined #ruby
CJD14__ has quit [Read error: Connection reset by peer]
aspires has quit []
andrewstewart has joined #ruby
dnyy has joined #ruby
vcoinminer___ has quit [Ping timeout: 245 seconds]
CJD14__ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Striki has quit [Ping timeout: 252 seconds]
jeregrine has joined #ruby
aspires has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
vcoinminer___ has joined #ruby
mikepack has joined #ruby
dpswireless has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dpswireless has quit [Remote host closed the connection]
dpswireless has joined #ruby
irvingprime has quit [Quit: Leaving]
cjsarette has joined #ruby
cjsarette has quit [Excess Flood]
Dysruption has quit [Client Quit]
Striki has joined #ruby
ballPointPenguin has joined #ruby
aspires has quit []
omegahm has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 265 seconds]
livcd has joined #ruby
kpshek has joined #ruby
s2013 has joined #ruby
aspires has joined #ruby
Celm_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
Lucky_ has joined #ruby
chipotle has quit [Quit: cya]
datafirm has quit [Quit: Computer has gone to sleep.]
livcd has quit [Ping timeout: 252 seconds]
datafirm has joined #ruby
freerobby has quit [Quit: Leaving.]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kate_r has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Lightsword has joined #ruby
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
beneggett has joined #ruby
braincrash has joined #ruby
Thermo has joined #ruby
datafirm has quit [Ping timeout: 265 seconds]
beneggett has quit [Client Quit]
weaksauce has joined #ruby
_2_iveth2 has joined #ruby
_2_iveth2 has left #ruby [#ruby]
debajit has quit [Quit: Leaving...]
OffTheRails has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 245 seconds]
debajit has joined #ruby
combusean has joined #ruby
cjsarette has joined #ruby
bMalum_ has joined #ruby
datafirm has joined #ruby
meatherly has quit [Remote host closed the connection]
lw has quit [Quit: s]
aspires has quit []
phinfonet has quit []
aspires has joined #ruby
cescalante is now known as ce_afk
yfeldblum has joined #ruby
bMalum_ has quit [Ping timeout: 258 seconds]
lw has joined #ruby
cjsarette has quit [Excess Flood]
mrgoodcat has quit []
armyriad has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
kitak__ has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 265 seconds]
aspires has quit []
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
_justin has quit [Quit: _justin]
sambao21 has joined #ruby
ce_afk is now known as cescalante
ascarter has joined #ruby
MrWharfsnort has quit [Ping timeout: 245 seconds]
LexicalScope has joined #ruby
memorozovm has quit [Remote host closed the connection]
LexicalScope` has joined #ruby
freerobby has joined #ruby
cjsarette has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
mavery has joined #ruby
<mavery> hello! i'm trying to troubleshoot some code, is anyone able to help me? http://pastie.org/private/evrdj8vka8n6xcet22yw
freerobby has quit [Ping timeout: 252 seconds]
mavery has quit [Remote host closed the connection]
server129 has quit [Excess Flood]
datafirm has quit [Ping timeout: 240 seconds]
mavery has joined #ruby
Arkaniad has quit [Ping timeout: 276 seconds]
<mavery> hi
yvemath has joined #ruby
mikemac is now known as crazymykl
sambao21 has quit [Quit: Computer has gone to sleep.]
doodlehaus has joined #ruby
havenwood has quit [Remote host closed the connection]
meatherly has joined #ruby
<centrx> !hi
doodlehaus has quit [Ping timeout: 240 seconds]
<centrx> mavery, How can you troubleshoot if there's no trouble?
shashank_rs has joined #ruby
RohanRNS has quit [Quit: Connection closed for inactivity]
simoz112 has quit [Ping timeout: 240 seconds]
kitak__ has quit [Remote host closed the connection]
kitak_ has joined #ruby
EthanHuntAgain has joined #ruby
ari-_-e has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
pu22l3r has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
kitak_ has joined #ruby
memorozovm has joined #ruby
chihhsin has quit [Remote host closed the connection]
kpshek has quit []
chihhsin has joined #ruby
raspberryfan has joined #ruby
bijan07077 has quit [Quit: bijan07077]
livcd has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
mavery has quit [Quit: mavery]
hamakn_ has quit [Read error: Connection reset by peer]
cjsarette has quit [Max SendQ exceeded]
hamakn has joined #ruby
<arrubin> >> f = lambda {|n| n + 2}; f[5]
<eval-in__> arrubin => 7 (https://eval.in/151522)
<arrubin> That is... special.
livcd has quit [Ping timeout: 258 seconds]
Melpaws has joined #ruby
freerobby has joined #ruby
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
freerobby1 has joined #ruby
kalimist has joined #ruby
yfeldblu_ has joined #ruby
<arrubin> >> g = 2.method(:+); g[4]
<eval-in__> arrubin => 6 (https://eval.in/151523)
LexicalScope has quit [Ping timeout: 240 seconds]
kalimist has quit [Max SendQ exceeded]
SegFaultAX has quit [Excess Flood]
yfeldblu_ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
LexicalScope` has quit [Ping timeout: 276 seconds]
debajit has quit [Quit: Leaving...]
simoz112 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
krz has joined #ruby
Karunamon has quit [Ping timeout: 264 seconds]
rixius has quit [Quit: No Ping reply in 180 seconds.]
<agent_white> Ooo...
rixius has joined #ruby
freerobby1 has quit [Ping timeout: 240 seconds]
SegFaultAX has joined #ruby
Karunamon has joined #ruby
bMalum_ has joined #ruby
jamto11 has joined #ruby
hamakn_ has joined #ruby
hamakn_ has quit [Read error: No route to host]
aiguu has quit [Ping timeout: 258 seconds]
pu22l3r has quit [Remote host closed the connection]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
nathancahill has quit [Quit: nathancahill]
mjsmith2 has quit [Remote host closed the connection]
kalimist has joined #ruby
bMalum_ has quit [Ping timeout: 245 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
EthanHuntAgain has quit [Quit: Computer has gone to sleep.]
EthanHuntAgain has joined #ruby
jlast has joined #ruby
FiveDeltaSix has joined #ruby
Retroid_ has joined #ruby
Retroid_ is now known as Retroid
dik_dak has quit [Quit: Leaving]
<Retroid> hey everyone
tacos1de has quit [Ping timeout: 272 seconds]
<jenrzzz> hi
Atrumx has quit [Ping timeout: 255 seconds]
<Retroid> I'm just getting started in Ruby, anyone read The Ruby Programming Language (book)?
kalimist has quit [Excess Flood]
<Retroid> or at least, have it to reference?
<Retroid> its from 2008 so im wondering if its still a good buy
mikehaas763 has joined #ruby
Connie has quit []
<mikehaas763> In a typical vagrantfile, there is a line like this: "Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|" Then a bunch of statements are called on 'config' in the block. I'm not a ruby guy. Is this a lambda block or what?
Lightsword has quit [Ping timeout: 240 seconds]
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
lethjakman has joined #ruby
kalimist has joined #ruby
Es0teric has joined #ruby
kalimist has quit [Max SendQ exceeded]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
Bumptiou_ has joined #ruby
Bumptious has quit [Read error: No route to host]
EthanHuntAgain has quit [Quit: Computer has gone to sleep.]
ascarter has joined #ruby
TripTastic has joined #ruby
Lightsword has joined #ruby
kalimist has joined #ruby
jlast has quit [Remote host closed the connection]
kalimist has quit [Excess Flood]
ccbn has joined #ruby
codeFiend has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
<ccbn> I have a String of data read from a TCP socket. I'm trying to unpack a 3-byte/24-bit big-endian chunk. Currently I'm unpacking it as 3, 8-bit integer with "C3" but it returns 3 values in an array; I would like it to be one 24-bit value in the array
jimbauds has joined #ruby
kalimist has joined #ruby
<jenrzzz> Retroid: get the pickaxe book
datafirm has quit [Ping timeout: 240 seconds]
kalimist has quit [Max SendQ exceeded]
<agent_white> mhm
<Retroid> is that the complete book for free?
<jenrzzz> it’s a good place to start. there’s a newere (2013) version in print
<jenrzzz> Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (The Facets of Ruby)
<Retroid> my library has the 2005 edition
<Retroid> but its only for reference :(
<jenrzzz> but the principles are the same
<jenrzzz> you can probably find it on the internetz somewhere
toastynerd has joined #ruby
<jenrzzz> Retroid: also read _why’s poignant guide to ruby
<Retroid> I like reading out of something physical, but if I have to, thats why I was leaning towards The Ruby Programming Language
<Retroid> because my library has 5 copies
<Retroid> $30, not bad
<Retroid> have you read The Ruby Programming Language?
<jenrzzz> nah, i started with why’s guide and then winged it with the docs from there
kalimist has joined #ruby
TripTastic is now known as JBreit
<Retroid> wait, its a cartoon
<Retroid> I mean, comic
<Retroid> what
kalimist has quit [Excess Flood]
<jenrzzz> yeah it’s awesome
kalimist has joined #ruby
<Retroid> haha, thats great
kalimist has quit [Max SendQ exceeded]
<jenrzzz> i hope my baby’s first words are “class << self""
codeFiend has joined #ruby
aiguu has joined #ruby
<Retroid> maybe ill just stick with this guide, and also use the book from the library
<Retroid> once I can finally get it, 4 people have it on hold
Es0teric has quit [Quit: Computer has gone to sleep.]
<jenrzzz> ccbn: you could probably do a fancy #inject with a bitwise OR and a bit shift to flatten it
mjsmith2 has joined #ruby
<jenrzzz> ccbn: why do you want it to be a single value though?
<jenrzzz> yeah, there are more than enough decent guides free around the net
<Retroid> mhm, I just like something physical that I can reference
<jenrzzz> the pickaxe and _why’s are just the standard suggestions due to their impact i guess
<Retroid> I need 3 monitors
Xeago has joined #ruby
<Retroid> yeah, unfortunatly my library doesnt have pickaxe (except on reference) and the book store I have a gift card for doesnt have it either
<jenrzzz> you should write a strongly worded letter
<Retroid> to be honest, im suprised they have any programming ruby books not on reference
kalimist has joined #ruby
bin_sh has quit [Ping timeout: 276 seconds]
kalimist has quit [Max SendQ exceeded]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has quit [Ping timeout: 240 seconds]
iamayam has quit [Ping timeout: 264 seconds]
<agent_white> Retroid: Have you checked out Practical Object Oriented Design in Ruby (Sandy Metz) ?
<agent_white> Very well worth it, if you can grab it.
<Retroid> yeah, I looked at it briefly, but the name suggested to me that it wouldnt be a good starting place, my oop is only basic
kalimist has joined #ruby
kalimist has quit [Max SendQ exceeded]
<ccbn> jenrzzz: there are more values in the array on either side (that I want to unpack as separate), otherwise I would just flatten it. I could split it up into 2 or 3 different chunks but it just bothers me
<Retroid> would you say its a good place to start for ruby agent_white?
ascarter has joined #ruby
bijan07077 has joined #ruby
<jenrzzz> ccbn: so you want an array of arrays each containing a sing 24-bit value?
<jenrzzz> single*
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 255 seconds]
kalimist has joined #ruby
<ccbn> jenrzzz: I said "flatten" but I meant "inject". Maybe this will make more sense, it's my current unpack string: unpack("A4NNCC3A*"), I want to keep everything the same, I just want to grab the "C3" part as one value instead of 3 in the resulting array
Bumptiou_ has quit [Read error: Connection reset by peer]
Bumptious has joined #ruby
yvemath has quit [Excess Flood]
mjsmith2 has joined #ruby
WishBoy has quit [Remote host closed the connection]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
livcd has joined #ruby
Lightsword has quit [Read error: Connection reset by peer]
WishBoy has joined #ruby
iamayam has joined #ruby
mjsmith2_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
yvemath has joined #ruby
Lightsword has joined #ruby
Bumptiou_ has joined #ruby
alexju has joined #ruby
mjsmith__ has joined #ruby
toastynerd has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
mjsmith2 has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
centrx has quit [Client Quit]
livcd has quit [Ping timeout: 255 seconds]
mjsmith2_ has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
Thermo has quit [Quit: Textual IRC Client: www.textualapp.com]
alvaro_o has quit [Quit: Ex-Chat]
rrios has quit [Ping timeout: 252 seconds]
mjsmith__ has quit [Ping timeout: 240 seconds]
bin_sh has joined #ruby
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
_justin has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 258 seconds]
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
echevemaster has quit [Quit: Leaving]
JasmeetQA has joined #ruby
bMalum_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
JBreit has left #ruby ["Leaving"]
sputnik13 has joined #ruby
armyriad has joined #ruby
bjeanes_ is now known as bjeanes
bMalum_ has quit [Ping timeout: 258 seconds]
yvemath has quit [Excess Flood]
ndrei has joined #ruby
sputnik13 has quit [Remote host closed the connection]
jtdowney has joined #ruby
<jenrzzz> ccbn: this might be weird, but maybe you could unpack it as a 24-bit bitstring (‘B24’) and then call #to_i(2) on it?
jtdowney has quit [Client Quit]
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
mrnugget has joined #ruby
e^0 has quit [Ping timeout: 240 seconds]
HashNuke has joined #ruby
ndrei has quit [Read error: No route to host]
ndrei_ has joined #ruby
maletor has joined #ruby
sputnik13 has joined #ruby
<ccbn> jenrzzz: I really don't need the integer, I just want to pack and unpack it as one value. This works, I just have to use B24 when I pack it. Thanks for this.
<jenrzzz> i think that might work even if you pack it with C
<jenrzzz> it’s just bits
<jenrzzz> unless it has to do some alignment shi
<jenrzzz> tt
afex has joined #ruby
yvemath has joined #ruby
Xeago has quit [Remote host closed the connection]
<ccbn> Packing with "C" gives me error converting String to Integer, but I'm happy with "B24" for both
codeFiend has quit [Quit: codeFiend]
<jenrzzz> cool
Lightsword_ has joined #ruby
<jenrzzz> what are you making?
Darryl has joined #ruby
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
Lightsword has quit [Ping timeout: 276 seconds]
Lightsword_ is now known as Lightsword
bijan07077 has quit [Ping timeout: 252 seconds]
bijan07077 has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
meatherly has quit [Remote host closed the connection]
SOLID000 has quit [Read error: Connection reset by peer]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
e^0 has joined #ruby
datafirm has joined #ruby
tagrudev has joined #ruby
debajit has joined #ruby
sputnik13 has quit [Ping timeout: 258 seconds]
sputnik1_ has joined #ruby
tobago has joined #ruby
sputnik1_ has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
datafirm has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
afex has quit [Ping timeout: 245 seconds]
doodlehaus has joined #ruby
toastynerd has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 276 seconds]
livcd has joined #ruby
cescalante is now known as ce_afk
doodlehaus has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mrnugget has quit [Read error: Connection reset by peer]
funburn has quit [Ping timeout: 265 seconds]
mrnugget has joined #ruby
agjacome has quit [Quit: leaving]
Lightsword has quit [Ping timeout: 265 seconds]
mrnugget has quit [Read error: Connection reset by peer]
toastynerd has quit [Ping timeout: 252 seconds]
leggo has quit []
Xeago has joined #ruby
abstrakt has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
mrnugget has joined #ruby
funburn has joined #ruby
apeiros has joined #ruby
simoz112 has quit [Ping timeout: 240 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> jenrzzz cookies!
skaflem has joined #ruby
<jenrzzz> ooh what kind?
<shevy> the one where the brain goes gaga
<shevy> the wondercookies
mrnugget has quit [Read error: Connection reset by peer]
<jenrzzz> sweeeet
dseitz has joined #ruby
<jenrzzz> well i’ve got some serious munchies but i don’t think i should have any
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
ccbn has quit [Quit: Page closed]
mrnugget has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
bal has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frosgy has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
mjsmith2 has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 276 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
nevans has quit [Ping timeout: 245 seconds]
<jenrzzz> mikehaas763: yeah, that’s pretty much what it is. there are some differences between blocks, procs, and lambdas in ruby but they are all the same concept
frogssgy has quit [Ping timeout: 245 seconds]
nevans has joined #ruby
mrnugget has joined #ruby
lolmaus has joined #ruby
freerobby has joined #ruby
mrnugget has quit [Client Quit]
relix has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
hermanmunster has joined #ruby
ce_afk is now known as cescalante
freerobby has quit [Ping timeout: 276 seconds]
jack_rabbit has quit [Ping timeout: 245 seconds]
tacos1de has joined #ruby
bMalum_ has joined #ruby
jamto11 has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
rshetty has joined #ruby
Macaveli has joined #ruby
bMalum_ has quit [Ping timeout: 240 seconds]
frogssgy has joined #ruby
x1337807x has quit [Client Quit]
jamto11 has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
frosgy has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
Burgestrand has joined #ruby
bMalum_ has joined #ruby
jprovazn has joined #ruby
mengu has joined #ruby
livcd has quit [Write error: Connection reset by peer]
livcd has joined #ruby
Lightsword has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Rahul_Roy has joined #ruby
mikehaas763 has quit [Remote host closed the connection]
noop has joined #ruby
claymore has joined #ruby
bijan07077 has quit [Quit: bijan07077]
semihelix has quit [Ping timeout: 252 seconds]
rain_dj has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
anarang has joined #ruby
isxek has quit [Ping timeout: 258 seconds]
rain_dj has left #ruby [#ruby]
klaut has joined #ruby
isxek has joined #ruby
isxek has quit [Client Quit]
beneggett has joined #ruby
apeiros has joined #ruby
dumdedum has joined #ruby
aganov has joined #ruby
anaeem1 has joined #ruby
arturaz has joined #ruby
Xeago has joined #ruby
alpha123 has quit [Ping timeout: 252 seconds]
anaeem1 has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
meatherly has joined #ruby
alpha123 has joined #ruby
ctp has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
rkazak has left #ruby [#ruby]
rshetty has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
amclain has quit [Quit: Leaving]
meatherly has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
toastynerd has quit []
Fractional has joined #ruby
livcd has quit [Ping timeout: 265 seconds]
ce_afk is now known as cescalante
<Fractional> Hello, I am getting an rspec error (cannot load such file (filepath)). https://join.me/781-780-045
<Fractional> Nevermind, solved it. I am so stupid :P
Fractional has quit [Remote host closed the connection]
yvemath has quit [Excess Flood]
zigomir has joined #ruby
rshetty has joined #ruby
Xeago has quit [Remote host closed the connection]
claymore has joined #ruby
debajit has quit [Quit: Leaving...]
lethjakman has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
alex88 has joined #ruby
Ardenzi has joined #ruby
SegFaultAX has quit [Excess Flood]
mjsmith2 has joined #ruby
j416_ is now known as j416
SegFaultAX has joined #ruby
mjsmith2_ has joined #ruby
kung has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
cescalante is now known as ce_afk
lethjakman has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
omosoj has quit [Quit: Leaving]
mjsmith2_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 240 seconds]
artgoeshere has quit [Ping timeout: 240 seconds]
artgoeshere has joined #ruby
bMalum_ has quit [Quit: Computer has gone to sleep.]
mengu has quit [Remote host closed the connection]
bMalum_ has joined #ruby
unixpro1970 has joined #ruby
bMalum_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
bMalum_ has joined #ruby
sinkensabe has joined #ruby
mr_rich101 has joined #ruby
bMalum__ has joined #ruby
bMalum_ has quit [Read error: Connection reset by peer]
livcd has joined #ruby
krzkrz has joined #ruby
spicerack has joined #ruby
senayar has joined #ruby
Rockfordal has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
setra has joined #ruby
mehlah has joined #ruby
sooik has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
[iilliinn] has joined #ruby
oo_ has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
roshanavand has joined #ruby
RaptorJesus is now known as TheMoon
TheMoon is now known as DogeRocket
vt102 has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<Rockfordal> anyone know how to get invite to #rails? (i am registered)
<sevenseacat> #rails doesnt exist
<Rockfordal> oh lol
DogeRocket is now known as RaptorJesus
ish6614 has quit [Quit: Leaving]
<danijoo> Rockfordal: #RubyOnRails is the official channel :)
debajit has joined #ruby
sooik has quit [Ping timeout: 265 seconds]
LiohAu has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.3]
setra has quit [Ping timeout: 276 seconds]
Hobogrammer has quit [Ping timeout: 255 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
livcd has joined #ruby
Xeago has joined #ruby
datafirm has joined #ruby
debajit has quit [Ping timeout: 276 seconds]
subraminion has joined #ruby
shemerey has joined #ruby
Xeago has quit [Client Quit]
livcd has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
DouweM has quit [Ping timeout: 276 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
subraminion_ has joined #ruby
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
mpajor has quit [Ping timeout: 252 seconds]
shemerey has quit [Quit: Textual IRC Client: www.textualapp.com]
doodlehaus has joined #ruby
sevenseacat has quit [Ping timeout: 240 seconds]
subraminion has quit [Ping timeout: 240 seconds]
shvelo has joined #ruby
nvrch has joined #ruby
mercerist has joined #ruby
sk87 has joined #ruby
meatherly has joined #ruby
nfk has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
shemerey has joined #ruby
hermanmunster has quit [Remote host closed the connection]
gruz0[russia] has joined #ruby
hermanmunster has joined #ruby
funburn has joined #ruby
<ari-_-e> >> Array(5)
<eval-in__> ari-_-e => [5] (https://eval.in/151589)
doodlehaus has quit [Ping timeout: 255 seconds]
<ari-_-e> can anyone explain that behavior? the documentation doesn't seem to explain it, as far as I can tell
ktun has joined #ruby
shvelo has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
<tobiasvl> sure it does
<tobiasvl> "An array can also be created by using the Array() method, provided by Kernel, which tries to call to_ary, then to_a on its argument."
danijoo has joined #ruby
<ari-_-e> tobiasvl: right, but how does that explain creating a singleton array from a Fixnum?
elaptics`away is now known as elaptics
<ari-_-e> >> Array(1..5)
<eval-in__> ari-_-e => [1, 2, 3, 4, 5] (https://eval.in/151594)
<ari-_-e> that makes sense to me, since it's the same as:
<ari-_-e> >> (1..5).to_a
<eval-in__> ari-_-e => [1, 2, 3, 4, 5] (https://eval.in/151595)
hermanmunster has quit [Ping timeout: 258 seconds]
<Hanmac1> ari-_-e:
<Hanmac1> >> [Array("a"), Array("a".each_char)]
<eval-in__> Hanmac1 => [["a"], ["a"]] (https://eval.in/151596)
oo_ has quit [Remote host closed the connection]
<Hanmac1> ari-_-e: what else do you want as return value? Array() allways return one array with one lement or more
<Hanmac1> worng sample:
<Hanmac1> >> [Array("abc"), Array("abc".each_char)]
<eval-in__> Hanmac1 => [["abc"], ["a", "b", "c"]] (https://eval.in/151597)
rshetty has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
<ari-_-e> Hanmac1: I'm just looking for the documentation of that behavior
rdark has joined #ruby
rshetty has joined #ruby
maroloccio has joined #ruby
ce_afk is now known as cescalante
LekeFly has joined #ruby
<Hanmac> ari-_-e: obj.respond_to?(:to_ary) ? obj.to_ary : obj.respond_to?(:to_a) ? obj.to_a : [obj]
havenwood has joined #ruby
franziep has quit [Quit: ...]
<tobiasvl> Hanmac: it's that final clause there that's undocumented
oo_ has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
<ari-_-e> Hanmac: how does that explain it?
<Hanmac> ari-_-e: "First tries to call Array#to_ary on arg, then Array#to_a."
<tobiasvl> and THEN [arg]. but that's not documented
<ari-_-e> yes, how does that explain Array(5) => [5]
marr has joined #ruby
mjsmith2 has joined #ruby
<Hanmac> what do you want? should it rise a no method error?
<ari-_-e> Hanmac: as I said, I was just wondering if it was documented
freggles has joined #ruby
<ari-_-e> apparently it's not
Melpaws has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
<apeiros> tobiasvl: docpatch!
freerobby has joined #ruby
postmodern has quit [Quit: Leaving]
sevenseacat has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
mjsmith2 has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
fantazo has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
ndrei has joined #ruby
<Hanmac> someday someone else will also make docpatches for my projects ... i mean come one how much can you document for a Color#red attribute? ;P
olivier_bK has joined #ruby
<Hanmac> even that last sentence was longer than the documentation for this attribute ;D
<tobiasvl> lol
grzywacz has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
moritzs has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
rm__ has quit [Remote host closed the connection]
einarj has joined #ruby
rm_ has joined #ruby
<Hanmac> tobiasvl: yeah how many could you write for documenting one color attribute of a Color class?
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
WishBoy has quit [Ping timeout: 258 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
WishBoy has joined #ruby
ghr has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has quit [Ping timeout: 245 seconds]
<ari-_-e> tobiasvl: even the documentation that exists is confusing - how can you invoke Array#to_ary to Array#to_a on something that's not an Array?
<ari-_-e> from my reading of MRI, it looks like it's more like it invokes the #to_ary and #to_a methods on the given object and checks if the result is an Array
<DaniG2k> hmm does RVM not support Ruby 2.1.2 yet or am I doing something wrong?
<ari-_-e> s/to/or/
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
anarang has quit [Ping timeout: 258 seconds]
bMalum__ has quit [Read error: Connection reset by peer]
bMalum__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 240 seconds]
bMalum__ has quit [Client Quit]
bMalum__ has joined #ruby
<sevenseacat> does rvm still need to be updated to get the new definitions?
<sevenseacat> (which is really annoying btw)
WishBoy has quit [Remote host closed the connection]
<apeiros> Hanmac: type, value range
WishBoy has joined #ruby
<apeiros> seen docs for color systems where it was nowhere stated whether it was e.g. a float 0.0..1.0, or an uint_8, or uint_16 or even something else
jimbauds has quit [Ping timeout: 240 seconds]
bMalum__ has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
frobrob has joined #ruby
combusean has joined #ruby
kaspergr_ has joined #ruby
joonty has joined #ruby
klaut has quit [Remote host closed the connection]
WishBoy- has joined #ruby
livcd has joined #ruby
askldjuio2 has joined #ruby
_tpavel has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
WishBoy has quit [Ping timeout: 265 seconds]
moritzs has joined #ruby
asdklji2 has quit [Ping timeout: 250 seconds]
livcd has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
subraminion_ has quit [Quit: Computer has gone to sleep.]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ta has quit [Quit: Leaving...]
timonv has quit [Remote host closed the connection]
xea_ has quit [Remote host closed the connection]
charliesome has joined #ruby
meatherly has joined #ruby
sk87 has joined #ruby
WishBoy- has quit [Remote host closed the connection]
dbods has joined #ruby
WishBoy has joined #ruby
subraminion_ has joined #ruby
oo_ has quit [Remote host closed the connection]
subraminion_ has quit [Remote host closed the connection]
RaptorJesus has quit [Ping timeout: 272 seconds]
subraminion_ has joined #ruby
meatherly has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
subraminion_ has quit [Client Quit]
subraminion has joined #ruby
kung has joined #ruby
ce_afk is now known as cescalante
zergood_ has joined #ruby
ikaros has joined #ruby
askldjuio2 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
Advocation has joined #ruby
freerobby has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
timonv has joined #ruby
obs_ has joined #ruby
askldjuio2 has joined #ruby
cescalante is now known as ce_afk
sevenseacat has quit [Quit: Leaving.]
rshetty has joined #ruby
klaut has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
JohnnyRun has joined #ruby
OffTheRails has joined #ruby
funburn has left #ruby [#ruby]
rshetty_ has joined #ruby
<JohnnyRun> hi all. I need to port these line to ruby:
<JohnnyRun> s = socket(AF_INET, SOCK_DGRAM, 0);
<JohnnyRun> sendto(s, msg, sizeof(msg), 0, (SOCKADDR *) &toAddr, sizeof(toAddr)) == SOCKET_ERROR)
<JohnnyRun> Any suggestion pls?
<JohnnyRun> my doubt is protocol 0 (raw ip?)
rshetty has quit [Read error: Connection reset by peer]
Xeroa has joined #ruby
bMalum__ has joined #ruby
rshetty__ has joined #ruby
Melpaws has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
rshetty_ has quit [Ping timeout: 258 seconds]
<JohnnyRun> jenrzzz, tnx. In your opinion that C lines are sending UDP or RAW IP ?
frobrob has quit [Quit: uit]
ta has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
DaniG2k has quit [Quit: leaving]
<ari-_-e> JohnnyRun: have you read the documentation?
<JohnnyRun> yes, but I don't speak c
<ari-_-e> you don't need to "speak C"
<jenrzzz> JohnnyRun: see send(2)
<jenrzzz> JohnnyRun: SOCK_DGRAM is UDP. as in user datagram protocol
frobrob has joined #ruby
mengu has quit [Remote host closed the connection]
kung has quit [Quit: Bye!]
lkba has joined #ruby
<JohnnyRun> jenrzzz, tnx
<jenrzzz> JohnnyRun: and protocol 0 is IP. it’s all there in the man pages: protocols(5), socket(2), send(2)
lurch_ has joined #ruby
<ari-_-e> actually, AF_INET specifies IP
<ari-_-e> I don't think the 0 means anything in this case
<jenrzzz> AF_INET is the protocol family
<ari-_-e> yes
<ari-_-e> the IP protocol family
<jenrzzz> but the protocol is the id of the protocol in /etc/protocols
<jenrzzz> and on darwin 0 = IP
chiw has joined #ruby
Lightsword has quit [Ping timeout: 245 seconds]
anarang has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
chiw is now known as Guest40037
jprovazn has quit [Quit: Leaving]
claymore has quit [Quit: Leaving]
RaptorJesus has joined #ruby
vee has quit [Ping timeout: 252 seconds]
livcd has joined #ruby
<ari-_-e> jenrzzz: the darwin man pages are not really clear on this point, but this: http://man7.org/linux/man-pages/man7/ip.7.html man page describes the rules for Linux
WishBoy has quit [Remote host closed the connection]
stef_204 has joined #ruby
<shevy> hmmm
<shevy> I suppose I can not do this:
<jenrzzz> i think it’s the same… they’re both posix sockets
<shevy> if "x greater than amount of bananas"
<shevy> in other words, use strings for if checks
<ari-_-e> jenrzzz: one would hope :)
WishBoy has joined #ruby
anarang has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
<jenrzzz> shevy: you could probably write a DSL for that if you really wanted to
<shevy> jenrzzz hmm but is that possible? I mean how could I intercept such if-checks?
<jenrzzz> you’d have to make it a method. “if” is a reserved word but you could call it “sif” or something
<ari-_-e> shevy: do you really need to do this? what's wrong with using ruby's syntax?
<jenrzzz> but i don’t know why you would actually need that
<shevy> ari-_-e I don't need it but I want it :)
livcd has quit [Ping timeout: 240 seconds]
<ari-_-e> shevy: why?
<shevy> ari-_-e I can write the logic in a pure string format for instance
<jenrzzz> shevy: you should never do that
<ari-_-e> shevy: as much as people try to pretend, programming languages are not natural languages
<ari-_-e> they're just not
<shevy> jenrzzz well if I can't use the core conditionals then it isn't doable anyway
<ari-_-e> and spending a lot of effort to make them look like it is misguided
<shevy> ari-_-e ruby is super close to a terse subset of the english language
oo_ has quit [Remote host closed the connection]
<ari-_-e> the fact that you can make ruby code look sort of like english doesn't mean there's any actual connection
<ari-_-e> natural language is not for programming, period
oo_ has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
vee has joined #ruby
meatherly has joined #ruby
<shevy> anyone of you guys is using ruby readline tab completion often?
Martxel has joined #ruby
marr has quit [Ping timeout: 252 seconds]
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
WishBoy has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
WishBoy has joined #ruby
n1x has joined #ruby
meatherl_ has joined #ruby
meatherly has quit [Ping timeout: 276 seconds]
bMalum__ has quit [Quit: Computer has gone to sleep.]
zergood_ has quit [Remote host closed the connection]
bMalum__ has joined #ruby
askldjuio2 has quit [Ping timeout: 252 seconds]
ddv has quit [Changing host]
ddv has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
meatherl_ has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
OffTheRails has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 245 seconds]
Martxel has quit [Ping timeout: 255 seconds]
bMalum__ has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 252 seconds]
mjsmith2 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
bMalum__ has joined #ruby
freerobby has joined #ruby
jprovazn has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
Martxel has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
andikr has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
n_b has quit [Ping timeout: 245 seconds]
combusean has joined #ruby
diegoviola has quit [Remote host closed the connection]
chipotle has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
mercwithamouth has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
codeFiend has quit [Quit: codeFiend]
fabrice31 has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 276 seconds]
Guest40037 has quit [Quit: Bye!]
bMalum__ has quit [Quit: Computer has gone to sleep.]
karupa is now known as zz_karupa
bMalum__ has joined #ruby
rtlong has quit [K-Lined]
irric has joined #ruby
mercerist has joined #ruby
davedev24 has joined #ruby
mengu has joined #ruby
WishBoy has quit [Remote host closed the connection]
WishBoy has joined #ruby
bMalum__ has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
toretore has joined #ruby
jottr_ has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
likemike has quit [Quit: leaving]
n_b has joined #ruby
nari has joined #ruby
livcd has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> anyone of you guys is using ruby
AlecTaylor has joined #ruby
<AlecTaylor> hi
<shevy> hi FredTaylor
subraminion_ has joined #ruby
subraminion has quit [Read error: Connection reset by peer]
livcd has quit [Ping timeout: 240 seconds]
Dude007 has quit [Remote host closed the connection]
<Hanmac> shevy: only in my socket weapons, for armor and shield i use different gems ;P
Dude007 has joined #ruby
nvrch has quit [Quit: nvrch]
<AlecTaylor> What do you think of Rubinius?
<shevy> dead
meatherly has joined #ruby
<shevy> projects often change when the lead guy jumps off
<shevy> just look at _why's shoes
havenwood has quit []
<AlecTaylor> Well how about this one then? - https://github.com/ruby-llvm/ruby-llvm
marr has joined #ruby
yfeldblum has joined #ruby
Dude007 has quit [Ping timeout: 255 seconds]
<shevy> never heard of that one before
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewlio has joined #ruby
<shevy> people who have to do something computationally heavy
<shevy> will use C anyway
<Hanmac> or write c- bindings ;P
<shevy> yeah
<shevy> but never finish them
<shevy> right hanikazmi
<shevy> erm
<shevy> Hanmac!
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
rshetty has joined #ruby
<Hanmac> shevy: hey! i will commit something for rwx again ... (and yeah i have older c-gems still in development) i was stressed that week and ohloh finally did checked my last commit: https://www.ohloh.net/p/rubywx/analyses/latest/languages_summary ... shevy look at this SCORE! ;P
rshetty__ has quit [Read error: Connection reset by peer]
rshetty_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<shevy> Hanmac is it possible to use a wiki on ohloh?
n1x has quit [Ping timeout: 245 seconds]
<shevy> wow
<shevy> 0.3% XML
JohnnyRun has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
<Hanmac> shevy what are you looking for? (yeah there is a sample that uses xrc files )
bMalum__ has joined #ruby
thesheff17 has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
marcdel_ has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
ce_afk is now known as cescalante
oo_ has joined #ruby
ghr has joined #ruby
sinkensabe has joined #ruby
<Hanmac> shevy as far as i know ohloh does not have wiki, but github has
heftig has joined #ruby
memorozovm has quit []
charliesome has joined #ruby
freerobby has joined #ruby
n1x has joined #ruby
AlecTaylor has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
phoo1234567 has joined #ruby
hgl has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
bMalum__ has quit [Quit: Computer has gone to sleep.]
hgl has joined #ruby
bMalum__ has joined #ruby
EthanHuntAgain has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
raspberryfan has quit [Remote host closed the connection]
decoponio has joined #ruby
raspberryfan has joined #ruby
sooik has joined #ruby
bMalum__ has quit [Read error: Connection reset by peer]
bMalum__ has joined #ruby
mehlah has quit [Quit: Leaving...]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
EthanHuntAgain has quit [Quit: Lingo - http://lingoirc.com]
garethrees has joined #ruby
ghr has quit [Read error: No route to host]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
sepp2k has joined #ruby
n1x has left #ruby ["Ex-Chat"]
setra has joined #ruby
iceden has quit [Ping timeout: 240 seconds]
sunslide has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
garethrees has quit [Read error: No route to host]
ghr has joined #ruby
anarang has quit [Ping timeout: 265 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sooik has quit [Ping timeout: 252 seconds]
banister has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
gigetoo has joined #ruby
kitak_ has quit [Remote host closed the connection]
Dude007 has joined #ruby
relix has joined #ruby
<Hanmac> shevy are you looking for rwx wiki page where you can add/edit stuff yourself?
klaut has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
subraminion__ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<shevy> Hanmac something like that, yeah
<shevy> something to make like the ruby-gnome wiki
<shevy> that helped me learn it initially
zack` has joined #ruby
raspberryfan has quit [Remote host closed the connection]
<zack`> Hi!
raspberryfan has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
subraminion_ has quit [Ping timeout: 258 seconds]
iceden has joined #ruby
troulouliou_dev has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
sunslide has left #ruby [#ruby]
ghr has joined #ruby
<Hanmac> shevy i can enable it on github and now it is: https://github.com/Hanmac/rwx/wiki
<shevy> \o/
anarang has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
franzip has joined #ruby
_justin has quit [Quit: _justin]
jespada has joined #ruby
Advocation has quit [Quit: Advocation]
zorak8 has joined #ruby
zorak8 has quit [Client Quit]
zorak8 has joined #ruby
livcd has joined #ruby
roshanavand has joined #ruby
ldnunes has joined #ruby
dblessing has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
raspberryfan has quit [Ping timeout: 240 seconds]
VictorBjelkholm has joined #ruby
livcd has quit [Ping timeout: 252 seconds]
rshetty_ has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n_b has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
n_b has joined #ruby
_justin has joined #ruby
chipotle has quit [Quit: cya]
Bira has joined #ruby
mercerist has joined #ruby
subraminion__ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
subraminion__ has joined #ruby
WishBoy has quit [Remote host closed the connection]
WishBoy has joined #ruby
ce_afk is now known as cescalante
maximski has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
combusean has joined #ruby
maximski has quit [Max SendQ exceeded]
kaspergrubbe has joined #ruby
maximski has joined #ruby
kitak_ has joined #ruby
meatherly has joined #ruby
garethrees has joined #ruby
<linduxed> hey guys, i've got an application that has a number of ENV variables in it
moritzs has joined #ruby
<linduxed> i just realized that i need to add a new ENV variable that will essentially be an array
combusean has quit [Ping timeout: 245 seconds]
<linduxed> so far i've never used array-like ENV variables
Shidash has joined #ruby
paulfm has joined #ruby
<linduxed> should i just have a comma-separated string that i parse with split, or is there something better i could do?
paulfm has quit [Client Quit]
<Hanmac> linduxed: ENV are only Strings, for key and value
ghr has quit [Ping timeout: 276 seconds]
<Hanmac> comma-separated list might be enough for you
mjsmith2 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<linduxed> Hanmac: ok thx
JohnnyRun has joined #ruby
ndrei has joined #ruby
Hanmac1 has joined #ruby
freerobby has joined #ruby
nateberkopec has joined #ruby
paulfm has joined #ruby
Xeago has joined #ruby
sambao21 has joined #ruby
Advocation has quit [Quit: Advocation]
mjsmith2 has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
nvrch has quit [Quit: nvrch]
sk87 has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
mercerist has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 276 seconds]
yacks has joined #ruby
Hanmac has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
rshetty has joined #ruby
gruz0[russia] has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
mercerist has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
danshultz has joined #ruby
mercerist has joined #ruby
mark_locklear has joined #ruby
lw has quit [Quit: s]
mrnugget has joined #ruby
raspberryfan has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Read error: Connection reset by peer]
eka has joined #ruby
eka has quit [Client Quit]
jprovazn has quit [Quit: Odcházím]
canton7-mac has joined #ruby
shashank_rs has joined #ruby
mjs2600 has joined #ruby
skaflem has quit [Quit: This computer has gone to sleep]
s2013 has joined #ruby
<Macaveli> Can you put 3 returns in one line? https://gist.github.com/YOUConsulting/6821faad8731da7427e7
<Macaveli> something like: return false unless user, params, ...
raspberryfan has quit [Remote host closed the connection]
rshetty_ has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
raspberryfan has joined #ruby
raspberryfan has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
raspberryfan has joined #ruby
Dude007 has quit [Ping timeout: 265 seconds]
nvrch has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
Dude007 has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
kitak_ has quit [Remote host closed the connection]
mercerist has joined #ruby
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
<Hanmac> Macaveli: return false unless [questionnaires, user, surveys].all?
<shevy> Macaveli I see only one return
Xeago has joined #ruby
<Macaveli> hanmac let me try
nateberkopec has quit [Quit: Leaving...]
<shevy> are the other two returns hiding in your pants
livcd has joined #ruby
<Hanmac> shevy: look at the gist
<shevy> ack
<shevy> they are hiding in a gist
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
<canton7-mac> return if !questionnaires || !user || !surveys
<shevy> ack
<shevy> now they hide behind !
* Hanmac is now living in the Villiage hidden in the gist
aiguu has quit [Ping timeout: 245 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
<Hanmac> canton7-mac: wy not? return unless questionnaires && user && surveys
enebo has joined #ruby
napcae has left #ruby [#ruby]
klaut has joined #ruby
mosez has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 240 seconds]
ndrei has quit [Read error: Connection reset by peer]
mosez has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
livcd has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
ndrei has joined #ruby
simono has joined #ruby
paulfm has quit []
Lightsword has joined #ruby
Lightsword has quit [Client Quit]
garethrees has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
banister has joined #ruby
ghr has joined #ruby
paulfm has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 276 seconds]
klaut has joined #ruby
setra has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
klaut has quit [Remote host closed the connection]
[iilliinn] has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
frobrob has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
jprovazn has joined #ruby
JohnnyRun has quit [Ping timeout: 255 seconds]
hgl has quit [Ping timeout: 240 seconds]
subraminion__ has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
combusean has joined #ruby
<olivier_bK> i know i m not a crazy sometimes i can lost my head but i m not crazy
<olivier_bK> when i run the script manually everything doing fine
<banister> olivier_bK darn girl, that's some weird looking ruby ;)
<olivier_bK> but when the crontab try to execute it i get nothing
Shidash has quit [Quit: Leaving.]
<olivier_bK> lol
blackmesa has joined #ruby
<olivier_bK> i found where is the problem on the script is juste after
hgl has joined #ruby
<apeiros> olivier_bK: cron probably has a different env than your login-shell
<olivier_bK> if arg =="automation-performance" then
<olivier_bK> no
<olivier_bK> i told him use this ruby version ( /opt/bin/ruby /root/scripts/admin/myscript.rb --instance=automation-performance )
subraminion__ has joined #ruby
<olivier_bK> if a call only one methode in if arg =="automation-performance" then
<olivier_bK> it's okai
<olivier_bK> but if i try to call two methode
<olivier_bK> i get nothing
mercwithamouth has quit [Ping timeout: 258 seconds]
klaut has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
lw has joined #ruby
paulfm has quit []
shvelo has joined #ruby
nateberkopec has joined #ruby
hgl_ has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
fukuyamaken has quit [Read error: Connection reset by peer]
qwyeth has joined #ruby
hgl_ has quit [Max SendQ exceeded]
fukuyamaken has joined #ruby
<shvelo> anyone know wtf is mini_portile? it takes forever to install
krzkrz has quit [Quit: WeeChat 0.4.3]
roshanavand has quit [Ping timeout: 240 seconds]
mjs2600 has quit [Remote host closed the connection]
JohnnyRun has joined #ruby
paulfm has joined #ruby
kevinykchan has quit [Ping timeout: 252 seconds]
rudisimo has joined #ruby
subraminion__ has quit [Quit: Computer has gone to sleep.]
anaeem1_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
gener1c has quit [Remote host closed the connection]
dideler|work has joined #ruby
<shvelo> When you HTTParty, you must party hard!
anaeem1_ has joined #ruby
kevinykchan has joined #ruby
ldnunes has quit [Quit: Leaving]
subraminion__ has joined #ruby
subraminion__ has quit [Remote host closed the connection]
kpshek has joined #ruby
hgl has joined #ruby
subraminion__ has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
<shevy> shvelo!
<shevy> my nick brother
<shvelo> shevy!
benzrf|offline is now known as benzrf
<shvelo> I'm gonna quit my job because there I'm forced to use proxy
anaeem1_ has quit [Ping timeout: 252 seconds]
sski has joined #ruby
<shevy> wat
<shevy> weird
<shevy> reason to quit
<shevy> :D
<shvelo> I can't use SSH
<shvelo> or anything except HTTP and FTP
St_Marx has quit [Quit: Ex-Chat]
<shvelo> that sucks dick
DouweM has joined #ruby
mjs2600 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gruz0[russia] has quit [Quit: Leaving]
paulfm has quit []
kies has quit [Ping timeout: 255 seconds]
mrmargolis has joined #ruby
paulfm has joined #ruby
ce_afk is now known as cescalante
g0bl1n has joined #ruby
ghr has quit [Read error: Connection reset by peer]
ghr has joined #ruby
franzip has quit [Quit: ...]
mattstratton has joined #ruby
enebo has quit [Quit: enebo]
<olivier_bK> yes that's sucks as you say
irric has quit [Quit: Page closed]
lkba has quit [Ping timeout: 252 seconds]
skaflem has joined #ruby
JohnnyRun has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
Zenigor has joined #ruby
beef-wellington has joined #ruby
AlSquirrel has joined #ruby
maletor has joined #ruby
mrnugget has quit [Quit: mrnugget]
havenwood has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
Ankhers has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
AlSquire has quit [Ping timeout: 240 seconds]
shemerey has quit [Quit: Textual IRC Client: www.textualapp.com]
mjs2600 has quit []
sinkensabe has quit [Remote host closed the connection]
sunya7a has joined #ruby
sunya7a has quit [Client Quit]
sinkensabe has joined #ruby
lkba has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
bruno- has joined #ruby
freerobby has joined #ruby
aiguu has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livcd has joined #ruby
chipotle has joined #ruby
mjsmith2 has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
zack` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
aiguu has quit [Ping timeout: 255 seconds]
livcd has quit [Ping timeout: 255 seconds]
cescalante is now known as ce_afk
beef-wellington has quit [Ping timeout: 258 seconds]
Ankhers has quit [Changing host]
Ankhers has joined #ruby
Ankhers has quit [Changing host]
Ankhers has joined #ruby
wald0 has joined #ruby
AlecTaylor has joined #ruby
AlecTaylor has joined #ruby
AlecTaylor has quit [Changing host]
phutchins has joined #ruby
alexju has joined #ruby
jeregrine has joined #ruby
<happytux> hi
<happytux> There is a Rakefile and I require several gems which contain Rake tasks. Now I got the problem that there is a gem which defines not only tasks I want to use in the Rakefile but also one task (named 'spec') which I want to overwrite / redefine.
<happytux> Because currently both spec tasks are run, the one from the required gem and the one I defined by myself (and should be used alone).
aganov has quit [Quit: Leaving]
<happytux> I have to require that gem because I need all the other tasks.
krz has joined #ruby
Melpaws has quit [Ping timeout: 276 seconds]
<happytux> So can I either use the gem-name as namespace? Or selectively disable one of both tasks?
sinkensabe has joined #ruby
mary5030 has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
shemerey has joined #ruby
mary5030 has joined #ruby
jle` has quit [Quit: WeeChat 0.4.2]
jle` has joined #ruby
sunya7a has joined #ruby
xcesariox has joined #ruby
ixti has joined #ruby
meatherly has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
paulfm has quit []
Fraeon has quit [Quit: Lost terminal]
sambao21 has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Remote host closed the connection]
combusean has joined #ruby
cocotton has quit [Remote host closed the connection]
upsell5 has joined #ruby
paulfm has joined #ruby
AlecTaylor has quit [Ping timeout: 255 seconds]
Solnse has joined #ruby
Fraeon has joined #ruby
AlecTaylor has joined #ruby
fieldfirst has joined #ruby
sambao21 has joined #ruby
julian-delphiki has joined #ruby
nateberkopec has joined #ruby
AlecTaylor has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
baweaver has joined #ruby
kevind has joined #ruby
subraminion__ has quit [Quit: Computer has gone to sleep.]
bean has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
DouweM has joined #ruby
mrnugget has joined #ruby
shashank_rs has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
fabrice31 has quit [Remote host closed the connection]
matchaw has quit [Remote host closed the connection]
AlexRussia has joined #ruby
matchaw has joined #ruby
blackmesa has joined #ruby
pu22l3r has joined #ruby
paulfm has quit []
paulfm has joined #ruby
paulfm has quit [Client Quit]
subraminion__ has joined #ruby
subraminion__ has quit [Remote host closed the connection]
<canton7-mac> Hanmac, I don't like 'unless' with '&&' or '||', especially when '!' gets thrown in
<canton7-mac> in this specific case it reads cleanly, but often it doesn't
subraminion__ has joined #ruby
beef-wellington has joined #ruby
<benzrf> i always use english boolean ops unless precedence makes them require parens
Spami has joined #ruby
<canton7-mac> urgh
tobago has quit [Remote host closed the connection]
<canton7-mac> never been a fan of that - you're mis-using a keyword because you think it looks nice ;)
_justin has quit [Quit: _justin]
matchaw has quit [Ping timeout: 240 seconds]
rostam has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
paulfm has joined #ruby
matchaw has joined #ruby
cocotton has joined #ruby
zybil has joined #ruby
<zybil> hi
combusean has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
<zybil> I got 1000 files (wav,aac,mp3,aiff,flac) in folder A and I got most of them re-encoded to flac-format in folder B to i.e. "sound.wav.flac". All I wanna find out which files of A are missing in B because they couldn't be re-encoded?
beef-wellington has quit [Ping timeout: 245 seconds]
paulfm has quit [Client Quit]
<canton7-mac> list all files in A, strip the extensions. same for B. find the difference ;)
tkuchiki has joined #ruby
<canton7-mac> ask a more specific quesiton about one of those steps if you need to
blackmesa has quit [Ping timeout: 276 seconds]
treehug88 has joined #ruby
cpruitt has joined #ruby
rostam has joined #ruby
vpretzel is now known as vpretzel|920
fieldfirst has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
downtown has joined #ruby
downtown has left #ruby [#ruby]
tagrudev has quit [Remote host closed the connection]
SCommette has joined #ruby
subraminion__ has quit [Quit: Lingo - http://lingoirc.com]
endash has joined #ruby
treehug88 has quit []
sailias has joined #ruby
kate_r has joined #ruby
zorak8 has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
sunya7a has quit [Ping timeout: 240 seconds]
mercerist has joined #ruby
jonno11 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<happytux> Hanmac: thanks
<happytux> OK, this is a ruby question although some Rails is included (class): http://pastebin.com/EX8kUm63
treehug88 has joined #ruby
paulfm has quit []
ikawnoclast has joined #ruby
mengu has quit []
<happytux> I want a local variable.
<happytux> And this variable inside the class should be assignable from the outside.
ndrei has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
<zybil> since this seems to be too difficult to me I nearly found another solution:
<zybil> $ gprename / 1. remove all (extra) extensions in B / 2. compare via diff command / $ diff --brief -r dir1 dir2 / 3. re-add all (extra) extensions in B
yubrew has quit []
ctp has joined #ruby
<zybil> but the problem is that gprename removes all .flac extensions, also if a file is named .flac.flac which alters the results again!!
JasmeetQA has joined #ruby
fieldfirst has joined #ruby
<canton7-mac> zybil, http://ideone.com/t2BXse
JumpMast3r has joined #ruby
poppingtonic has joined #ruby
<zybil> thanks canton7 how to use this file now?
yubrew has joined #ruby
<canton7-mac> zybil, then use Dir (look it up) to list files
<canton7-mac> populate a and b appropriately
rshetty_ has quit [Ping timeout: 255 seconds]
<Hanmac> happytux: you defined the :module_name stuff for the instances of the class, not for the class itself
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> happytux: do class <<; attr_accessor :module_name; end
<Hanmac> i mean: class << self; attr_accessor :module_name; end
paulfm has joined #ruby
treehug88 has quit [Ping timeout: 265 seconds]
garndt has joined #ruby
Retroid has quit [Ping timeout: 276 seconds]
LastWhisper has joined #ruby
poppingt` has joined #ruby
poppingt` is now known as poppingtonic`
<canton7-mac> zybil, more fancy: http://ideone.com/t2BXse
jlast has quit [Remote host closed the connection]
dstynchula has joined #ruby
dstynchula has quit [Remote host closed the connection]
dik_dak has joined #ruby
beef-wellington has joined #ruby
poppingtonic is now known as Guest81733
<zybil> thanks canton7 but sorry, too I'm very new to this channel and I have no idea, how to use these scripts, I only can write the correct first line: a = ['1.mp3', '2.aac', '3.wav', '4.aiff', '5.flac', '6.ogg']
<zybil> but I don't understand the second line (b)
Morkel_ has joined #ruby
<zybil> why are there two times .flac and why is it 1 and 3 and not 1 and 2?
poppingtonic` is now known as poppingtonic
bal has quit [Quit: bal]
livcd has joined #ruby
aniM has joined #ruby
poppingtonic is now known as Guest9821
omosoj has joined #ruby
<aniM> I am building my first gem and I am having some issues. Could someone help?
<canton7-mac> zybil, so 'a' is the list of files in folder A - i.e. which files existed before you tried transcoding them
Guest81733 has quit [Ping timeout: 240 seconds]
eka has joined #ruby
<canton7-mac> 'b' is the list of files in folder B - i.e. the ones which were successfully transcoded to flac
LastWhisper has quit [Ping timeout: 240 seconds]
<aniM> Basically my gem works fine locally, but when I install it from github I get NameError: uninitialized constant error. I suspect something is wrong with my gemspec.
Guest9821 is now known as poppingtonic`
Morkel has quit [Ping timeout: 276 seconds]
Morkel_ is now known as Morkel
poppingtonic` is now known as poppingtonic
fabrice31 has quit [Remote host closed the connection]
poppingtonic is now known as Guest13705
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest13705 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<zybil> ok
<happytux> Hanmac: thanks
<zybil> understand that
<zybil> i just installed ruby and ruby-dev
<happytux> Hanmac: ah, this class concept is different compared to other languages
jlast has joined #ruby
bijan07077 has joined #ruby
s2013 has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
Solnse has quit [Remote host closed the connection]
blackmesa has joined #ruby
fabrice31 has joined #ruby
snath has quit [Ping timeout: 255 seconds]
jokke has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 240 seconds]
andrewcarter has joined #ruby
<andrewcarter> I've just written my first gem and I'm looking into documentation, it's looking like yard and rdoc are the best two options?
spicerack has joined #ruby
<apeiros> andrewcarter: yes. yard is IMO the best available.
tesuji has quit [Ping timeout: 258 seconds]
<andrewcarter> apeiros: that's where I was leaning
<andrewcarter> apeiros: thanks
sinkensabe has quit [Remote host closed the connection]
thesheff17 has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
Jake232 has joined #ruby
setient has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
<Rylee> what's the %[ ] syntax for writing out a space-separated array?
zz_jrhorn424 is now known as jrhorn424
<Rylee> oh, %w
<workmad3> heh
hgl has joined #ruby
sdwrage has joined #ruby
<benzrf> >> %i[this that the other]
<eval-in__> benzrf => [:this, :that, :the, :other] (https://eval.in/151724)
<benzrf> 2bad its not in 1.9
<benzrf> :]
<benzrf> * :[
LastWhisper has joined #ruby
LastWhisper has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
AlecTaylor has joined #ruby
AlecTaylor has quit [Changing host]
AlecTaylor has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
beef-wellington has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
raspberryfan has quit []
danshultz has joined #ruby
combusean has joined #ruby
bruno- has quit [Quit: leaving]
s2013 has quit [Remote host closed the connection]
claymore has joined #ruby
jxf has joined #ruby
JasmeetQA1 has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
r_s_h has joined #ruby
danshult_ has joined #ruby
jimms has joined #ruby
xabbix has joined #ruby
<andrewcarter> Ok one thing I've always struggled with is reading ruby documentation. For example http://www.ruby-doc.org/stdlib-2.1.0/libdoc/openssl/rdoc/OpenSSL/PKCS7.html
JasmeetQA has quit [Ping timeout: 245 seconds]
<andrewcarter> for the "data" attribute, what is the class type?
<xabbix> Trying to replace some strings, all instances of 'root' with 'test' (This is a part of a chef script), can't get it to work for some reason.. any ideas? http://hastebin.com/etuvufaliy.vhdl
andrewjanssen has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
combusean has quit [Ping timeout: 240 seconds]
<zybil> canton7-mac: but how can I tell where the files lie?
Beoran_ has joined #ruby
AlecTaylor has quit [Quit: Leaving]
lyanchih_ has joined #ruby
jonahR has joined #ruby
failshell has joined #ruby
<r_s_h> I've got a pretty generic Module::Class setup, with a process method defined within the Class. In my main at the end of the script, I've got ModuleName::ClassName.process(). However, when I try to run, I get in `<main>': undefined method `process' for ModuleName::ClassName:Class (NoMethodError)
<havenwood> r_s_h: Instantiate your class before you call class instance methods: ModuleName::ClassName.new.process
<Hanmac> r_s_h you defined an instance method, and trys to call a class_mehtod
codeurge has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<canton7-mac> zybil, a = Dir['Folder_A/*']
<Hanmac> havenwood: whats your DoctorWho episode?
claymore has quit [Ping timeout: 240 seconds]
<havenwood> Hanmac: hmm, dunno, not much further - been busy!
Beoran has quit [Ping timeout: 245 seconds]
hgl has quit [Ping timeout: 258 seconds]
<Hanmac> havenwood: did you begin with Season5 ?
<r_s_h> ah there we go, thanks!
<happytux> Although the variable module_name is assigned a value, it still fails: http://pastebin.com/fQ1Xr9nK
beef-wellington has joined #ruby
bean_ has joined #ruby
<zybil> canton7-mac: http://ideone.com/6LzxuK
<zybil> I got no idea on how to use this
<Hanmac> happytux: does it work if you have the assignment before the RakeTask class?
<havenwood> happytux: #module_name being a Hash or String is confusing
<canton7-mac> zybil, remove lines 4 and 5 - you're setting 'a', then setting it to something else
<havenwood> Array or String*
<happytux> havenwood: module_name should be a string. Is the variable name confusing or the type?
<happytux> Hanmac: ah, this could be the reason
julian-delphiki has quit [Ping timeout: 265 seconds]
<happytux> Hanmac: usually the file containing the class is required and the requiring file assigns the variable
<havenwood> happytux: @module_name || []
<havenwood> happytux: why an Array?
ce_afk is now known as cescalante
<happytux> havenwood: I guess I copied and pasted wrong :)
<happytux> *wrongly
<happytux> Hanmac: I can require it inside a Rakefile, I can also also assign a value to variables in .configuration
<happytux> Hanmac: what do I have to change in my class to make this also possible?
andrewjanssen has quit [Ping timeout: 258 seconds]
ffranz has joined #ruby
LexicalScope has quit [Ping timeout: 265 seconds]
LexicalScope` has quit [Ping timeout: 265 seconds]
codeFiend has quit [Quit: codeFiend]
<zybil> canton7-mac: Can you tell me how to practically use this or give me a link on that. I'm really lost on this now.
upsell5 has quit [Quit: upsell5]
<canton7-mac> zybil, I think you've written everything. save that to 'myfile.rb', then 'ruby myfile.rb'
<zybil> I download the script, I open it with gedit i save it i run it with $ ruby ideone_t2BXse_2.rb
<canton7-mac> uhu
kevind has quit [Quit: kevind]
aiguu has joined #ruby
<zybil> canton7-mac: I got a lot of output here
fabrice31 has quit [Remote host closed the connection]
<canton7-mac> zybil, remove all lines that begin with 'p ' except the last one
upsell5 has joined #ruby
<zybil> still a lot of output that makes no sense to me: http://ideone.com/6LzxuK
<canton7-mac> pastie the output
claymore has joined #ruby
<canton7-mac> I'm kinda working in the dark here
beef-wellington has quit [Ping timeout: 252 seconds]
michael_lee has joined #ruby
geggam has joined #ruby
<zybil> canton7-mac: http://www.pasteall.org/51616
michael_lee has quit [Remote host closed the connection]
<canton7-mac> zybil, those are all the files in folder 'a' for which there's no corresponding file in folder 'b'
professor_soap has joined #ruby
<professor_soap> hi
<professor_soap> have been wollowing this guide to build a simple little ruby chat application
<canton7-mac> zybil, try http://ideone.com/OQdcWx - that'll remove some of the noise
sambao21 has joined #ruby
binaryhat has joined #ruby
<professor_soap> I also have a local ubuntu server running
unixpro1970 has joined #ruby
toastynerd has joined #ruby
<professor_soap> running the Server.rb on the server works fine
toastynerd has quit [Remote host closed the connection]
maletor has joined #ruby
b00stfr3ak has joined #ruby
<professor_soap> but connecting to the server form my remote computer with TCPSocket.new(server_ip, port), I get CONNECTION REFUSED
wldcordeiro_work has joined #ruby
<zybil> canton7-mac: I don't wanna know that. In Folder A i.e. there are files sound.1wav, sound2.mp3 and sound3.flac. in folder B there should be all those transcoded files but with the additional extension .flac like: sound1.wav.flac sound2.mp3.flac sound3.flac.flac . 5 files of 1000 files weren't transcoded and I wanna find out which ones these are
<havenwood> professor_soap: firewall or something?
<canton7-mac> professor_soap, can you connect from the server to the server?
<canton7-mac> zybil, ah, you never said that ;) clearly, anyway
Dysruption has joined #ruby
<professor_soap> I can SSH into the machine without problem
lkba has quit [Read error: Connection reset by peer]
<zybil> sorry canton7-mac, I tried my best
cpruitt has quit [Quit: cpruitt]
<havenwood> zybil: so you're currently comparing "sound1.wav" to "sound1"?
ixti has quit [Ping timeout: 265 seconds]
<canton7-mac> zybil, edit the script appropriately, then. I'm afraid I need to work
<professor_soap> and access it normally if I, for example run a a website locally on the server on some prtt.
<canton7-mac> he's currently comparing 'sound1.wav' and 'sound1.flac'
ryanleesipes has joined #ruby
<canton7-mac> professor_soap, if you put the client script on the server, and run it, what happens?
<havenwood> canton7-mac: "sound1.wav.flac" to "sound1.flac", no?
<havenwood> canton7-mac: just from what he just said, heck if I know >.>
<professor_soap> canton7-mac: one sec, let me check. I _guess_ it should work..
maletor has quit [Client Quit]
<professor_soap> the script works fine on local machine btw..
<canton7-mac> havenwood, currently it's 'sound1.wav' to 'sound1.flac'. He wants 'sound1.wav' to 'sound1.wav.flac'
<canton7-mac> professor_soap, prolly firewall stuff then
<zybil> havenwood: In folder A is sound1.wav (and other extensions like aiff, flac, mp3, ogg..) transcoded into folder B where they should all have the ending .flac added to there extension before, so soundx.flac.flac can happen, too
<havenwood> right
<zybil> no
<zybil> not right
<havenwood> zybil: so to compare you only need to strip file ext from the latter
<zybil> I converted all the files already using soundconverter
<havenwood> zybil: you're stripping from both, so one is bare and other has one ext, no?
shashank_rs has quit [Ping timeout: 252 seconds]
<zybil> but some are missing and I wanna know which ones are missing
mercwithamouth has joined #ruby
<havenwood> zybil: use a REPL and look at you data as you go
<zybil> without losing my earsight
<havenwood> zybil: earsight is precious
i_s has joined #ruby
<zybil> havenwood: I tried that using gprename, but it removes .flac.flac of files which I don't want
cpruitt has joined #ruby
<zybil> I just want to remove the last .flac extension
shashank_rs has joined #ruby
<zybil> to compare via the diff-command
cpruitt has quit [Client Quit]
<professor_soap> Connection refused - connect(2) for "[IP]" port 3000 (Errno::ECONNREFUSED)
<professor_soap> Hmm...
<professor_soap> oh
<professor_soap> sorry
claymore has quit [Ping timeout: 276 seconds]
<zybil> havenwood: I only need to strip the files from folder B, as they should all have the extra-extension .flac no matter what they had before
<professor_soap> forgot to change client script to use localhost on the server..
<canton7-mac> professor_soap, ok, so it prolly is a firewall issue, if 'localhost' works
<happytux> SO required ruby files are evaluated _after_ evaluating the main ruby file, right? In contrast to import / load where the external ruby file is evaluated immediately, right?
hornairs has quit [Quit: hornairs]
<professor_soap> but its a clean ubuntu 14.04 server, is there a default fire wall?
<havenwood> zybil: so what's your output from this?
<workmad3> zybil: File.basename(flac_file, ".flac")
rtlong has joined #ruby
<professor_soap> yeah works locally on server
zorak has joined #ruby
<havenwood> professor_soap: Cloud server? Local? Where's it hosted?
cpruitt has joined #ruby
<professor_soap> Local, its "hosted" in my roomies closet :)
blackmesa has quit [Ping timeout: 252 seconds]
<professor_soap> literally.
<zybil> havenwood: you are fast! thanks! That made the job! 4 hours of search for an answer.. pfff - you made me happy!
krz has quit [Quit: WeeChat 0.4.3]
<benzrf> hmmm
jimms has quit [Remote host closed the connection]
<benzrf> is there something like each_cons that lets you specify the amount of overlap
dpswireless has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
jambolina has joined #ruby
<havenwood> benzrf: hem, overlap like what?
JumpMast3r has quit [Quit: JumpMast3r]
<havenwood> zybil: glad to help!
<jambolina> Is it worth learning ruby?
<benzrf> >> 'abcdefg'.chars.each_cons(3).to_a
<eval-in__> benzrf => [["a", "b", "c"], ["b", "c", "d"], ["c", "d", "e"], ["d", "e", "f"], ["e", "f", "g"]] (https://eval.in/151726)
<benzrf> instead of abc bcd cde
<havenwood> jambolina: Yes. (You did ask in #ruby.)
sski has quit [Remote host closed the connection]
cocotton has joined #ruby
<benzrf> i want abc cde efg
grzywacz has quit [Ping timeout: 255 seconds]
<benzrf> oh wait i guess i could take every other
<benzrf> but that seems inefficient
<professor_soap> havenwood: I just installed this http://www.ubuntu.com/download/server
DouweM has joined #ruby
sski has joined #ruby
rippa has joined #ruby
figgleberry has joined #ruby
noocode has quit [Ping timeout: 265 seconds]
<jambolina> advantages of ruby over other languages?
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has quit [Quit: This computer has gone to sleep]
<benzrf> jambolina: that's an absurd question
<havenwood> professor_soap: i wonder if it's this: https://wiki.ubuntu.com/UncomplicatedFirewall
<benzrf> jambolina: let me guess, you're picking a first language?
jokke has joined #ruby
shvelo has joined #ruby
phinfonet has joined #ruby
<oz> jambolina: ruby has rainbows and unicorns.
<havenwood> jambolina: Programmer happiness.
tkuchiki has quit [Remote host closed the connection]
rizzatti has joined #ruby
ryanlee has joined #ruby
noop has quit [Ping timeout: 258 seconds]
Dysruption has quit [Quit: Dysruption]
jimms has joined #ruby
AlexRussia_ has joined #ruby
_tpavel has quit [Quit: Leaving]
<jambolina> benzrf: no no I already know quite a few
AlexRussia has quit [Ping timeout: 265 seconds]
<shevy> jambolina clear and succinct expressions, unless you are incompetent
<havenwood> jambolina: Name one or two you know. Easier to compare to something concrete.
ryanleesipes has quit [Quit: Leaving]
sski has quit [Ping timeout: 252 seconds]
ryanlee has quit [Client Quit]
<havenwood> shevy: or unreadable white noise \o/
michael_lee has joined #ruby
<jambolina> I've been thinking about learning it for quite a while. What do you guys like about it?
tkuchiki has joined #ruby
<shevy> yeah, incompetence is the root of all evil
<havenwood> jambolina: What language family are you coming from?
<jambolina> havenwood: I know python, C++, Java...
<shevy> did I not already write why I use ruby jambolina ;)
anarang has quit [Quit: Leaving]
claymore has joined #ruby
noocode has joined #ruby
<jambolina> shevy: sorry, just read it
<shevy> ok you will rarely have to compare ruby to i.e. c++
<shevy> or python to java
cpruitt has quit [Quit: cpruitt]
<shevy> but ruby vs. python, now that is a better way to compare
Shidash has joined #ruby
<shevy> they have a similar niche
<shevy> both can be quite readable
beef-wellington has joined #ruby
<shevy> I don't really think it matters much which one to favour over the other, the biggest difference is the philosophy
ryanlee has joined #ruby
Squarepy has quit [Quit: Leaving]
maestrojed has joined #ruby
<havenwood> jambolina: So a more complex grammar than Python that allows what I consider more elegant, intuitive, expressive code. Similar to Python in many ways. Less verbose and faster to get things done than C++ or Java.
maletor has joined #ruby
<havenwood> jambolina: Also JRuby on the JVM in Java land.
<wldcordeiro_work> I see Ruby and Python as both tools in my arsenal and sometimes one is more appropriate than the other.
<wldcordeiro_work> Both do different things better than each other.
livcd has joined #ruby
ryanlee has quit [Client Quit]
<jambolina> wldcordeiro_work: could you give an example?
<havenwood> wldcordeiro_work: Python is the hammer I don't use because it isn't as nice as my gold-plated Ruby hammer. :P
cpruitt has joined #ruby
Retroid has joined #ruby
<wldcordeiro_work> jambolina: I primarily do web development with the two so my comparisons might be more of a RoR/Django comparison.
<wldcordeiro_work> But I try to not let the holy wars affect me lol
<shevy> wldcordeiro_work how many gems did you write in ruby so far
hamakn_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Hobogrammer has joined #ruby
<wldcordeiro_work> shevy: I've only written a couple for internal things at my job. But then again I haven't written any pip packages either.
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<wldcordeiro_work> It's bikeshedding in the end to get into these arguments about languages.
bakflash has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
benzrf is now known as benzrf|offline
<wldcordeiro_work> The main things I prefer about Python are syntax related, like accessing class attributes and methods. I find the usage of '.' ':' '::' confusing at times for the different types of access.
<jambolina> jambolina: I didn't intend start an argument...I'm just interested in what people like/dislike about ruby
kevinykchan has joined #ruby
livcd has quit [Ping timeout: 252 seconds]
<arrubin> jambolina: That is a good way to start an argument.
<havenwood> jambolina: Love the language. A downside that they're working on is ruby-core not shipping binaries. So the whole installation thing is a common pain point.
moritzs has quit [Ping timeout: 252 seconds]
<jambolina> arrubin: I guess so...
narcan has joined #ruby
abra has joined #ruby
<wldcordeiro_work> arrubin: Especially considering how argumentative programmers can be.
<wldcordeiro_work> lol
<jambolina> lol
zigomir has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<wldcordeiro_work> Anyone here have experience with simplecov and rails? I'm having trouble setting it up and it looks like I'm asking too early for the ror channel lol
Es0teric has joined #ruby
ixti has joined #ruby
BWStearns has quit [Ping timeout: 276 seconds]
BWStearns has joined #ruby
s3ri0us has joined #ruby
fieldfirst has quit [Ping timeout: 258 seconds]
<shevy> wldcordeiro_work hmm. when do you use ':' in ruby?
<jambolina> thanks for sharing your opinions btw
blackmesa has joined #ruby
s2013 has joined #ruby
<shevy> jambolina did you talk to yourself above btw? :)
figgleberry has quit [Ping timeout: 252 seconds]
<jambolina> shevy: yeah....by mistake
<shevy> hehehe
Soda has quit [Remote host closed the connection]
ascarter has joined #ruby
yfeldblum has joined #ruby
<shevy> jambolina if you already know python, why are you interested in ruby? I mean they both have really quite the same niche
<jambolina> shevy: bored i guess
Jake232 has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
<jambolina> shevy: looks interesting though
<havenwood> foxes and bacon
sambao21 has joined #ruby
<shevy> jambolina well the philosophy is different
<shevy> python 2 had:
<shevy> print "die!\n"
<shevy> python 3 has:
<jambolina> brackets
<shevy> print("die! omg now mandatory parens\n")
<shevy> ruby has
centrx has joined #ruby
<shevy> alias e puts; e 'wtf do I care'
<shevy> hahaha
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<shevy> how do you alias in python?
<shevy> p = print
<shevy> ?
<shevy> hmm
AlexRussia has joined #ruby
<shevy> or
<shevy> p() = print()
<shevy> ?
Es0teric has joined #ruby
<arrubin> The former I believe.
<happytux> anyone? :(
<happytux> SO required ruby files are evaluated _after_ evaluating the main ruby file, right? In contrast to import / load where the external ruby file is evaluated immediately, right?
<shevy> happytux wat
claymore has quit [Ping timeout: 265 seconds]
dpswireless has joined #ruby
toastynerd has joined #ruby
anaeem1 has joined #ruby
<arrubin> happytux: If that were the case, how would you be able to use classes and modules from the required file?
sambao21 has quit [Client Quit]
<jambolina> see ya later guys
jambolina has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
mrnugget has quit [Ping timeout: 258 seconds]
timonv has joined #ruby
pahagon has joined #ruby
<shevy> happytux see, your question is hard to answer for me. for instance
s3ri0us has quit [Quit: Leaving...]
cocotton has quit [Remote host closed the connection]
sambao21 has joined #ruby
<shevy> happytux, if you do this: def foo; 0 / 0; end
claymore has joined #ruby
<shevy> in a ruby file, it is fine
<shevy> happytux, if you do this: 0 / 0
<shevy> then an error will happen
AlexRussia_ has quit [Ping timeout: 276 seconds]
phutchins has quit [Ping timeout: 276 seconds]
Es0teric has quit [Ping timeout: 240 seconds]
<shevy> happytux so ruby evaluates at run-time. it will load everything that belongs into the same namespace though, so you can do: class Foo in different .rb files and load them up one after the other just fine
VTLob has joined #ruby
<havenwood> happytux: For starters there isn't an `import`. While `require` only loads code once, even if required multiple times, `load` will reload the code every time. The norm is to `require` or `require_relative`.
i_s has quit [Remote host closed the connection]
<happytux> oh
<happytux> Dir.glob('tasks/rake/**/*.rake').each { |r| import r }
mercwithamouth has quit [Ping timeout: 252 seconds]
<happytux> This is used to automatically load all rake files in tasks/rake/ into the Rakefile.
<happytux> However, when require is better and indeed I want to load them only once, I should use require instead of import.
<happytux> But require and require_relative both fail when loading .rake files
mercerist has quit [Quit: Computer has gone to sleep.]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<shevy> I think require_relative is really just a fancified require
sambao21 has quit [Ping timeout: 265 seconds]
<shevy> so if one fails systematically, the other should fail too!
i_s has joined #ruby
<shevy> "import" in ruby is new to me happytux
<shevy> or perhaps you meant load
<shevy> hehehe
<arrubin> happytux: import is a Rake method.
<shevy> what is import?
<shevy> omg...
sski has joined #ruby
r_s_h_ has joined #ruby
sdwrage has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mallu has joined #ruby
jhass|off is now known as jhass
<r_s_h_> So when I try to run ruby myscript.rb from Mac OS terminal, it just cats the file instead of executing it. Anyone see this before?
aspires has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
<mallu> hi, I have a file which contains lot of data. What I'm trying to do is grab blablabala after the word "building_locator":"blablabla"
lethjakman has joined #ruby
mercerist has joined #ruby
sski has quit [Ping timeout: 245 seconds]
Shidash has quit [Quit: Leaving.]
<havenwood> r_s_h_: How are you running it?
<mallu> Any help would be greatly appreciated
<r_s_h_> just navigating to the directory where the file lives, and running “ruby myscript.rb”
<happytux> shevy, arrubin, havenwood: OK, so I use import now as this addresses the problem with Rake tasks. Now I still got the problem that when I try to assign a variable in main body (which imports), it fails: ModuleSymlink.module_name = test NameError: uninitialized constant ModuleSymlink
bijan07077 has quit [Quit: bijan07077]
jimbauds has joined #ruby
codeFiend has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
pietr0 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> r_s_h_: Did you perhaps: ruby() { echo "=^.^=" }
aiguu has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
claymore has joined #ruby
bijan07077 has joined #ruby
<havenwood> r_s_h_: Does this work?: \ruby myscript.rb
<havenwood> r_s_h_: What do you get for?: command -v ruby
andrewlio has quit [Read error: No route to host]
DouweM has quit [Ping timeout: 265 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
figgleberry has joined #ruby
aley has joined #ruby
<r_s_h_> won’t let me paste here I guess
<r_s_h_> but it’s the path to ruby
Burgestrand has quit [Quit: Burgestrand]
<havenwood> r_s_h_: And no luck with the backslash?
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
franzip has joined #ruby
kate_r has joined #ruby
lurch_ has quit [Quit: lurch_]
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
rizzatti has quit [Quit: Leaving...]
professor_soap has quit [Ping timeout: 276 seconds]
xabbix has quit [Quit: Leaving]
nvrch has quit [Quit: nvrch]
maximski has quit []
wallerdev has joined #ruby
<happytux> OK, so I use import now as recommended for importing Rake task, importing works. However, in main Rakefile (which imports) a class variable is set (the RakeTask). This fails because this code is evaluated before import, so the class is not there yet and also the variable not.
momomomomo has quit [Quit: momomomomo]
dreamchaser has quit [Quit: ZNC - http://znc.in]
fieldfirst has joined #ruby
<happytux> Seems to be a paradoxical problem, either I use require which causes trouble because of non-delayed execution of loaded RakeTask or import which delays execution but then the class variable cannot be set.
<happytux> The Rake tasks I use from gems don't got this problem as they are loaded using require.
timonv has joined #ruby
zybil is now known as zybi1
binaryhat has quit [Quit: Leaving]
cescalante is now known as ce_afk
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
dreamchaser has quit [Excess Flood]
DouweM has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
tcstar has quit [Quit: Leaving]
sambao21 has joined #ruby
kotk_ has joined #ruby
Spami has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
tcstar has joined #ruby
kotk has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
andikr has quit [Remote host closed the connection]
JasmeetQA1 has quit [Read error: Connection reset by peer]
<happytux> OK, this could be a solution to my problem.
tcstar has left #ruby [#ruby]
tcstar has joined #ruby
<happytux> Is there a virtual / method which I can override from Rake::DSL which is called always when a task is called?
skysploit has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Ping timeout: 240 seconds]
zybil_ has joined #ruby
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
skysploit has quit [Client Quit]
g0bl1n has quit [Ping timeout: 240 seconds]
zybi1 has left #ruby ["Leaving"]
zybil_ has quit [Remote host closed the connection]
zybi1 has joined #ruby
<happytux> oh damn, sorry to say this - but in this regard rake sucks.
froy has quit [Remote host closed the connection]
cocotton has joined #ruby
kalimist has quit [Excess Flood]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
aspires has quit []
rm_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
tvw has quit [Client Quit]
aspires has joined #ruby
treehug88 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
freezey has joined #ruby
cjsarette has joined #ruby
mikepack has joined #ruby
ce_afk is now known as cescalante
<mallu> can someone tell me if there is anyway I can search for a word and capture strings between " "
froy has joined #ruby
cocotton has quit [Ping timeout: 258 seconds]
<centrx> You'll have to be more specific
Xeago has quit [Remote host closed the connection]
<r_s_h_> even with the backslash it cats the file. weird.
JoeGaudet has joined #ruby
aiguu has joined #ruby
<mallu> so i have a file with data .. I want to capture whatever between " " if it find the word building
<mallu> file has "build"; "bsbdbsfdnf"
beef-wellington has quit [Ping timeout: 240 seconds]
<mallu> *** "building"
magikfx has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
<testol> I just performed an Extract Method, and now I've realised that the extracted method, and the methods only it calls, should be in an Extracted Class -- all I would need to do in the original class is call ExtractedClass.method(parameter) - like a static method
Xeago has joined #ruby
<testol> But it doesn't feel very rubyish to do that
bbloom has quit [Ping timeout: 252 seconds]
livcd has joined #ruby
<centrx> mallu, You could use split, not sure what you're doing
beef-wellington has joined #ruby
<testol> Actually, my initial attempt is ExtractedClass.new(parameter) - and its initializer sets @parameter, which is used by all of its methods (to avoid passing that parameter to each method as an argument)
<mallu> centrx: ok.. I have to look at that...
deric_skibotn has joined #ruby
papercode has joined #ruby
Macaveli has joined #ruby
elaptics is now known as elaptics`away
canton7-mac has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 276 seconds]
ryanleesipes has joined #ruby
bluOxigen has joined #ruby
cocotton has joined #ruby
ryanleesipes has quit [Client Quit]
ryanleesipes has joined #ruby
cescalante is now known as ce_afk
ryanleesipes has quit [Client Quit]
Valesk has joined #ruby
ryanleesipes has joined #ruby
apeiros has quit [Remote host closed the connection]
mansi has joined #ruby
sgu has joined #ruby
sarandosklikizos has joined #ruby
apeiros has joined #ruby
alex88 has quit [Quit: Leaving...]
ryanleesipes has quit [Client Quit]
<shevy> happytux I would not know a thing about rake, I dont use it and don't need it; and if it forces me to load up .rb files with any other mechanism than require() or load(), like import(), then I am sure I would never want to use such non-standard libraries
ryanleesipes has joined #ruby
chrisja has joined #ruby
<shevy> testol if you don't need .new, you could always use a class method. Extracter.extract('foo-1.0.tar.xz')
beef-wellington has quit [Ping timeout: 258 seconds]
<shevy> testol class methods can be defined like so:
<happytux> shevy: what build tool are you using? I would take a look at it
<shevy> >> class Extracter; def self.extract(i = ''); end; end; Extracter.extract
<eval-in__> shevy => nil (https://eval.in/151738)
<shevy> happytux to build what exactly?
Atrumx has joined #ruby
<happytux> shevy: for example a puppet module. The problem is that many puppet module static code coverage tools already provide a rake task or even only a rake task without a possibility to invoke it as binary.
cocotton has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
_justin has joined #ruby
<shevy> no idea about puppet either, sorry
<happytux> *static code analysis tool + code coverage tools
<shevy> invoke it as binary?
<happytux> shevy: yes, just system('the binary')
<testol> shevy: that makes sense. Though without having an instance variable, I'm not sure how I could call each of its constituent methods without giving each the same parameter (duplication) every time
<shevy> that one I use a lot
mattstratton has joined #ruby
<happytux> shevy: what kind of tool are you using for building ruby / ruby on rails applications?
<shevy> happytux my editor
<shevy> happytux seriously, I thought you need something like rake only when you want to compile .c programs
apeiros has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Ex-Chat]
rudisimo has quit [Read error: Connection reset by peer]
<shevy> testol well; you could use different class methods
<shevy> testol inside the class method, you could always create a new instance of your class too
ryanleesipes has quit [Client Quit]
lemonsparrow has joined #ruby
<shevy> testol or you could add more class methods, even if they are cumbersome
<shevy> like
FiveDeltaSix has quit [Ping timeout: 255 seconds]
jimms has quit [Remote host closed the connection]
rudisimo has joined #ruby
<shevy> Extract.what_to 'ruby-2.1.2.tar.xz','/tmp/my_secret_dir_here'
<shevy> or use a hash
<shevy> Extract.what 'ruby-2.1.2.tar.xz', :to => '/tmp/my_secret_dir_here'
<happytux> shevy: I solved the problem with rake now. I did the following: As 'require' seems to require (lol) a rb file extension, I changed the file extension of the .rake file in question to .rb and this also avoids that the Dir.glob each import thing also imports (loading it twice).
mallu has quit [Quit: Page closed]
<happytux> As I extend from Rake TaskLib, I can safely require it.
saarinen has joined #ruby
DouweM has quit [Ping timeout: 252 seconds]
omosoj has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
<shevy> testol I think what helps immensely is when you write down the way(s) you want to call your code
DouweM has joined #ruby
Hobogrammer has joined #ruby
rkj has joined #ruby
timonv has quit [Remote host closed the connection]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has quit [Ping timeout: 252 seconds]
<testol> shevy: agreed - ExtractedClass.execute(parameter) is basically all that should be exposed/called -- funnily enough though, it seems creating an object inside the class method would have the same problem
pahagon has quit [Ping timeout: 255 seconds]
Darryl has quit [Quit: Connection closed for inactivity]
<testol> Inside the clas, rather than method1(param); method2(param); method3(param); -- it would be extracted_class.method1; extracted_class.method2; extracted_clas.method3
ce_afk is now known as cescalante
<testol> Which just seems to have chosen to duplicate something else, with the addition of an object instantiation
klaut has quit [Remote host closed the connection]
Solnse has joined #ruby
zigomir has joined #ruby
pu22l3r has quit []
AlexRussia has joined #ruby
balrui is now known as ceej
<shevy> I am not quite following hehe
tyll has quit [Ping timeout: 258 seconds]
<shevy> I think what confuses me is your way to describe this in an abstract manner
jobewan has joined #ruby
heftig has quit [Quit: Quitting]
<shevy> method2 method3
<shevy> if you have a specific example, that does something, perhaps you could put it on gist
freerobby has quit [Quit: Leaving.]
<testol> shevy: yeah I'm experimenting a bit, I'll gist something in a minute probably :)
pu22l3r has joined #ruby
<shevy> \o/
<happytux> When a Ruby class is named 'ModuleSymlink', should its file then named 'module_symlink.rb'?
Soda has joined #ruby
<happytux> Would this be best practice?
<shevy> yes
freerobby has joined #ruby
tyll has joined #ruby
<shevy> ModuleSymlink.rb would look ugly
<shevy> moduleSymlink.rb would be even worse
ascarter has joined #ruby
freezey has quit [Remote host closed the connection]
<shevy> MODULESYMLINK.rb is consistent
<shevy> as is modulesymlink.rb
<shevy> haha :D
<shevy> but you get more information when you use the _
<happytux> right
<Cope> what's a simple aynchronous job runner that would be suitable for using in a cli app?
<shevy> I also have not seen MODULE_SYMLINK.RB
<happytux> shevy: absolutely right, '_' is best. I am still pushing myself not to use something different
<happytux> I am still used to CamelCase and friends
jhulten has joined #ruby
michaeldeol has joined #ruby
<Cope> sidekiq looks nice, but what would be the bes way to start sidekiq? just when the command fires?
sambao21 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
rizzatti has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
_justin has joined #ruby
anaeem1 has joined #ruby
phutchins has joined #ruby
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
danshultz has joined #ruby
x1337807x has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
<soulisson> Hi, i'm starting with Ruby, i would like to know how to reference the current object ?
mrmargolis has joined #ruby
Lucky_ has joined #ruby
<xybre> soulisson: self?
anaeem1 has quit [Ping timeout: 255 seconds]
miah has quit [Ping timeout: 250 seconds]
mjsmith2 has quit []
codeFiend has quit [Quit: codeFiend]
centrx has quit [Quit: All this computer hacking is making me thirsty]
skaflem has quit [Quit: Leaving]
freezey has joined #ruby
SegFaultAX has quit [Excess Flood]
shvelo has quit [Ping timeout: 240 seconds]
mjsmith2 has joined #ruby
SegFaultAX has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
aspires has quit []
ndrei has quit [Ping timeout: 252 seconds]
<soulisson> xybre, doesn't seem to work, http://pastebin.com/GbMya7WV
RohanRNS has joined #ruby
jimms has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
blueOxigen has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
JumpMast3r has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<testol> shevy: your suggestion worked great, thanks. The duplication only arose from poor implementation :)
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
nanoyak has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<pontiki> soulisson: show the output include errors from running that code, pls?
<xybre> "it doesn't work" isn't a useful error message.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LadyRainicorn has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
<pontiki> ^ not an error message at all
vpretzel|920 is now known as vpretzel|1440
<xybre> +1
<pontiki> hey! i was +1ing you :)
lkba has joined #ruby
JumpMast3r has quit [Ping timeout: 240 seconds]
<xybre> +2 ?
jhulten has quit [Remote host closed the connection]
setra has joined #ruby
jamto11 has quit [Remote host closed the connection]
kirun has joined #ruby
apeiros has joined #ruby
yfeldblum has joined #ruby
<soulisson> Sorry, i made a mistake, everything works fine
<xybre> Mistakes were made.
<shevy> testol \o\
sdwrage has joined #ruby
chipotle has quit [Quit: cya]
jamto11 has joined #ruby
<shevy> Bugs were fixed.
jhulten_ has joined #ruby
<shevy> pontiki no lying!
unixpro1970 has joined #ruby
<pontiki> laying instead?
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 240 seconds]
sooik has joined #ruby
ascarter has joined #ruby
ethylomat has joined #ruby
ringaring has joined #ruby
Macaveli has joined #ruby
freezey has quit [Remote host closed the connection]
sambao21 has joined #ruby
omosoj has joined #ruby
paulfm has quit []
timonv has joined #ruby
Rockfordal has left #ruby ["Konversation terminated!"]
andrewlio has joined #ruby
miah has joined #ruby
sambao21 has quit [Client Quit]
lyanchih_ has quit [Ping timeout: 240 seconds]
kpshek has quit []
bijan07077 has quit [Quit: bijan07077]
DouweM has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
g0bl1n has joined #ruby
einarj has quit [Remote host closed the connection]
nhmood has joined #ruby
noop has joined #ruby
chipotle has joined #ruby
freezey has joined #ruby
mark_locklear has joined #ruby
ethylomat has quit [Quit: Leaving...]
papercode has quit [Ping timeout: 245 seconds]
jprovazn has quit [Quit: Odcházím]
jonahR_ has joined #ruby
sambao21 has joined #ruby
rdark has quit [Quit: leaving]
sambao21 has quit [Client Quit]
nari has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonahR has quit [Ping timeout: 240 seconds]
<Hanmac> >> raise ObjectSpace.each_object(Class).find{|c|c < Exception && !c.name.downcase!}.exception("does not work")
<eval-in__> Hanmac => does not work (fatal) ... (https://eval.in/151791)
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> look how fatal that is ;P
ValicekB has quit [Remote host closed the connection]
ethylomat has joined #ruby
ascarter has joined #ruby
kpshek has joined #ruby
jprovazn has joined #ruby
fieldfirst has quit [Ping timeout: 255 seconds]
arturaz has quit [Remote host closed the connection]
timonv has quit []
fieldfirst has joined #ruby
krzkrz has joined #ruby
DouweM has joined #ruby
carraroj has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Remote host closed the connection]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
timonv has joined #ruby
anaeem1 has joined #ruby
cocotton has joined #ruby
danshultz has joined #ruby
chrisja has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
beef-wellington has joined #ruby
Bumptiou_ has quit [Remote host closed the connection]
ValicekB has joined #ruby
lemonsparrow has quit [Quit: Page closed]
n12 has joined #ruby
sooik has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
AlexRussia has joined #ruby
Rainicorn has quit [Quit: Bye]
<xybre> hahaha
danshultz has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 255 seconds]
nathancahill has joined #ruby
jherbst has joined #ruby
timonv has quit []
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_lee has quit [Quit: Ex-Chat]
carraroj has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
<bricker> Hanmac: why the downcase! bit? I get what it does, but what object that inherits from Exception would have an all-lowercase name?
<apeiros> fatal
<shevy> is there a recommended use when to use Regexp.quote() ?
jprovazn has quit [Quit: Odcházím]
carraroj has joined #ruby
<bricker> apeiros: oh
<apeiros> shevy: when you have dynamic input you want to use for a regex and don't want ., *, + etc. to mean their literal value
andrewjanssen has joined #ruby
n12 has quit [Ping timeout: 252 seconds]
mikepack_ has joined #ruby
SegFaultAX has quit [Excess Flood]
sinkensabe has joined #ruby
<bricker> How do you use fatal? Or is the point of it that you can't?
freerobby1 has quit [Quit: Leaving.]
<bricker> slash shouldn't
SegFaultAX has joined #ruby
subbyyy has joined #ruby
<apeiros> you shouldn't
<apeiros> it's an internal thing
freerobby has joined #ruby
alpha123 has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 240 seconds]
makerops has joined #ruby
<shevy> fatal :my_ass
<makerops> hi, i'm having some trouble figuring out how to develop a countdown timer
<shevy> hmm is fatal even possible to call?
<makerops> im basically, processing messages, and bucketing them into threads; I want the thread to flush a buffer, if it hasn't received a new pop into the buffer in N seconds
freerobby1 has joined #ruby
<Hanmac> shevy C-API has a function (rb_fatal), but from ruby side you need ObjectSpace
<shevy> 99.downto(0) { puts 'ack!'; sleep 1 }
<shevy> Hanmac, cool, so I can use ObjectSpace to access hidden stuff?
<shevy> >> raise ObjectSpace.each_object(Class).find{|c|c < Exception && !c.name.downcase!}.exception("does not work").class
<eval-in__> shevy => fatal (fatal) ... (https://eval.in/151807)
<shevy> haha
<apeiros> shevy: check out some of charliesome's work - you can use other things in 2.0 to get even better hidden stuff
freerobby has quit [Read error: Connection reset by peer]
timonv has joined #ruby
marcdel has joined #ruby
<Hanmac> apeiros: i still like the evil.rb script with you can unfreeze stuff and more ;P
reset has joined #ruby
figgleberry has quit []
Eiam has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<testol> Hmm. I'm creating a Sinatra app - various objects are involved. Should I create all of the objects in my app.rb, and call their various methods with each of their parameters; or abstract all the calls and creations behind one class?
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
brandonjmckay has joined #ruby
michaeldeol has joined #ruby
ethylomat has quit [Remote host closed the connection]
<apeiros> testol: SRP - each class should have one purpose
hornairs has joined #ruby
<testol> Abstracting in that way would make my app.rb simpler -- but I feel that the resultant class would have a whole bunch of responsibilities
<testol> apeiros: ^ what would you conclude there, then?
ctp has joined #ruby
<brandonjmckay> is this the right channel for ruby on rails stuff too? or is there another channel?
andrewjanssen has joined #ruby
<testol> apeiros: say "responsibilities" - it would just be delegating calls
<brandonjmckay> I tried #rails but that didn't seem to exist
<makerops> #rubyonrails
<brandonjmckay> thanks
<makerops> np
pu22l3r_ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
spider-mario has joined #ruby
<apeiros> brandonjmckay: #rails forwards to #rubyonrails
<apeiros> you need to be registered with nickserv
klaut has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<brandonjmckay> apeiros thanks I'll look up how to do that
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
saarinen has quit [Quit: saarinen]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
spider-mario has quit [Client Quit]
blackmesa has joined #ruby
saarinen has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
frosgy has joined #ruby
klaut has quit [Ping timeout: 276 seconds]
DouweM has quit [Ping timeout: 265 seconds]
spider-mario has joined #ruby
magikfx has left #ruby [#ruby]
andrewjanssen has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
timonv has quit [Remote host closed the connection]
frogssgy has quit [Ping timeout: 245 seconds]
brandonjmckay_ has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
g0bl1n has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
klaut has joined #ruby
<shevy> Hanmac, which ruby do you use for testing rxw?
Squarepy has joined #ruby
<Hanmac> shevy: ruby 2.2.0dev
<brandonjmckay_> #rails and #rubyonrails seem to be unavailable, does anyone know what they might have been renamed to?
jenskarlsen has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
<s2013> brandonjmckay_, you need to register
<toretore> [20:16:51] <apeiros> you need to be registered with nickserv
Bumptious has joined #ruby
<brandonjmckay_> I did register with nickserv
<s2013> then identify
<brandonjmckay_> It told me I did
<s2013> /nickserv identify mypassword
<yakko> you gotta identify every time :)
shashank_rs has joined #ruby
jackneill has joined #ruby
<s2013> you arent identified brandonjmckay_
kpshek has quit []
papercode has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
<s2013> /nickserv identify mypassword
<toretore> [20:30:02] -NickServ- brandonjmckay_ is not a registered nickname.
<s2013> its probably without the _
<s2013> and he got d/c so it switched to secondary name
<brandonjmckay_> that's cause I was trying a different client toretore
<yakko> you guys remember when IRC used to be the most popular way of communicating? =P
<s2013> you mean its not?
brandonjmckay has joined #ruby
<toretore> it's not hunter2 :/
<s2013> but how do people speak to each other
jackneill has quit [Remote host closed the connection]
papercode has quit [Remote host closed the connection]
<toretore> brandonjmckay is regd
<Hanmac> good that my client does have auto-identify ... so i do not have a problem with different irc names
jackneill has joined #ruby
<yakko> s2013: today they sit silently looking at their phones
<s2013> o
mikepack_ has quit [Remote host closed the connection]
<toretore> it's too difficult to dcc pictures of your food to everyone
<brandonjmckay_> thanks s2013
brandonjmckay_ has quit [Quit: Lingo - http://www.lingoirc.com]
<s2013> wow he just thanks me and leaves me
<s2013> ugh.. men
paulfm has joined #ruby
endash has quit [Quit: endash]
combusean has joined #ruby
danshultz has joined #ruby
lolmaus has quit [Ping timeout: 258 seconds]
Bira has quit [Remote host closed the connection]
<Hanmac> toretore: my irc-client might can do that
jenskarlsen has joined #ruby
paulfm has quit [Client Quit]
jxf has joined #ruby
reset has quit [Quit: Leaving...]
setra has quit [Ping timeout: 255 seconds]
<shevy> s2013 they are quick to come to the point!
<atmosx> toretore: ?
<atmosx> toretore: seriously?!
ktun has joined #ruby
<atmosx> I don't think I can DCC via tor, come to think of it.
<s2013> shevy, :(
momomomomo has joined #ruby
<atmosx> on the other hand, it's just data, doesn't really need to open close ports, you just need a translator...
snath has joined #ruby
nhmood has quit []
paulfm has joined #ruby
kpshek has joined #ruby
papercode has joined #ruby
<Hanmac> hm atmosx should i try to send you a test file via irc?
boycey has joined #ruby
<shevy> man
<shevy> all that ascii p0rn again
afex has joined #ruby
lolmaus has joined #ruby
<boycey> anyone having issues with bundler today
<Hanmac> shevy i think it depends on the background story ;P
franzip has quit [Quit: ...]
Asher has quit [Remote host closed the connection]
<atmosx> Hanmac: sure,
<Hanmac> hm ok it doesnt seem to work ..
Asher1 has joined #ruby
<atmosx> Hanmac: can you try again?
simoz112 has joined #ruby
banisterone has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
jimbauds has quit [Ping timeout: 240 seconds]
<Hanmac> i added you into my list ... last time (while i did some xdcc) it didnt work without adding to the list
<atmosx> yeah doesn't work
<atmosx> wait, let me try
g0bl1n has joined #ruby
simoz113 has joined #ruby
<atmosx> Hanmac: I'm sending a sample.txt, check out if it works
<Hanmac> it says i did abort it, but i didnt :/
Azure has quit [Quit: Blue Sky Fish]
<Hanmac> rty it again
<atmosx> ok
<atmosx> just did
<Hanmac> hm no it says i did abort it again :/
ktun has quit [Ping timeout: 240 seconds]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aef has joined #ruby
unixpro1970 has quit [Ping timeout: 255 seconds]
simoz112 has quit [Ping timeout: 240 seconds]
workmad3 is now known as wm3|busy
SHyx0rmZ has joined #ruby
<atmosx> Hanmac: makes sense, we need not to have firewalls in predefined ports and so on. Plus I'm using tor... if you could send me DCC you could find out my IP
s2013_ has joined #ruby
alem0lars has joined #ruby
banisterone has joined #ruby
_justin has quit [Quit: _justin]
<Hanmac> funny thing is that you use tor, but it seems that you didnt use the ssl server from freenode ;P
combusean has quit [Ping timeout: 265 seconds]
<atmosx> Hanmac: I don't need too. I'm connected to a TOR address, Freenode has 3. Communication inside the tor network is encrypted.
kate_r has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
g0bl1n has quit [Ping timeout: 245 seconds]
s2013 has quit [Ping timeout: 240 seconds]
bMalum___ has joined #ruby
timonv has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
bMalum__ has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby
jaake has joined #ruby
<jaake> hello
g0bl1n has quit [Max SendQ exceeded]
jonahR_ has quit [Quit: ¡Adios amigos, me fui para el carajo!]
Spami has quit [Quit: This computer has gone to sleep]
<wm3|busy> atmosx: communication from the endpoints won't be though
ktun has joined #ruby
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
cocotton has joined #ruby
mercerist has joined #ruby
eighthbit has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has joined #ruby
benzrf|offline is now known as benzrf
postmodern has joined #ruby
merceris_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercerist has quit [Read error: Connection reset by peer]
nhmood_ has joined #ruby
combusean has joined #ruby
testcore has joined #ruby
danshultz has quit [Remote host closed the connection]
combusean has quit [Client Quit]
combusean has joined #ruby
zigomir has quit [Ping timeout: 258 seconds]
danshultz has joined #ruby
cocotton_ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
cocotton has joined #ruby
Burgestrand has joined #ruby
vpretzel|1440 has quit [Quit: Adios!]
lambo has joined #ruby
Bira has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aley has left #ruby ["bye"]
<lambo> exit
lambo has left #ruby [#ruby]
Retroid has quit [Ping timeout: 240 seconds]
rizzatti has quit [Quit: Leaving...]
reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
Soda has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
toastynerd has quit [Remote host closed the connection]
debajit has joined #ruby
shemerey has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
benzrf is now known as benzrf|offline
Bira has quit [Ping timeout: 255 seconds]
mansi has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
andrewjanssen has joined #ruby
mansi has joined #ruby
cocotton has quit [Quit: Leaving...]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
tvw has joined #ruby
setra has joined #ruby
mansi has quit [Ping timeout: 258 seconds]
toastynerd has joined #ruby
mikepack has joined #ruby
fieldfirst has quit [Quit: Leaving]
michaeldeol has joined #ruby
mansi has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
mansi has quit [Read error: Connection reset by peer]
makerops has quit [Remote host closed the connection]
mansi has joined #ruby
Azure has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rezzack has joined #ruby
telling has quit [Quit: leaving]
mansi has quit [Remote host closed the connection]
rizzatti has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
end_guy has quit [Remote host closed the connection]
AndChat|102836 has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
Ankhers has quit [Remote host closed the connection]
Jake232 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
AndChat|102836 has quit [Client Quit]
yairgo has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
end_guy has joined #ruby
AndChat|102836 has joined #ruby
decoponio has quit [Quit: Leaving...]
yairgo has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has quit [Quit: Leaving...]
banisterone has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
rizzatti has quit [Quit: Leaving...]
jonno11 has joined #ruby
andrewjanssen has joined #ruby
maximski has joined #ruby
telling has joined #ruby
<jaake> lot's of lurkers in here
<jaake> no talkers
kaspergrubbe has quit [Remote host closed the connection]
Ardenzi has quit [Remote host closed the connection]
BraddPit has joined #ruby
wolf__ has quit [Quit: This computer has gone to sleep]
Ankhers has joined #ruby
endash has joined #ruby
cpruitt has quit [Quit: cpruitt]
Solnse has quit [Quit: Leaving.]
Spami has joined #ruby
brandonjmckay has joined #ruby
badosu has joined #ruby
badosu has quit [Remote host closed the connection]
zorak is now known as zora8
zora8 is now known as zorak8
wm3|busy has quit [Ping timeout: 240 seconds]
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
timonv has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
BraddPit has quit [Quit: k peace out bye]
elaptics`away is now known as elaptics
aspires has quit []
BraddPitt has joined #ruby
mengu has joined #ruby
<havenwood> jaake: hey
<pontiki> havenwood: -1000 XP (idlerpg)
danshultz has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
* havenwood lurks away
vekfautles has joined #ruby
SegFaultAX has quit [Excess Flood]
wald0 has quit [Quit: Lost terminal]
dnordstro has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulisson has quit [Quit: Quitte]
SegFaultAX has joined #ruby
hornairs has quit [Quit: hornairs]
mattstratton has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
fuzzyfuzz has quit [Quit: WeeChat 0.3.7]
vekfautles has left #ruby [#ruby]
vekfautles has joined #ruby
Dude007 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
aspires has joined #ruby
maestrojed has joined #ruby
kaspergrubbe has joined #ruby
rizzatti has joined #ruby
sinkensabe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
ktun has joined #ruby
nanoyak has joined #ruby
cescalante is now known as ce_afk
ce_afk is now known as cescalante
ktun has quit [Client Quit]
benzrf|offline is now known as benzrf
vekfautles has left #ruby [#ruby]
phutchins has quit [Ping timeout: 276 seconds]
vekfautles has joined #ruby
vekfautles has quit [Max SendQ exceeded]
debajit has quit [Quit: Leaving...]
vekfautles has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
vekfautles has quit [Client Quit]
upsell5 has quit [Quit: upsell5]
vekfautles has joined #ruby
Melpaws has joined #ruby
zxq9 has quit [Remote host closed the connection]
zxq9 has joined #ruby
<happytux> Interestingly, compared to puppet, Rake uses the dependency arrows in reverse direction.
<happytux> It doesn't mean 'flow of time' but 'depends on' instead.
timonv has quit [Remote host closed the connection]
lucas_ has joined #ruby
zxq9 has quit [Remote host closed the connection]
cescalante is now known as ce_afk
zxq9 has joined #ruby
vekfautles has left #ruby [#ruby]
Melpaws has quit [Client Quit]
Melpaws has joined #ruby
mikepack has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
ce_afk is now known as cescalante
zxq9 has quit [Remote host closed the connection]
mikepack has joined #ruby
zxq9 has joined #ruby
niftylettuce_ has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
vekfautles has joined #ruby
brian___ has joined #ruby
vekfautles has left #ruby [#ruby]
yokel has quit [Read error: Connection reset by peer]
ClarusCogitatio has joined #ruby
benzrf is now known as benzrf|offline
vekfautles has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
afex has quit [Ping timeout: 240 seconds]
zxq9 has quit [Remote host closed the connection]
zxq9 has joined #ruby
mercwithamouth has joined #ruby
vekfautles has left #ruby [#ruby]
vekfautles has joined #ruby
nichtdiebohne has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
afex has joined #ruby
Bumptious has joined #ruby
upsell5 has joined #ruby
zxq9 has quit [Read error: Connection reset by peer]
zxq9 has joined #ruby
bijan07077 has joined #ruby
havenwood has quit []
dspadea has quit [Quit: Connection closed for inactivity]
jackneill has quit [Remote host closed the connection]
setra has quit [Ping timeout: 240 seconds]
paulfm has quit []
KanKava has joined #ruby
<pontiki> it's FileUtils, not File
<happytux> I want to soft link directory /var/lib/test to /usr/test/
wald0 has joined #ruby
<happytux> pontiki: apparently there are two places for ln_, File and FileUtils
<happytux> pontiki: hm, right, it is FileUtils
<happytux> pontiki: ok, but that method will symlink somehow the contents of a directory to target?
zxq9 has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zxq9 has joined #ruby
<pontiki> it works just like the ln -sf unix command
blackmes1 has joined #ruby
<pontiki> so, yes
RaptorJesus has quit [Remote host closed the connection]
<pontiki> and if target exists before that command, it will be replaced with the symlink
Ankhers has quit [Remote host closed the connection]
BWStearns has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
BWStearns has joined #ruby
akonny has joined #ruby
BWStearns has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 276 seconds]
anaeem1 has joined #ruby
zxq9 has quit [Remote host closed the connection]
zxq9 has joined #ruby
RaptorJesus has joined #ruby
Ankhers has joined #ruby
fantazo has quit [Ping timeout: 276 seconds]
Melpaws1 has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
internet_user has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
silkfox has joined #ruby
Melpaws has quit [Ping timeout: 252 seconds]
shvelo has joined #ruby
akonny has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
zxq9 has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
nanoyak has joined #ruby
zxq9 has joined #ruby
BWStearns has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
xrq` has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
Zenigor has quit [Remote host closed the connection]
simoz114 has joined #ruby
RaptorJesus has joined #ruby
Jake232 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zxq9 has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
xrq has quit [Ping timeout: 265 seconds]
zxq9 has joined #ruby
simoz113 has quit [Ping timeout: 252 seconds]
bijan07077 has quit [Quit: bijan07077]
silkfox has quit [Ping timeout: 240 seconds]
adasw has joined #ruby
ktun has joined #ruby
zxq9 has quit [Read error: Connection reset by peer]
zxq9 has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
kyb3r_ has joined #ruby
alvaro_o has joined #ruby
deepy has quit [Ping timeout: 250 seconds]
failshell has quit []
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
yokel has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
Ankhers has quit [Remote host closed the connection]
deepy has joined #ruby
deepy is now known as Guest68568
kaspergrubbe has joined #ruby
ari-_-e has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
sunya7a has quit [Remote host closed the connection]
jaake has quit [Ping timeout: 252 seconds]
grzywacz has joined #ruby
wallerdev has joined #ruby
bMalum___ has quit [Quit: Computer has gone to sleep.]
DouweM has joined #ruby
bMalum___ has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
<r_s_h_> So I have an object called “bucket”, it contains an array of 108 hash objects. I am stepping through this code:
<r_s_h_> def process_bucket(bucket)
<r_s_h_> workflow = bucket[0]
<r_s_h_> bucket.each do |workflow| …
blahwoop has joined #ruby
<blahwoop> hello
<r_s_h_> at workflow = bucket[0], workflow is a hash containing 9 items. When I step to bucket.each, bucket is now an empty array. Any ideas how that happened?
sinkensabe has quit [Remote host closed the connection]
funburn has joined #ruby
Macaveli has joined #ruby
bMalum___ has quit [Ping timeout: 240 seconds]
geggam has quit [Remote host closed the connection]
lucas_ has quit [Quit: Saindo]
anaeem1 has quit [Remote host closed the connection]
<blahwoop> in the initializer method i want to be able to pass in 2 files as an array so i can loop through each to read. i did def initialize(files =[]) but that doesnt work
mengu has quit []
paulfm has joined #ruby
<blahwoop> what am i doing wrong?
Bumptious has quit [Remote host closed the connection]
freezey has joined #ruby
Bumptious has joined #ruby
Guest68568 has quit [Ping timeout: 240 seconds]
geopet has joined #ruby
Davedo has quit [Ping timeout: 252 seconds]
WillAmes has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
<jhass> blahwoop: put your whole code at gist.github.com
<toretore> blahwoop: more code/information
Davedo has joined #ruby
pagioss has quit [Ping timeout: 245 seconds]
<blahwoop> ok hold on
<jhass> r_s_h: I think you're misinterpreting something but it's hard to say with that little context
<apeiros> blahwoop: and elaborate the "doesn't work". because "doesn't work" doesn't tell anything. could be a thousand and one way it could go wrong
ringaring has quit [Quit: Leaving]
pagioss has joined #ruby
weaksauce has quit [Ping timeout: 245 seconds]
<blahwoop> oh i figured it out i had to use (*files) so it can take more than 1 file
dbods has quit [Read error: Connection reset by peer]
<blahwoop> sorry about that
dbods has joined #ruby
<toretore> <insert lession about splat operator>
<apeiros> blahwoop: well, or you have to actually pass in an array. foo([file1, file2, …])
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> which you should prefer over splatting
ktun has joined #ruby
deepa has joined #ruby
deepa is now known as Guest70926
baweaver has quit [Remote host closed the connection]
Bumptious has quit [Ping timeout: 264 seconds]
binaryhat has joined #ruby
<blahwoop> ok got it thanks
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndChat|102836 has quit [Quit: Bye]
AlexRussia has joined #ruby
banisterone has joined #ruby
BWStearns has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
dbods has quit [Read error: Connection reset by peer]
BWStearns has quit [Read error: Connection reset by peer]
dbods has joined #ruby
zrl has quit [Ping timeout: 245 seconds]
AndChat|102836 has joined #ruby
weaksauce has joined #ruby
vcoinminer___ has quit [Ping timeout: 245 seconds]
gyre007 has quit [Ping timeout: 245 seconds]
WishBoy has quit [Remote host closed the connection]
maZtah has quit [Ping timeout: 245 seconds]
Lutece has joined #ruby
vcoinminer___ has joined #ruby
WishBoy has joined #ruby
gyre007 has joined #ruby
maZtah has joined #ruby
AndChat-102836 has joined #ruby
Nowaker has quit [Ping timeout: 265 seconds]
zrl has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
marcdel has quit []
alem0lars has quit [Quit: alem0lars]
Nowaker has joined #ruby
pu22l3r has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
silkfox has joined #ruby
claymore has quit [Quit: Leaving]
ndrei has joined #ruby
dbods has quit [Client Quit]
AndChat-102836 has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
AndChat|102836 has quit [Read error: No route to host]
banisterone has joined #ruby
AndChat|102836 has joined #ruby
DouweM has quit [Ping timeout: 265 seconds]
magicien has joined #ruby
pu22l3r_ has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
<wallerdev> i have 2 github stickers, but im not sure where to place them
shemerey has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<Lutece> An external hard drive, for irony, natrually
banisterone has quit [Ping timeout: 240 seconds]
<apeiros> wallerdev: forehead?
mattmcclure has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
<Lutece> TIL the github mascot has tenticles
Mon_Ouie has joined #ruby
AndChat|102836 has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
banisterone has joined #ruby
<wallerdev> :p
<Lutece> Kind of asking for rule 34, theres probably a gem for that.
alexju has quit [Remote host closed the connection]
lw has quit [Quit: s]
bMalum___ has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
AndChat|102836 has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vekfautles has left #ruby [#ruby]
banisterone has quit [Ping timeout: 240 seconds]
clov3r has joined #ruby
<clov3r> hey, i'm having some trouble with escaping quotes in shell commands
cpruitt has joined #ruby
<wallerdev> use popen3
<toretore> use popen7
<bricker> Is there a %Q{} that ignores newlines?
SegFaultAX has quit [Excess Flood]
LekeFly has joined #ruby
ceej has quit [Ping timeout: 252 seconds]
dnyy has quit [Ping timeout: 240 seconds]
poguez_ has quit [Ping timeout: 240 seconds]
gazarsgo has quit [Ping timeout: 240 seconds]
culturelabs has quit [Ping timeout: 240 seconds]
martisj has quit [Ping timeout: 240 seconds]
zrl has quit [Ping timeout: 252 seconds]
charles81__ has quit [Ping timeout: 252 seconds]
lectrick has quit [Ping timeout: 252 seconds]
Striki has quit [Ping timeout: 240 seconds]
Avahey_ has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 240 seconds]
bMalum___ has quit [Ping timeout: 252 seconds]
mattmcclure has quit [Ping timeout: 265 seconds]
zzak_ has quit [Ping timeout: 265 seconds]
kapowaz has quit [Ping timeout: 265 seconds]
RohanRNS has quit [Ping timeout: 252 seconds]
natewalck has quit [Ping timeout: 252 seconds]
andrewstewart has quit [Ping timeout: 240 seconds]
jeffreybaird has quit [Ping timeout: 240 seconds]
metadave has quit [Ping timeout: 240 seconds]
octarine has quit [Ping timeout: 240 seconds]
<clov3r> my ruby script is passing commands to `vassh`, which in term executes `vagrant ssh cd <current_directory>; <command>`
bijan07077 has joined #ruby
<clov3r> at least I think that's what it's doing
niftylettuce_ has quit [Ping timeout: 265 seconds]
tiagonobre_ has quit [Ping timeout: 265 seconds]
nifty has quit [Ping timeout: 265 seconds]
edmellum has quit [Ping timeout: 265 seconds]
CJD14__ has quit [Ping timeout: 252 seconds]
msch has quit [Ping timeout: 252 seconds]
alol has quit [Ping timeout: 252 seconds]
ggherdov_ has quit [Ping timeout: 252 seconds]
bijan07077 has quit [Client Quit]
Rahul_Roy has quit [Ping timeout: 240 seconds]
im0b has quit [Ping timeout: 240 seconds]
Guest85414______ has quit [Ping timeout: 240 seconds]
Retroid has joined #ruby
SegFaultAX has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
mattyohe has quit [Ping timeout: 252 seconds]
cmaxw_____ has quit [Ping timeout: 252 seconds]
<bricker> What are those %Q %W etc. even called? I can't find documentation for them
neosoro_ has quit [Ping timeout: 265 seconds]
dioms_ has quit [Ping timeout: 265 seconds]
bcavileer has quit [Ping timeout: 265 seconds]
<toretore> clov3r: that command doesn't make any sense
ballPointPenguin has quit [Ping timeout: 240 seconds]
dmoe____ has quit [Ping timeout: 240 seconds]
callenb has quit [Ping timeout: 240 seconds]
eataix has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
jeregrine has quit [Ping timeout: 245 seconds]
antonishen has quit [Ping timeout: 245 seconds]
maZtah has quit [Ping timeout: 252 seconds]
nhmood_ has quit [Ping timeout: 252 seconds]
vcoinminer___ has quit [Ping timeout: 240 seconds]
bjeanes has quit [Ping timeout: 240 seconds]
jpinnix____ has quit [Ping timeout: 240 seconds]
yo61 has quit [Ping timeout: 240 seconds]
guilleiguaran_ has quit [Ping timeout: 265 seconds]
pipework has quit [Ping timeout: 265 seconds]
olleromo_ has quit [Ping timeout: 265 seconds]
<clov3r> when I pass the commands to it... bash (from inside the vagrant box) is throwing an error as it's missing " ' " s
<Soulcutter> bricker: what about heredocs?
ldnunes has quit [Quit: Leaving]
garndt has quit [Ping timeout: 265 seconds]
meinside has quit [Ping timeout: 265 seconds]
fayimora has quit [Ping timeout: 265 seconds]
vekfautles has joined #ruby
jamto11 has quit [Remote host closed the connection]
<Soulcutter> bricker: <<-TEXT.gsub("\n", "")
jespada has quit [Quit: Leaving]
marcdel has joined #ruby
<bricker> Soulcutter: I prefer "..." \ "..." anyways, just wondering if there was a %() that did it
Morkel has quit [Quit: Morkel]
jamto11_ has joined #ruby
ss__ has joined #ruby
ctp has joined #ruby
<Soulcutter> in that case, no
<pontiki> i don't know what those things are called, either. i use them a lot, but haven't a clue what to call them
<bricker> Those must have a better name than "the %() things"
<pontiki> ^
<Soulcutter> literal notation maybe?
LekeFly has quit [Ping timeout: 255 seconds]
<pontiki> or "the percenty things"
<bricker> "The % Notation"
<pontiki> that's just weaksauce
<Soulcutter> at least that gives you a handle you can good with
<Soulcutter> s/good/google
<pontiki> we get "hash rocket" but have to put up with "percent notation" ??
BWStearns has quit [Ping timeout: 252 seconds]
<bricker> Is it documented at Rubydoc?
<pontiki> no doubt in one of the syntax files
Eiam has quit [Remote host closed the connection]
<weaksauce> pontiki start a twitter movement and come up with a better name
<pontiki> i should
<pontiki> wait
<centrx> wacky quotes
<pontiki> apologies for highlighting you
<weaksauce> lol
<weaksauce> yeah no worries
<Soulcutter> weaksauce: must be a danger of the name
sputnik13 has joined #ruby
<weaksauce> comes with the territory
s2013_ has quit [Ping timeout: 255 seconds]
Eiam has joined #ruby
<centrx> you are weaksauce
<weaksauce> you are centrx
<weaksauce> cool game we have
AlexRussia has quit [Ping timeout: 258 seconds]
BWStearns has joined #ruby
AlexRussia has joined #ruby
obs_ has quit [Remote host closed the connection]
<pontiki> i'm doing it
gazarsgo has joined #ruby
fantazo has joined #ruby
martisj has joined #ruby
RohanRNS has joined #ruby
edmellum has joined #ruby
charles81__ has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
lw has joined #ruby
msch has joined #ruby
mattmcclure has joined #ruby
alol_ has joined #ruby
ceej has joined #ruby
dmoe_____ has joined #ruby
zzak_ has joined #ruby
nifty has joined #ruby
rudisimo has quit []
eataix_ has joined #ruby
tiagonobre_ has joined #ruby
neosoro_ has joined #ruby
Rahul_Roy has joined #ruby
bjeanes_ has joined #ruby
niftylettuce_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
jhass is now known as jhass|off
lw has quit [Read error: Connection reset by peer]
olleromo_ has joined #ruby
dnyy has joined #ruby
lw has joined #ruby
nhmood_ has joined #ruby
lectrick has joined #ruby
kapowaz has joined #ruby
lw has quit [Read error: Connection reset by peer]
Avahey_ has joined #ruby
Burgestrand has joined #ruby
lw has joined #ruby
im0b has joined #ruby
CJD14__ has joined #ruby
meinside has joined #ruby
andrewstewart has joined #ruby
jpinnix_____ has joined #ruby
sambao21 has joined #ruby
yo61 has joined #ruby
callenb has joined #ruby
Guest85414______ has joined #ruby
culturelabs has joined #ruby
debajit has joined #ruby
gyre007 has joined #ruby
mattyohe has joined #ruby
bcavileer has joined #ruby
guilleiguaran_ has joined #ruby
zrl has joined #ruby
natewalck has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
maZtah has joined #ruby
rbenv_ has joined #ruby
magicien has quit [Quit: Lost terminal]
poguez_ has joined #ruby
nhmood_ has quit [Client Quit]
danijoo has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbenv_ has quit [Client Quit]
octarine has joined #ruby
paulfm has quit []
lw has quit [Read error: Connection reset by peer]
ballPointPenguin has joined #ruby
lw has joined #ruby
metadave has joined #ruby
vcoinminer___ has joined #ruby
antonishen has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
garndt has joined #ruby
fayimora has joined #ruby
cmaxw_____ has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
pipework has joined #ruby
machty has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
ndrei has quit [Ping timeout: 265 seconds]
jeregrine_ has joined #ruby
lw has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
Striki has joined #ruby
mroth has joined #ruby
lw has joined #ruby
dioms_ has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
shashank_rs has joined #ruby
ggherdov_ has joined #ruby
BWStearns has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
xrq` is now known as xrq
BraddPitt has quit [Quit: k peace out bye]
Burgestrand has quit [Quit: Burgestrand]
benzrf|offline is now known as benzrf
Squarepy has joined #ruby
Zenigor has joined #ruby
r_s_h_ has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
jeregrine has joined #ruby
shemerey has quit [Quit: Textual IRC Client: www.textualapp.com]
AndChat|102836 has quit [Quit: Bye]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
banisterone has joined #ruby
agent_white has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
sailias has quit [Ping timeout: 265 seconds]
<agent_white> Good afternoon
<lethjakman> good day
vekfautles has quit [Ping timeout: 240 seconds]
endash has quit [Quit: endash]
Jake232 has joined #ruby
Solnse has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
shemerey has joined #ruby
benzrf is now known as benzrf|offline
rizzatti has quit [Quit: Leaving...]
shemerey has quit [Client Quit]
AlexRussia has quit [Read error: Connection reset by peer]
internet_user has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
<happytux> FileUtils.ln_sf symlink_source, symlink_target
<happytux> Errno::EEXIST: File exists
<happytux> great
elaptics is now known as elaptics`away
<happytux> I use sf, f to force it.
<happytux> But it still complains.
<happytux> This is clearly unexpected behaviour.
AlexRussia has joined #ruby
<lethjakman> happytux: force isn't in what you currently gave us?
<lethjakman> what does dest l symlink_target look like?
upsell5 has quit [Ping timeout: 240 seconds]
musashi1 has joined #ruby
dnordstrom has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
upsell5 has joined #ruby
wm3|busy has joined #ruby
<happytux> /usr/src/test/lxc
<happytux> /var/lib/jenkins/jobs/test-lxc_build/workspace/
<happytux> source and target
mjsmith2 has joined #ruby
ggherdov_ has quit [Changing host]
ggherdov_ has joined #ruby
ggherdov_ has quit [Changing host]
ggherdov_ has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
ggherdov_ is now known as ggherdov
wm3|busy is now known as workmad3
<happytux> nothing unusual about the paths.
livcd has quit [Ping timeout: 252 seconds]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<lethjakman> and you tried FileUtils.ln_sf(symlink_source, symlink_target, force: true) correct?
lw has quit [Quit: s]
timonv has joined #ruby
blahwoop has quit [Remote host closed the connection]
<lethjakman> you may just want to manually remove the symlink first.
workmad3 is now known as wm3|away
kirun has quit [Quit: Client exiting]
kaspergrubbe has quit []
r_rios has joined #ruby
<lethjakman> actually...looking at the source the force: true wouldn't do anything.
RSTJNII has quit [Quit: Leaving]
<lethjakman> weird...should remove it too.
mjsmith2 has quit [Ping timeout: 240 seconds]
<lethjakman> the source makes perfect sense.
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
<lethjakman> happytux: permissions?
dblessing has quit [Quit: dblessing]
yairgo has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 252 seconds]
marcdel has quit []
maximski has quit []
Zenigor has quit [Remote host closed the connection]
phinfonet has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
<happytux> lethjakman: ln_sf still requires :force ?
<happytux> lethjakman: I can do this manually and then it seems to work.
phinfonet has joined #ruby
bjeanes_ is now known as bjeanes
shashank_rs has joined #ruby
<happytux> yes, ln -s with source and target works fine without any warnings
mikepack has quit [Remote host closed the connection]
<wallerdev> i usually have to rm symlinks before i point them somewhere else
<wallerdev> at least i did on ubuntu
banister has joined #ruby
<happytux> wallerdev: it is on a Debian
<happytux> wallerdev: I use ln -sf /tmp/test /tmp/test2
<happytux> wallerdev: it is idempotent, I can call it multiple times without error or warnings or unexpected behaviour
<wallerdev> ah yeah never even thought to look for a f flag
<wallerdev> i just added an rm in my deploy script haha
thesheff17 has quit [Ping timeout: 252 seconds]
mrmargolis has quit [Remote host closed the connection]
toordog has quit [Ping timeout: 240 seconds]
<happytux> ah
jimms has quit [Remote host closed the connection]
<happytux> so I also tried now FileUtils.ln_s source target, :force => true
<happytux> still fails
Bumptious has joined #ruby
<wallerdev> uh
<wallerdev> you need a comma after source
mikepack has joined #ruby
<happytux> FileUtils.ln_s symlink_source, symlink_target, :force => true
<happytux> or
BraddPitt has joined #ruby
<happytux> FileUtils.ln_sf symlink_source, symlink_target
<happytux> both fail
<happytux> and I thought exactly this is the purpose of ln_s / ln_sf methods.
upsell5 has quit [Quit: upsell5]
<wallerdev> what version of ruby are you on
<happytux> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<happytux> set up using rbenv for an isolated environment
<happytux> I use this version because system puppet on Debian Wheezy uses it, too.
<happytux> It is good practice to have the testbed as close as possible to staging/production.
ss__ has quit [Ping timeout: 258 seconds]
zybi1 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
jeregrine has quit [Ping timeout: 240 seconds]
jeregrine_ is now known as jeregrine
apeiros has joined #ruby
KanKava has quit [Quit: leaving]
tvw has quit []
Soda has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
dayepa has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
<wallerdev> happytux: well for what it's worth, force doesn't seem to force anything on mac os x
aniM has quit [Ping timeout: 255 seconds]
<lethjakman> happytux: looking at the source you shouldn't have to remove it. this is odd...
<lethjakman> if you figure out what the issue is lemme know.
dayepa has joined #ruby
freezey has quit [Remote host closed the connection]
<wallerdev> like even from the commandline ln -sf doesnt change a symlink that already exists
<lethjakman> if you look at the FileUtils module it should remove_file if force: true
<lethjakman> which leads me to believe they don't have permissions to remove that file when in the script...
<lethjakman> but I feel like that'd throw an error.
zB0hs has joined #ruby
<wallerdev> well try to remove it from ruby
wm3|away is now known as workmad3
dnordstrom has quit [Quit: dnordstrom]
havenwood has joined #ruby
ryanneufeld has joined #ruby
Varun_ has joined #ruby
Varun_ is now known as Guest45948
nanoyak has quit [Quit: Computer has gone to sleep.]
<ryanneufeld> is it possible to have a global variable in ruby?
maestrojed has joined #ruby
toordog has joined #ruby
<centrx> ryanneufeld, Yes
AlexRussia has quit [Remote host closed the connection]
<ryanneufeld> is it the $ prefix that defines it as global?
MackTrash has joined #ruby
<lethjakman> ryanneufeld: possible but discouraged if at all possible.
<wallerdev> if it's a constant value you can use constants
nanoyak has joined #ruby
AlexRussia has joined #ruby
<ryanneufeld> it's not
yfeldblu_ has joined #ruby
<ryanneufeld> it's for configuration
<ryanneufeld> are you familiar with Vagrant?
<lethjakman> yep.
<wallerdev> yeah ive used it at work
<ryanneufeld> so, you know the conifg.vm.define block
<wallerdev> i actually had to monkeypatch vagrant
<wallerdev> lol
<wallerdev> its fedora plugin is broken
shashank_rs has quit [Quit: shashank_rs]
<ryanneufeld> I'm trying to access a variable (a data object I'm building from parsing some json)
<ryanneufeld> from within the vm.define
cpruitt has quit [Quit: cpruitt]
<wallerdev> just define it at the top of the file
<wallerdev> itll be accessible
<ryanneufeld> nope
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
chipotle has quit [Quit: cya]
VTLob has quit [Quit: VTLob]
SCommette has quit [Quit: SCommette]
<ryanneufeld> I'm not even sure I know how to properly access the variables tho
sepp2k1 has quit [Quit: Leaving.]
<ryanneufeld> so, maybe I'm wrong
niftylettuce_ has quit [Quit: Connection closed for inactivity]
<wallerdev> well $ is the prefix for globals
<wallerdev> so feel free to use that
<ryanneufeld> right
cescalante is now known as ce_afk
<ryanneufeld> that should solve it?
<ryanneufeld> or at least make it work
<wallerdev> probably not if it doesn't work with a regular variable, but you can try that
<lethjakman> ryanneufeld: consider ENV as well...if it's possible.
<ryanneufeld> Vagrantfile:34:in `block (2 levels) in <top (required)>': undefined method `lcConf' for main:Object (NoMethodError)
<lethjakman> there's probably a .config for vagrant as well.
yfeldblum has quit [Ping timeout: 240 seconds]
<lethjakman> by .config I mean like Vagrant.config.something = 'blah'
<wallerdev> ah
<ryanneufeld> wallerdev: ^^ that's how I'm defining the variable
<wallerdev> you created a scope with your if block
simoz114 has quit [Ping timeout: 252 seconds]
<wallerdev> so outside of the if block its no longer defined
dayepa1 has joined #ruby
qwyeth has quit [Ping timeout: 240 seconds]
MackTrash has quit [Quit: This computer has gone to sleep]
<wallerdev> you would need to add lcConf = nil above that if statement
dayepa has quit [Ping timeout: 240 seconds]
isxek has joined #ruby
sarandosklikizos has quit [Ping timeout: 240 seconds]
<ryanneufeld> ok
<Guest45948> hey guys.. I'm trying to learn Rspec and am stuck. wondering if someone can take a look and help me out https://gist.github.com/varunprusty-r7/c0ab974dd5825f491ebd
danijoo has quit [Read error: Connection reset by peer]
Melpaws1 has quit [Quit: Leaving.]
Guest45948 is now known as Varun_P
danijoo has joined #ruby
<ryanneufeld> wallerdev: so, if i'm reading a json file into that var, 1) how to I tell it's data type
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has joined #ruby
<ryanneufeld> and 2) how would i access it's contents
<wallerdev> well you should probably play around with it in irb
<ryanneufeld> I don't speak ruby at all
<ryanneufeld> it's like russian to me
<wallerdev> do you know any other programming languages?
<ryanneufeld> vagrant is my only exposure to it, I'm a php/bash/python guy
<wallerdev> okay ruby is like python
<ryanneufeld> not that I've seen
<wallerdev> irb is like the interactive python thing
<ryanneufeld> config.vm.define "phub", primary: true do |phub|
<ryanneufeld> that line
<ryanneufeld> is apparently a function
<ryanneufeld> but without parens
<ryanneufeld> I can't tell
<ryanneufeld> or at least it's not obvious to me
<wallerdev> you can add parens
_echevemaster has joined #ruby
<wallerdev> config.vm.define("phub", {primary: true}) do |phub|
<havenwood> ryanneufeld: equiv to: config.vm.define("phub", primary: true) do |phub|
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> ryanneufeld: just a style difference
<ryanneufeld> wallerdev: how is irb gonna help?
<wallerdev> well in irb you could assign a variable to the result of JSON.parse
<wallerdev> and try to access the properties you need
<wallerdev> interactively
freerobby1 has quit [Quit: Leaving.]
<ryanneufeld> how do I access the properties
<ryanneufeld> is what I don't know
sambao21 has joined #ruby
<havenwood> ryanneufeld: or ask objects their class
<ryanneufeld> I tried []
echevemaster has quit [Quit: Leaving]
_echevemaster has quit [Client Quit]
<havenwood> >> "".class
<eval-in__> havenwood => String (https://eval.in/151917)
jobewan has quit [Quit: Leaving]
echevemaster has joined #ruby
vise890 has joined #ruby
<shevy> ryanneufeld ruby is flexible and allows folks to omit parens often
<havenwood> ryanneufeld: better yet, Pry (REPL alternative to irb)
<shevy> ryanneufeld here with parens: config.vm.define("phub", primary: true) do |phub|
<havenwood> ryanneufeld: gem install pry
auxbuss has joined #ruby
<wallerdev> your json will probably come out as a hash
<ryanneufeld> yeah
<ryanneufeld> it's a hash
<havenwood> ryanneufeld: in pry you can do things like: ls config.vm.define
<wallerdev> like if {"abc": true} was your json
<wallerdev> result["abc"] would give you true
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa1 has quit [Ping timeout: 240 seconds]
garndt has quit [Quit: Connection closed for inactivity]
<havenwood> ryanneufeld: take 15 min to cover Ruby basics: http://learnxinyminutes.com/docs/ruby/
<ryanneufeld> sweet!
<ryanneufeld> I got it working
<ryanneufeld> thanks guys
<ryanneufeld> havenwood: that's a great doc, Thanks!
BraddPitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ryanneufeld> wallerdev: you've been a great help man, I was frustrated, and now I'm smiling
<ryanneufeld> you could even say, you've left me satisfied and smiling :p
auxbuss has quit [Client Quit]
<agent_white> >:| -> <:D
<wallerdev> smiling cuz youre using ruby instead of python
<ryanneufeld> no
<wallerdev> another conversion succesful
<wallerdev> lol
Mon_Ouie has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 252 seconds]
<ryanneufeld> PHP $ LYFE
Mon_Ouie has joined #ruby
echevemaster has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
jamto11_ has quit [Remote host closed the connection]
dayepa has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
fantazo has quit [Ping timeout: 258 seconds]
ktun has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
livcd has joined #ruby
AlexRussia has joined #ruby
treehug88 has quit []
mansi has quit [Ping timeout: 240 seconds]
clov3r has quit []
omegahm has joined #ruby
yfeldblum has joined #ruby
kpshek has quit []
pothibo has joined #ruby
livcd has quit [Ping timeout: 255 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Remote host closed the connection]
ktun has joined #ruby
marcdel has joined #ruby
Arkaniad has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
alpha123 has joined #ruby
Jnco has joined #ruby
<Jnco> hi
nfk has quit [Quit: yawn]
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
<Lutece> o/
dayepa has quit [Ping timeout: 240 seconds]
<centrx> .oO0
dayepa has joined #ruby
<Jnco> :) anyone work with CarrierWave?
<shevy> people make a wave!
<shevy> \o\
<shevy> \o/
<Jnco> :D
<shevy> \/o/
<shevy> damn it
<Jnco> have some strange thing happening, performing a new deployment and things seem to be working on dev2.sortbox.co (production - sortbox.co) , however one segment of the site where I am uploading resumes and rmagick is previewing them, I am seeing a broken image after upload - the file is stored on temp but not uploaded to s3 - trying to get behind this, https://gist.github.com/wudukes/fd56e1e424d75e0896ca
<Lutece> \o\
<shevy> I got nudged by a side OR I failed to use leading /
jerrett has joined #ruby
<Lutece> |o|
<Lutece> /o/
<shevy> what is that Lutece
fantazo has joined #ruby
<shevy> oh
<Lutece> the transition between a wave to the left and to the right
<shevy> vertically raised arms
musashi1 has joined #ruby
<Lutece> my arms only move at 90* angles
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
isxek_ has joined #ruby
lw has joined #ruby
<shevy> how difficult is puppet to master?
KAO has joined #ruby
isxek_ has quit [Client Quit]
<wallerdev> master or use?
isxek has quit [Ping timeout: 276 seconds]
<wallerdev> it takes 10,000 hours to become a master at anything
mdmcaf has joined #ruby
<shevy> wallerdev hmmm
saarinen has quit [Quit: saarinen]
<shevy> I just realized that puppet is actually used at the company I intend to start working in ~3 months
<Jnco> we used puppet at my last job
<Jnco> people like it but a lot of folks lean to chef too
<wallerdev> all the same
<Jnco> not hard to master, the only thing that is hard is if you build for things that arnt designed for puppet
<Jnco> but since you are a ruby guy
<Jnco> shouldnt be too hard :)
x1337807x has joined #ruby
<Jnco> can someone help me find where this thing is error'ing out?
blackmes1 has quit [Ping timeout: 255 seconds]
<Lutece> Jnco want to pace a trace?
<shevy> Jnco no real idea looking at that gist
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<Jnco> yeah
<Jnco> how to i pace a trace :)
yfeldblum has quit [Remote host closed the connection]
sgu has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
<happytux> wallerdev / lethjakman: In combination with FileUtils.rm symlink_target, ln_sf works.
<Jnco> im 2 weeks intro ruby , been thrown into pit of vibers
<happytux> wallerdev / lethjakman: But of course, then I could use ln_s anway
<Jnco> ok
<Jnco> lemme run a trace hmm
<shevy> wow man
<shevy> 2 weeks into ruby
<wallerdev> happytux: for what its worth, i noticed that i ended up creating symlinks inside of the symlinked folders when i was cleaning up my files
<shevy> and already having to run a trace
<shevy> you are doing something wrong!
<Jnco> just run ruby -d?
<wallerdev> not sure if that happened in your situation, but it mightve been following the symlink before creating the symlink haha
<Jnco> whats the best way :)?
<Lutece> you should just get it running normally
<Lutece> when it throws the error
<Jnco> i dont know where to look, I think I am in in rails log
dayepa has quit [Ping timeout: 240 seconds]
<Jnco> application/log folder
freerobby has joined #ruby
dayepa has joined #ruby
<Jnco> im looking at development.log
<Jnco> hmmm
grzywacz has quit [Ping timeout: 258 seconds]
<happytux> wallerdev: strange
<happytux> wallerdev: removal of symlink works, also CLEAN
<happytux> wallerdev: The symlink was created when performing a default rake clean?
<wallerdev> rake runs your Rakefile
<wallerdev> theres no default rake clean
<wallerdev> its just running whats in your Rakefile
Megtastique has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
mikepack_ has joined #ruby
felixjet_ has quit [Ping timeout: 245 seconds]
gabamnml has joined #ruby
ce_afk is now known as cescalante
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
<gabamnml> if I need to create a symbol for "Reply-To" would be like?
dayepa has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
merceris_ has quit [Quit: Computer has gone to sleep.]
dik_dak has quit [Quit: Leaving]
dayepa has joined #ruby
mercerist has joined #ruby
Dude007_ has joined #ruby
mikepack_ has quit [Ping timeout: 255 seconds]
Dude007 has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercerist has quit [Client Quit]
<havenwood> gabamnml: Whatcha mean?
<havenwood> >> "Reply-To".downcase.gsub('-', '_').to_sym
<eval-in__> havenwood => :reply_to (https://eval.in/151922)
<havenwood> >> "Reply-To".to_sym
<eval-in__> havenwood => :"Reply-To" (https://eval.in/151923)
baweaver has quit [Ping timeout: 252 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
upsell5 has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
<gabamnml> havenwood: it's for use in a hash for convert to JSON
<havenwood> gabamnml: {"Reply-To" => :value}
<gabamnml> havenwood: sure but I wanted to keep it on the standard symbol of hashes in ruby
<Jnco> this is weird because I dont see any error
wchun has quit [Quit: Leaving]
Zenigor has joined #ruby
<Jnco> shevy you around?
Megtastique has joined #ruby
Es0teric has joined #ruby
Varun_P has left #ruby [#ruby]
<havenwood> gabamnml: JSON knows nothing of Symbols.
<havenwood> gabamnml: Going to have to choose a different serializer if you want that.
<happytux> wallerdev / lethjakman: OK, I will rm before ln. This is a walkaround but now it works at least.
sgu has joined #ruby
<gabamnml> sure I convert ruby object with symbols on JSON parser
<gabamnml> no problem with that, just wanted to use standard protocols
<havenwood> gabamnml: YAML.load({aim: true}.to_yaml) #=> {:aim=>true}
<havenwood> gabamnml: JSON.load({aim: true}.to_json) #=> {"aim"=>true}
<gabamnml> havenwood: yes not problem with that.
<wallerdev> yeah just write :"Reply-To"
<havenwood> gabamnml: i guess i don't understand the issue
<gabamnml> wallerdev: ok thx
<havenwood> gabamnml: "Reply-To".to_sym #=> :"Reply-To"
<gabamnml> wallerdev: I'll do that then
xargoon has quit [Ping timeout: 240 seconds]
ddv has joined #ruby
<happytux> wallerdev / lethjakman: I run rake using `rbenv exec bundle exec rake` maybe something went wrong in that chain?
<havenwood> too many exec@
<havenwood> rabble rabble!
<gabamnml> havenwood: thanks anyway
echevemaster has quit [Quit: WeeChat 0.4.3]
<havenwood> gabamnml: note you have to do {:"Reply-To" => nil} with those odd symbols, no {"Reply-To": nil}
St_Marx has joined #ruby
echevemaster has joined #ruby
<Jnco> guys is this tool good for tracing? http://unroller.rubyforge.org/
<Jnco> ?
<havenwood> having to run `rake` as `rbenv exec bundle exec rake` seems somewhat perverse in the first place
nanoyak has quit [Ping timeout: 265 seconds]
<havenwood> Jnco: Using latest stable Ruby?
<havenwood> Jnco: Or another version?
marcdel has quit []
<Jnco> hi
<Jnco> im running...
<bricker> Does anyone know off the top of their heads, if I run a command as sudo, move it into the background, and then exit the shell, will that process continue? I just tried it and it seems to work, but I want to make sure I'm not getting false results.
<Jnco> 1.9.3
charliesome has joined #ruby
echevemaster has quit [Client Quit]
<gabamnml> havenwood: Nice thx
echevemaster has joined #ruby
yfeldblum has joined #ruby
pu22l3r_ has joined #ruby
<wallerdev> bricker: like with ctrl+z ?
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> Jnco: Ah then then no new built in trace stuff for you!
<Jnco> :(
<havenwood> Jnco: There are some good gems.
<havenwood> Jnco: Or better yet, maybe bump to Ruby 2.1.2!
<wallerdev> id probably just use screen, that way you can see the progress later if you need to
<bricker> wallerdev: yeah
xargoon has joined #ruby
<wallerdev> but itll stay around as long as nothing kills it
<bricker> wallerdev: screen's not installed on this machine and I don't really want to install it :P
debajit has quit [Quit: Linkinus - http://linkinus.com]
<Jnco> u think if I bump to ruby 2.1.2 it will break a bunch of stuff?
<Jnco> some gems wont work etc..?
<bricker> wallerdev: well I'm worried about internet dropping out, franky
<bricker> wallerdev: meh, nbd I guess
<Jnco> whats easiest way to upgrade?
<havenwood> Jnco: Hem, with a Rails stack?
<havenwood> Jnco: How'd you install 1.9.3?
hermanmunster has joined #ruby
<havenwood> Jnco: I think generally pretty painless, but ymmv.
andrewjanssen has quit [Quit: Leaving...]
<Jnco> let me see
gregf_ has quit [Ping timeout: 245 seconds]
<Jnco> \curl -sSL https://get.rvm.io | bash -s stable
<havenwood> Jnco: so RVM
george2 has quit [Remote host closed the connection]
<Jnco> yes
<havenwood> Jnco: rvm get latest && rvm install ruby
<Jnco> ok stop the web server first?
snath has quit [Ping timeout: 255 seconds]
<havenwood> Jnco: doesn't matter
<havenwood> Jnco: then: rvm --default use ruby-2.1.2
<havenwood> Jnco: and install your apps gems with: bundle
pu22l3r has quit [Ping timeout: 265 seconds]
<Jnco> ok
<havenwood> Jnco: 1.9.3 and its gems will still be there, you can switch back.
<Jnco> doint that now
<Jnco> bundle install right?
<Jnco> :)
simoz114 has joined #ruby
klaut has quit [Remote host closed the connection]
<havenwood> Jnco: `bundle` is an alias to `bundle install`
<havenwood> so either ;)
gabamnml has quit [Quit: leaving]
<Jnco> im like 2 weeks in my man haha :)
simoz115 has joined #ruby
<Jnco> k its doing its thing
predator117 has joined #ruby
dayepa has quit [Ping timeout: 252 seconds]
andrewlio has quit [Quit: Leaving.]
simoz114 has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
<Jnco> k
<Jnco> compiling
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
predator217 has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
Zenigor has quit [Remote host closed the connection]
narcan has joined #ruby
livcd has joined #ruby
dayepa has joined #ruby
timonv has joined #ruby
snath has joined #ruby
marcdel has joined #ruby
thesheff17 has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
virtualize has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<GlenK> Hi. So I have a regular expression that works in rubular. but it's acting wierd when I use it in a function: http://fpaste.org/102293/
<GlenK> I'm getting nil when there's no match and 1 when there is, as opposed to true or false like I'm expecting.
<centrx> GlenK, =~ returns the index of the first match I believe
<centrx> GlenK, So it returns true and false because integers are truthy and nil is falsey
Shidash has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
<centrx> GlenK, All objects excepts false and nil are truthy
<centrx> GlenK, So methods that return additional information beyond boolean can still be used as true and false for all purposes
<GlenK> hmm, guess I'm just an idiot and thought it was the same as !~
<GlenK> thanks
RaptorJesus has quit [Ping timeout: 272 seconds]
marcdel has quit [Ping timeout: 255 seconds]
banister has joined #ruby
kitak_ has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
kitak has joined #ruby
jlast has joined #ruby
simoz115 has quit [Ping timeout: 265 seconds]
BraddPitt has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
Bumptious has quit [Remote host closed the connection]
michaeldeol has joined #ruby
marcdel has joined #ruby
toastynerd has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has quit [Ping timeout: 265 seconds]
ddv has quit [Ping timeout: 245 seconds]
dayepa has joined #ruby
<lethjakman> hmmm, I'm trying to one line this for a little test function I'm writing in pry like so: define_method 'my_test', { send('puts', 'HELLO') }
Dovid has joined #ruby
<lethjakman> but I get the error "SyntaxError: unexpected '}', expecting =>"
<Dovid> hi. can anyone help me with this? http://pastebin.com/G6YZusvY
kitak has quit [Ping timeout: 240 seconds]