apeiros changed the topic of #ruby-lang to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste code on https://gist.github.com
aeze has joined #ruby-lang
charliesome has joined #ruby-lang
lele has quit [Ping timeout: 272 seconds]
lele|w has quit [Ping timeout: 272 seconds]
iamninja has quit [Ping timeout: 252 seconds]
arBmind1 has quit [Quit: Leaving.]
mberk_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
nertzy2 has joined #ruby-lang
iamninja has joined #ruby-lang
zekriad has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
nertzy has quit [Ping timeout: 265 seconds]
zekriad has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
zekriad has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
drbrain has quit [Quit: Goodbye]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
iliketur_ has quit [Ping timeout: 248 seconds]
rgb-one has joined #ruby-lang
djbkd has joined #ruby-lang
drbrain has joined #ruby-lang
sarahdashdashp has quit [Quit: sarahdashdashp]
ducklobster has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby-lang
b_hoffman has joined #ruby-lang
mberk_ has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 250 seconds]
symm- has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
mberk has joined #ruby-lang
jgpawletko has left #ruby-lang [#ruby-lang]
indiekate has joined #ruby-lang
rgb-one has quit [Read error: Connection reset by peer]
<indiekate> I made a help request earlier but had to leave for a while; what's best practices for subfolder names for demos in a ruby app? /public/demos/{environment} or /public/{environment} or something else?
<indiekate> This is my first ruby app and I want to provide demos on how to use the app in different environments; I'm not sure where people will be looking for demos and how they should be named.
<wallerdev> doesnt matter where you pick
<wallerdev> just talk about them in a README or something
<wallerdev> personally i'd put it in a folder like /doc or just /demo
<wallerdev> not sure the purpose of a /public folder
<indiekate> Sorry - should have specified. It's access with AJAX calls from .js files, so for dev I had them in public
<wallerdev> okay
symm- has quit [Ping timeout: 265 seconds]
<indiekate> I was going to create repeatable working examples because we're going to implement them for multiple customers in different configs
<wallerdev> using /public/demos/whatever sounds fine
<indiekate> It's basically a template for cloning the repo later
b_hoffman has quit [Quit: b_hoffman]
<wallerdev> just give people instructions on how to access in your readme
<indiekate> OK cool. Thanks for the input.
<wallerdev> and they will figure it out
<darix> why put them into public space at all?
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
<indiekate> Because they're usable in websites
<indiekate> I wasn't really sure where else to put them, honestly. I had a hard time tracking down best practices for app structure that wasn't rails
<darix> indiekate: tbh following rails dir layout isnt really the worst :)
<indiekate> It may have been the wrong place to put them. My structure is /bin, /lib, /public, /spec, /test, /views
<indiekate> True story, darix. :) Wasn't sure if I should though, only because I wasn't sure if that would make people think it was a rails app and be unpleasantly surprised.
mberk has quit [Read error: Connection reset by peer]
<darix> indiekate: I think the common standard nowadays is rack up
<darix> the rest doesnt matter much
<indiekate> Knowing absolutely 0 about rails, I wasn't sure what the right thing to do was
fujimura_ has joined #ruby-lang
<indiekate> OK, darix, I'll look into that
<indiekate> Thanks
<darix> what did you write your app with?
<indiekate> Atom text editor
<darix> i cant think of any webframework which isnt using rack in the backend
<indiekate> Oh
<indiekate> Sinatra
<darix> that is rack based too :p
<indiekate> But built it by hand, using either tutorials or help from a coworker. I didn't use any rack commands
<indiekate> So I'm not sure what it is. :D
<indiekate> Now I feel dumb, ha
<darix> http://www.sinatrarb.com/intro.html#Using%20a%20Classic%20Style%20Application%20with%20a%20config.ru
<darix> see that
hahuang61 has quit [Ping timeout: 265 seconds]
mberk has joined #ruby-lang
<indiekate> Looking now
<darix> then you can e.g. puma config.ru to launch your app or unicorn config.ru
<darix> ^^
dorei has quit []
<indiekate> I'm going to test that out
fujimura_ has quit [Ping timeout: 252 seconds]
<darix> but you arent doing the mail sending within your sinatra app right? probably in some background processing thing like sidekiq.
<indiekate> A lot of this is over my head but if I try it I might understand it. :)
<darix> oh
<darix> I am sure you will.
<indiekate> It is very very tiny. I'm using the ponymail gem
<indiekate> We're going to config an SMTP server, but my coworker's going to teach me when we do
<indiekate> Next week I'm thinking
<indiekate> But it basically uses Sinatra's post route to handle the contact form on static sites
<indiekate> That's the cliff's notes
<darix> <3 static site generators
<darix> just working on using discourse as comment engine for a statically generated page.
<indiekate> Yeah. I tested out Jekyll on my personal site and it kicks so much ass. I set up a git post-receive hook to push straight from dev and it was awesome. I used disqus for comments on that one
<indiekate> This email app has to be a little more flexible because one of our implementations is Drupal, so that's crazy as it is
<darix> i prefer selfhosting things
djbkd has joined #ruby-lang
<indiekate> Me too, but we're trying to get some customers off the ground with stuff like Jekyll, so we don't have time to re-config our site from our existing Drupal setup. We're ending up using wget to generate the static files because the static module on Drupal suuuuuucks
<indiekate> But I really loved being able to generate a Jekyll site in like 2 seconds. The CSS layout took the longest. :)
<darix> you could just look into existing importers in jekyll
<darix> and just dump the DB into yml files
<indiekate> Import from Drupal? That'd be amazing.
<darix> there is one for mephisto e.g.
<darix> probably wordpress too
<indiekate> I think we'll end up doing something like that after we get these peeps going.
<indiekate> The Drupal module's working, I'm just trying to clean up documentation and app structure so it's universal.
<indiekate> hence the dumb directory structure question. :)
mberk_ has joined #ruby-lang
<darix> haha
<darix> there is one for drupal already :p
<indiekate> Nice
mberk has quit [Read error: Connection reset by peer]
<indiekate> That's great
<indiekate> I'm going to try this rackup thing though and see what it spits out.
aeze has quit [Quit: aeze]
<darix> rackup --server=webrick config.ru
<darix> for some simple start
mberk_ has quit [Read error: Connection reset by peer]
<indiekate> Without worrying about writing the app that requires sinatra, too?
bb010g has joined #ruby-lang
mberk has joined #ruby-lang
<darix> naw. you need that require for your app in the config.ru
<indiekate> Oh derp
<indiekate> I see now
<indiekate> Helps when you actually read the command
sgambino has joined #ruby-lang
duderonomy has joined #ruby-lang
amclain has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
hendranata_ has joined #ruby-lang
b_hoffman has joined #ruby-lang
<darix> ^^
mberk_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
<indiekate> OK, so I ran that command, darix, after setting up a gemfile, .ruby-version, and .ruby-gemset + app.rb, config.ru
mberk_ has quit [Read error: Connection reset by peer]
<indiekate> It's running the server but was it supposed to generate a new app structure?
<indiekate> I guess I was expecting something like the bones gem that generates folders, etc.
<darix> no
<darix> it is just the common standard to launch webapps for ruby
<indiekate> I gotcha
mberk has joined #ruby-lang
<pipework> It's closer to being the way you execute rack apps and pass them to a rack handler.
<pipework> Not the only way, but probably the most simplistic.
<pipework> Also simplest to use.
<indiekate> OK. While I was developing this app I wrote, I was using shotgun because it re-gens sinatra files as you change them.
<pipework> Wasn't there something else that they suggested these days?
<indiekate> Something other than shotgun? Not sure.
SylarRuby has joined #ruby-lang
<pipework> indiekate: https://github.com/alexch/rerun
<indiekate> Cool. I must have found shotgun in a tutorial
b_hoffman has quit [Quit: b_hoffman]
ducklobster has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
lytol has quit [Remote host closed the connection]
SylarRuby has quit [Ping timeout: 246 seconds]
bantic has joined #ruby-lang
b_hoffman has joined #ruby-lang
<darix> who would have thought that detroit will beat atlanta
<indiekate> So if public's not the right place for demo files, what is, one wonders?
<darix> doc
<indiekate> Rly? That seems counter to what my brain would think.
<indiekate> I'll buy it though
<pipework> I'm selling it.
<indiekate> Haha
<indiekate> +1
<darix> it doesnt really matter much, as you will have to copy it e.g into the drupal tree anyway
Sirupsen has joined #ruby-lang
<indiekate> Yeah - I was planning on doing it in a git repo so we can submodule into our drupal repo
<indiekate> But since it won't be universal to all drupal installs, that's really a fool's errand anyway
Sirupsen has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
mberk has quit [Read error: Connection reset by peer]
skyrocker1 has joined #ruby-lang
skyrocker has quit [Ping timeout: 256 seconds]
<indiekate> That might have been where I got it.
<indiekate> But I guess since the JS isn't necessarily required, it might be more doc
<pipework> indiekate: It's a rails app?
charliesome has quit [Quit: zzz]
<indiekate> Nope, just ruby, but wasn't able to find a best-practices structure for non-rails ruby apps
mberk has joined #ruby-lang
<indiekate> I may have actually used the bones gem as a test and copied to the best of my ability
<indiekate> because I had started dev already
<pipework> indiekate: Consider choosing a small framework that has opinions on that.
<pipework> Like padrino.
<pipework> It's build on sinatra, iirc.
<indiekate> Holy crap it has an admin!
<indiekate> Way more fully featured than what I need for this
<darix> indiekate: the other thing is
<indiekate> This is middleware basically, but yea
<darix> dont over think it
<indiekate> Hahahaha, yes, that is my #1 problem darix
<pipework> Yeah, I mean, it's just code.
<indiekate> True story
<darix> indiekate: put the explaination for the paths into your README.md and you are gold
<darix> public/ for document root is a good start
<darix> lib/ for code
<darix> bin/ helper scripts
<darix> done
roamingdog has joined #ruby-lang
<indiekate> +1 to that darix
<darix> so
<pipework> Feel free to start with a single file and grow from there. I like to do modular apps. http://www.sinatrarb.com/intro.html#Modular%20vs.%20Classic%20Style
<bougyman> i like web/public, personally.
<bougyman> but it's just taste.
<indiekate> Thanks - sometimes I need to get out of my thought cycle
<bougyman> bin/web.rb to whatever web app is in web/
<pipework> If it's a larger project, I actually make a transports/ directory and then place all my different transport mechanism code stuff in subdirs for the appropriate mechanism.
<darix> bougyman: stop coming up with yet another layout!
<bougyman> darix: sorry, I love it.
<indiekate> *lol* Naw, it's good. It's shaking me out of my "one true way to do it" mentality
<bougyman> lib, web, spec, bin, and db are usually my top-levels
<pipework> transports/http transports/websocket transports/protobuf_tcp_socket
<darix> bougyman: have rpms for gitlab and discourse now :p
<darix> next stop diaspora i guess
<bougyman> darix: ok?
<bougyman> have .xbps builds in buildservice yet?
<pipework> darix: Neat, good luck.
<bougyman> darix: did you see https://news.ycombinator.com/item?id=9300245 ?
<bougyman> i think gentoo's is beeter, tbqh :)
<bougyman> *better
<darix> pipework: huh?
<pipework> I think there aren't any really great package management systems, the rest isn't really important to me until I have one.
<bougyman> pipework: have you seen xbps?
<bougyman> or nix?
<bougyman> I find them both good, for their own purposes.
<darix> pipework: the best package mgmt system is the one that your distro uses.
<pipework> darix: Nope.
<pipework> bougyman: I've seen nix, but not xbps.
<darix> and after i had to dig into some other languages lately (java,nodejs,perl,python) I have to say rubygems is actually really good.
roamingdog has quit [Ping timeout: 244 seconds]
<darix> pipework: if you work on a distro then integrating with said distro is usually a good idea ;)
<bougyman> darix: it + bundler + gemsets is as good as virtualenv
<pipework> darix: Doesn't mean that the package manager is good. :D
<darix> i might be biased though
<pipework> bougyman: it?
<pipework> Why bundler and gemsets?
<bougyman> java & go are better, imo... you get a jar or binary for deployments.
<pipework> bougyman: But ruby can do that too.
<bougyman> pipework: to futher lock down a full environment
<bougyman> *further
<darix> bougyman: given python doesnt handle multiple library versions in system dir ... you are kinda forced into virtualenvs
<pipework> rubygems is nice because it's written in ruby, but the package can contain anything as long as it has a valid gemspec.
<pipework> bougyman: I gave up on that and miaow I just vendor into the app.
<bougyman> darix: you know I don't use system ruby, anyway :)
<pipework> I'm not going to share the libs anyways.
<darix> bougyman: java ... a coworker just tries to package maven3
<darix> "just" 160 libraries as dependencies just for maven
<darix> lalala
fujimura has joined #ruby-lang
<bougyman> hahaha, our "core app" has like 540 dependencies.
<bougyman> it's a rails 2.3.x app.
<bougyman> (i'm trying to kill it)
shinnya has quit [Ping timeout: 256 seconds]
<darix> bougyman: the equivalent would be that rubygems needed 160 non stdlib libraries
<ttilley> bougyman: jesus christ. you'd have better luck killing it than upgrading it at least
<bougyman> ttilley: yeah there is no upgrade path.
<bougyman> i'm just breaking it into a bunch of roda microapps
<bougyman> then rerouting at the rack-level
<ttilley> i wish you luck good sir
<bougyman> thx!
<bougyman> it's going well thus far.
Lewix has quit [Remote host closed the connection]
<pipework> roda is pretty neat.
<pipework> However, I wish I could use it with rack middleware/apps
mberk_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
fujimura has quit [Ping timeout: 264 seconds]
mberk_ has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
fujimura has joined #ruby-lang
mcclurmc has joined #ruby-lang
bruno- has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
lele|w has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
Sirupsen has joined #ruby-lang
bruno- has quit [Ping timeout: 256 seconds]
mberk has joined #ruby-lang
djbkd_ has joined #ruby-lang
AlexAltea has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
indiekate has quit [Quit: "Thanks for the help everyone."]
djbkd_ has quit [Ping timeout: 252 seconds]
dik_dak has joined #ruby-lang
roamingdog has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
Newbie0086 has joined #ruby-lang
Stichoza has quit [Quit: Be back later ...]
mberk has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
charliesome has joined #ruby-lang
mberk has joined #ruby-lang
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
Newbie0086 has quit [Ping timeout: 252 seconds]
lytol has quit [Ping timeout: 256 seconds]
bantic has quit [Quit: bantic]
ledestin has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
Newbie0086 has joined #ruby-lang
mberk_ has joined #ruby-lang
mberk_ has quit [Read error: Connection reset by peer]
mberk has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
mberk has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
charliesome has quit [Quit: zzz]
mberk has quit [Read error: Connection reset by peer]
dayid has joined #ruby-lang
drbrain has joined #ruby-lang
roamingdog has joined #ruby-lang
charliesome has joined #ruby-lang
mberk has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby-lang
b_hoffman has joined #ruby-lang
b_hoffman has quit [Client Quit]
mberk_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
mberk_ has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
hooker has quit [Quit: leaving]
mberk has quit [Remote host closed the connection]
mberk has joined #ruby-lang
gix has quit [Ping timeout: 245 seconds]
lytol has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
gix has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
mberk has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b_hoffman has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
rbowlby_ has joined #ruby-lang
aeze has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
sarahdashdashp has quit [Quit: sarahdashdashp]
zekriad has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
ruby-lang016 has joined #ruby-lang
mberk has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<ruby-lang016> Is it possible to make a website like addicting using rails ? I would also like to make games for it also. Would I have to use JavaScript or could I use rails ?
<ruby-lang016> Addicting games *
<centrx> The games themselves need something running on the client, like JavaScript or Flash
<centrx> Yes you can make such a website in Rails
<ruby-lang016> Could it support php and any languages for writing web games ?
<centrx> Yes you can set it up that way
<centrx> Any game you can write in PHP you can write in Rails
mcclurmc has quit [Remote host closed the connection]
wowzaz has joined #ruby-lang
<centrx> But games that have 2D graphics or 3D graphics need something running in the client
<ruby-lang016> Well I want to be able to support basically in game for my website
<pipework> centrx: Not necessarily.
<pipework> I mean, it's perfectly reasonable to make a game that renders 3d but never outputs it to a client.
<pipework> Maybe it's a simulation game where you don't get to see the rendering but you interact with it somehow.
<centrx> That's really courageous comment
yfeldblum has joined #ruby-lang
mkosaki has left #ruby-lang ["Leaving..."]
wowzaz has left #ruby-lang [#ruby-lang]
ascarter has joined #ruby-lang
ruby-lang016 has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
tongueroo has joined #ruby-lang
djbkd has joined #ruby-lang
centrx has quit [Ping timeout: 250 seconds]
sgambino has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
lele has joined #ruby-lang
roamingd_ has joined #ruby-lang
Volsus has joined #ruby-lang
centrx has joined #ruby-lang
hahuang65 has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
chadwtaylor has joined #ruby-lang
Guest62848 has quit [Ping timeout: 252 seconds]
Guest744 has joined #ruby-lang
dellavg_ has joined #ruby-lang
centrx has quit [Quit: Shutting down, Please wait...]
roamingd_ has quit [Remote host closed the connection]
Respek has joined #ruby-lang
|jemc| has quit [Ping timeout: 252 seconds]
roamingdog has joined #ruby-lang
lytol has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
tongueroo has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
ur5us has quit [Remote host closed the connection]
rbowlby_ has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
sandelius has joined #ruby-lang
tkuchiki has joined #ruby-lang
skade has joined #ruby-lang
charliesome has quit [Quit: zzz]
tkuchiki_ has quit [Ping timeout: 272 seconds]
SylarRuby has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Volsus has quit [Ping timeout: 265 seconds]
lele is now known as Guest24
nofxx has joined #ruby-lang
ur5us has joined #ruby-lang
lytol has joined #ruby-lang
roamingdog has joined #ruby-lang
spuk has quit [Ping timeout: 264 seconds]
spuk has joined #ruby-lang
roamingdog has quit [Ping timeout: 272 seconds]
amclain has quit [Quit: Leaving]
martinbmadsen_ has joined #ruby-lang
dhjondoh has joined #ruby-lang
Newbie0086 has quit [Ping timeout: 252 seconds]
jas02 has joined #ruby-lang
martinbmadsen has quit [Quit: leaving]
djbkd has quit [Remote host closed the connection]
Volsus has joined #ruby-lang
Newbie0086 has joined #ruby-lang
relix has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
fujimura_ has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fusillicode has quit [Read error: No route to host]
fujimura has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
fusillicode has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 252 seconds]
pepperbreath has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chadwtaylor has quit [Remote host closed the connection]
pepperbreath has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
arBmind has quit [Quit: Leaving.]
jas02 has quit [Quit: jas02]
Newbie0086 has quit [Quit: 离开]
zenspider has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby-lang
martinbmadsen_ has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
zenspider has joined #ruby-lang
djbkd has joined #ruby-lang
martinbmadsen has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
djbkd has quit [Ping timeout: 272 seconds]
solars has joined #ruby-lang
jas02 has joined #ruby-lang
bruno- has joined #ruby-lang
ledestin has joined #ruby-lang
wicope has joined #ruby-lang
sandelius has joined #ruby-lang
bruno- has quit [Ping timeout: 250 seconds]
martinbmadsen has joined #ruby-lang
lytol has quit [Remote host closed the connection]
skade has joined #ruby-lang
skade has quit [Client Quit]
skade has joined #ruby-lang
Volsus has quit [Quit: Leaving]
universaL is now known as universa1
kerunaru has joined #ruby-lang
roamingdog has joined #ruby-lang
roamingdog has quit [Ping timeout: 244 seconds]
marr has joined #ruby-lang
yfeldblum has joined #ruby-lang
cpach has joined #ruby-lang
Aer has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby-lang
workmad3 has joined #ruby-lang
symm- has joined #ruby-lang
<yorickpeterse> morning
stef204 has joined #ruby-lang
lytol has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lytol has quit [Ping timeout: 244 seconds]
kerunaru has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
Aer has quit [Ping timeout: 246 seconds]
rbowlby has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
Guest24 is now known as lele
arBmind has joined #ruby-lang
dhjondoh has joined #ruby-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
rbowlby has joined #ruby-lang
AlexAltea has joined #ruby-lang
ArchRogem has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
jefus__ has joined #ruby-lang
jefus_ has quit [Ping timeout: 265 seconds]
skade has joined #ruby-lang
dhjondoh has joined #ruby-lang
bruno- has quit [Ping timeout: 256 seconds]
GBrawl has quit [Quit: (null)]
rbowlby has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
Guest744 has quit [Excess Flood]
Olipro has joined #ruby-lang
Olipro is now known as Guest82299
jammanbo has joined #ruby-lang
<jammanbo> Is it possible to `def ~>(other); …; end`
sandelius has joined #ruby-lang
lytol has joined #ruby-lang
<yorickpeterse> No, ~> is a syntax error
<jammanbo> mmm, yeah just looking at the grammer now
<jammanbo> grammar
<jammanbo> ah well
lytol has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
jammanbo has quit [Quit: Leaving.]
roamingdog has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby-lang
hendranata_ has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
rikkipitt has joined #ruby-lang
<dagda1> is there a one liner to create a hash from another hash by selecting some values from the original
<bougyman> {a: 1, b: 2, c: 3}.select { |k,v| [:a,:c].include? k }
<bougyman> => {:a=>1, :c=>3}
<bougyman> that?
<dagda1> bougyman: looks good, thanks
<canton7> dagda1, #values_at maybe?
ur5us has joined #ruby-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 265 seconds]
ghostpl_ has joined #ruby-lang
wicope has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby-lang
stamina has joined #ruby-lang
charliesome has joined #ruby-lang
CyberM has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 248 seconds]
CyberM has quit []
bruno- has joined #ruby-lang
Stichoza has joined #ruby-lang
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 252 seconds]
sandelius has joined #ruby-lang
caseydriscoll has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
the_real_intinig has joined #ruby-lang
jefus__ has quit [Read error: Connection reset by peer]
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
the_real_intinig has quit [Remote host closed the connection]
the_real_intinig has joined #ruby-lang
the_real_intinig has quit [Client Quit]
caseydriscoll has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martinbmadsen has quit [Quit: Bye!]
martinbmadsen has joined #ruby-lang
charliesome has quit [Quit: zzz]
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has quit [Ping timeout: 272 seconds]
jefus has joined #ruby-lang
martinbmadsen has quit [Client Quit]
martinbmadsen has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
Asher has quit [Client Quit]
charliesome has joined #ruby-lang
roamingdog has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Asher has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
tkuchiki has quit [Ping timeout: 252 seconds]
roamingdog has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby-lang
fujimura_ has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
Komanda has joined #ruby-lang
Vivex has joined #ruby-lang
fusillicode has joined #ruby-lang
djbkd has quit [Ping timeout: 256 seconds]
stef204 has quit [Ping timeout: 250 seconds]
fusillicode1 has quit [Ping timeout: 246 seconds]
fujimura has quit [Ping timeout: 252 seconds]
sarkyniin has joined #ruby-lang
araujo has joined #ruby-lang
araujo has joined #ruby-lang
ldnunes has joined #ruby-lang
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby-lang
roamingdog has joined #ruby-lang
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby-lang
b_hoffman has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
Sgeo has quit [Ping timeout: 250 seconds]
araujo has quit [Quit: Leaving]
dhjondoh has joined #ruby-lang
stef204 has joined #ruby-lang
caseydriscoll has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 252 seconds]
rikkipitt has quit [Quit: Leaving...]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
Komanda has quit [Ping timeout: 256 seconds]
Lewix has joined #ruby-lang
charliesome has quit [Quit: zzz]
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
skade has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fujimura has joined #ruby-lang
fusillicode has quit [Ping timeout: 272 seconds]
roamingdog has joined #ruby-lang
aeze has quit [Quit: aeze]
fujimura has quit [Ping timeout: 248 seconds]
nofxx has quit [Ping timeout: 256 seconds]
ghostpl_ has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
kfpratt has joined #ruby-lang
sgambino has joined #ruby-lang
amystephen has joined #ruby-lang
sankaber has joined #ruby-lang
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
caseydriscoll has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has quit [Client Quit]
workmad3 has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
mcclurmc has joined #ruby-lang
chadwtaylor has joined #ruby-lang
yalue has joined #ruby-lang
fusillicode1 has quit [Read error: No route to host]
skade has quit [Remote host closed the connection]
fusillicode has joined #ruby-lang
aeze has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
davispuh has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
chadwtaylor has quit [Remote host closed the connection]
tsujp has joined #ruby-lang
skade has joined #ruby-lang
enebo has joined #ruby-lang
riotjones has joined #ruby-lang
setanta_ has joined #ruby-lang
bantic has joined #ruby-lang
shazaum has joined #ruby-lang
riotjones has quit [Ping timeout: 272 seconds]
malconis has joined #ruby-lang
ArchRogem has quit [Read error: Connection reset by peer]
shazaum has quit [Ping timeout: 248 seconds]
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 244 seconds]
skade has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
arBmind has joined #ruby-lang
wicope has joined #ruby-lang
agarie has joined #ruby-lang
skade has joined #ruby-lang
marr has quit [Ping timeout: 256 seconds]
roamingdog has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
fusillicode has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
lytol has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
whippythellama has joined #ruby-lang
fusillicode1 has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostpl_ has joined #ruby-lang
ur5us has joined #ruby-lang
fusillicode1 has quit [Client Quit]
fusillicode has quit [Ping timeout: 264 seconds]
fusillicode has joined #ruby-lang
ledestin has joined #ruby-lang
ledestin has quit [Client Quit]
Johz has joined #ruby-lang
ur5us has quit [Ping timeout: 252 seconds]
fusillicode has quit [Client Quit]
lytol has quit [Remote host closed the connection]
fujimura_ has joined #ruby-lang
fusillicode has joined #ruby-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
fujimura_ has quit [Ping timeout: 244 seconds]
chinmay_dd has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 256 seconds]
araujo has joined #ruby-lang
cpt_yossarian has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 250 seconds]
bantic has quit [Quit: bantic]
iamninja has quit [Read error: Connection reset by peer]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
iamninja has joined #ruby-lang
stef204 has joined #ruby-lang
jefus_ has joined #ruby-lang
jefus has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
bantic has joined #ruby-lang
chouhoulis has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
chinmay_dd has joined #ruby-lang
slawrence00 has joined #ruby-lang
|jemc| has joined #ruby-lang
joaomdmoura has joined #ruby-lang
jas02 has quit [Quit: jas02]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 264 seconds]
Johz has quit [Quit: Leaving]
ledestin has joined #ruby-lang
mcclurmc has joined #ruby-lang
Respek has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
mcclurmc has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
zekriad has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
rippa has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mcclurmc has quit [Remote host closed the connection]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
fusillicode1 has joined #ruby-lang
__butch__ has joined #ruby-lang
fusillicode has quit [Ping timeout: 256 seconds]
skade has quit [Remote host closed the connection]
imperator has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
mcclurmc has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 244 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
mattyohe has joined #ruby-lang
fujimura has joined #ruby-lang
skade has joined #ruby-lang
fujimura has quit [Ping timeout: 246 seconds]
ghostpl_ has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
agarie has joined #ruby-lang
ghostpl_ has joined #ruby-lang
matrisking has joined #ruby-lang
arBmind1 has quit [Ping timeout: 248 seconds]
chinmay_dd has joined #ruby-lang
havenwood has joined #ruby-lang
skade has quit [Ping timeout: 256 seconds]
Asher has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 272 seconds]
<pipework> Jamo: define_method '~>' {|*args| ... }, but then you have to use send('~>')
x44x45x41x4E has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
<apeiros> pipework: needs do/end instead of {} or parens. otherwise the block is associated with '~>', which will raise
<pipework> apeiros: D'aw
<pipework> Trying to one-line for irc, fails. :(
<apeiros> syntax, so annoying ;-)
djbkd has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 252 seconds]
piotrj has joined #ruby-lang
iliketurtles has joined #ruby-lang
leat has joined #ruby-lang
hhatch has joined #ruby-lang
Respek has quit [Quit: gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
skade has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
wallerdev has joined #ruby-lang
centrx has joined #ruby-lang
arBmind has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
pothibo has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 248 seconds]
chinmay_dd has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 252 seconds]
stevechiagozie has joined #ruby-lang
arBmind has joined #ruby-lang
stan has quit [Ping timeout: 256 seconds]
Xzyx987X has quit [Quit: Leaving]
arBmind1 has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby-lang
havenn has joined #ruby-lang
piotrj_ has joined #ruby-lang
piotrj has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 256 seconds]
deol has joined #ruby-lang
b_hoffman has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Xzyx987X has joined #ruby-lang
piotrj_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
stan has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
joaomdmoura has joined #ruby-lang
GBrawl has joined #ruby-lang
benanne has joined #ruby-lang
GBrawl has quit [Client Quit]
skade has joined #ruby-lang
mcclurmc has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 1.1.1]
ghostpl_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
sandelius has joined #ruby-lang
piotrj has joined #ruby-lang
fujimura has joined #ruby-lang
existensil has quit [Ping timeout: 255 seconds]
pothibo has quit [Quit: pothibo]
fujimura has quit [Ping timeout: 248 seconds]
piotrj has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
apt-get_ has joined #ruby-lang
sarkyniin has quit [Ping timeout: 265 seconds]
__butch__ has quit [Quit: Leaving.]
tsujp has quit [Quit: tsujp is snoozing]
postmodern has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
imperator has quit [Quit: Leaving]
roamingdog has joined #ruby-lang
micmus has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
arBmind has quit [Quit: Leaving.]
baweaver has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 250 seconds]
symm- has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby-lang
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
kadoppe has quit [Ping timeout: 248 seconds]
baweaver has quit [Remote host closed the connection]
dik_dak has joined #ruby-lang
dik_dak has quit [Max SendQ exceeded]
kadoppe has joined #ruby-lang
dik_dak has joined #ruby-lang
mberk has joined #ruby-lang
dzejrou has joined #ruby-lang
|jemc| has quit [Remote host closed the connection]
micmus has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
|jemc| has joined #ruby-lang
stef204 has joined #ruby-lang
apt-get__ has joined #ruby-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
apt-get_ has quit [Ping timeout: 245 seconds]
chouhoul_ has joined #ruby-lang
ruby-lang165 has joined #ruby-lang
hhatch has quit [Ping timeout: 252 seconds]
cartothemax has joined #ruby-lang
arBmind has joined #ruby-lang
chouhoulis has quit [Ping timeout: 264 seconds]
mberk_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
micmus has joined #ruby-lang
ruby-lang165 has quit [Ping timeout: 246 seconds]
mberk_ has quit [Read error: Connection reset by peer]
cpt_yossarian has joined #ruby-lang
mberk has joined #ruby-lang
benanne has quit [Quit: kbai]
Missphoenix has quit [Quit: Leaving]
RobertBirnie has joined #ruby-lang
<RobertBirnie> is there a good way to find another processes pid without shelling out and parsing `ps aux`. it seems like Process class is just the current process
<karma_> pidof
riotjones has joined #ruby-lang
<karma_> if you wanted easier parse
GBrawl has joined #ruby-lang
<jhass> what are you needing the pid of though?
riotjones has quit [Ping timeout: 248 seconds]
HotTopic has joined #ruby-lang
ur5us has joined #ruby-lang
ghostpl_ has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
HotTopic has left #ruby-lang [#ruby-lang]
<eam> RobertBirnie: there's no cross platform library call for iterating pids
iliketurtles has quit [Quit: zzzzz…..]
<eam> the only posix interface for that is specified via commands like ps
<eam> if you're constrained to particular systems you can do it more efficiently
<eam> (eg: linux only)
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joaomdmoura has joined #ruby-lang
dagda1 has joined #ruby-lang
dpatel has joined #ruby-lang
<dpatel> if i have a collection of 1000 documents and 5 threads grabbing items from the collection, is there any way to make sure that the threads each get a unique item?
<jhass> push them into a queue and let the threads pop the items of
<dpatel> ok, how would I accomplish that when each of the threads represents a different server?
<RobertBirnie> eam thanks
stef204 has quit [Read error: Connection reset by peer]
SylarRuby has quit []
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
stef204 has joined #ruby-lang
<jhass> dpatel: I'm not sure I follow
<dpatel> ok, lets say i have 5 servers each serving up a string from a collection
<jhass> how do you share the collection?
<dpatel> so every time a reqeust comes it, i grab the topmost string and return it
mberk has quit [Read error: Connection reset by peer]
<dpatel> the collections a mongo db collection that all the servers are querying
iliketurtles has joined #ruby-lang
<jhass> well, that's kind of an important detail
<jhass> "detail" even
<eam> dpatel: you use whatever locking primitives your datastore provides
<eam> it's a mongodb question
mberk has joined #ruby-lang
<dpatel> ok, thanks
wallerdev has quit [Quit: wallerdev]
yfeldblu_ has quit [Ping timeout: 256 seconds]
mberk has quit [Read error: Connection reset by peer]
baweaver has joined #ruby-lang
GBrawl has quit [Ping timeout: 252 seconds]
mberk has joined #ruby-lang
leat has quit [Ping timeout: 245 seconds]
leat has joined #ruby-lang
fujimura has joined #ruby-lang
stef204 has quit [Ping timeout: 246 seconds]
stef204 has joined #ruby-lang
AugustoCesar has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
leat has quit [Ping timeout: 250 seconds]
leat has joined #ruby-lang
b_hoffman has joined #ruby-lang
leat has quit [Client Quit]
mberk has quit [Remote host closed the connection]
matrisking has quit [Quit: Lost terminal]
mberk has joined #ruby-lang
AugustoCesar has joined #ruby-lang
yfeldblum has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Remote host closed the connection]
chinmay_dd has quit [Ping timeout: 272 seconds]
mberk has joined #ruby-lang
chouhoulis has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
sarahdashdashp has quit [Quit: sarahdashdashp]
shazaum has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jefus_ is now known as jefus
existensil has joined #ruby-lang
_1_ has joined #ruby-lang
<_1_> hello
dagda1 has joined #ruby-lang
mberk has quit [Ping timeout: 246 seconds]
<cpach> _1_: hiya
mcclurmc has quit [Remote host closed the connection]
<_1_> ways ur nationality
<cpach> Swedish
mberk has joined #ruby-lang
<_1_> ah aim from phil
<_1_> ur male?
<cpach> _1_: haha, how so?
<apeiros> _1_: this is not a flirting channel, you know?
<_1_> no
_1_ has quit [Quit: WhatsChat IRC Android APP]
<cpach> people are weird
nwhirschfeld has joined #ruby-lang
lytol has joined #ruby-lang
<apeiros> cpach: not those people's fault as it seems
<apeiros> crappy chat android app
<apeiros> pondering to ban _1_* nicks preemptively.
<cpach> apeiros: does the app have a list of default channels or something like that?
baweaver has quit [Remote host closed the connection]
<apeiros> sounds like
<apeiros> I haven't tried it myself
chinmay_dd has joined #ruby-lang
<cpach> sounds like a good idea to do the ban then. the people who use that app and also want to join this channel could always set their own nick.
mberk has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
<jhass> cpach: actually nope
<jhass> that app prepends _1_ to the nick you choose
<jhass> it's real crap
<cpach> haha, that's odd :)
<cpach> i'm tempted to try it out, but i have no android devices :p
mcclurmc has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
baweaver has joined #ruby-lang
benanne has joined #ruby-lang
mberk has joined #ruby-lang
apt-get_ has joined #ruby-lang
agarie has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
drbrain has quit [Ping timeout: 256 seconds]
apt-get__ has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agarie has joined #ruby-lang
lytol has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
djbkd has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
<cschneid> anybody know if there's a gem out there which lets me optionally run a block in the middle of a pipeline. Similar in style to tap, except takes a Bool and a Block and either returns self or runs the block
duderonomy has quit [Ping timeout: 248 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> .tap { break value if condition } :D
<jhass> don't actually do this :P
iliketurtles has joined #ruby-lang
<cschneid> I'm not convinced that works
djbkd has quit [Ping timeout: 252 seconds]
<jhass> >> "foo".tap { break "bar" }
<eval-in_> jhass => "bar" (https://eval.in/307796)
<jhass> >> "foo".tap { break "bar" if false }
<eval-in_> jhass => "foo" (https://eval.in/307797)
drbrain has joined #ruby-lang
<cschneid> :)
<cschneid> ok. How about a non-terrible way?
shazaum has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mberk has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
<jhass> I'd just ternary
<jhass> foo = a.b.c; foo.present? ? foo.add_link(...) : foo
<jhass> or foo.add_link(..) unless foo.nil? if that's what you're checking with present
momomomomo has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
benanne has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Remote host closed the connection]
skade has joined #ruby-lang
aeze has quit [Quit: aeze]
mcclurmc has joined #ruby-lang
riotjones has joined #ruby-lang
havenn is now known as havenwood
<cschneid> jhass: yeah, I know how to extract out variables and get this done. I'm looking for a way to keep inside a pipeline of method calls. :)
<jhass> well, the above is the only I know ;)
<jhass> https://bugs.ruby-lang.org/issues/10883 maybe you want to add to that ;P
riotjones has quit [Ping timeout: 245 seconds]
mcclurmc has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
relix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mberk has joined #ruby-lang
<cschneid> jhass: cool. that's ... close :)
<cschneid> I'll just monkey patch my `perhaps` function in, and call it good.
wallerdev has joined #ruby-lang
benanne has joined #ruby-lang
mcclurmc has joined #ruby-lang
wicope has quit [Read error: Connection reset by peer]
baweaver has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
sarkyniin has joined #ruby-lang
apt-get_ has quit [Read error: No route to host]
agarie has quit [Remote host closed the connection]
aeze has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
iliketurtles has joined #ruby-lang
deol has joined #ruby-lang
Technodrome has joined #ruby-lang
sgambino has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<darix> cschneid: gem install maybe?
<darix> cschneid: "gem install maybe"?
<darix> yorickpeterse just released that
dellavg_ has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby-lang
agarie has joined #ruby-lang
mcclurmc has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
aeze has quit [Quit: aeze]
chinmay_dd has quit [Ping timeout: 272 seconds]
marr has joined #ruby-lang
fujimura has joined #ruby-lang
mberk_ has joined #ruby-lang
razz_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
lytol has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
bantic has quit [Quit: bantic]
fujimura has quit [Ping timeout: 252 seconds]
glenab has joined #ruby-lang
mberk_ has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
toertore has quit [Quit: This computer has gone to sleep]
iliketurtles has quit [Quit: zzzzz…..]
aeze has joined #ruby-lang
loincloth has joined #ruby-lang
iliketurtles has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razz_ has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
__butch__ has quit [Quit: Leaving.]
benanne has quit [Quit: kbai]
zekriad has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
jbeeze has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
aeze has quit [Quit: aeze]
baweaver has joined #ruby-lang
<cschneid> darix: that doesn't do what I want though - I have a thing, I want to optionally execute a block with that thing, similar to try, but either returning self (false) or result of block (true)
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
GBrawl has joined #ruby-lang
agarie has quit []
baweaver has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
baweaver has joined #ruby-lang
roamingdog has quit [Ping timeout: 265 seconds]
mberk has joined #ruby-lang
micmus has quit [Ping timeout: 256 seconds]
Jeffrey_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby-lang
<Jeffrey_> Hey, if anyone here is familiar with SQLite3, I'm having a strange problem that I'm having trouble with. The Stack Overflow post is here: http://stackoverflow.com/questions/29401551/ruby-sqlite3-bind-params
stevechiagozie has joined #ruby-lang
Asher has joined #ruby-lang
duderonomy has joined #ruby-lang
robbyoconnor is now known as ]
postmodern has quit [Quit: Leaving]
mberk has quit [Remote host closed the connection]
] is now known as robbyoconnor
mikecmpbll has quit [Quit: ciao.]
relix has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
davispuh has quit [Remote host closed the connection]
davispuh has joined #ruby-lang
cartothemax has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
sarahdashdashp has joined #ruby-lang
roamingdog has joined #ruby-lang
houhoulis has joined #ruby-lang
nwhirschfeld_ has joined #ruby-lang
nwhirschfeld has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
dzejrou has quit [Quit: Leaving]
riotjones has joined #ruby-lang
nwhirschfeld_ has quit [Remote host closed the connection]
nwhirschfeld has joined #ruby-lang
baweaver has joined #ruby-lang
nwhirschfeld has quit [Remote host closed the connection]
nwhirschfeld has joined #ruby-lang
mberk has joined #ruby-lang
riotjones has quit [Ping timeout: 248 seconds]
banister is now known as banisterfiend
GBrawl has quit [Quit: (null)]
roamingdog has quit [Remote host closed the connection]
[H]unt3r has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
[H]unt3r has joined #ruby-lang
glenab has quit [Remote host closed the connection]
dpatel has quit [Quit: dpatel]
jefus_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jefus has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
fujimura has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
fujimura has quit [Ping timeout: 252 seconds]
mberk_ has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]
mberk_ has quit [Read error: Connection reset by peer]
mberk has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby-lang
arBmind1 has quit [Client Quit]
setanta_ has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
ascarter has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
lytol has joined #ruby-lang
baweaver has joined #ruby-lang
dagda1 has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
jbeeze has quit []
djbkd has quit [Remote host closed the connection]
shank_ has joined #ruby-lang
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mcclurmc has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby-lang
mberk has quit [Read error: Connection reset by peer]