apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 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
<workmad3> lavaman: sorry... I have very little sympathy if you *started* this on a ruby that was already EOL
<sshack> apeiros: Point.
armyriad has joined #ruby
<centrx> lavaman, You started using Ruby 1.8 after it was already retired?
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<lavaman> we don't write ruby apps
<centrx> I feel even more sorry for you now
<lavaman> we just use a bunch of tools that are based on ruby
<lavaman> well, i'm not a dev at all. We're building out infrastructure for devs to use
maletor has quit [Quit: Computer has gone to sleep.]
<workmad3> 'oh hey, we have this new setup we built last year... it's using windows 2000 and we're having issues...'
timonv has joined #ruby
<centrx> Tell them Ruby 1.9.0 was released in 2007.
<lavaman> I got an email for a job today that required familiarity with windows nt
<centrx> So they've had about seven years to upgrade.
<workmad3> centrx: I was taking 2010 as the first 1.9.2 stable release :)
<dorei> a friend of mine is working @ organization where due to internal bureaucracy the ETA for the setup of a new VM is about 9 months :D
<lavaman> you're preaching to the choir here
<workmad3> centrx: as 1.9.0 and 1.9.1 weren't really good for production
<lavaman> we'd have started this whole thing on ubuntu 13.10 if i could have
<centrx> Why not?
<workmad3> centrx: too buggy and unstable, iirc
<dorei> lavaman: why not compile ruby from sources?
<workmad3> centrx: also, quite a moving target as they were still figuring stuff out
<centrx> But Ubuntu 12.04 has Ruby 1.9...
terrellt has quit [Ping timeout: 252 seconds]
<workmad3> centrx: already pointed that out :D
irishcoder has quit [Remote host closed the connection]
<centrx> Ubuntu 10.04 even has Ruby 1.9
abdulsattar has quit [Ping timeout: 246 seconds]
<workmad3> 10.04 has 1.9.1, 12.04 has 1.9.3
<workmad3> both installed with ruby-1.9.1...
<workmad3> because... ubuntu...
<lavaman> I don't determine my work priorities sadly
<centrx> but isn't there anyone competent there who would upgrade Ruby in the last seven years?
<lavaman> one-click deploy of oracle java trumped any effort to get the ruby versions straight
<centrx> You should quit
<lavaman> lol
<centrx> Take a stand
<lavaman> we really haven't run into many issues until recently
Sc0rp10n has quit [Ping timeout: 240 seconds]
<lavaman> now nothing supports 1.8.7 anymore
yasushi has joined #ruby
Tentra has quit []
Tentra has joined #ruby
<workmad3> lavaman: yeah... funny how something that was in security-only fixes for legacy for about 4 years, then got retired a year ago is now not supported by anyone..
<lavaman> oh, i'm not the least bit surprised
<centrx> They've been too busy the last seven years to upgrade
<lavaman> i'm more surprised we made it this long without issues
timonv has quit [Ping timeout: 240 seconds]
<workmad3> lavaman: regarding your actual problem btw... I'd push to get the puppet modules installed so you can share data between nodes
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> ifelse(x<5 | x>8, x, 0)
<workmad3> lavaman: it's kinda essential to be able to do that if you want to do multi-node rollouts that have *any* reliance on communicating between the nodes
<shevy> hmmm R has an ifelse construct
<workmad3> shevy: fun :)
jeregrine has quit [Quit: Connection closed for inactivity]
andrewlio has quit [Remote host closed the connection]
<workmad3> lavaman: once you've done that, you can store the mapping of hostnames to ids on the zookeeper master config node and pull them off on other nodes
<lavaman> yeah. if i had the leeway to actually solve the problem. I mean, we've gone from 0 to 3000+ instances in amazon in less than a year. We can do multi-region cassandra and mongo clusters in < 10min with 6 lines of json passed to a rest api
<lavaman> overall, we've done very well
<workmad3> lavaman: you just can't install ruby 1.9... ;)
<lavaman> lol i would
irishcoder4 has joined #ruby
<lavaman> but that's testing a fair amount of stuff we don't have automated tests for
<lavaman> mostly random scripts and such
yasushi has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
<lavaman> but it's an effort i just don't have time for
<lavaman> our backlog and support burden are outstripped our capacity about 3 months ago :)
fgo has joined #ruby
<lavaman> and since the whole company is in the middle of a complete re-org, all hiring is frozen
<lavaman> smh
Cache_Money has quit [Quit: Cache_Money]
jetblack has quit [Ping timeout: 265 seconds]
afex has quit [Ping timeout: 246 seconds]
paulfm has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
<pipework> lavaman: Because when any company isn't undergoing reorganization they're any less clueless than they are otherwise, right? :D
<lavaman> lol no doubt
<lavaman> right now we're in the "We've got a 30 day plan to make the 90 day plan to implement the framework for the decison-making process of how things are going to be organized"
<lavaman> lol
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montyboy has joined #ruby
niekas has joined #ruby
<wallerdev> how big is the company?
niekas has left #ruby [#ruby]
<pipework> |========| this big
sailias has joined #ruby
<dorei> lavaman: r u working for the EU Commission? :p
<lavaman> lol almost
<lavaman> Pearson
badhatter has joined #ruby
atmosx has quit [Quit: Lost in trance]
f0ster has quit [Remote host closed the connection]
paulfm has quit [Ping timeout: 240 seconds]
Tentra_ has joined #ruby
<lavaman> I'd bet money every single person in this room has used something from my company at some point in their education :)
yekta has joined #ruby
abdulsattar has joined #ruby
<benzrf> lavaman: what co.
<wallerdev> name sounds familiar
<lavaman> Pearson
<benzrf> ah
<lavaman> It's the world's biggest education company
<pipework> lavaman: What if someone of us aren't educated?
* pipework is illiterate
<lavaman> nice use of a keyboard ;)
<lavaman> I learned the other day that R.Kelly is actual illiterate lol
<lavaman> *actually
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pel_daniel has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
Tentra has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
<lavaman> you guys are talking about ruby versions, this place was 90% M$ .NET a year ago
SonicX has quit [Read error: Connection reset by peer]
<lavaman> so at least i'm not dealing with that :)
SonicX_ has joined #ruby
<benzrf> >mfw you actually called it m$
<pipework> lavaman: Speech-to-text
<benzrf> lavaman: what software do they make
<lavaman> well, we have several learning platforms
<lavaman> testing systems
<lavaman> i'm honestly not even sure what all they have
youssefeid has joined #ruby
<lavaman> they used to operate as a holding company
sdouglas has quit [Remote host closed the connection]
<lavaman> now they're trying to consolidate
zigomir has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
<lavaman> cause the realized it didn't make sense to have completely different products for the same purpose, but one owns North America, one owns Europe and the other Asia
youssefeid has quit [Write error: Connection reset by peer]
<lavaman> completely separate groups, names, infrastructure
<pipework> lavaman: So you work for the illiterati?
Hobogrammer has quit [Ping timeout: 246 seconds]
sdouglas has joined #ruby
<lavaman> hahah maybe
youssefeid has joined #ruby
<lavaman> i'm way too far down to know about any of that :)
<lavaman> they say they now want to be the google of education
<lavaman> can't sit around collecting textbook money anymore
mercwithamouth has joined #ruby
<Musashi1> Good :P
dgaffney has joined #ruby
toastynerd has quit [Remote host closed the connection]
<lavaman> indeed
<lavaman> the vision sounds good. we'll see about the execution :)
vlad_starkov has quit [Ping timeout: 240 seconds]
<Musashi1> Fricken 140$ books that have one page rewritten and the chapters and problems reordered so you can't use the old version
bricker`LA has joined #ruby
* pipework expects a marvelous hallmark of a fuckup.
snuffeluffegus has joined #ruby
arubin has joined #ruby
<lavaman> pipework I give it even odds. All the executives are new
<lavaman> half the directors are gone
jjbohn has joined #ruby
<lavaman> Musashi1 no doubt. one of the biggest scams ever
pu22l3r has joined #ruby
alexju has quit [Remote host closed the connection]
SonicX_ has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
<Musashi1> I don't know about the biggest ever but it's pretty bad.. Doesn't affect me anymore but it sucks to see people getting ripped off like that.
skulker has joined #ruby
<lavaman> in the US at least, higher ed in general is a huge scam
<lavaman> half these kids don't need college
bradhe has quit [Remote host closed the connection]
skulker is now known as skulker_
<Musashi1> yeah
coderxin has joined #ruby
<lavaman> 24, broke, no real job prospects with that 80k sociology degree, still at home and now on parents insurance till 26
<Musashi1> the man wants it so that they can enslave people with debt. wall street wants it so they can sell the debt.
bocase8 has joined #ruby
mikepack has joined #ruby
<bocase8> Hi
lethjakman has quit [Ping timeout: 245 seconds]
<bocase8> i wanna build an wrapper around an API - where do i start? any good link that could give me an idea
sshack has quit [Quit: sshack]
sailias has quit [Read error: Operation timed out]
SonicX has joined #ruby
<benzrf> bocase8: that is an absurdly vague question
<benzrf> what api?
<benzrf> a c api? a web api?
<bocase8> ruby
coderxin has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
<shevy> penis
lethjakman has joined #ruby
jetblack has joined #ruby
bocase8 has quit [Quit: Page closed]
lavaman has quit [Quit: Leaving.]
<centrx> shevy!*@* added to ignore list.
<centrx> !!!
<shevy> :(
<shevy> now noone will combat php here anymore
r0nin_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
<centrx> PHP is an abomination and a scourge on the face of the earth.
<benzrf> centrx: thats a good idea
<benzrf> ill do that too
<benzrf> 08:38 Ignoring ALL from shevy
<geggam> illiterati ... pipework
* geggam saves that
<geggam> expect plagarism
<shevy> benzrf haha now I can rule
lavaman has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skulker_ has quit [Remote host closed the connection]
beneggett has joined #ruby
aspires has quit []
jetblack has quit [Ping timeout: 252 seconds]
skulker_ has joined #ruby
ktosiek has quit [Ping timeout: 240 seconds]
bklane has joined #ruby
lavaman has quit [Client Quit]
smathieu has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
yekta has quit [Quit: yekta]
paulfm has quit []
browndawg has joined #ruby
skulker_ has quit [Ping timeout: 252 seconds]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sambao21 has joined #ruby
irishcoder4 has quit [Remote host closed the connection]
markisonfire has joined #ruby
workmad3 has quit [Read error: Operation timed out]
<abdulsattar> If I'm writing an edit post cucumber feature, and I need to have a post created before, should I use capybara to fill in the new form and create a post AND then test editing or should I just create directly using FactoryGirl.create :post and then just test the editing part?
george2 has quit [Remote host closed the connection]
byprdct has joined #ruby
elaptics is now known as elaptics`away
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<abdulsattar> I already have a new test already in place
predator217 has joined #ruby
skulker_ has joined #ruby
mengu has quit []
kbarry has quit [Ping timeout: 264 seconds]
youssefeid has quit []
predator117 has quit [Ping timeout: 246 seconds]
<abdulsattar> sorry, lost connection for a while, did I miss something?
<benzrf> nothing at all
yubrew has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
razrunelord has quit []
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
<abdulsattar> When testing for edit, should I just stub the create part (using Factorygirl) and test editing or should I run through the create form too?
sambao21 has quit [Ping timeout: 246 seconds]
toastynerd has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
<centrx> abdulsattar, Are you asking if you should ignore testing the create component of your program?
cj3kim has joined #ruby
BuSerD has quit [Ping timeout: 245 seconds]
superlou has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
<superlou> Is there a way to detect from a child process (created using fork) if the parent process has exited (or crashed)? I tried the example given at https://www.ruby-forum.com/topic/141150, but Kernel.exit is never called.
baroquebobcat has joined #ruby
<superlou> Is there a more standard way to do this than using fork to make sure the child process doens't outlive the parent?
chipotle has quit [Quit: cya]
abdulsattar has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
<bnagy> you can just check your ppid from time to time I guess
saarinen has joined #ruby
<superlou> check the parent's ppid from inside the fork?
frode15243__ is now known as frode15243
<bnagy> uh you ppid is your parent id
frode15243 has quit [Changing host]
frode15243 has joined #ruby
dx7 has quit [Ping timeout: 265 seconds]
<superlou> so if my child process is blocking, i'd need to make a new thread inside the child?
cj3kim has quit [Ping timeout: 240 seconds]
kennym has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 245 seconds]
BuSerD has joined #ruby
lethjakman has joined #ruby
<bnagy> you're forking _and_threading?
<bnagy> you must like pain :)
<superlou> i've coded myself into a corner :)
<bnagy> well the halting problem is hard, don't feel bad
robert_ has quit [Read error: Connection reset by peer]
<superlou> i need to start a blocking webserver, before i start my application (https://github.com/superlou/command/blob/master/server.rb)
mikepack has quit []
shevy has joined #ruby
<superlou> need might be not quite the right word. i'm attempting to hack around needing to recode the whole server bit with EventMachine
<bnagy> imho don't use eventmachine anymore
<superlou> so, i initailly fork and start up the webserver listening
<superlou> is there a new hotness?
<bnagy> yes and no, I like celluloid but I don't use it
<bnagy> EM just gets very complicated very quickly for anything more than trivial apps
wjlafrance has joined #ruby
irishcoder4 has joined #ruby
<bnagy> anyways.. not really apropos your problem
robustus has quit [Ping timeout: 255 seconds]
<superlou> yeah. will definitely keep it in mind down the road
<superlou> so, if i were to check for the ppid from inside the forked process, that's non-trivial because the webserver is a blocking process
YamakasY has quit [Read error: Connection reset by peer]
<wallerdev> use node.js
<bnagy> if you need to keep a certain process running I would, personally, just use a framework that's meant for that
amclain has joined #ruby
<bnagy> and deal with it at the OS level
<bnagy> but if you can't then I guess I'd make a monitor app
<benzrf> so what is rails like
robustus has joined #ruby
<benzrf> how bloat is it
<bnagy> you don't have to fork, you can spawn as well
<superlou> i wish i new the technical difference between fork and spawn (heading to google)
<centrx> Rails is nice
invinceable has quit [Read error: Connection reset by peer]
<bnagy> it's just the relationship between the processes ( ie none, with spawn )
<wallerdev> forking is weird
<bnagy> yeah forking gives you a whole faux shared memory thing
<superlou> i thought threads shared memory?
<superlou> and processes didn't?
<benzrf> superlou: 90% sure that forks dont share memory
<benzrf> it just clones the memory
<bnagy> but when you fork you initially have exactly the same memory
tils`` has joined #ruby
<benzrf> ah
<bnagy> hence 'faux'
<benzrf> so spawn creates a new process... with what exactly?
<dorei> that's why there's always that ungly "if" in C and fork :p
irishcoder4 has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<bnagy> so your child can seem like it's accessing shared vars, but it's only shared in the sense that it's a copy of what existed at forktime
Xiti has quit [Read error: Connection reset by peer]
<superlou> so Process.spawn seems much more robust the fork
Xiti has joined #ruby
<bnagy> spawn in the loose sense ( as I meant it, sorry sloppy terminology ) is just asking the OS to launch a process
<superlou> but i'm still not sure how it would be sure to terminate with the parent (uh, spawner? does spawn even keep track of ppid)?
<bnagy> newp
<bnagy> unix people sometimes keep pidfiles, if that helps
kennym has joined #ruby
<superlou> like a listing of pids that the program started, to terminate on startup?
ephemerian has quit [Read error: Connection reset by peer]
<superlou> if thye're still around?
<bnagy> I would normally try and architect with some kind of semaphore that works cross process and cross system
<bnagy> less hassle later
tils` has quit [Ping timeout: 240 seconds]
petey has joined #ruby
<bnagy> so some sort of comms fabric that wrangles all your actors
<dorei> superlou: if parent dies/exits before children, the children become zombies
bklane has quit [Quit: Leaving...]
<superlou> i'm starting to feel like the right thing to do is have ruby files, and open 2 terminals and start webserver in one, and game server in other
<superlou> it was just for the convenience of running 1 file
<bnagy> philosophically, I find it easier to just have each process responsible for its own destiny
<bnagy> same for threads tbh
teddyp1cker has joined #ruby
<bnagy> it's way easier to arrange a way for them to self-terminate than to try and track and kill children or threads
<superlou> what kinds of ways are for them to self terminate?
<bnagy> check something from time to time
Shidash has joined #ruby
<bnagy> heartbeats, IPC, files, sockets, ...
<superlou> oh
<bnagy> but you still have the halting problem :/
sdouglas has quit [Remote host closed the connection]
<superlou> yeah
<bnagy> it's a hard area
petey has quit [Ping timeout: 246 seconds]
sdouglas has joined #ruby
<superlou> i think i'm going to split them into two programs for now
<superlou> one game_server, and one web_server
<superlou> or whatever
Caretaker has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
<superlou> since there's no interaction between them (well, it's handled by websockets)
<superlou> but celluloid looks seriously cool
badhatter has quit [Quit: ZNC - http://znc.in]
<pipework> it is
<bnagy> yeah dcell is pretty great as well
<bnagy> although I haven't looked at it for a bit
<bnagy> only reason I don't use it is cause I wrote kind of the same thing inhouse before it existed and dcell wasn't ready enough to switch
teddyp1cker has quit [Ping timeout: 252 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
<superlou> ah. aren't we fancy :)
Atw has joined #ruby
Cache_Money has joined #ruby
saarinen has quit [Quit: saarinen]
sdouglas has quit [Ping timeout: 265 seconds]
kennym has quit [Quit: Leaving.]
sambao21 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
<superlou> welp, the split files thing sure made the code look cleaner. maybe one day i'll set up a parent script to start them both and check on each other, but seems good enough for now
<superlou> thanks!
kennym has joined #ruby
<bnagy> np
cj3kim has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
beneggett has joined #ruby
cj3kim has quit [Remote host closed the connection]
lethjakman has joined #ruby
echevemaster has quit [Ping timeout: 245 seconds]
superlou has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
Avahey_ has joined #ruby
chihhsin has quit [Quit: leaving]
kennym has quit [Quit: Leaving.]
paulfm has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
badhatter has joined #ruby
paulfm has quit [Client Quit]
rahult has joined #ruby
yfeldblum has quit [Remote host closed the connection]
saarinen has joined #ruby
<wallerdev> well have a good weekend everybody :)
irishcoder4 has joined #ruby
wallerdev has quit [Quit: wallerdev]
rjhunter has joined #ruby
postmodern has quit [Quit: Leaving]
yubrew has joined #ruby
irishcoder4 has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
davy has joined #ruby
jetblack has joined #ruby
postmodern has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
<Solnse> are constants in Ruby actual constants, or just recognized by naming convention? In other words, could I actually change a global constant in the code somewhere?
rjhunter has quit [Ping timeout: 265 seconds]
Shidash has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 240 seconds]
<apeiros> Solnse: constants are actual constants in that they behave differently than local variables. it's not just convention.
m_3 has joined #ruby
<apeiros> Solnse: however, ruby sadly only produces a warning when you reassign a constant
<Solnse> yeah, I just read http://ruby.about.com/od/advancedruby/a/Constants-In-Ruby.htm and it's making more sense.
<apeiros> also, you can always mutate the object a constant refers to (and that won't even give a warning)
meatherly has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
jetblack has quit [Ping timeout: 240 seconds]
<Solnse> aside from reserved keywords.
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
cashnguns has joined #ruby
YamakasY has joined #ruby
dorei has quit []
bogeyd6 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
manacit has quit [Quit: ZNC - http://znc.in]
gregf has joined #ruby
Shidash has joined #ruby
afreidah has joined #ruby
Caretaker has quit [Quit: Caretaker]
toastynerd has quit [Remote host closed the connection]
beneggett has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
afreidah1 has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
afreidah has quit [Ping timeout: 245 seconds]
rahult is now known as rahult_
afreidah2 has joined #ruby
YamakasY has quit [Ping timeout: 265 seconds]
no6 has quit [Ping timeout: 265 seconds]
sski has joined #ruby
jjbohn has quit [Quit: Leaving...]
afreidah1 has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
afreidah3 has joined #ruby
Hobogrammer has joined #ruby
momigi has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 265 seconds]
momigi has joined #ruby
afreidah2 has quit [Ping timeout: 245 seconds]
brunto has quit [Ping timeout: 252 seconds]
afreidah4 has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
no6 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
afreidah3 has quit [Ping timeout: 265 seconds]
SonicX has quit [Remote host closed the connection]
afreidah has joined #ruby
RyanV has joined #ruby
momigi has quit [Ping timeout: 265 seconds]
afreidah4 has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
osvico has joined #ruby
brunto has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
rickruby has quit [Remote host closed the connection]
afreidah1 has joined #ruby
rickruby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
glebm has joined #ruby
afreidah has quit [Ping timeout: 246 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TripTastic has joined #ruby
afreidah2 has joined #ruby
kennym has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 246 seconds]
afreidah3 has joined #ruby
afreidah2 has quit [Ping timeout: 245 seconds]
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby
jaimef has quit [Excess Flood]
afreidah3 has quit [Ping timeout: 245 seconds]
afreidah has joined #ruby
Tobarja has left #ruby ["Leaving"]
afreidah1 has joined #ruby
Hanmac1 has joined #ruby
RyanV has quit [Ping timeout: 265 seconds]
dgaffney has quit [Ping timeout: 246 seconds]
AussieDownUnder has joined #ruby
jaimef has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
kennym has quit [Quit: Leaving.]
cj3kim has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Ex-Chat]
RyanV has joined #ruby
afreidah2 has joined #ruby
afreidah has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
funburn has quit [Client Quit]
afreidah1 has quit [Ping timeout: 265 seconds]
dx7 has joined #ruby
afreidah3 has joined #ruby
agent_white has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
afreidah2 has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby
afreidah4 has joined #ruby
charliesome has joined #ruby
havenwood has joined #ruby
macmartine has quit [Client Quit]
confounds has joined #ruby
afreidah has joined #ruby
irishcoder4 has joined #ruby
afreidah3 has quit [Ping timeout: 265 seconds]
Jabberish has joined #ruby
browndawg has quit [Read error: Connection timed out]
baroquebobcat has joined #ruby
yacks has joined #ruby
afreidah4 has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
scttnlsn has quit [Ping timeout: 264 seconds]
afreidah has quit [Ping timeout: 246 seconds]
andrewhl has joined #ruby
yubrew has joined #ruby
afreidah has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
bradhe has joined #ruby
yfeldblum has joined #ruby
thomasxie has joined #ruby
havenwood has quit [Remote host closed the connection]
Inoperable has quit [Quit: rectified]
saarinen has quit [Quit: saarinen]
irishcoder4 has quit [Ping timeout: 240 seconds]
irishcoder4 has joined #ruby
afreidah1 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
scttnlsn has joined #ruby
afreidah has quit [Ping timeout: 246 seconds]
jetblack has joined #ruby
afreidah2 has joined #ruby
irishcoder4 has quit [Remote host closed the connection]
no6 has quit [Ping timeout: 252 seconds]
abdulsattar has joined #ruby
17SAAZ18T has joined #ruby
jaimef has quit [Excess Flood]
senayar_ has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
browndawg has quit [Read error: Operation timed out]
codabrink has quit [Ping timeout: 245 seconds]
senayar_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
browndawg has joined #ruby
userx has quit [Ping timeout: 265 seconds]
codabrink has joined #ruby
afreidah3 has joined #ruby
irishcoder has joined #ruby
jetblack has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 245 seconds]
afreidah2 has quit [Ping timeout: 246 seconds]
endash_ has quit [Quit: endash_]
havenwood has joined #ruby
rezzack has quit [Ping timeout: 240 seconds]
17SAAZ18T has quit [Ping timeout: 240 seconds]
jaimef has joined #ruby
afreidah4 has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
senayar_ has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
markisonfire has quit [Quit: markisonfire]
yekta has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
afreidah has joined #ruby
afreidah3 has quit [Ping timeout: 265 seconds]
rahult_ is now known as rahult
nowthatsamatt has quit [Quit: nowthatsamatt]
afreidah4 has quit [Ping timeout: 245 seconds]
afreidah1 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
afreidah has quit [Ping timeout: 265 seconds]
tjr9898 has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
afreidah1 has joined #ruby
kotk1 has quit [Ping timeout: 240 seconds]
oso96_2000 is now known as oso|away
kotk has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
davy has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 265 seconds]
tjr9898 has quit [Ping timeout: 240 seconds]
afreidah1 has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
rh1n0 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
afreidah1 has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
momigi has joined #ruby
confounds has quit [Remote host closed the connection]
nopolitica has quit [Quit: leaving]
afreidah2 has joined #ruby
rh1n0 has quit [Quit: im out!]
afreidah1 has quit [Ping timeout: 265 seconds]
rh1n0 has joined #ruby
Solnse has quit [Ping timeout: 246 seconds]
mikepack has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
Solnse has joined #ruby
Cache_Money has joined #ruby
afreidah3 has joined #ruby
afreidah2 has quit [Ping timeout: 245 seconds]
blom_ has joined #ruby
petey has joined #ruby
momigi has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
wallerdev has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
Vovko has joined #ruby
Vovko has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
afreidah3 has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
fgo has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
dseitz has joined #ruby
mr_snowf1ake has joined #ruby
Vovko has joined #ruby
afreidah3 has joined #ruby
Vovko is now known as mulat
mulat is now known as bushmen
petey has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
bushmen is now known as Vovko
<benzrf> hej da
teddyp1cker has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
maroloccio has quit [Quit: WeeChat 0.4.3]
confounds has joined #ruby
afreidah4 has joined #ruby
cj3kim has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
confounds has quit [Remote host closed the connection]
mikepack has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
afreidah has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
browndawg has quit [Read error: Connection timed out]
afreidah4 has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
BuSerD has quit [Quit: Lost terminal]
bahar has quit [Ping timeout: 246 seconds]
afreidah1 has joined #ruby
browndawg has joined #ruby
<centrx> Oh dear, make it stop
<benzrf> =D
bahar has joined #ruby
cj3kim has quit [Remote host closed the connection]
io_syl has joined #ruby
jrichocean has joined #ruby
thomasxie has quit [Remote host closed the connection]
afreidah has quit [Ping timeout: 265 seconds]
afreidah2 has joined #ruby
thomasxie has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
cyberarm has joined #ruby
<jrichocean> does anyone know much about the wordnik gem?
afreidah3 has joined #ruby
cj3kim has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
<centrx> no
zono has joined #ruby
yubrew has joined #ruby
afreidah2 has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
afreidah4 has joined #ruby
<benzrf> =D
radic has quit [Ping timeout: 240 seconds]
afreidah3 has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
lw has joined #ruby
afreidah has joined #ruby
radic has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
sinceretear has joined #ruby
<sinceretear> hello
sinceretear has quit [Client Quit]
dx7 has quit [Remote host closed the connection]
<jrichocean> oi!
afreidah4 has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
afreidah1 has joined #ruby
TripTastic has left #ruby ["Leaving"]
cj3kim has quit [Remote host closed the connection]
afreidah has quit [Ping timeout: 246 seconds]
momigi has joined #ruby
irishcoder has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
jlast has quit [Remote host closed the connection]
xBfrog has joined #ruby
jrichocean has quit []
<agent_white> allo
<benzrf> hekko
sambao21 has quit [Quit: Computer has gone to sleep.]
tectonic has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
zono has quit [Quit: zono]
afreidah1 has joined #ruby
xBfrog has left #ruby [#ruby]
skulker_ is now known as skulker
Jetchisel has joined #ruby
yekta has quit [Quit: yekta]
mostlybadfly has joined #ruby
jetblack has joined #ruby
rjhunter has joined #ruby
maximski_ has quit []
rh1n0 has quit [Quit: Hopefully you don't see this...]
afreidah2 has joined #ruby
luckyruby has joined #ruby
cyberarm has quit [Quit: Bye]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Zespre has quit [Ping timeout: 252 seconds]
afreidah1 has quit [Ping timeout: 245 seconds]
afreidah3 has joined #ruby
Zespre has joined #ruby
dgaffney has joined #ruby
rjhunter has quit [Ping timeout: 265 seconds]
irishcoder4 has joined #ruby
afreidah4 has joined #ruby
confounds has joined #ruby
Tomasso has quit [Ping timeout: 246 seconds]
jetblack has quit [Ping timeout: 252 seconds]
afreidah2 has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
postmodern has quit [Quit: Leaving]
Cache_Money has joined #ruby
afreidah3 has quit [Ping timeout: 240 seconds]
skulker has quit [Remote host closed the connection]
afreidah has joined #ruby
irishcoder4 has quit [Ping timeout: 240 seconds]
Musashi1 has joined #ruby
afreidah4 has quit [Ping timeout: 245 seconds]
koderok1 has joined #ruby
Cache_Money has quit [Client Quit]
afreidah1 has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
koderok1 has quit [Client Quit]
afreidah has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
koderok1 has joined #ruby
<mostlybadfly> hola
afreidah2 has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
skulker has joined #ruby
braincrash has quit [Quit: bye bye]
confounds has quit [Remote host closed the connection]
maroloccio has joined #ruby
andrewhl has quit [Quit: andrewhl]
maroloccio has quit [Client Quit]
afreidah3 has joined #ruby
maroloccio has joined #ruby
afreidah2 has quit [Ping timeout: 246 seconds]
kennym has joined #ruby
skulker has quit [Remote host closed the connection]
afreidah4 has joined #ruby
braincrash has joined #ruby
afreidah3 has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
Raboo has quit [Ping timeout: 265 seconds]
afreidah has joined #ruby
saarinen has quit [Quit: saarinen]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
koderok1 is now known as koderok
afreidah1 has joined #ruby
afreidah4 has quit [Ping timeout: 265 seconds]
gancl_ has joined #ruby
cj3kim has joined #ruby
afreidah2 has joined #ruby
<centrx> Aloha
afreidah has quit [Ping timeout: 240 seconds]
<mr_snowf1ake> hi
kennym has quit [Quit: Leaving.]
Musashi1 has left #ruby [#ruby]
Musashi1 has joined #ruby
jamesbrink has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
yekta has joined #ruby
nisstyre has quit [Ping timeout: 265 seconds]
afreidah3 has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
chunk2k3 has joined #ruby
afreidah2 has quit [Ping timeout: 245 seconds]
yekta has quit [Client Quit]
ffranz has quit [Quit: Leaving]
Guest25022 has joined #ruby
afreidah3 has quit [Ping timeout: 265 seconds]
marcdel has joined #ruby
andrewhl has joined #ruby
bradhe has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
skulker has joined #ruby
xcv has quit [Remote host closed the connection]
zono has joined #ruby
funktor has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yacks has joined #ruby
funktor has joined #ruby
marcdel_ has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
funburn has quit [Quit: funburn]
rabeldable has quit [Quit: Leaving.]
marcdel has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
skulker has quit [Client Quit]
<centrx> Just invented a new emoji
<centrx> !:P
yfeldblum has quit [Remote host closed the connection]
funktor has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
yubrew has joined #ruby
<Musashi1> lol what is it
<agent_white> I forgot... is pastie the bad one? Or pastebin?
apple_ has joined #ruby
Teltariat has quit [Remote host closed the connection]
davedev24 has quit []
<benzrf> agent_white: pastebin
<benzrf> but pastie is not that great either o=
<benzrf> gist ftw
charliesome has joined #ruby
Guest25022 has quit [Ping timeout: 240 seconds]
jamesbrink has quit [Remote host closed the connection]
maroloccio has quit [Quit: WeeChat 0.4.3]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
budrose has joined #ruby
bradhe has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 246 seconds]
centrx is now known as HIOKABEXZ
HIOKABEXZ is now known as centrx
gancl_ has quit [Quit: Page closed]
bahar has quit [Ping timeout: 246 seconds]
decoponio has joined #ruby
bahar has joined #ruby
dx7 has joined #ruby
toretore has joined #ruby
agent_white has quit [Quit: brb]
maroloccio has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Solnse has quit [Remote host closed the connection]
ftj has joined #ruby
chunk2k3 has quit [Quit: Page closed]
Vovko_ has joined #ruby
rjhunter has joined #ruby
<ftj> Hey there — I'm building a little CLI tool that checks certain HTML tags on a few websites to make sure that they're properly title cased. I'm splitting the work into a few methods, the lowest-level of which is the word checker method (which checks each word to see if it's cased correctly). It's failing, and I'm ripping my hair out trying to figure out why. Here's what it looks like:
Vovko has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
robbyoconnor has joined #ruby
benzrf is now known as benzrf|offline
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
<centrx> ftj, Is it failing without any error message or backtrace?
rjhunter has quit [Ping timeout: 246 seconds]
<ftj> centrx: I don't think there are any syntax errors — it's just not working as you'd expect it to work
<centrx> Any clue on how?
<ftj> centrx: it returns false on line 20 every time
<ftj> even if the word doesn't match that condition
<centrx> I suspect you need to use paranthesis with #include? when following it with boolean logic
robbyoconnor has quit [Ping timeout: 252 seconds]
<centrx> probably reading both of them as always_lowercase.include?(word.downcase && word == word.downcase)
<ftj> oh crap
zono has quit [Quit: zono]
<ftj> I'm confused as to where I should put the parentheses
rjhunter has joined #ruby
<ftj> if (!always_lowercase.include? word.downcase) && word == word.downcase
<ftj> centrx Like that?
meatherly has quit [Ping timeout: 246 seconds]
rjhunter has quit [Read error: Connection reset by peer]
<centrx> that might work. I would do: if !always_lowercase.include?(word.downcase) && word == word.downcase
Hobogrammer has joined #ruby
<ftj> Ah, amazing! Looks like it's working great now!
<ftj> centrx: Thank you!
<centrx> I always use parentheses for method calls, unless it's a simple one liner like attr_reader
<centrx> avoids this problem
<centrx> That's a style thing though
<centrx> You are welcome
<ftj> centrx: Thanks for the tip. I generally like to be more explicit as well
Jetchisel has quit [*.net *.split]
gstamp has quit [*.net *.split]
Cork has quit [*.net *.split]
closer has quit [*.net *.split]
oso|away has quit [*.net *.split]
eshy has quit [*.net *.split]
karupanerura has quit [*.net *.split]
cibs has quit [*.net *.split]
oso|away has joined #ruby
rjhunter has joined #ruby
oso|away is now known as oso96_2000
nisstyre has quit [Quit: WeeChat 0.4.3]
beneggett has joined #ruby
closer has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
marcdel_ has quit []
Raboo has joined #ruby
Cork has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
Jetchisel has joined #ruby
rjhunter has joined #ruby
marcdel has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Client Quit]
endash_ has joined #ruby
agent_white has joined #ruby
marcdel has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
tjr9898 has joined #ruby
rootshift has joined #ruby
abdulsattar has joined #ruby
blom_ has quit [Remote host closed the connection]
blom_ has joined #ruby
rjhunter has joined #ruby
meatherly has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
Vovko_ is now known as Vovko
nisstyre has joined #ruby
agent_white has joined #ruby
browndawg has quit [Quit: Leaving.]
rjhunter has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
rjhunter has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
marcdel has joined #ruby
budrose has quit []
blom_ has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
agent_white has quit [Client Quit]
rjhunter has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
jetblack has joined #ruby
lw has quit [Quit: s]
rjhunter has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
kotk has quit [Ping timeout: 240 seconds]
rjhunter has quit [Read error: Connection reset by peer]
bricker`LA has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
tkuchiki has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
mikepack has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
zz_karupanerura has joined #ruby
eshy has joined #ruby
petey has joined #ruby
zz_karupanerura is now known as karupanerura
rjhunter has joined #ruby
teddyp1cker has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 268 seconds]
gstamp has joined #ruby
cibs has joined #ruby
petey has quit [Ping timeout: 245 seconds]
pu22l3r_ has joined #ruby
Cache_Money has joined #ruby
rjhunter has joined #ruby
yubrew has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
bricker`LA has quit [Read error: Connection reset by peer]
timonv has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rabeldable has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
pu22l3r_ has quit [Remote host closed the connection]
rjhunter has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
RaptorJesus has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
jfisk87 has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
blom_ has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
blom_ has quit [Ping timeout: 265 seconds]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
browndawg has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
bradhe has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
bradhe has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
_justin has joined #ruby
rjhunter has joined #ruby
jfisk87 has joined #ruby
nbezzala has joined #ruby
kennym has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
rjhunter has joined #ruby
<nbezzala> I followed the instructions in the ruby on rails tutorial
fgo has joined #ruby
<nbezzala> but now, when I run rails server, it asks me to install the gem
Vovko has quit [Remote host closed the connection]
<centrx> nbezzala, How did you install rails?
bahar has quit [Ping timeout: 246 seconds]
dx7 has quit [Remote host closed the connection]
<nbezzala> using rvm
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> nbezzala, Did you use bundler at all?
<nbezzala> and it is using the correct version of ruby
<centrx> nbezzala, Which tutorial is this?
<nbezzala> yes
<centrx> nbezzala, Okay, do: bundle exec rails server
<centrx> nbezzala, Preface any rails commands with bundle exec to make sure it uses your bundle
<nbezzala> ok, thanks centrx
bahar has joined #ruby
<centrx> nbezzala, Also FYI the Rails channel is at #rubyonrails
<centrx> nbezzala, You may need to register/identify your nick with Freenode to enter that channel
<centrx> for future reference
<nbezzala> ok, I'll check how to do that
idiocrash has joined #ruby
armyriad has quit [Ping timeout: 245 seconds]
meatherly has quit [Remote host closed the connection]
LexicalScope has quit [Read error: Connection reset by peer]
kennym has quit [Quit: Leaving.]
Raboo has quit [Ping timeout: 240 seconds]
twiceaday has quit []
twiceaday has joined #ruby
Vovko has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
_justin has quit [Quit: _justin]
RaptorJesus is now known as PirateJesus
PirateJesus is now known as RaptorJesus
Vovko_ has joined #ruby
zono has joined #ruby
Vovko has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 240 seconds]
blom_ has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
agent_white has quit [Read error: Connection reset by peer]
endash_ has quit [Quit: endash_]
agent_white has joined #ruby
melik has quit [Ping timeout: 265 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bahar has joined #ruby
_justin has joined #ruby
george2 has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
cover has joined #ruby
teddyp1cker has joined #ruby
RyanV has joined #ruby
blom_ has quit [Ping timeout: 252 seconds]
segmond has quit [Ping timeout: 240 seconds]
zono has quit [Quit: zono]
yubrew has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
funburn has joined #ruby
nateberkopec has joined #ruby
cibs has quit [*.net *.split]
gstamp has quit [*.net *.split]
karupanerura has quit [*.net *.split]
eshy has quit [*.net *.split]
derek_c has joined #ruby
zono has joined #ruby
nateberkopec has quit [Client Quit]
bahar has joined #ruby
Vovko_ is now known as Vovko
AussieDownUnder has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
funburn has quit [Client Quit]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
RyanV has quit [Ping timeout: 265 seconds]
andrewhl has quit [Quit: andrewhl]
xcv has quit [Remote host closed the connection]
RyanV has joined #ruby
armyriad has joined #ruby
_justin has quit [Quit: _justin]
bahar has quit [Ping timeout: 240 seconds]
afreidah4 has joined #ruby
sigurding has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
bahar has joined #ruby
Vovko has quit []
sigurding has quit [Client Quit]
sigurding has joined #ruby
momigi has quit [Remote host closed the connection]
afreidah has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
AussieDownUnder has joined #ruby
ij has joined #ruby
hobodave has joined #ruby
agjacome has quit [Ping timeout: 246 seconds]
blom_ has joined #ruby
rickruby has joined #ruby
afreidah has quit [Ping timeout: 246 seconds]
bahar has quit [Ping timeout: 265 seconds]
rahult has joined #ruby
cj3kim has joined #ruby
bahar has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
sski has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
derek_c has quit [Quit: Leaving]
paolooo has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blom_ has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
jaimef has quit [Excess Flood]
Hanmac1 has quit [Ping timeout: 252 seconds]
zono has quit [Quit: zono]
zono has joined #ruby
zono has quit [Client Quit]
zono has joined #ruby
havenwood has joined #ruby
sski has joined #ruby
alexju has joined #ruby
jaimef has joined #ruby
rahult has joined #ruby
io_syl has quit []
robbyoconnor has joined #ruby
_justin has joined #ruby
zono has quit [Quit: zono]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cover has quit [Remote host closed the connection]
afreidah has joined #ruby
tvw has joined #ruby
mikepack has joined #ruby
apple_ has quit [Ping timeout: 265 seconds]
afreidah1 has joined #ruby
agent_white has quit [Ping timeout: 265 seconds]
afreidah has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
afreidah2 has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
agent_white has quit [Client Quit]
bahar has quit [Ping timeout: 240 seconds]
afreidah3 has joined #ruby
afreidah1 has quit [Ping timeout: 265 seconds]
afreidah2 has quit [Ping timeout: 245 seconds]
bahar has joined #ruby
root828 has quit [Ping timeout: 240 seconds]
afreidah4 has joined #ruby
bradhe_ has quit [Remote host closed the connection]
yubrew has joined #ruby
AussieDownUnder has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
afreidah3 has quit [Ping timeout: 246 seconds]
AussieDownUnder has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
RyanV has joined #ruby
timonv has joined #ruby
afreidah has joined #ruby
RyanV has quit [Client Quit]
RyanV has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
sski has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
sski has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
afreidah1 has joined #ruby
lkba has joined #ruby
petey has joined #ruby
wallerdev has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
afreidah has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
afreidah2 has joined #ruby
atno__ has joined #ruby
sski has quit [Ping timeout: 252 seconds]
atno has quit [Ping timeout: 246 seconds]
afreidah3 has joined #ruby
atno__ has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 265 seconds]
snuffeluffegus has joined #ruby
atno has joined #ruby
petey has quit [Ping timeout: 252 seconds]
afreidah2 has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 240 seconds]
afreidah4 has joined #ruby
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
vlad_starkov has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
afreidah3 has quit [Ping timeout: 265 seconds]
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
afreidah has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
nari has joined #ruby
Atw has quit [Ping timeout: 245 seconds]
Merks has joined #ruby
afreidah1 has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 245 seconds]
afreidah has quit [Ping timeout: 240 seconds]
dzhulk has joined #ruby
bahar has joined #ruby
afreidah2 has joined #ruby
hugoxrosa has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
afreidah3 has joined #ruby
afreidah2 has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
afreidah4 has joined #ruby
abdulsattar has joined #ruby
blom_ has joined #ruby
afreidah3 has quit [Ping timeout: 240 seconds]
afreidah has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
afreidah4 has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
robbyoconnor has quit [Excess Flood]
Doppp has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
afreidah1 has joined #ruby
Doppp has joined #ruby
afreidah has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
ephemerian has joined #ruby
bradhe has joined #ruby
momigi has joined #ruby
afreidah2 has joined #ruby
blom_ has quit [Ping timeout: 245 seconds]
Galgorth has quit [Ping timeout: 252 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
timonv has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
afreidah3 has joined #ruby
AussieDownUnder has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
afreidah2 has quit [Ping timeout: 245 seconds]
arubin has joined #ruby
momigi has quit [Ping timeout: 240 seconds]
afreidah4 has joined #ruby
vlad_starkov has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
afreidah has joined #ruby
renklaf has joined #ruby
creede has quit [Ping timeout: 245 seconds]
afreidah4 has quit [Ping timeout: 240 seconds]
afreidah1 has joined #ruby
afreidah2 has joined #ruby
afreidah has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
skaflem has joined #ruby
creede has joined #ruby
afreidah3 has joined #ruby
afreidah1 has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 246 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
afreidah4 has joined #ruby
afreidah2 has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
afreidah3 has quit [Ping timeout: 240 seconds]
razibog has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
OpenRotterdam__ has left #ruby [#ruby]
yubrew has joined #ruby
afreidah has joined #ruby
Xeago has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
rjhunter has quit [Remote host closed the connection]
bahar has quit [Ping timeout: 246 seconds]
afreidah1 has joined #ruby
bahar has joined #ruby
Elico has quit [Quit: Leaving.]
yubrew has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
afreidah has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
rickruby has quit [Remote host closed the connection]
afreidah1 has joined #ruby
_justin has quit [Quit: _justin]
sigurding has quit [Quit: sigurding]
havenwood has quit [Ping timeout: 265 seconds]
relix has joined #ruby
afreidah2 has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
afreidah3 has joined #ruby
toastynerd has joined #ruby
tacos1de has quit [Ping timeout: 265 seconds]
jhass|off is now known as jhass
bahar has quit [Ping timeout: 240 seconds]
OdNairy has left #ruby [#ruby]
afreidah2 has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
tacos1de has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
afreidah3 has joined #ruby
bluOxigen has joined #ruby
_lynX has joined #ruby
coderxin has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
withnale has quit [Ping timeout: 246 seconds]
sigurding has joined #ruby
toastynerd has quit [Remote host closed the connection]
afreidah4 has joined #ruby
coderxin has quit [Remote host closed the connection]
afreidah3 has quit [Ping timeout: 246 seconds]
carraroj has joined #ruby
afreidah has joined #ruby
Mrdarknezz has joined #ruby
senayar has joined #ruby
andrewlio has joined #ruby
afreidah1 has joined #ruby
afreidah4 has quit [Ping timeout: 240 seconds]
xbob has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
coderxin has joined #ruby
afreidah has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
bahar has joined #ruby
rjhunter has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
afreidah2 has joined #ruby
claymore has joined #ruby
thomasxie has left #ruby [#ruby]
renklaf has quit [Ping timeout: 246 seconds]
_lynX has quit [Quit: Leaving]
_lynX has joined #ruby
jackneill has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
afreidah3 has joined #ruby
agent_white has quit [Quit: gnight]
blom_ has joined #ruby
bradhe has joined #ruby
afreidah4 has joined #ruby
afreidah2 has quit [Ping timeout: 265 seconds]
rabeldable has quit [Quit: Leaving.]
blackmesa has joined #ruby
withnale has joined #ruby
dzhulk1 has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
likemike has joined #ruby
afreidah3 has quit [Ping timeout: 240 seconds]
<likemike> hello. Is there some gem for manipulating with websites ? simulating of clicking and navigating through elements on the website
rdark has joined #ruby
afreidah has joined #ruby
dzhulk has quit [Ping timeout: 245 seconds]
<popl> likemike: Have you heard of Selenium?
<likemike> a little :-)
bradhe has quit [Ping timeout: 240 seconds]
<popl> Selenium is an engine to do what you describe, and IIRC there *is* some ruby gem for it. You will have to search around for it though.
afreidah4 has quit [Ping timeout: 246 seconds]
metalhead` has joined #ruby
<metalhead`> what is the best editor to use to learn ruby? what is a good book i can download to learn the language?
<jhass> likemike: there are also abstraction layers for it, like capybara. If you want it headless there's phantomjs and if you want to scrape there's mechanize
<popl> Oh, good point.
<popl> Selenium is just what popped in my head 'cause I was messing around with it.
kennym has quit [Quit: Leaving.]
<popl> I didn't even ask what his usecase was.
<popl> Silly me.
vlad_starkov has joined #ruby
afreidah1 has joined #ruby
havenwood has joined #ruby
afreidah has quit [Ping timeout: 245 seconds]
blom_ has quit [Ping timeout: 252 seconds]
<likemike> popl: jhass on a specific page i want to search through the page and search for a specific string...then i have to open each entry and then based on specific requirements i want to click on a button and fill out the box with my name (which assigns the entry to me)
<likemike> this would involve an interaction with javascript
<jhass> so mechanize falls out
Xeago has joined #ruby
afreidah2 has joined #ruby
tylersmith has joined #ruby
<jhass> capybara+selenium can surely do it, capybara+phantomjs should be a little bit faster, though in my experience phantomjs is a bit less fault tolerant to crappy coded sites (which is a good thing for its main purpose, testing)
carraroj has quit [Ping timeout: 265 seconds]
CaptainJet has quit []
afreidah1 has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
metalhead` has left #ruby ["Leaving"]
afreidah3 has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
afreidah2 has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 252 seconds]
afreidah4 has joined #ruby
rjhunter has quit [Remote host closed the connection]
paolooo has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
afreidah3 has quit [Ping timeout: 246 seconds]
_justin has joined #ruby
afreidah has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
rahult has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
kennym has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
afreidah1 has joined #ruby
jaimef has quit [Excess Flood]
Doppp has quit [Ping timeout: 240 seconds]
<likemike> thanks guys
predator117 has joined #ruby
bahar has joined #ruby
afreidah2 has joined #ruby
art-solopov has joined #ruby
afreidah has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
fgo has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 240 seconds]
afreidah3 has joined #ruby
zigomir has joined #ruby
cibs has joined #ruby
zz_karupanerura has joined #ruby
eshy has joined #ruby
zz_karupanerura is now known as karupanerura
yfeldblum has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
hiall has joined #ruby
afreidah2 has quit [Ping timeout: 240 seconds]
userx has joined #ruby
afreidah4 has joined #ruby
_justin has quit [Quit: _justin]
jaimef has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
kennym has quit [Quit: Leaving.]
afreidah has joined #ruby
gstamp has joined #ruby
predator117 has quit [Read error: Connection reset by peer]
rahult is now known as rahult_
afreidah1 has joined #ruby
_justin has joined #ruby
afreidah4 has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 265 seconds]
yfeldblu_ has quit [Remote host closed the connection]
senayar has joined #ruby
<Xeago> apeiros: So I'm writing an IRC bot, but I want it to be more testable than what I have currently made with Cinch
yfeldblum has joined #ruby
<Xeago> do you have any experience with Cinch?
<apeiros> nope
afreidah has quit [Ping timeout: 265 seconds]
sparrovv has joined #ruby
afreidah1 has quit [Ping timeout: 245 seconds]
afreidah2 has joined #ruby
<Xeago> would you advise something else than Cinch?
<Jamo> check out Rbot
klaut has joined #ruby
bahar has joined #ruby
<Jamo> Its fully functional irb-bot, and it has a nice modular structure thus adding your own plugins is really easy
afreidah3 has joined #ruby
<Xeago> I'm more about testability of my plugin with their framework
ayaz has joined #ruby
<Xeago> I don't want to write mocks for irc messages
ayaz has quit [Max SendQ exceeded]
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
afreidah2 has quit [Ping timeout: 240 seconds]
afreidah4 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
toastynerd has joined #ruby
afreidah3 has quit [Ping timeout: 240 seconds]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
afreidah has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has joined #ruby
afreidah1 has joined #ruby
petey has quit [Ping timeout: 240 seconds]
<apeiros> Xeago: well, I wrote butler ages ago, so naturally I'd suggest looking at it
<apeiros> even though it's old code and I'd do a lot different, it's IMO still quite good code
<apeiros> I haven't looked at cinch's codebase, but I know who wrote it and his code is usually quite good too
phansch has joined #ruby
afreidah has quit [Ping timeout: 240 seconds]
afreidah2 has joined #ruby
mehlah has joined #ruby
<bricker`LA> Can someone explain this block of code to me? https://github.com/SCPR/streamio-ffmpeg/blob/master/lib/ffmpeg/movie.rb#L19
browndawg has quit [Quit: Leaving.]
<bricker`LA> Basically I'm confused about the stdin bit
_justin has quit [Ping timeout: 265 seconds]
afreidah1 has quit [Ping timeout: 240 seconds]
<bricker`LA> why it's necessary, what's different than just reading stderr
afreidah3 has joined #ruby
<apeiros> `output[/test/] # Running a regexp on the string throws error if it's not UTF-8` <-- lol
AlexRussia has joined #ruby
afreidah2 has quit [Ping timeout: 265 seconds]
afreidah4 has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
mehlah has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
afreidah has joined #ruby
afreidah4 has quit [Ping timeout: 246 seconds]
_justin has joined #ruby
hiall has quit [Ping timeout: 240 seconds]
afreidah1 has joined #ruby
dhruvasagar has joined #ruby
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
afreidah has quit [Ping timeout: 246 seconds]
afreidah2 has joined #ruby
blom_ has joined #ruby
yfeldblu_ has joined #ruby
toastynerd has quit []
_justin has quit [Quit: _justin]
afreidah1 has quit [Ping timeout: 240 seconds]
afreidah3 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
luckyruby has quit [Remote host closed the connection]
bahar has joined #ruby
afreidah2 has quit [Ping timeout: 245 seconds]
rahult has joined #ruby
afreidah4 has joined #ruby
afreidah3 has quit [Ping timeout: 265 seconds]
nbezzala has quit [Read error: Connection reset by peer]
<likemike> what is the difference between gems Selenium and selenium-webdriver ?
afreidah has joined #ruby
maximski has joined #ruby
blom_ has quit [Ping timeout: 245 seconds]
afreidah4 has quit [Ping timeout: 246 seconds]
afreidah1 has joined #ruby
koderok has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 246 seconds]
afreidah has quit [Ping timeout: 245 seconds]
senayar has quit [Remote host closed the connection]
havenwood has joined #ruby
bahar has joined #ruby
afreidah2 has joined #ruby
senayar has joined #ruby
chihhsin has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
yubrew has joined #ruby
afreidah3 has joined #ruby
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
zerun0_ has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
Doppp has joined #ruby
afreidah2 has quit [Ping timeout: 240 seconds]
afreidah4 has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
sparrovv has quit [Read error: Connection reset by peer]
afreidah3 has quit [Ping timeout: 245 seconds]
sparrovv has joined #ruby
afreidah has joined #ruby
bahar has joined #ruby
Doppp has quit [Ping timeout: 252 seconds]
afreidah4 has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
camilasan has joined #ruby
aep has quit [Ping timeout: 264 seconds]
bw_ has quit [Read error: Operation timed out]
aep has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
mikecmpbll has joined #ruby
tectonic has quit []
bahar has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
zerun0_ has joined #ruby
nfk has joined #ruby
bw_ has joined #ruby
bahar has joined #ruby
ikaros has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
fieldfirst has joined #ruby
mercwithamouth has joined #ruby
apple has joined #ruby
apple is now known as Guest68890
WormDr1nk has quit [Quit: Leaving]
ctp has quit [Quit: Linkinus - http://linkinus.com]
workmad3 has joined #ruby
armyriad has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
sparrovv has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
spider-mario has joined #ruby
WormDrink has joined #ruby
bradhe has joined #ruby
tvw has quit []
snuffeluffegus has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 240 seconds]
art-solopov has quit [Quit: Konversation terminated!]
thomasxie has joined #ruby
bahar has joined #ruby
hugoxrosa has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
rdark has quit [Quit: leaving]
yfeldblu_ has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
sigurding has quit [Quit: sigurding]
blom_ has joined #ruby
mikepack has joined #ruby
Macaveli has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
AussieDownUnder has joined #ruby
SHyx0rmZ has joined #ruby
ujvaljoshi has joined #ruby
blom_ has quit [Ping timeout: 246 seconds]
YamakasY has joined #ruby
yubrew has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
the_hack has joined #ruby
timonv has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
irishcoder has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
Trudko has joined #ruby
<Trudko> guys i have weird error on linux when install gem rails http://pastie.org/8958662 if I do ruby -v it returns 1.9.3 not sure when 1.9.1 came from
ephemerian has quit [Ping timeout: 265 seconds]
jle` has quit [Quit: WeeChat 0.4.2]
<apeiros> 1.9.3's C interface is 1.9.1 compatible. that's why apt calls it 1.9.1
<certainty> Trudko: 1.9.1 is the abi version
<certainty> or what apeiros said
<Trudko> so what would be solution?
<apeiros> and you're missing mkmf because apt package maintainers are retarded and split up standard ruby
rjhunter has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
<apeiros> you need another package, I suggest you ask in #ubuntu or #debian which one it is
<apeiros> their mess… their duty to clean it up
<Trudko> i see
YamakasY_ has joined #ruby
jle` has joined #ruby
<certainty> now apeiros gets +b on #ubuntu and #debian :p
sepp2k has joined #ruby
YamakasY has quit [Ping timeout: 265 seconds]
<apeiros> I couldn't care less
rjhunter has quit [Ping timeout: 265 seconds]
zenojis has quit [Ping timeout: 265 seconds]
ayaz has joined #ruby
m8 has joined #ruby
Guest68890 has quit [Ping timeout: 252 seconds]
<popl> OH SHI-
<popl> +b on #ubuntu
<popl> slash my wrists
yfeldblum has joined #ruby
<jokke> hello
<jokke> how can i turn on syntax highlighting for yard example blocks?
<jokke> already tried !!!ruby
mostlybadfly has joined #ruby
Xeago has quit [Remote host closed the connection]
nbjahan has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> apeiros: thanks! now i wont get that song out of my head for some time
<apeiros> what song?
Deele has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
ezelohar has joined #ruby
apple has joined #ruby
sk_keeper has quit [Ping timeout: 255 seconds]
apple is now known as Guest76720
YamakasY has joined #ruby
charliesome has joined #ruby
nbjahan has quit [Remote host closed the connection]
cbreeze has joined #ruby
YamakasY_ has quit [Read error: Operation timed out]
rickruby has joined #ruby
VTLob has joined #ruby
<jokke> no one?
badhatter has quit [Quit: ZNC - http://znc.in]
badhatter has joined #ruby
Trudko has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 240 seconds]
petey has joined #ruby
Merks has quit []
postmodern has joined #ruby
<certainty> apeiros: https://www.youtube.com/watch?v=IEG6m9PIpY4 this song
AussieDownUnder has quit [Remote host closed the connection]
bradhe has joined #ruby
blackmesa has joined #ruby
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
petey has quit [Ping timeout: 240 seconds]
AussieDownUnder has joined #ruby
browndawg has joined #ruby
YamakasY has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
inkblots has joined #ruby
ezelohar has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
jle` has quit [Quit: WeeChat 0.4.2]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
rahult is now known as rahult_
hiall has joined #ruby
AussieDownUnder has quit [Read error: Connection reset by peer]
suffice has joined #ruby
blom_ has joined #ruby
<shevy> jokke is that vim?
AussieDownUnder has joined #ruby
kennym has joined #ruby
kirun has joined #ruby
Jrz has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rootshift has joined #ruby
makara has joined #ruby
coderxin has quit [Remote host closed the connection]
relix has joined #ruby
blom_ has quit [Ping timeout: 240 seconds]
rindolf has joined #ruby
<rindolf> Ruby 2.x does not like this line: « puts @src.gsub(/[\x00-\x09\x0b-\x1f\x7f-\xff]/){'\\x%x'%$&.ord} » - it gives me «invalid multibyte escape: /[\x00-\x09\x0b-\x1f\x7f-\xff]/ (SyntaxError) » - why?
<rindolf> Hi all, BTW.
caustic has joined #ruby
kennym has quit [Quit: Leaving.]
fgo has quit [Remote host closed the connection]
<apeiros> rindolf: because your regex is utf-8 but contains invalid sequences for utf-8
<apeiros> if you want to match binary data, make your regex binary too. use the //n flag
<apeiros> certainty: aaaaha!
<apeiros> oh, cross-poster
Speed has joined #ruby
rindolf was kicked from #ruby by apeiros [if you cross-post, you're required to inform all channels that you are cross posting. this is only a warning-kick. you can rejoin.]
suffice has quit [Quit: leaving]
cina has joined #ruby
kennym has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Jrz has joined #ruby
<popl> Where did rindolf cross-post that?
AussieDownUnder has quit [Remote host closed the connection]
<apeiros> #ruby & #ruby-lang
<popl> ah
claymore has quit [Ping timeout: 246 seconds]
eval-in has quit [Remote host closed the connection]
rindolf has joined #ruby
eval-in has joined #ruby
<apeiros> I wouldn't have an issue with cross-posting, if people had the decency to update other channels about solutions they get.
<apeiros> but experience shows that they don't.
razibog has quit [Quit: Leaving.]
<rindolf> apeiros: OK, thanks for the headsup.
* apeiros off for a bit
rahult_ is now known as rahult
rahult is now known as rahult_
AussieDownUnder has joined #ruby
claymore has joined #ruby
dzhulk has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
dzhulk1 has quit [Ping timeout: 240 seconds]
AussieDownUnder has quit [Remote host closed the connection]
rootshift has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
suffice has joined #ruby
alexju has joined #ruby
suffice has quit [Client Quit]
bahar has joined #ruby
mehlah has quit [Quit: Leaving...]
<rindolf> apeiros: thanks! That seems to work. Hopefully it will be the last porting issue.
fijimunkii has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
ujvaljoshi has quit [Ping timeout: 265 seconds]
carraroj has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
suffice has joined #ruby
popl has quit [Ping timeout: 246 seconds]
rvraghav93 has joined #ruby
mehlah has joined #ruby
ij has quit [Ping timeout: 246 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
ktosiek has joined #ruby
suffice has quit [Quit: leaving]
bradhe has quit [Ping timeout: 265 seconds]
suffice has joined #ruby
Guest76720 has quit [Ping timeout: 253 seconds]
<aep> any smarter way to make an erb template, when most of my template is actually ruby code?
<jokke> hey
<certainty> aep: probably don't use erb?
Speed has quit [Ping timeout: 265 seconds]
<aep> yeah, what else?
<aep> i don't want nested output += "bla" either
<certainty> aep: plain ruby, probably peppered with String#%
<aep> and for most parts erb works fine, i just wish it had a way to output text within the ruby blocks
<certainty> >> "foo %{bar} %{baz}" % { :bar => "bar", :baz => "bar" }
<eval-in> certainty => "foo bar bar" (https://eval.in/124817)
<aep> right, that might just work
<aep> thanks
sigurding has joined #ruby
rahult_ is now known as rahult
robbyoconnor has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
<jokke> i'm trying to implement a very simple "template" definition so that one can write placeholders in a string which will be replaced
<jokke> much like the strftime syntax
alexju has quit [Remote host closed the connection]
mikepack has joined #ruby
<jokke> not sure how to parse the string though
<jokke> oh i think i got it
<jhass> jokke: scroll up to certaintys last example? :P
wolfsoul has joined #ruby
wolfsoul has joined #ruby
badeball has joined #ruby
robbyoconnor has joined #ruby
coder_neo has joined #ruby
greenrose has quit [Remote host closed the connection]
<jokke> oh lol
<jokke> true
<jokke> forgot about that
apple has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
rvraghav93 has quit [Ping timeout: 252 seconds]
apple is now known as Guest89485
<jokke> jhass: however, i don't really know what placeholders will be used
Guest89485 has quit [Remote host closed the connection]
<jokke> replace the placeholders with a codeblock instead of a hash?
AussieDownUnder has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> how do you want to replace placeholder if you don't know the keys?
<jhass> I think it's unclear what you want
AussieDownUnder has quit [Remote host closed the connection]
charliesome has joined #ruby
greenrose has joined #ruby
<jokke> i have a match object and if it has a named group for a placeholder it's replaced by that group.
bahar has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
vlad_starkov has joined #ruby
blackmesa has quit [Read error: Operation timed out]
YamakasY has joined #ruby
rjhunter has joined #ruby
rvraghav93 has joined #ruby
postmodern has quit [Quit: Leaving]
blom_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
bahar has joined #ruby
<jokke> so something like this would be cool: match = 'foo bar'.match(/(?<foo>\w+)\s+(?<bar>\w+)/); 'Foo %{bar}' % { |placeholder| match[placeholder] || '%{placeholder}' }
rjhunter has quit [Ping timeout: 252 seconds]
<jokke> maybe i should just use erb...
kennym has quit [Quit: Leaving.]
<shevy> ewwww
<jokke> shevy: @erb?
<shevy> yeah
<jokke> yeah..
<jokke> shevy: i could parse it with a regex ofcourse
<jokke> but it's not as trivial as i'd like
<jokke> because i have to allow escaping of the "special" character
<jokke> like %% in strftime
<jhass> >> match = "foobar".match(/(?:(?<a>foo)|(?<b>bar))+/); "There's %{a} and there's %{b}" % Hash[match.regexp.named_captures.keys.map(&:to_sym).zip(match.captures)]
<eval-in> jhass => "There's foo and there's bar" (https://eval.in/124857)
<jhass> hm, not sure if you should actually use this :P
<jokke> jhass: ah!
<jokke> awesome!
<jokke> :D
rvraghav93 has quit [Read error: Connection reset by peer]
<jokke> i always forget about Hash's default
blom_ has quit [Ping timeout: 246 seconds]
coderxin has joined #ruby
<jhass> what role does Hash#default play here?
<jokke> oh wait
Macaveli has quit [Ping timeout: 252 seconds]
<jokke> you don't use it here
<jokke> but you could!
<jokke> or i could
badeball has left #ruby [#ruby]
rvraghav93 has joined #ruby
tils`` is now known as tils
davedev2_ has joined #ruby
sailias has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
rahult is now known as rahult_
rahult_ is now known as rahult
davedev24 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
rvraghav93_ has joined #ruby
Squarepy has joined #ruby
rvraghav93 has quit [Read error: Operation timed out]
thomasxie has left #ruby [#ruby]
razibog has joined #ruby
<browndawg> "dog".size is a constant time op in ruby right?
jgoss has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 265 seconds]
dorei has joined #ruby
irishcoder has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
<DouweM> browndawg: No idea, here's the source: http://rxr.whitequark.org/mri/source/string.c#1118
carraroj has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<dorei> hello, is there a way to get innertext using capybara?
<jhass> dorei: there's #text, #all_text and #visible_text
<dorei> text gets all the text, not the inner one only
yfeldblum has joined #ruby
<dorei> using XPATH, one can get inner text only using text()
senayar has quit []
the_hack has quit [Quit: Computer has gone to sleep.]
<jhass> did you try one of the other variants?
<dorei> hold on, let me try them
wolfsoul has quit [Quit: Leaving]
senayar has joined #ruby
bradhe has joined #ruby
<dorei> visible_text and all_text are undefined for Capybara::Element
yfeldblum has quit [Ping timeout: 265 seconds]
Mrdarknezz has quit [Ping timeout: 240 seconds]
darkkeri has quit []
chipotle has quit [Quit: cya]
io_syl has joined #ruby
sparrovv has joined #ruby
<jhass> what about #text(:visible) ?
irishcoder4 has joined #ruby
jgoss has joined #ruby
jgoss has quit [Changing host]
jgoss has joined #ruby
claymore has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
irishcoder4 has quit [Remote host closed the connection]
<dorei> it returns all the text from that element, not the innertext only
p8952 has joined #ruby
Mrdarknezz has joined #ruby
kr1shnak has joined #ruby
abdulsattar has quit [Ping timeout: 253 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rvraghav93 has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
rvraghav93_ has quit [Ping timeout: 265 seconds]
<jhass> I'm still not sure what you define as innertext
petey has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
<jhass> <div>abc<span>def</span></div> you only want "abc" from find("div").text ?
davedev24 has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
Jrz has quit [Quit: Computer has gone to sleep.]
<dorei> yeap
<dorei> using xpath it's //div/text()
<jhass> did you try using xpath?
<jhass> find(:xpath, '//div/text()') ?
petey has quit [Ping timeout: 265 seconds]
<dorei> Capybara::Poltergeist::BrowserError: There was an error inside the PhantomJS portion of Poltergeist. This is probably a bug, so please report it.
<jhass> I'd probably just assert a match on text though, expect(find('div')).to have_text "whatever"
<dorei> if i do Nokogiri::HTML(page.html).xpath('//div/text()') it works though
robbyoconnor has quit [Ping timeout: 240 seconds]
neo_ has joined #ruby
<likemike> jhass: where i can find some documentation for selenium ? also what's the difference between Selenium and selenium-webdriver ?
yubrew has joined #ruby
coder_neo has quit [Ping timeout: 245 seconds]
doodlehaus has joined #ruby
<jhass> "Selenium -- Gem wrapper for selenium server", "selenium-webdriver This gem provides Ruby bindings for WebDriver and has been tested to work on MRI (1.8.7 through 1.9), JRuby and Rubinius."
jjbohn has joined #ruby
crystal77 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
io_syl has quit []
fieldfirst has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
blom_ has joined #ruby
cashnguns has joined #ruby
cover has joined #ruby
enebo has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
caustic has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bahar has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
coderxin has joined #ruby
sepp2k has quit [Quit: Leaving.]
blom_ has quit [Ping timeout: 265 seconds]
inkblots has quit [Ping timeout: 240 seconds]
Krajsnick has joined #ruby
caustic has joined #ruby
coderxin has quit [Ping timeout: 246 seconds]
ItSANgo has quit [Quit: Leaving...]
sepp2k has joined #ruby
sambao21 has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
fgo has quit [Remote host closed the connection]
havenwood has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
Soliah has quit [*.net *.split]
TheLarkInn has quit [*.net *.split]
vadviktor has quit [*.net *.split]
Asher has quit [*.net *.split]
mist has quit [*.net *.split]
rawtaz has quit [*.net *.split]
n88 has quit [*.net *.split]
bbloom has quit [*.net *.split]
troyready has quit [*.net *.split]
Spleeze has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
TheNumb has quit [*.net *.split]
mr_red has quit [*.net *.split]
monsieurp has quit [*.net *.split]
jcarouth has quit [*.net *.split]
billiam has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
patronus_ has quit [*.net *.split]
nuba has quit [*.net *.split]
neaer has quit [*.net *.split]
adsisco has quit [*.net *.split]
aef has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
ponbiki has quit [*.net *.split]
flori has quit [*.net *.split]
FDj has quit [*.net *.split]
malcolmva has quit [*.net *.split]
drager has quit [*.net *.split]
ji0n has quit [*.net *.split]
elektronaut has quit [*.net *.split]
sirecote has quit [*.net *.split]
go|dfish has quit [*.net *.split]
nkts has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
RTG` has quit [*.net *.split]
asuka_ has quit [*.net *.split]
dazeddev has quit [*.net *.split]
matti has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
the_mentat has quit [*.net *.split]
jzigmund has quit [*.net *.split]
Davey has quit [*.net *.split]
gischy has quit [*.net *.split]
peterhu has quit [*.net *.split]
thelamest has quit [*.net *.split]
tskogber1 has quit [*.net *.split]
marcoecc has quit [*.net *.split]
chiel has quit [*.net *.split]
justinmcp has quit [*.net *.split]
Jelco has quit [*.net *.split]
eregon has quit [*.net *.split]
Zhann has quit [*.net *.split]
adamholt has quit [*.net *.split]
Hamled has quit [*.net *.split]
ccooke has quit [*.net *.split]
__main__ has quit [*.net *.split]
markolson has quit [*.net *.split]
kevinfagan_ has quit [*.net *.split]
blackjid has quit [*.net *.split]
ezrios has quit [*.net *.split]
snkcld has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
wmoxam has quit [*.net *.split]
ptierno has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
mahlon has quit [*.net *.split]
emdub has quit [*.net *.split]
icedp has quit [*.net *.split]
optiz0r_ has quit [*.net *.split]
ocher has quit [*.net *.split]
TwinkleHood has quit [*.net *.split]
sindork has quit [*.net *.split]
madhatter has quit [*.net *.split]
angelixd has quit [*.net *.split]
phreax has quit [*.net *.split]
qqw_ has quit [*.net *.split]
petems has quit [*.net *.split]
DanKnox has quit [*.net *.split]
xargoon has quit [*.net *.split]
philtr has quit [*.net *.split]
ParanoidSP has quit [*.net *.split]
Zackio has quit [*.net *.split]
jso has quit [*.net *.split]
gregf_ has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
rs0 has quit [*.net *.split]
mattp_ has quit [*.net *.split]
wwalker has quit [*.net *.split]
chridal has quit [*.net *.split]
paul_k has quit [*.net *.split]
error404 has quit [*.net *.split]
deavidsedice has quit [*.net *.split]
zonetti has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
napcae has quit [*.net *.split]
Rydekull has quit [*.net *.split]
Nowaker has quit [*.net *.split]
Tarential has quit [*.net *.split]
z has quit [*.net *.split]
tonini has quit [*.net *.split]
mburns has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
xybre has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
droptone has quit [*.net *.split]
Guest40652 has quit [*.net *.split]
malnek_ has quit [*.net *.split]
mumblerit has quit [*.net *.split]
jericon has quit [*.net *.split]
Guest72920 has quit [*.net *.split]
germanstudent has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
Anarch has quit [*.net *.split]
rotor has quit [*.net *.split]
Scient has quit [*.net *.split]
brisbin has quit [*.net *.split]
Roa has quit [*.net *.split]
preller has quit [*.net *.split]
tchebb has quit [*.net *.split]
slash_nick has quit [*.net *.split]
headius has quit [*.net *.split]
tafryn has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
Spitfire has quit [*.net *.split]
drasch has quit [*.net *.split]
koalallama has quit [*.net *.split]
CaptainKnots has quit [*.net *.split]
pedrocr has quit [*.net *.split]
Kabaka_ has quit [*.net *.split]
qz has quit [*.net *.split]
finges has quit [*.net *.split]
ged has quit [*.net *.split]
pavelz has quit [*.net *.split]
ericwood has quit [*.net *.split]
matrixise has quit [*.net *.split]
bnagy has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
rtl has quit [*.net *.split]
cout has quit [*.net *.split]
__class__ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
qqw has joined #ruby
tonini has joined #ruby
flori has joined #ruby
mburns has joined #ruby
ccooke has joined #ruby
petems has joined #ruby
Soliah has joined #ruby
tommylommykins has joined #ruby
tskogberg has joined #ruby
philtr has joined #ruby
cout_ has joined #ruby
adam12 is now known as adam
bnagy has joined #ruby
LiquidInsect has joined #ruby
Anarch_ has joined #ruby
droptone has joined #ruby
ocher has joined #ruby
patronus has joined #ruby
matti has joined #ruby
preller has joined #ruby
matti has joined #ruby
preller has joined #ruby
matti has quit [Changing host]
preller has quit [Changing host]
madhatter has joined #ruby
wwalker has joined #ruby
asuka has joined #ruby
ptierno has joined #ruby
optiz0r has joined #ruby
drasch has joined #ruby
rawtaz has joined #ruby
TheLarkInn has joined #ruby
ericwood has joined #ruby
mr_red has joined #ruby
slash_nick has joined #ruby
gischy has joined #ruby
rtl has joined #ruby
mattp_ has joined #ruby
Spitfire has joined #ruby
ParanoidSP has joined #ruby
Tarential has joined #ruby
jericon has joined #ruby
TwinkleHood has joined #ruby
Killerkeksdose has joined #ruby
snkcld has joined #ruby
TheNumb has joined #ruby
billiam has joined #ruby
chridal has joined #ruby
Roa has joined #ruby
pedrocr has joined #ruby
wmoxam has joined #ruby
n88 has joined #ruby
connor_goodwolf has joined #ruby
malnek has joined #ruby
billiam has quit [Changing host]
malcolmva has joined #ruby
billiam has joined #ruby
elektronaut has joined #ruby
xybre has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
xybre has joined #ruby
Jelco has joined #ruby
xybre has quit [Changing host]
Nowaker has joined #ruby
z has joined #ruby
RTG` has joined #ruby
DanKnox has joined #ruby
headius has joined #ruby
angelixd has joined #ruby
germanstudent has joined #ruby
finges has joined #ruby
napcae has joined #ruby
rotor has joined #ruby
sn0wb1rd has joined #ruby
Scient has joined #ruby
matrixise has joined #ruby
troyready has joined #ruby
brisbin has joined #ruby
Port3M5[Work] has joined #ruby
chiel has joined #ruby
RealMarc has joined #ruby
sambao21 has joined #ruby
stonecolddevin has joined #ruby
tchebb has joined #ruby
ace_striker has joined #ruby
Rydekull has joined #ruby
cHarNe2 has joined #ruby
gregf_ has joined #ruby
phreax has joined #ruby
markolson has joined #ruby
monsieurp has joined #ruby
ged has joined #ruby
qz has joined #ruby
Hamled has joined #ruby
elaptics`away has joined #ruby
bpgoldsb has joined #ruby
drager has joined #ruby
FDj has joined #ruby
Zhann has joined #ruby
qz has quit [Changing host]
dazeddev has joined #ruby
qz has joined #ruby
wookiehangover has joined #ruby
go|dfish has joined #ruby
paul_k has joined #ruby
adam is now known as Guest29671
thelamest has joined #ruby
ezrios has joined #ruby
thejoecarroll has joined #ruby
yeltzooo has joined #ruby
adsisco has joined #ruby
zonetti has joined #ruby
adsisco has quit [Changing host]
adsisco has joined #ruby
the_mentat has joined #ruby
ace_striker is now known as Guest91413
sirecote has joined #ruby
peterhu has joined #ruby
__class__ has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby
ji0n has joined #ruby
__main__ has joined #ruby
Zackio has joined #ruby
tafryn has joined #ruby
deavid has joined #ruby
vadviktor has joined #ruby
kevinfagan has joined #ruby
eregon has joined #ruby
Davey has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
kennym has joined #ruby
<hfp> Hey guys, I am doing the katas on codewars and most of the time I write a method to do something that could have been done with a built in method (like #rjust, block_given? etc). Is there a way to avoid that beforehand or is it a matter of getting fooled once or twice and then remember?
Sou|cutter has joined #ruby
mumblerit has joined #ruby
mumblerit is now known as Guest60483
aef has joined #ruby
<shevy> still busy with the katas
<shevy> hfp I think if you write a lot of ruby code, most of the time you know these things
<shevy> you could try to look at documentation for class String, Array, and Hash, and read the index list twice
sindork has joined #ruby
<jhass> hfp: reading through core once helps to get a vague idea on what could be there. everything else is just experience
<shevy> until your brain remembers passively
Kabaka_ has joined #ruby
<shevy> the moment you apply it to real problems, you will quickly remember them again
mahlon has joined #ruby
ItSANgo has joined #ruby
ItSANgo_ has joined #ruby
blackjid has joined #ruby
<shevy> hfp only since about 2 years do I use .ljust and .rjust myself :)
xargoon has joined #ruby
<shevy> before that I always used %
jso has joined #ruby
ItSANgo_ has quit [Client Quit]
emdub has joined #ruby
skaflem has quit [Quit: Leaving]
icedp has joined #ruby
icedp has quit [Changing host]
icedp has joined #ruby
<hfp> shevy: I wrote a very winded up method to define the colspan, then count the length of the string and pad it with spaces... Only to discover that rjust existed
<shevy> yeah
Spleeze has joined #ruby
camila has joined #ruby
neo_ has quit [Quit: Leaving]
<shevy> I usually have to write a class that takes care of help menu section for .rb files
pavelz has joined #ruby
<hfp> that's the thing with ruby, it has so many methods that you just don't expect there is a builtin method for doing such and such as you have to diy in other languages
<shevy> so that it gets padded properly, depending how long the content of the line(s) is/are
jzigmund has joined #ruby
<shevy> nono
rs0 has joined #ruby
<shevy> hfp class String is the biggie, really
<shevy> class Array and Hash too
bradhe has joined #ruby
<shevy> that was it for like 90%
ponbiki has joined #ruby
sparrovv has quit [Remote host closed the connection]
mist__ has joined #ruby
<jhass> I'd include Enumerable
<shevy> block_given? is associated with yield and blocks, which is kinda specialized already
ponbiki is now known as Guest97287
<shevy> then there is lambda
<shevy> which nobody uses
<hfp> haha
<shevy> only for loops are worse
adamholt has joined #ruby
<shevy> because some use them
<hfp> lambda is to assign a method to a variable, right?
<jhass> hfp: you need to know that shevy basically lives in his own world
_justin has joined #ruby
<shevy> hfp I thought the whole point of lambda is to create anonymous methods
<jhass> hfp: no, lamdba converts the passed block to a Proc object that responds with true to #lambda?
<shevy> hfp isn't that super useful!!! ^^^
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
nkts has joined #ruby
<shevy> I recommend to store all lambdas in @@ vars
<shevy> the usefulness will explode
nuba has joined #ruby
yfeldblum has joined #ruby
<hfp> why make a lambda when you can def a method? Is there an advantage?
nkts is now known as Guest96994
<jhass> the usecases are largely orthogonal
<jhass> a lambda is closer to a block than to a method
bw__ has joined #ruby
suffice_ has joined #ruby
Nahra_ has joined #ruby
m_3_ has joined #ruby
sparrovv has joined #ruby
Ebsy has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
<hfp> I guess I didn't grasp all the subtleties of blocks yet
chrisseaton has joined #ruby
SCommette has joined #ruby
<shevy> hfp this is exactly the question I always have to ask myself as well
e^0 has joined #ruby
the_hack has joined #ruby
<jhass> if you ever come up with a method where you'd like to pass two blocks, the solution could be to pass two procs (of which lambda is a special kind) or a proc and a block
<shevy> why not just one block? I can pass in a hash as well and could store or assign methods/objects in that hash
suffice_ has quit [Client Quit]
<shevy> hfp a block gives you flexibility for every method
Nahra_ has quit [Client Quit]
<shevy> hfp you don't have to use a block but you can, so you can pass in extra arguments to any method in additional to normal arguments
<shevy> *in addition
yfeldblum has quit [Ping timeout: 265 seconds]
Nahra_ has joined #ruby
koalallama has joined #ruby
gizmore has quit [Excess Flood]
AlexRussia has quit [Remote host closed the connection]
<shevy> hfp here is a good question to have:
gizmore has joined #ruby
zarul has quit [Excess Flood]
<shevy> hfp when to use a symbol and when to use a string in your code/methods?
Alina-malina has quit [Max SendQ exceeded]
cina has quit [Write error: Broken pipe]
suffice has quit [Write error: Broken pipe]
spacebug has quit [Write error: Broken pipe]
m_3 has quit [Write error: Broken pipe]
Nahra has quit [Write error: Broken pipe]
bw_ has quit [Write error: Broken pipe]
camilasan has quit [Write error: Broken pipe]
Squarepy has quit [Excess Flood]
camt has quit [Remote host closed the connection]
Patteh has quit [Remote host closed the connection]
zarul has joined #ruby
TigerWolf has quit [Excess Flood]
kevinykchan has quit [Excess Flood]
Alina-malina has joined #ruby
Squarepy has joined #ruby
sigurding has quit [Ping timeout: 252 seconds]
suffice has joined #ruby
cina has joined #ruby
spacebug has joined #ruby
<shevy> hmm am I still connected...
Shidash has joined #ruby
sigurding has joined #ruby
timonv has joined #ruby
_justin has quit [Quit: _justin]
mikepack has joined #ruby
inkblots has joined #ruby
AlexRussia has joined #ruby
<banister> jhass lambdas are easier to do functional-style programming with
Gnubie_ has joined #ruby
error404 has joined #ruby
Patteh has joined #ruby
<banister> you can curry them, and it's trivial to provide sugar to compose them, etc
camt has joined #ruby
AlexRussia has quit [Client Quit]
havenwood has joined #ruby
_justin has joined #ruby
AlexRussia has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
sambao21_ has joined #ruby
jhass is now known as jhass|off
makara has quit [Quit: Leaving]
sigurding has quit [Client Quit]
mikepack has quit [Ping timeout: 252 seconds]
<hfp> shevy: symbols use less memory because they don't create a new object so they are preferable when it is an object you are going to reuse a lot like a column name
r0nin has joined #ruby
_justin has quit [Ping timeout: 240 seconds]
<hfp> amirite?
sigurding has joined #ruby
_justin has joined #ruby
linojon has joined #ruby
SCommette has quit [Quit: SCommette]
YamakasY has quit [Remote host closed the connection]
yubrew has joined #ruby
sambao21_ has quit [Ping timeout: 245 seconds]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<shevy> hfp I thought they use more memory because they are never garbage collected
kennym has quit [Quit: Leaving.]
<apeiros> shevy: Array.new(20) { "hello" } uses more memory than Array.new(20) { :hello }
<apeiros> but yes, once both arrays are GC'ed, the latter will use more memory (since :hello won't be collected)
yubrew has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
lw has joined #ruby
andrewhl has joined #ruby
andrewhl has quit [Client Quit]
jhass|off is now known as jhass
sigurding has quit [Quit: sigurding]
danshultz has joined #ruby
havenwood has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
dzhulk has quit [Quit: Leaving.]
rootshift has joined #ruby
blom_ has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy> hmm what was the main convention for versions in a class or module
<shevy> was it VERSION or Version ?
vlad_starkov has quit [Remote host closed the connection]
Vovko has joined #ruby
Vovko has quit [Client Quit]
<havenwood> shevy: VERSION
bbloom has joined #ruby
rvraghav93_ has joined #ruby
<shevy> \o/
rvraghav93 has quit [Ping timeout: 265 seconds]
kennym has joined #ruby
dzhulk has joined #ruby
Krajsnick has quit [Quit: Leaving...]
blom_ has quit [Ping timeout: 252 seconds]
linduxed has quit [Quit: WeeChat 0.4.2]
coderxin has joined #ruby
einarj has joined #ruby
userx has quit [Ping timeout: 245 seconds]
<hfp> what do you all use Ruby for? Is it in conjunction with Rails or something else?
caustic has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
_justin has quit [Quit: _justin]
jlast has joined #ruby
yfeldblum has joined #ruby
sski has joined #ruby
timonv has quit [Remote host closed the connection]
Asher has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
linduxed has joined #ruby
kennym has quit [Quit: Leaving.]
prakash1 has joined #ruby
fantazo has joined #ruby
<shevy> hfp for everything
yfeldblum has quit [Ping timeout: 265 seconds]
<shevy> whenever there is a task, I throw ruby at it
SCommette has joined #ruby
lkba has joined #ruby
timonv has joined #ruby
bradhe has joined #ruby
<shevy> hfp for example, right now I work on a time-table / class-scheduler, so that ruby will tell me what is upcoming in the next n days, and perhaps generate pdf/xls from that, first on the commandline, once that works perhaps through some web interface as well
chrisseaton has quit [Remote host closed the connection]
Solnse has joined #ruby
chrisseaton has joined #ruby
kennym has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<shevy> hfp if you don't have a use case, you could start to write down things that you would like to have/do, store them in a file. eventually you'll add more and more to that until you will never ever again find a lack of things you want to do
<shevy> hfp it may also help if you make a gem
sski has quit []
<banister> shevy i want to fight you so bad
carraroj has joined #ruby
sski has joined #ruby
cspeer has joined #ruby
<hfp> banister: why do you want to fight shevy?
fantazo has quit [Ping timeout: 253 seconds]
prakash1 has left #ruby [#ruby]
vlad_starkov has joined #ruby
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xbob has quit []
lw has quit [Quit: s]
ikaros has quit [Quit: Ex-Chat]
cspeer is now known as neon
neon is now known as cspeer
sambao21 has quit [Quit: Goodbye]
digifiv5e has quit [Ping timeout: 246 seconds]
IceDragon has joined #ruby
<banister> hfp cos im an internet bully :P
kennym has quit [Quit: Leaving.]
sheepman has quit [Ping timeout: 240 seconds]
inkblots has left #ruby [#ruby]
Doppp has joined #ruby
sambao21 has joined #ruby
crystal77 has joined #ruby
yubrew has joined #ruby
sski has quit [Remote host closed the connection]
saarinen has joined #ruby
sski has joined #ruby
User458764 has joined #ruby
petey has joined #ruby
inkblots has joined #ruby
dzhulk1 has joined #ruby
io_syl has joined #ruby
dzhulk has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
DouweM has quit [Read error: Operation timed out]
sski has quit [Ping timeout: 246 seconds]
vertroa has joined #ruby
patricknegri has joined #ruby
patricknegri has quit [Max SendQ exceeded]
linduxed has quit [Quit: WeeChat 0.4.2]
petey has quit [Ping timeout: 252 seconds]
cspeer has quit [Quit: Textual IRC Client: www.textualapp.com]
rvraghav93 has joined #ruby
_sambao21 has joined #ruby
rvraghav93_ has quit [Ping timeout: 245 seconds]
abdulsattar has joined #ruby
kennym has joined #ruby
caustic has joined #ruby
danshultz has joined #ruby
browndawg has quit [Quit: Leaving.]
jjbohn has quit [Quit: Leaving...]
sambao21 has quit [Quit: Quitting]
teddyp1cker has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
jcarouth has joined #ruby
cina has quit [Read error: No route to host]
cina has joined #ruby
blom_ has joined #ruby
kennym has quit [Quit: Leaving.]
petey has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
YamakasY has joined #ruby
rjhunter has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
Zesty has joined #ruby
momomomomo has joined #ruby
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 246 seconds]
doodlehaus has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 240 seconds]
pfg has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
blom_ has quit [Ping timeout: 240 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest93085
the_hack has joined #ruby
Es0teric has joined #ruby
rvraghav93 has joined #ruby
chipotle has joined #ruby
rvraghav93_ has quit [Ping timeout: 246 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
IceDragon has joined #ruby
bradhe has joined #ruby
predator117 has quit [Ping timeout: 265 seconds]
predator117 has joined #ruby
ayaz has joined #ruby
ayaz has quit [Client Quit]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
bradhe has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
arietis has joined #ruby
yekta has joined #ruby
cina has quit [Read error: No route to host]
cina has joined #ruby
lw has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
mikepack has joined #ruby
mikemar10 has joined #ruby
mikemar10 has quit [Max SendQ exceeded]
lkba has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
abdulsattar has joined #ruby
naw_ has joined #ruby
petey has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 246 seconds]
petey has joined #ruby
confounds has joined #ruby
tjr9898 has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
YamakasY_ has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
relix has joined #ruby
relix has quit [Client Quit]
Shidash has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
Frank13760 has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
petey has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
hobodave has joined #ruby
funktor has joined #ruby
hobodave has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
weaksauce has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
yekta has quit [Quit: yekta]
hobodave has joined #ruby
kennym has quit [Quit: Leaving.]
yekta has joined #ruby
hobodave has quit [Client Quit]
hobodave has joined #ruby
chipotle has quit [Quit: cya]
browndawg has joined #ruby
sailias has quit [Read error: Operation timed out]
maroloccio has joined #ruby
mrgt has joined #ruby
chipotle has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
fijimunkii has joined #ruby
hobodave has quit [Ping timeout: 252 seconds]
agjacome has joined #ruby
chris_thomson has joined #ruby
arubin has joined #ruby
r0nin has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Shidash1 has joined #ruby
Shidash has quit [Quit: Leaving.]
r0nin has joined #ruby
_fre_nod_ir_ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
yekta has quit [Quit: yekta]
YamakasY_ has quit [Remote host closed the connection]
Jrz has joined #ruby
lkba has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Soda has quit [Remote host closed the connection]
montyboy has joined #ruby
_fre_nod_ir_ has quit [Quit: Ex-Chat]
<shevy> where is maasha
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j416 has joined #ruby
<j416> o/ this is probably a n00b error, what am I missing? http://dl.dropboxusercontent.com/u/3207594/48h/bundler.txt
timonv has joined #ruby
<jhass> there's no gem yaml
afreidah has quit [Ping timeout: 265 seconds]
<jhass> but there's a standard library called yaml
<j416> I thought bundler was supposed to install that automatically?
<j416> oh..
teddyp1cker has joined #ruby
<j416> got it :)
cj3kim has joined #ruby
blom_ has joined #ruby
<j416> so if I actually specify a gem that exists, it'll work better then :P
<j416> thanks
danshultz has quit [Remote host closed the connection]
blackmesa has joined #ruby
danshultz has joined #ruby
User458764 is now known as User458764_NotHe
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rjhunter has joined #ruby
fieldfirst has joined #ruby
nateberkopec has joined #ruby
Avahey_ has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
no6 has joined #ruby
Frank13760 has quit [Remote host closed the connection]
Nahra_ has quit [Quit: leaving]
lmmx has joined #ruby
zenojis has joined #ruby
lmmx has left #ruby [#ruby]
kr1shnak has quit [Quit: Computer says ZZZzzz…]
bradhe has joined #ruby
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rjhunter has quit [Ping timeout: 265 seconds]
blom_ has quit [Ping timeout: 245 seconds]
paul_k has quit [Quit: Leaving]
paul_k has joined #ruby
Shidash1 has quit [Ping timeout: 246 seconds]
Guest60483 is now known as mumblerit
bradhe has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Nahra has joined #ruby
sski has joined #ruby
Shidash has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Xeago has joined #ruby
momomomomo has quit [Quit: momomomomo]
einarj has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 265 seconds]
cbreeze has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
sindork has quit [Changing host]
sindork has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
timonv has joined #ruby
duggiefresh has joined #ruby
blackmes1 has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
rahult has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
Czupa has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
sparrovv has quit [Remote host closed the connection]
lxsameer has quit [Read error: Connection reset by peer]
rahult has quit [Ping timeout: 265 seconds]
ezelohar has joined #ruby
sski has quit [Remote host closed the connection]
bahar has joined #ruby
r0nin has quit [Remote host closed the connection]
havenwood has joined #ruby
jellosea has joined #ruby
relix has joined #ruby
bbloom has quit [Ping timeout: 245 seconds]
ezelohar has quit [Ping timeout: 246 seconds]
doodlehaus has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
YamakasY has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
cina has quit [Ping timeout: 240 seconds]
jellosea has quit [Quit: jellosea]
YamakasY_ has joined #ruby
inkblots has quit [Ping timeout: 265 seconds]
YamakasY has quit [Ping timeout: 246 seconds]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
timonv has quit [Remote host closed the connection]
CaptainJet has joined #ruby
cina has joined #ruby
cina has quit [Remote host closed the connection]
SonicX has joined #ruby
YamakasY_ has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
sparrovv has joined #ruby
ace_striker has quit [Quit: Page closed]
crystal77 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
Aquilo has joined #ruby
m8 has quit [Quit: Sto andando via]
YamakasY has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
shaileshg has joined #ruby
cina has joined #ruby
YamakasY has quit [Remote host closed the connection]
ezelohar has joined #ruby
duggiefresh has quit [Quit: duggiefresh]
bahar has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
blom_ has joined #ruby
bahar has joined #ruby
george2 has quit [Read error: Operation timed out]
george2 has joined #ruby
bradhe has joined #ruby
rabeldable has joined #ruby
Nahra has quit [Quit: leaving]
Aquilo has quit []
codezomb has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
amclain has joined #ruby
wallerdev has joined #ruby
razibog has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 252 seconds]
blom_ has quit [Ping timeout: 246 seconds]
the_hack has quit [Quit: Leaving...]
coderxin has joined #ruby
confounds has quit []
senayar_ has joined #ruby
mikepack has joined #ruby
Hobogrammer has joined #ruby
sparrovv has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 240 seconds]
coderxin has quit [Ping timeout: 240 seconds]
Form_Feed has joined #ruby
sambao21 has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
fieldfirst has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 245 seconds]
cina has quit [Ping timeout: 252 seconds]
YamakasY has joined #ruby
crystal77 has joined #ruby
cina has joined #ruby
User458764 has joined #ruby
linojon has joined #ruby
yubrew has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
endash_ has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
Jrz has quit [Quit: Computer has gone to sleep.]
bahar has joined #ruby
Xeago has joined #ruby
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
petey has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
browndawg has left #ruby [#ruby]
george2|chakra has joined #ruby
mercwithamouth has joined #ruby
george2 has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
YamakasY has quit [Quit: The best revenge is massive success...]
crystal77 has joined #ruby
crystal77 has quit [Client Quit]
<droptone> Question: I'm working with rest-client and writing error-handling, which works well using a case statement for response.code, but I was wondering, using a case statement, is there any way to easily specify a range of values? For example, in this API, per the documentation, it will respond with a 2xx code if the operation was successful, as expected, a 4xx code if there was a parameter error, and a 5xx code if there was an internal server error
<droptone> How can I use case response.code, and write the equivalent of "when 2xx", or "when >= 200 && < 300"? can you use such operators in a case / when statement? and if so, is there a cleaner way to write that?
petey has quit [Ping timeout: 245 seconds]
<droptone> ahh, never mind, I see, you can use 200..299
<droptone> disregard, thank you
sambao21 has quit [Quit: Computer has gone to sleep.]
sparrovv has joined #ruby
chipotle has quit [Quit: cya]
kaspergrubbe has quit [Ping timeout: 245 seconds]
cina has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
apple has joined #ruby
cina has joined #ruby
apple is now known as Guest1276
jle` has joined #ruby
Guest1276 has left #ruby [#ruby]
Guest1276 has joined #ruby
fieldfirst has joined #ruby
druiddesign has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.1]
Xeago has quit [Remote host closed the connection]
einarj has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
druiddesign is now known as spicerack
tjr9898 has joined #ruby
<Mrdarknezz> droptone: I don't think 299 is a valid status code
havenwood has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
<certainty> Mrdarknezz: it is currently not used but it constitutes a valid status for a successful operation
davedev24 has joined #ruby
tjr9898 has quit [Ping timeout: 246 seconds]
havenwood has quit [Read error: Connection reset by peer]
<Mrdarknezz> certainty: According to rfc2616 there is only 200-206
havenwood has joined #ruby
coderxin has joined #ruby
bradhe has joined #ruby
sdouglas has joined #ruby
benzrf|offline is now known as benzrf
Cache_Money has joined #ruby
mirage335 has joined #ruby
<mirage335> Seems bundle always chooses libv8-3.16.14.3-x86_64-linux, regardless of ARCHFLAGS or the 32bit chroot userspace, which is totally wrong.
<certainty> Mrdarknezz: many APIs that build on HTTP use custom status codes. Webdav for example. They however retain the general semantics like 2xx being successful, 4xx being client errors etc.
<mirage335> Any ideas how to force the non-x64 version of libv8 among other packages?
Doppp has joined #ruby
blom_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
yekta has joined #ruby
sepp2k has quit [Read error: Operation timed out]
<Mrdarknezz> certainty: WebDav is rfc 4918
no0code has joined #ruby
pu22l3r has joined #ruby
<jhass> mirage335: is bundle platform displaying the right thing?
coderhs has joined #ruby
momigi has joined #ruby
invinceable has joined #ruby
<certainty> Mrdarknezz: ok, so?
petey has joined #ruby
<Mrdarknezz> certainty: you don't just add random status codes
coderhs has quit [Client Quit]
Nahra has quit [Quit: leaving]
<certainty> Mrdarknezz: he said that he writes a client for a custom api which explicitely defines 2xx to be successful
IcyDragon has joined #ruby
rhys has quit [Ping timeout: 255 seconds]
no0code has quit [Client Quit]
IceDragon has quit [Ping timeout: 245 seconds]
rhys has joined #ruby
lewellyn has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> i'm all for proper input validation according to a given specification though, that's why it totally depends on the specific needs
<Mrdarknezz> Why would you possibly need 100 status codes for success?
wallerdev has quit [Quit: wallerdev]
rjhunter has joined #ruby
<Mrdarknezz> That sounds like a design error to me
momigi has quit [Ping timeout: 240 seconds]
Doppp has quit [Ping timeout: 253 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
<certainty> it probably is. I can imagine someone sitting down and saying, well what are we going to represent? Jez let's take all to be sure
havenn has joined #ruby
blom_ has quit [Ping timeout: 253 seconds]
alex88 has quit [Quit: Leaving...]
<Mrdarknezz> I have just seen so many bad api
<Mrdarknezz> :s
<Mrdarknezz> That I have to work 10 hours extra because they had shitty design
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<certainty> 207 - 299 indicate how successful the opration was ... 299 is best of the best most successful with sugar on top
<Mrdarknezz> lol
rjhunter has quit [Ping timeout: 252 seconds]
<mirage335> jhass: Hmm, no. Seems not to be.
Fire-Dragon-DoL has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
<Mrdarknezz> Yeah you turn abit cynical after a while
<mirage335> That's about the most interesting thing I've seen all day. :|
endash_ has quit [Quit: endash_]
alexju has joined #ruby
<benzrf> hello ruby people
<benzrf> how do u feel about saphires
<benzrf> *sapphires
alexju has quit [Remote host closed the connection]
<mirage335> jhass: Any idea how to force a different platform like x86, instead of x86_64-linux ?
<certainty> Mrdarknezz: for good reasons. It's not only web apis. You can see sloppiness in many places which may lead to obscure errors.
sski has joined #ruby
<certainty> Mrdarknezz: this one is interesting in that respect: http://www.more-magic.net/posts/thoughts-on-substring.html
invinceable has quit [Ping timeout: 245 seconds]
hiall has quit [Quit: hiall]
<jhass> mirage335: well, there's no easy one. Bundler is doing this in their testsuite https://github.com/bundler/bundler/blob/master/spec/support/hax.rb#L3
sepp2k has joined #ruby
yfeldblum has joined #ruby
schtinky has joined #ruby
schtinky has left #ruby [#ruby]
nisstyre_ has joined #ruby
<mirage335> hmm
<certainty> benzrf: i'm ignorant about them :p
<mirage335> TBH, I am not a ruby expert, so I am not sure exactly what that is doing.
pu22l3r has quit []
ctp has joined #ruby
<havenn> benzrf: Ruby is my fav Sapphire, but Padparadscha is nice too.
sski has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
snuffeluffegus has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
<mirage335> jhass: How is it determining that the machine is x64? Reading /proc/cpuinfo?
<jhass> reading RbConfig::CONFIG['arch']
schtinky has joined #ruby
<mirage335> And where/how is that set?
yfeldblum has quit [Ping timeout: 240 seconds]
<Hanmac1> mirage335: it was set while building
Hanmac1 is now known as Hanmac
<mirage335> Ahh, so I need to reinstall ruby.
<Hanmac> why?
rippa has joined #ruby
<schtinky> hi everyone. brand new to ruby and rails. have some questions: when I need a new library, do I have to yum install rubygem-newlibrary or just gem install newlibrary or both?
<mirage335> Hanmac: You mean while building ruby, right?
<schtinky> if one, which is better? And how does ruby know where to get libraries with "gem install newlibrary"?
<havenn> Hanmac: One night elves came and converted the 32 bit system to 64 bit. Damned elves!
<jhass> schtinky: this is largely preference, many applications today use bundler to manage their gem dependencies. The central repository for gems is http://rubygems.org and that's what gem and bundler call
<havenn> schtinky: `yum` is the system package manager and `gem` is Ruby's package manager
<benzrf> wait i thought Gemfile was a bundler thing
<benzrf> is it not
<mirage335> jhass: Oh wait. If this was set at compile time, doesn't that mean the debian developers screwed up?
<jhass> benzrf: rubygems recently added support for reading a Gemfile
<schtinky> are these centrally-linked gems verified for stability and security?
<havenn> benzrf: RubyGems now supports the Gemfile, but yeah it started as a bundler convention.
<havenn> benzrf: `gem i -g Gemfile` or `gem install --file Gemfile`
<benzrf> man there really needs to be a generic package management api
<mirage335> Hmm, no, I compiled it myself actually.
<benzrf> so that gems can hook into packages n stuff
<jhass> mirage335: debian screwing up ruby stuff is a common pattern, but since I didn't really understand what you're trying I can't answer that
<havenn> schtinky: To install system packages, use yum. To install Ruby packages, use gem.
einarj has quit [Remote host closed the connection]
<schtinky> ugh. I'm all confused. I installed ruby with yum and a gazillion packages along with it, but i've also been following instructions to use gem install whatever, too
<schtinky> which makes me feel like my whole setup is jacked
duggiefresh has joined #ruby
<havenn> schtinky: Ruby ships with RubyGems (which provides the `gem` command).
<mirage335> jhass: Ruby was installed by compiling ruby-2.0.0-p247 under a debian 32bit userspace ChRoot, which is running under a 64-bit host Gentoo userspace with a 64-bit kernel.
dx7 has joined #ruby
<schtinky> so let's say I need a new library to run a very basic ruby script, say, typhoeus
<havenn> schtinky: gem install typhoeus
<schtinky> my first step is to "gem install typhoeus"
<schtinky> ok good
<havenn> schtinky: install gems with RubyGems
<schtinky> next step is to edit gemfile?
<schtinky> gem 'typhoeus'?
<jhass> no
<jhass> you don't have to use bundler (and thus Gemfiles)
<jhass> but if you want to it's enough to add that line to it and run bundle
<benzrf> wot does typhoeus d
<benzrf> o
<schtinky> ruby wrapper for curl
<mirage335> jhass: ?
<havenn> schtinky: You can just install gems with `gem install ...` and be done with it. If your project has multiple gems, and you need to resolve dependencies, a Gemfile.
<jhass> benzrf: ask curl to do a gazillion of requests
<jhass> mirage335: ?
sparrovv has quit [Remote host closed the connection]
<mirage335> nvm
<Hanmac> mirage335: any reason why you want 32bit userspace?
<schtinky> so I'm in a rails environment, to get typhoeus, my best bet is to add gem "typhoeus" to my app's Gemfile, run bundle install. correct?
snuffeluffegus has quit [Quit: Leaving]
andrewlio has quit [Quit: Leaving.]
<havenn> mirage335: Build 64-bit Ruby for a 64-bit system.
wallerdev has joined #ruby
<jhass> schtinky: yes. as a little shortcut bundle install is the default action for bundle without any arguments
<mirage335> hackeron: Been there, done that. I need this ChRoot to run on a 32 bit WYSE terminal.
<schtinky> how can I check to see if it's really installed?
<schtinky> nvm
<schtinky> bundle
<jhass> schtinky: also gem list
* mirage335 wonders if ./configure --with-arch=i386 will solve things
<schtinky> next question... I read on stackexchange where you don't need to "require 'typhoeus'" in your file because it should be available in rails now that the Gemfile knows about it
hiall has joined #ruby
<schtinky> but I'm getting Unrecognized constant errors
centrx has joined #ruby
<schtinky> i'm a java guy... is require 'typhoeus" equivalent to "import java.util.*" or some such?
<benzrf> schtinky: in ruby, there is 1 top-level object that all files run inside of
<benzrf> its pretty dumb
<jhass> not quite since require works on a file level
<havenn> benzrf: different != dumb
kobain has joined #ruby
<benzrf> if you define a method or constant in one file, every other file will have it at the top level too
lenswipe has joined #ruby
<benzrf> they all run in a shared namespace
<lenswipe> hey guys
<benzrf> as mentioned: dumb
bradhe has joined #ruby
<benzrf> sup lenswipe
<havenn> lenswipe: hi
<lenswipe> having compass issues
<lenswipe> wonder if someone can help
<lenswipe> it's not specifically ruby but it's compass so I thought you guys might be able to help
<lenswipe> I wrote a grunt file to compile my SASS/compass
<centrx> In benzrf, there is one top-level object that all thoughts run inside of.
<havenn> benzrf: what language does it better? just about choices. i like the Ruby way.
<schtinky> so my little script I'm running on the command line inside my rails app folder... should it already know about Typhoeus?
<schtinky> or do I need to tell it explicity?
<schtinky> explicitly*?
<lenswipe> it dumped this in the resulting CSS file
<havenn> schtinky: if you `require` it, it "knows"
<lenswipe> i have compass intsalled but compass can't find it
<lenswipe> or something
<havenn> schtinky: you could alternatively autoload, but requiring is typical
<lenswipe> anyone know what's up?
<havenn> lenswipe: hard to say, have more than one Ruby installed?
<lenswipe> nobody is in #grunt, #sailsjs and #compass seems to know
<schtinky> ok so I've done that, and some examples online show setting up a class called Remote like this:
<lenswipe> havenn, not as far as i know
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
<benzrf> havenn: python does it way better
<havenn> lenswipe: double check that `gem env` and `which ruby` match your expectations
<schtinky> class Remote \n include Typhoeus \n end --- how is that correct? I have to require AND include?
<benzrf> havenn: importing a file introduces a var with its name into your namespace
<benzrf> import foo is sugar for foo = __import__('foo')
<jhass> schtinky: that's odd. I've used typhoeus and never had to do something like this
<benzrf> havenn: said var is an object whose attrs correspond to top-level vars in the file you impoted
<benzrf> *imported
<jhass> schtinky: include is one of Rubys forms of inheritance
AlexRussia has quit [Ping timeout: 240 seconds]
<benzrf> havenn: python's functions and classes are just variables containing functions and classes
<benzrf> so it all works
teddyp1cker has joined #ruby
<jhass> schtinky: I'd say just ignore the include
<jhass> schtinky: or get a better how to
AlexRussia has joined #ruby
<benzrf> tbh python has my favorite import system ever
<benzrf> haskell's works mostly the same (in usage if not in semantics) except that it dumps every var into your namespace by default, while python makes it all qualified by default
Es0teric has joined #ruby
<benzrf> but either one lets you do the other thing too
<lenswipe> havenn, just to check - I can just "import compass" in my scss, right? I don't actually need compass files in that directory - do i?
<benzrf> schtinky: include is a method on classes that takes a module as its argument
<arubin> benzrf: Python has some strange system which requires some file to exist at every level of a hierarchy though.
<benzrf> arubin: wha?
<arubin> benzrf: I cannot remember the details.
<benzrf> schtinky: it puts all of the methods and constants in the module into the class
<benzrf> schtinky: so 'include Typhoeus' will dump all of the methods in Typhoeus into the current __class__
<benzrf> *class
<jhass> and constants too
nanoyak has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<schtinky> So my script is this, in its entirety: require 'typhoeus' \n Typhoeus.get("http://www.google.com") which produces the following error: http://pastebin.com/Gsv9cDpU
<centrx> features
<benzrf> schtinky: whereas require 'typhoeus' puts Typhoeus into your namespace in the first place
<jhass> benzrf: schtinky don't think about it that way. require 'typhoeus' loads a file that defines the Typhoeus constant
<schtinky> ok benzrf, I think I get that. Thanks. Let me try it within a class and see what happens.
<benzrf> schtinky: code at the top level works more or less as though it were in a 'class Object' block anyway
nanoyak has quit [Client Quit]
lenswipe has left #ruby ["Leaving"]
<benzrf> schtinky: so you shouldnt have to open a class to use include
<arubin> benzrf: __init__.py
jetblack has quit [Ping timeout: 246 seconds]
<arubin> That is what I was thinking of.
<benzrf> arubin: oh right
nanoyak has joined #ruby
<benzrf> arubin: thats just for packages, not modules
dgfdgf has quit [Ping timeout: 246 seconds]
<benzrf> basically if you want a directory to act as a module of modules it needs __init__.py
soulcake has quit [Ping timeout: 240 seconds]
<benzrf> but any individual file works as a module
<benzrf> also py3 has a thing called namespace pkgs
havenn has quit [Remote host closed the connection]
<schtinky> same error. It's weird the error looks like some sort of json parsing issue... anybody else getting that?
<benzrf> which doesnt need that file
<jhass> schtinky: if you want help you need to share the specific error message and the code that produces it. Preferably as a Gist
sambao21 has joined #ruby
havenwood has joined #ruby
<schtinky> already did above
`MArceLL` has joined #ruby
hiall has quit [Quit: hiall]
senayar_ has quit [Remote host closed the connection]
<benzrf> ok you know what i want.
<benzrf> i want something like gist that works on dir trees
senayar has joined #ruby
<benzrf> i want to be able to share small projects w/out making a whole repo
<benzrf> but web-browsable, like a repo
<jhass> benzrf: you can a actually git clone a gist and push back to it
<benzrf> yeah, but:
<benzrf> 1. it doesnt support subdirs
<benzrf> 2. it requires making a blank gist and then copying the url and then git init'ing the local dir
<benzrf> which is awkward
<jhass> schtinky: feels like something odd in your environment, mind sharing the output of gem env?
duggiefresh has quit [Ping timeout: 246 seconds]
alexju has joined #ruby
maletor has joined #ruby
<schtinky> my gem env http://pastebin.com/mkpCNx7v
Mrdarknezz has quit [Ping timeout: 246 seconds]
alexju has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 246 seconds]
no6 has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
<jhass> hm, not sure how you managed to have no ABI versions in your paths, do you have multiple rubys installed or did you upgrade your ruby at some point?
dik_dak has joined #ruby
funktor has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 265 seconds]
<schtinky> my ruby yum packages http://pastebin.com/yewPh9M3
funktor has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
linduxed has joined #ruby
bradhe has quit [Remote host closed the connection]
<schtinky> you know how it is... when your'e first learning something new, you end up following whatever advice you're reading and only later find out it was wrong, outdated or contradictory
<shevy> depends
<jhass> hm
<jhass> what does locale say?
maletor has quit [Ping timeout: 246 seconds]
<schtinky> what is locale?
j416 has left #ruby ["o/"]
<jhass> `locale` run it
<schtinky> everything is "en_US.UTF-8"
mehlah has joined #ruby
<shevy> schtinky a big problem is when distributions change ruby defaults
<schtinky> except LC_ALL which is blank
<schtinky> should I get rid of all my system packages and try to do it from scratch?
<jhass> anything different after you do export LC_ALL="en_US.UTF-8" ?
<schtinky> same json-y errors
yekta has quit [Quit: yekta]
<schtinky> ugh... I hate constantly learning new techs, apis, languages, consoles, databases, etc... seems like I can't ever work on my actual app
funktor has quit [Read error: Connection reset by peer]
funktor_ has joined #ruby
<shevy> schtinky yeah
<shevy> a lot of things one has to know
Czupa has quit [Quit: Wychodzi]
<schtinky> I feel like we're approaching the level like how car mechanics used to be able to work on a car... but now each car is too specialized -- the equipment too opaque
<jhass> schtinky: what about bundle exec ruby yourtestfile.rb
<schtinky> ooh that seemed better
<schtinky> still an error, but no json stuff
rjhunter has joined #ruby
<schtinky> ok no error now, need to figure out how to print the results
<schtinky> what did bundle exec do for me?
<shevy> schtinky well, it's partially your fault as well - you rely on these tools, like your system ruby and bundler
<jhass> benzrf: took me some time to dig it out but I actually have a gist with directories in it
crystal77 has joined #ruby
<benzrf> wut
<schtinky> yeah but that's like saying it's ford's fault for relying on fuel injection isntead of a carborater
<benzrf> how
Guest1276 has quit [Remote host closed the connection]
<schtinky> you have to use what's better, but it becomes more and more complex as you add layers
keen______ has joined #ruby
apple has joined #ruby
<jhass> schtinky: it basically does require 'bundler/setup' for you. that is it's preparing the $LOAD_PATH on which require works to only include entries for gems in your Gemfile.lock
apple is now known as Guest94842
<shevy> schtinky you can use what is simpler too
maletor has joined #ruby
<jhass> benzrf: iirc just created a gist, cloned it, comitted directories and pushed it
Guest29671 is now known as adam12
<schtinky> not if you hope to remain relevant
decoponio has quit [Quit: Leaving...]
keen_____ has quit [Ping timeout: 265 seconds]
<schtinky> I'm not coding in cobol, for instance
blom_ has joined #ruby
mikepack has joined #ruby
prc has joined #ruby
no6 has joined #ruby
endash_ has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
<schtinky> btw, what editors do you guys use? I've always been an eclipse guy. Coding in vim seems... um... yeah.
rjhunter has quit [Ping timeout: 265 seconds]
<shevy> I consider myself still relevant without bundler ;)
<shevy> I use bluefish 1.0.7
<centrx> vim
<schtinky> ugh I only have a vague sense of what bundler even is
<jhass> schtinky: no editor war please :( :P
<schtinky> I'm just asking opinions
<schtinky> I need to pick one
<shevy> In ruby the editor should not be too important though
<jhass> schtinky: try a few, pick what you like
chipotle has joined #ruby
<jhass> the question is religious in my experience
shaileshg has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
<shevy> the question is perfectly fine
maletor has quit [Ping timeout: 252 seconds]
<benzrf> schtinky: use vim
<benzrf> schtinky: vim is the shit
<jhass> there we go...
<benzrf> schtinky: it's like notepad if notepad were awesome instead of being notepad
<shevy> that's ok, benzrf is like 15
<schtinky> cutting and pasting a massive chunk of code? undoing like 70 actions? vim can d othis?
<shevy> vim can do everything if you memorize a few thousand commands in your brain
<schtinky> that's what I'm afraid of
<benzrf> 70u
<shevy> hehe
<shevy> the basic vim commands are fine
mikepack has quit [Ping timeout: 252 seconds]
<benzrf> da{/other_method<CR>3jp
rahult has joined #ruby
<shevy> see, there it starts ^^^
<shevy> then add a few functions
twiceaday has quit [Ping timeout: 245 seconds]
<benzrf> why the hell would you think vim couldnt do such basic stuff
twiceaday has joined #ruby
twiceaday has quit [Client Quit]
<shevy> with awesome delimiters such as "endfunction"
twiceaday has joined #ruby
<shevy> and the venerable "endif"
<jhass> you'll like C+=
<schtinky> going off of https://github.com/typhoeus/typhoeus, it shows how to make requests...
larsam has quit [Quit: larsam]
<shevy> schtinky Hanmac here uses eclipse I think
<shevy> jhass uses sublime
<schtinky> but doesn't show how to actually view the results. I'm sure it's something basic, but I'm 24-hours into ruby max... so... help would be appreciated
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
<schtinky> is it returning a hash map object?
<schtinky> is that like the default thing? I need to get the keys and parse it?
<benzrf> jhass: i dont know anything about it except that it's some kind of awful parody of feminism
blom_ has quit [Ping timeout: 265 seconds]
<jhass> schtinky: try bundle exec irb
<jhass> that gives you an interactive interpreter
<jhass> for a more advanced version of that do gem install pry; bundle exec pry
<schtinky> too much
<shevy> schtinky you can ask for the class in i.e. irb; result = Typh bla here; result.class
rahult has quit [Ping timeout: 252 seconds]
no6 has quit [Ping timeout: 265 seconds]
<shevy> well you asked what it returns
yubrew has joined #ruby
<shevy> you can find out via .class
<shevy> whether you do this in a .rb file, in irb or anywhere else does not matter
<RubyPanther> >> Class.new.class.new.class.new.class
<eval-in> RubyPanther => Class (https://eval.in/124966)
<schtinky> NilClass
dzhulk has joined #ruby
<shevy> schtinky that sounds bad
<shevy> so it returns nil to you
<shevy> which probably is not super useful
Scriptwriter has joined #ruby
<jhass> schtinky: what are you doing exactly?
<schtinky> I got it
<schtinky> had to require first
<schtinky> irb(main):009:0> request.class
<schtinky> => Typhoeus::Request
<jhass> so let's take a look at the docs
einarj has joined #ruby
Scriptwriter is now known as creede_
vlad_starkov has joined #ruby
creede_ has quit [Client Quit]
<hfp> Fuck. It took 28 years for me to realize it's not "substract" but "subtract"… And it happened just now. I'm glad to share this important moment with you all.
<shevy> lol
<shevy> hfp I had such a moment not long ago
<shevy> recieve vs. receive
<hfp> so your life has been turned upside down as well huh
<shevy> well it's ok
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
fschuindt has joined #ruby
<shevy> just embarrassing to write it wrong for many years
jetblack has joined #ruby
<benzrf> hfp: holy shit
<shevy> perfection is hard to achieve
<benzrf> you thought it was substract this whole time?
<benzrf> o=
<schtinky> bingo... got the HTTP response body to print to console
<hfp> benzrf: Yes. To my defence, I'm not a native speaker so there's that
yubrew has quit [Ping timeout: 265 seconds]
<schtinky> I'll try to take it from here
<schtinky> thanks everyone
soulcake has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reset has joined #ruby
reset has quit [Client Quit]
yekta has joined #ruby
dzhulk has quit [Quit: Leaving.]
TheCleanGame has joined #ruby
soulcake has joined #ruby
Jeticus has joined #ruby
senayar has joined #ruby
chipotle has quit [Quit: cya]
shafox has joined #ruby
<shafox> installing oniguruma gem gives me this error http://pastie.org/8959712
TheCleanGame has left #ruby [#ruby]
CaptainJet has quit [Ping timeout: 265 seconds]
YamakasY has joined #ruby
<soahccc> shafox: Why would you need that? vThis library provides bindings to Oniguruma, a regular expression library which is standard with Ruby 1.9. It allows users of Ruby 1.8 to access the extended functionality without the need to recompile or to upgrade Ruby.
<shafox> soahccc, trying to install this https://github.com/limetext/lime/wiki/Building
soulcake has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<centrx> shafox, That's a Python app
<shafox> centrx, its a go app
<shafox> but depends on the oniguruma gem also
<soahccc> shafox: not on the gem I would say… OS X instructions says "brew install oniguruma" not gem
<shafox> soahccc, hmm i am on ubuntu
chipotle has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
lenswipe has joined #ruby
<lenswipe> hey guys
<lenswipe> back again
<lenswipe> another question about compass
<lenswipe> to run something through compass compile, does it have to be in a compass project?
<certainty> hfp: are you german by any chance?
<lenswipe> I'm using compass in a sailsJS project and I'm having trouble compiling my scss
soulcake has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
hobodave has joined #ruby
einarj has quit [Remote host closed the connection]
<hfp> certainty: assertion uncertain
mist__ is now known as mist
xcv has joined #ruby
<lenswipe> compass compile isn't compiling my stuff
<lenswipe> or rather my stuff doesn't have any compass in it
bahar has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
shafox has left #ruby ["Leaving"]
bahar has joined #ruby
petey has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
carraroj has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
hanikazmi has joined #ruby
hanikazmi_ has quit [Ping timeout: 265 seconds]
halfie has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
confounds has joined #ruby
mehlah_ has joined #ruby
fieldfirst has quit [Ping timeout: 252 seconds]
duggiefresh has joined #ruby
yfeldblum has joined #ruby
petey has quit [Ping timeout: 252 seconds]
mehlah has quit [Ping timeout: 245 seconds]
Tomasso has joined #ruby
halfie has joined #ruby
andrewlio has joined #ruby
confounds has left #ruby [#ruby]
dapz has joined #ruby
sailias has joined #ruby
dzhulk has joined #ruby
tjr9898 has joined #ruby
evenix has joined #ruby
timonv has joined #ruby
Guest94842 has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
soulcake has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
Squarepy has quit [Ping timeout: 245 seconds]
ParanoidSP has quit [Ping timeout: 252 seconds]
MissionCritical has quit [Read error: Operation timed out]
ParanoidSP has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rjhunter has joined #ruby
wjlafrance has joined #ruby
soulcake has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
xcv has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
blom_ has joined #ruby
jackneill has quit [Ping timeout: 240 seconds]
mclee_ has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 240 seconds]
mclee_ has joined #ruby
rindolf has quit [Quit: Leaving]
hiall has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yubrew has joined #ruby
MissionCritical has joined #ruby
Adrao has quit [Ping timeout: 252 seconds]
jetblack has quit [Ping timeout: 246 seconds]
blom_ has quit [Ping timeout: 268 seconds]
yubrew has quit [Ping timeout: 240 seconds]
mehlah_ is now known as mehlah
vasilakisFiL has joined #ruby
<vasilakisFiL> does rack support real sessions? (not cookie-based sessions)
Musashi1 has joined #ruby
gigetoo has quit [Remote host closed the connection]
confounds has joined #ruby
gigetoo has joined #ruby
ctp has quit [Quit: Linkinus - http://linkinus.com]
<centrx> vasilakisFiL, What is a "real session"?
tylersmith has joined #ruby
<vasilakisFiL> a real session is storing just an random string in the client as an ID, not the whole data
kennym has quit [Quit: Leaving.]
<vasilakisFiL> I think rack sessions is marshaling and store the data in base64 encoding in the client
tylersmith has quit [Remote host closed the connection]
<vasilakisFiL> with an hmac option for data integrity/authentication if you want
relix has joined #ruby
timonv has joined #ruby
vlad_starkov has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Jetchisel has joined #ruby
paisano has joined #ruby
<jhass> you probably can quite easily write your own
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
codeitagile has joined #ruby
bradhe has joined #ruby
<shevy> wow
<shevy> facebook created a new programming language
<shevy> it is based on PHP
<shevy> I can't wait to see centrx use it
<vasilakisFiL> wow thanks, ruby rack session in google didn't return any of these
<centrx> PHP is an abomination and a scourge on the face of the earth.
<shevy> lol centrx
<centrx> Hack is an apt name for a language based on PHP.
<shevy> I thought today is 1. april
<shevy> under "Motivation"
<shevy> this must be a joke
<benzrf> n-no
<benzrf> thats an insult to the fine term of hackeron
<benzrf> *hacker
<benzrf> god damn tab completion
<benzrf> man everything has been much nicer since i blocked shevy B)
chipotle has quit [Quit: cya]
vlad_starkov has quit [Ping timeout: 240 seconds]
<shevy> I think php must die
<shevy> from PHP:
<shevy> function test() {
<centrx> "Hack has deep roots in PHP."
<shevy> to
sdouglas has quit [Ping timeout: 265 seconds]
<benzrf> will most gems work with mruby
<shevy> function test()::void {
<shevy> I really think this must be a joke
<shevy> benzrf none will
bradhe has quit [Ping timeout: 240 seconds]
<benzrf> also is mruby ffi-complaint
<benzrf> *spelling on purpose
chipotle has joined #ruby
<benzrf> wait wha
<benzrf> i didnt type that consciously
confounds has quit []
timonv has quit [Remote host closed the connection]
<jhass> combining php and java, actually I'm surprised it took that long :P
enebo has quit [Quit: enebo]
Tomasso has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
RaptorJesus has quit [Ping timeout: 246 seconds]
<benzrf> hmm
<benzrf> is it possible to embed YARV
<benzrf> and does it use globals, or is there a single value representing the entire interpreter state
mrgt has quit [Quit: Leaving]
carraroj has quit [Quit: Konversation terminated!]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
chipotle_ has joined #ruby
soulcake has joined #ruby
<shevy> time to learn C benzrf
larissa has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
saarinen has quit [Client Quit]
evenix has quit [Remote host closed the connection]
jamto11 has joined #ruby
chipotle has quit [Ping timeout: 268 seconds]
<centrx> Hack: "My interpretation of the summary is: Facebook has sunk a lot of investment into a turd, and now they've determined that that turd needs polishing."
<centrx> "PHP is the BASIC of the 21st century."
<centrx> "Hack" as a name for a programming language is egregious. It's like naming your newborn baby "Wipe"
<centrx> > "Hack" as a language name? Really?
<centrx> Because "Brainfuck" was already taken.
montyboy has joined #ruby
zonetti has quit [Quit: bye]
zenojis has quit [Ping timeout: 265 seconds]
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
mr_snowf1ake has joined #ruby
atmatt has joined #ruby
segmond has joined #ruby
<atmatt> Where's the standard location rbenv or RVM should be installed? I'm using Chef and it installed it as root and I'm running into problems with every other user.
<shevy> I would assume they default to HOME
dapz has quit [Read error: No route to host]
<shevy> hmm if I do rand(255)
<shevy> the max value obtained is 254 right?
mikepack has joined #ruby
<shevy> so if I'd want to obtain R,G,B values, I'd have to use rand(256)
evenix has joined #ruby
<atmatt> I provisioned the server using Chef and Berkshelf and it installed as root, thus the $PATH is /usr/local/rbenv
jgoss has quit [Quit: Leaving]
Astralum has quit [Read error: Operation timed out]
<centrx> shevy, 256 is the number of values in RGB?
jgoss has joined #ruby
<shevy> 0 up to 255
Form_Feed has quit [Quit: leaving]
<centrx> right, so n is the number values
<centrx> If it were 1 to 255, you would do 1 + rand(255)
<centrx> Otherwise your randomization get skewed
<benzrf> guys?
<shevy> benzrf wat
RaptorJesus has joined #ruby
<benzrf> is an MRI/YARV instance stored in a single data structure, or does it use global variables?
<shevy> wuest, you were the guy who told me about kde konsole colours?
mikepack has quit [Ping timeout: 252 seconds]
circuit has joined #ruby
Kryptonical has joined #ruby
duggiefresh has quit [Ping timeout: 246 seconds]
JBreit has joined #ruby
funktor_ has quit [Remote host closed the connection]
JBreit has left #ruby [#ruby]
agent_white has joined #ruby
funktor has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blom_ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
Krypt has quit [Ping timeout: 255 seconds]
RaptorJesus has quit [Ping timeout: 268 seconds]
<agent_white> Gewd afternewn reby
<agent_white> rewby
rjhunter has joined #ruby
yubrew has joined #ruby
<benzrf> hmmmm
<benzrf> how can i have to_enum return a result from the block passed to the method being enumerated?
funktor has quit [Ping timeout: 240 seconds]
<centrx> benzrf, to_enum.first ?
<benzrf> huh"
wjlafrance has quit [Quit: This computer has gone to sleep]
<centrx> huh?
lenswipe has left #ruby ["Leaving"]
<centrx> to_enum returns an enumerator
<benzrf> well
<benzrf> let me show u what i mean
<benzrf> def foo
RaptorJesus has joined #ruby
<benzrf> res = yield 1
<benzrf> raise "oh shit" if res != 'ok'
<benzrf> yield 2; yield 3;
<benzrf> end
<benzrf> then i wanna to to_enum :foo
<benzrf> how can i make the block passed in return 'ok'
sambao21 has quit [Ping timeout: 268 seconds]
yubrew has quit [Ping timeout: 240 seconds]
rjhunter has quit [Ping timeout: 246 seconds]
jamto11 has quit [Read error: Connection timed out]
<centrx> benzrf, foo { |x| "ok" } ?
scttnlsn has quit [Ping timeout: 245 seconds]
<benzrf> huh?
<benzrf> i want to turn it into an enum tho
snuffeluffegus has joined #ruby
saarinen has joined #ruby
schtinky has quit [Quit: Leaving]
jamto11 has joined #ruby
scttnlsn has joined #ruby
<centrx> Is there some real code?
<benzrf> im using libclang
<wuest> shevy: I am pretty darn familiar with console colors; I might well have told you about them.
<benzrf> if you want to traverse the ast you need to use visit_children
<benzrf> the block you pass is expected to return a code indicating how to proceed
<benzrf> i want to get an enum of children
<benzrf> but the block to_enum passes it returns nil
spider-mario has quit [Remote host closed the connection]
<wuest> shevy: The escape sequence is 38;2;#{r};#{g};#{b}m
<centrx> "roy is a small library which allows every Ruby object to be used as a Rack application."
<benzrf> centrx: isn't that how rack works anyway
blom_ has quit [Remote host closed the connection]
tectonic has joined #ruby
blom_ has joined #ruby
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
chipotle_ has quit [Quit: cya]
montyboy has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
scttnlsn has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
mikemar10 has joined #ruby
scttnlsn has joined #ruby
bradhe has joined #ruby
timonv has joined #ruby
blom_ has quit [Ping timeout: 252 seconds]
jamto11_ has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
blom_ has joined #ruby
ikaros has joined #ruby
nari has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
creede has quit [Ping timeout: 245 seconds]
blom_ has quit [Remote host closed the connection]
<jamto11> Hi I am trying to parse my time string from "2014-03-19T04:00:00.000Z" to "2014-03-19 00:00:00 -0400" . Does anyone know of an elegant solution? Right now the best that I could come up with is Time.zone.parse("2014-03-19T04:00:00.000Z").in_time_zone('America/New_York').to_s however I feel that there is a more elegant way
creede has joined #ruby
blom_ has joined #ruby
Vovko has joined #ruby
scttnlsn has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 268 seconds]
sdouglas has joined #ruby
chipotle has joined #ruby
scttnlsn has joined #ruby
IcyDragon has quit [Ping timeout: 246 seconds]
fschuindt has quit [Quit: Computer has gone to sleep.]
IcyDragon has joined #ruby
blom_ has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
wallerdev has quit [Quit: wallerdev]
<agent_white> jamto11: Just curios, are you trying to get the Time in New York?
<agent_white> jamto11: Because `Time.new` gives you the string format you want, already.
fgo has joined #ruby
hobodave has joined #ruby
bradhe has joined #ruby
sailias has quit [Ping timeout: 265 seconds]
funktor has joined #ruby
circuit has quit [Quit: leaving]
<jamto11> Time.new("2014-03-19T04:00:00.000Z")
<jamto11> => 2014-01-01 00:00:00 +0000
<jamto11> hmm Time.new doesn't work with the string i am using (maybe it doesnt recognize the format?)
george2|chakra is now known as george2
mikepack has joined #ruby
nbezzala has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 268 seconds]
petey has joined #ruby
Xeago has joined #ruby
camila has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
codeitagile has quit [Remote host closed the connection]
<agent_white> jamto11: No I mean, why do you need that string in the first place?
<agent_white> Why not use Time directly?
andrewlio has quit [Quit: Leaving.]
kennym has joined #ruby
Vovko has quit []
<agent_white> jamto11: As in...
teddyp1cker has joined #ruby
<agent_white> >> Time.new.getlocal("-04:00")
<eval-in> agent_white => 2014-03-22 18:36:31 -0400 (https://eval.in/125075)
crystal77 has quit [Quit: Computer has gone to sleep.]
jlast has quit [Remote host closed the connection]
jetblack has joined #ruby
chipotle_ has joined #ruby
cj3kim has joined #ruby
wallerdev has joined #ruby
werdnativ has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
evenix has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
<werdnativ> why does Array({:a => 1}) != [{:a => 1}] ? it's actually [[:a, 1]] which I find surprising.
<shevy> hmm
<shevy> you pass a hash to this method
<jamto11> hmm thanks i need it because i have a redshift sql command, convert_timezone that ignores that offset and I want it to be ignored
duggiefresh has joined #ruby
jaimef has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
incade has quit [Read error: Connection reset by peer]
incade_ has joined #ruby
<arubin> "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."
ikaros has quit [Quit: Ex-Chat]
gtech has quit [Ping timeout: 246 seconds]
gtech has joined #ruby
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
jetblack has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
sambao21 has joined #ruby
yubrew has joined #ruby
<werdnativ> right I guess that makes sense, I was thinking more along the lines of "wrap it as an array, unless it's already an array"
mengu has quit [Remote host closed the connection]
jaimef has joined #ruby
duggiefresh has quit [Quit: duggiefresh]
funktor has quit []
vpretzel has joined #ruby
<arubin> >> {a: 1}.to_a
<eval-in> arubin => [[:a, 1]] (https://eval.in/125076)
<centrx> werdnativ, ActiveSupport/Rails has Array.wrap
bahar has quit [Ping timeout: 240 seconds]
<arubin> >> {a: 1, b: 2}.to_a
<eval-in> arubin => [[:a, 1], [:b, 2]] (https://eval.in/125077)
<werdnativ> centrx: that's cool but not very helpful for hsh.wrap
<werdnativ> oh, sorry, class method...
<centrx> werdnativ, Array.wrap(hash)
mikepack has quit [Remote host closed the connection]
bahar has joined #ruby
Shidash has joined #ruby
nateberkopec has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
holo has joined #ruby
mikepack has joined #ruby
<werdnativ> yeah, I see.
paisano has quit [Ping timeout: 265 seconds]
roolo has joined #ruby
sdouglas has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
rjhunter has joined #ruby
cina has quit [Ping timeout: 240 seconds]
cina has joined #ruby
Es0teric has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 240 seconds]
rjhunter has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
dapz has joined #ruby
nateberkopec has quit [Quit: Leaving...]
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<apeiros> centrx, werdnativ: IMO the use of Array() and Array.wrap are symptoms of bad API designs.
<apeiros> let the user of the method normalize the data.
wjlafrance has joined #ruby
petey has quit [Remote host closed the connection]
<werdnativ> apeiros: generally I agree, this is a bit of a special case.
petey has joined #ruby
wjlafrance has quit [Client Quit]
cina has quit [Ping timeout: 268 seconds]
petey has quit [Ping timeout: 265 seconds]
rvraghav93_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
agent_white has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
claymore has quit [Quit: Leaving]
wald0 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
montyboy has joined #ruby
bradhe has joined #ruby
rvraghav93 has joined #ruby
sparrovv has joined #ruby
cj3kim has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 252 seconds]
seggy has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
segmond has quit [Ping timeout: 268 seconds]
vasilakisFiL has left #ruby ["Konversation terminated!"]
dapz has quit [Ping timeout: 268 seconds]
mikemar10 has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
felipecvo has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<centrx> How to partition an array into random disjoint slices?
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<pontiki> i suppose you could start at one end, slice a random set, and continue up the array?
VTLob has quit [Quit: VTLob]
Talorc has joined #ruby
sambao21 has joined #ruby
badhatter has quit [Ping timeout: 265 seconds]
kennym has quit [Quit: Leaving.]
yubrew has joined #ruby
jamto11_ has quit [Remote host closed the connection]
agent_white has joined #ruby
robbyoconnor has joined #ruby
chrisseaton has quit []
<Rylee> So, since ruby is awesome, does it allow a statement like, 1 < x < 10 to evaluate?
ktosiek has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
kennym has joined #ruby
<Rylee> aw, looks like not
yfeldblu_ has joined #ruby
chrisseaton has joined #ruby
failshel_ has joined #ruby
<gizmore> Rylee: there is some cool ruby way to do what you want
<Rylee> oh, really?
<gizmore> maybe [1..10].each do |x|
<Rylee> lol
badhatter has joined #ruby
<Rylee> that being
<Rylee> x.wins < 3 and x.wins > 10
<Rylee> :p
Chris- has joined #ruby
<gizmore> you want all x that have wins < 3 and > 10 ?
yubrew has quit [Ping timeout: 268 seconds]
<Rylee> I was just demonstrating something to a friend
<Rylee> list.select { |x| x.wins < 3 and x.wins > 10 }
Xeago has quit [Remote host closed the connection]
<Rylee> Was wondering if there was a fancy Ruby way to blow his mind
<Rylee> :P
<gizmore> x.reject { |x| !x.wins.between?(3,10) }
yfeldblum has quit [Ping timeout: 240 seconds]
Soliah has quit [Ping timeout: 260 seconds]
<gizmore> list.reject { |x| !x.wins.between?(3,10) }
<gizmore> not sure if it works
cj3kim has quit [Read error: Connection reset by peer]
<gizmore> >> [2,5].reject { |x| !x.wins.between?(3,10) }
<eval-in> gizmore => undefined method `wins' for 2:Fixnum (NoMethodError) ... (https://eval.in/125091)
<gizmore> >> [2,5].reject { |x| !x.between?(3,10) }
<eval-in> gizmore => [5] (https://eval.in/125092)
<gizmore> :)
<gizmore> i get more familiar to ruby \o/
cj3kim has joined #ruby
agent_white has quit [Ping timeout: 246 seconds]
petey has joined #ruby
<Rylee> >> [2, 3, 5].select { |X| x.between? 3, 10 }
<eval-in> Rylee => /tmp/execpad-eebb40318554/source-eebb40318554:2: formal argument cannot be a constant ... (https://eval.in/125093)
<Rylee> oops
<Rylee> >> [2, 3, 5].select { |x| x.between? 3, 10 }
<eval-in> Rylee => [3, 5] (https://eval.in/125094)
<gizmore> even nicer, thx
<gizmore> an expression startin with ! is ugly :}
<Rylee> and ugly code is not ruby-like! :P
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
chrisseaton has quit []
nfk has quit [Quit: yawn]
prc has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
Hobogrammer has quit [Quit: WeeChat 0.4.3]
cj3kim has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
nolic has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
rjhunter has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Read error: Connection reset by peer]
dorei has quit []
cj3kim has joined #ruby
sambao21 has joined #ruby
<benzrf> hmmm
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<benzrf> whats #ruby-lang compared to here
kennym has quit [Quit: Leaving.]
<toretore> better
rjhunter has quit [Ping timeout: 252 seconds]
Shidash has quit [Ping timeout: 246 seconds]
<popl> benzrf: The channel names are different.
robbyoconnor has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
matcouto has joined #ruby
gneral has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<pontiki> wat, the founders/mods prolly don't get along
agent_white has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 246 seconds]
Vovko has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
nolic has joined #ruby
<benzrf> hmmmm
<benzrf> is there a way to load a gem in an existing repl that was not installed when the repl was loaded
<benzrf> >.<
<shevy> benzrf only the elitists go to #ruby-lang
<benzrf> oh right gem
<benzrf> ok no that still doesnt work :|
jetblack has joined #ruby
Vovko has quit [Remote host closed the connection]
<shevy> benzrf, please
kennym has joined #ruby
<shevy> what are you trying to do
<shevy> add a new repo to gem?
no6 has joined #ruby
Hobogrammer has joined #ruby
<shevy> gem sources --add SOURCE_URI
agent_white has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Adrao has joined #ruby
ctruett has joined #ruby
failshel_ has quit []
agent_white has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
nolic has quit [Ping timeout: 268 seconds]
<benzrf> how do
atno has joined #ruby
<toretore> 1) a gem is a bunch of files 2) what rubygems does is add each gem's dir to $:
hobodave has quit [Quit: Computer has gone to sleep.]
rh1n0 has joined #ruby
<benzrf> how does it dynamically load which paths to add
byprdct has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
<benzrf> does it have a list of installed gems at load time, and scan each of them for the file?
agent_white has joined #ruby
hobodave has joined #ruby