apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpb_ has joined #ruby
dblessing has quit [Client Quit]
GaryOak_ has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 244 seconds]
MatthewsFace has quit [Remote host closed the connection]
thumpba_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
Sawbones_ has quit [Remote host closed the connection]
keen__ has joined #ruby
keen_ has quit [Ping timeout: 250 seconds]
<Ellis> i’m getting an undefined method << for nilclass … but i’m trying to access the subarray. anyone know why im getting this messagenhttps://gist.github.com/ellismarte/fd6fe34798f95a17c702#file-accountable-rb-L11
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
jerematic has quit [Remote host closed the connection]
zarubin_ has joined #ruby
baweaver has joined #ruby
paradisaeidae has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<wallerdev> group[num] is nil
<wallerdev> try printing out group and num to see why
jerematic has joined #ruby
<jhass> use p, not puts
<jhass> also to spoil the fun again: array_of_students.each_slice(4).to_a
fyregryph has quit [Quit: [[leaves server]]]
qualityaddict has joined #ruby
alpha- has left #ruby [#ruby]
Channel6 has joined #ruby
zarubin_ has quit [Ping timeout: 246 seconds]
meschiv2 has quit [Ping timeout: 252 seconds]
shiru has joined #ruby
zz_AlphaTech is now known as AlphaTech
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Takle has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
fryguy9 has joined #ruby
_djbkd has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
_djbkd has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 245 seconds]
mleung has quit [Quit: mleung]
mrbond has joined #ruby
jerematic has quit [Remote host closed the connection]
shiru has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
avahey has joined #ruby
gusrub has quit [Quit: Leaving]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Quit: leaving]
enebo has joined #ruby
narcan has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
robustus has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
palms has joined #ruby
RegulationD has joined #ruby
jtzero has quit [Quit: Leaving.]
Purch_ has joined #ruby
Purch_ has quit [Client Quit]
oo_ has joined #ruby
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 252 seconds]
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
byprdct has joined #ruby
jgorak__ is now known as jgorak
byprdct has quit [Max SendQ exceeded]
sohrab_ has joined #ruby
jaredrhine has joined #ruby
oo_ has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
krisquigley has joined #ruby
oo_ has joined #ruby
sohrab has quit [Ping timeout: 245 seconds]
bricker has joined #ruby
nullset68 has joined #ruby
jordsmi has joined #ruby
jerematic has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
inavele has joined #ruby
amclain has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
steven43226 has joined #ruby
<inavele> hi ! Question: Someone has been haved this error trying to make a 'bundle install'
<inavele> An error occurred while installing do_postgres (0.10.14), and Bundler cannot
<inavele> continue.
<inavele> ?
A205B064 has quit [Ping timeout: 250 seconds]
steven43126 has quit [Ping timeout: 250 seconds]
<centrx> That can't be the complete error message
<inavele> An error occurred while installing do_postgres (0.10.14), and Bundler cannot
<inavele> continue.
<inavele> Make sure that `gem install do_postgres -v '0.10.14'` succeeds before bundling.
<inavele> sorry
<centrx> There's probably more before that message, that history of how this error came to be
<centrx> but what happens when you do the gem install ?
pontiki has joined #ruby
havenwood has quit [Remote host closed the connection]
<jordsmi> googled error. someone said "It looks like you do not have postgreserverdev package installed." and it fixed it for the other guy
djdarkbeat has quit [Quit: djdarkbeat]
havenwood has joined #ruby
<inavele> yeah that's true i verify and i haven't installed pg on this PC LoL sorry stupid mistake
<jordsmi> that'll do it
<jordsmi> haha
longfeet has joined #ruby
<inavele> hahaha ':D
jeremati_ has joined #ruby
aghalarp has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
palms has quit [Ping timeout: 272 seconds]
aghalarp has quit [Max SendQ exceeded]
jerematic has quit [Ping timeout: 252 seconds]
greenbagels has joined #ruby
MatthewsFace has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Ping timeout: 252 seconds]
PaulCapestany has quit [Quit: .]
serivichi has joined #ruby
charlenopires has joined #ruby
PaulCapestany has joined #ruby
Dopagod has joined #ruby
<bradland> soooooo... curses libraries. std-lib, or is there a better alternative?
havenwood has joined #ruby
<Radar> bradland: for what?
<bradland> ruby-toolbox results aren't looking promising
postmodern has joined #ruby
deansc has joined #ruby
<bradland> CLI app
<bradland> it's going to be a document filer
<bradland> documents hit a folder. app iterates over the files asking the user to complete information (which they will know) about the file.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<bradland> after which the app will hit an API to make an entry, and move the file elsewhere
cpt_yossarian has quit [Quit: And then he took off.]
<Radar> Did you look at Thor?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
charlenopires has left #ruby ["Be back later ..."]
<bradland> sorry, i shouldn't have said CLI app. i meant text mode app.
<bradland> i could do this very easily with a sinatra app
pdoherty has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
<sevenseacat> 'text mode app'?
<bradland> struggling with terminology here, sorry
<bradland> ever used a curses app?
<bradland> it's a GUI made from text
cpt_yossarian has joined #ruby
jerematic has joined #ruby
<sevenseacat> nope
<bradland> aptitude invoked with no arguments is like a curses app
<jhass> s/like//
<bradland> is aptitude literally curses?
<bradland> wow
mrbond has quit [Quit: mrbond]
jeremati_ has quit [Ping timeout: 256 seconds]
<jhass> top, htop
<jhass> pretty sure
fryguy9 has joined #ruby
djdarkbeat has joined #ruby
Porfa_ has joined #ruby
<bradland> i can't believe htop is hosted on sourceforge
<bradland> bleh
porfa has quit [Ping timeout: 240 seconds]
Porfa_ is now known as porfa
palms has joined #ruby
<havenwood> Speaking of TUIs: https://lobste.rs/bbs
nullset68 has quit [Quit: Leaving]
Porfa__ has quit [Ping timeout: 244 seconds]
Porfa_ has joined #ruby
<havenwood> bbs nostalgia
<bradland> ermahgherd
mburns has quit [Ping timeout: 252 seconds]
jeremati_ has joined #ruby
<havenwood> Username `guest` with blank password, as is meant to be.
jeremati_ has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
jaredrhine has quit [Ping timeout: 276 seconds]
<bradland> man, this is fantastic
jerematic has quit [Ping timeout: 245 seconds]
jeramy_s has joined #ruby
reset has quit [Quit: Leaving...]
<havenwood> bradland: The stdlib curses was deprecated and gemified into the gem curses.
mikenovikov has quit [Quit: Textual IRC Client: www.textualapp.com]
qualityaddict has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
bruno- has joined #ruby
enebo has quit [Quit: enebo]
<havenwood> bradland: Lives here now: https://github.com/ruby/curses#readme
qualityaddict has joined #ruby
towski_ has joined #ruby
mrbond has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland> gotcha, thx havenwood
lordkryss has quit [Quit: Connection closed for inactivity]
Takle has quit [Ping timeout: 245 seconds]
kinduff has quit [Quit: Saliendo]
agrinb has joined #ruby
iamjarvo has joined #ruby
jerematic has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
<inavele> Man this error should i have reinstall ruby?, 'cause recently I installed heroku toolbelt but the instalation was interrupted because the energy power was disconected https://gist.github.com/nerionavea/8b0654c643369e6cf0f1
<jhass> inavele: checking for libpq-fe.h... no
enebo has quit [Client Quit]
<jhass> this means you didn't install development headers for the postgresql client library
postmodern has quit [Quit: Leaving]
swills has quit [Quit: leaving]
<Radar> Oops someone didn't follow Radar's Fool Proof Guide To Installing Ruby
<inavele> jhass: development headers? i'm rockie ':D
baweaver has joined #ruby
<jhass> inavele: it's some package, depends on distribution
<inavele> Radar Radar's Fool Proof Gyude?
<inavele> guide?
<sevenseacat> libpq-dev is what you need
<jhass> you ruby is doing fine so far
<sevenseacat> sudo apt-get install libpq-dev
<jhass> no need to touch it
<inavele> all right thanks
qualityaddict has quit [Ping timeout: 255 seconds]
<inavele> on fedora?
<sevenseacat> oh
makepkgnotwar has joined #ruby
<sevenseacat> no, thats yum install postgresql-devel
<jhass> libpg-devel or so
<sevenseacat> i think
<jhass> what sevenseacat said
<sevenseacat> lemme check
<sevenseacat> yep i was right
<baweaver> fair warning that Fedora tends to be Redhats beta playground
jeremati_ has joined #ruby
<baweaver> proceed with caution.
<jhass> fedora is fine
lanemeyer has quit [Ping timeout: 256 seconds]
tier has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
lanemeyer has joined #ruby
makepkgnotwar has quit [Max SendQ exceeded]
<inavele> baweaver: really?
qualityaddict has joined #ruby
makepkgnotwar has joined #ruby
towski_ has quit [Remote host closed the connection]
* jhass sighs
<baweaver> I had a few problems with it earlier on with some mismatches and odd features. Your mileage may vary.
jerematic has quit [Ping timeout: 264 seconds]
<sevenseacat> theres no problem with defora.
<sevenseacat> fedora even.
<baweaver> is defora a thing?
* baweaver googles
makepkgnotwar has quit [Max SendQ exceeded]
<baweaver> huh
Deele has quit [Quit: User excited]
<baweaver> looks a bit sketchy though
makepkgnotwar has joined #ruby
<sevenseacat> i'm having major brain fails today, so im probably going to say stupid things. (but sevenseacat how is that different from any other day?) you have been warned
<baweaver> sevenseacat: Defora is an actual OS
<baweaver> was that by sheer luck or knowledge?
<sevenseacat> sheer luck
<baweaver> Go figure.
<jhass> reminds me of http://forkfedora.org/
<jhass> ooh, it's down :(
<baweaver> Mint has an odd habit of deprecating package repos on older versions
<baweaver> or rather not updating it properly.
<sevenseacat> mint i dont understand
<baweaver> Mostly people who want Ubuntu but don't like the design choices it took to
<sevenseacat> well it did make some shitty decisions
<baweaver> they beat Windows to the "Looks like a phone" game
<inavele> I like gnome 3
<sevenseacat> i dislike everything about gnome 3
<baweaver> Cinnamon is a decent GUI, I'll give that to them.
yh has quit [Ping timeout: 264 seconds]
hfp_ has joined #ruby
makepkgnotwar has quit [Max SendQ exceeded]
<baweaver> Same, but opinions really.
<inavele> and Pantheon much more but
<baweaver> Starting to edge towards KDE and XFCE.
<inavele> Why?
<sevenseacat> i'd probably like it more if they had a non-butt-ugly optional skin for it
hfp__work has joined #ruby
mrbond has quit [Quit: mrbond]
<inavele> LoL
makepkgnotwar has joined #ruby
dorei has quit [Remote host closed the connection]
<jhass> sevenseacat: it's themable
<jhass> with CSS even
hfp has quit [Ping timeout: 252 seconds]
hfp_ is now known as hfp
<sevenseacat> it is, but themes get out of date in five seconds
<sevenseacat> and then they work horribly
<baweaver> jhass: you forget CSS is black magic to most people :P
hfp_work has quit [Ping timeout: 264 seconds]
davispuh has quit [Read error: Connection reset by peer]
hfp__work is now known as hfp_work
* baweaver knows css from long and painful lessons in > IE5.5 compatability
<inavele> baweaver: haha
<jhass> there are some decent ones
chrisja has quit [Quit: leaving]
<inavele> jhass: themes?
<jhass> yeah
makepkgnotwar has quit [Max SendQ exceeded]
tjbiddle has quit [Quit: tjbiddle]
makepkgnotwar has joined #ruby
<baweaver> Is it bad that I tend to install Enlightenment or xMonad anymore though?
amystephen has quit [Quit: amystephen]
<jhass> no, use whatever you want
kubunto has joined #ruby
Ellis has quit [Quit: Ellis]
<inavele> well i'ts posible that Elementary-desktop will be avaibe for fedora on the next version
<baweaver> starting to throw out eye candy for productivity
<sevenseacat> i've gotten used to unity
wallerdev has quit [Ping timeout: 250 seconds]
<sevenseacat> though now im on osx and it shits me up the wall
makepkgnotwar has quit [Max SendQ exceeded]
<jhass> yeah, I utterly fail every time I have to do anything with a mac
<jhass> I can't even properly right click
<sevenseacat> the cmd key is the main source of my frustration
adriancb has quit [Remote host closed the connection]
a5i has joined #ruby
makepkgnotwar has joined #ruby
deansc has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
akkad has joined #ruby
makepkgnotwar has quit [Max SendQ exceeded]
Deele has joined #ruby
makepkgnotwar has joined #ruby
MatthewsFace has quit [Ping timeout: 252 seconds]
paradisaeidae has quit [Read error: Connection reset by peer]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paradisaeidae has joined #ruby
Ellis has joined #ruby
palms has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
einarj has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
sankaber has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland> i love the chording on OS X (thumb/cmd vs pinky/ctrl)
Ellis has quit [Quit: Ellis]
<pipework> banister: Hey, I don't mean to expose you to my rushed state, but I'm curious, in some situations a binding.pry seems to jump into the wrong place if the binding.pry call is the last line.
einarj has quit [Ping timeout: 250 seconds]
<bradland> orly? never seen that. got anything that will reproduce? I'm sure the pry team would appreciate the bug report.
<sevenseacat> ive seen that
mburns has joined #ruby
<sevenseacat> gotten used to putting binding.pry; true everywhere
<pipework> sevenseacat: That's nicer than what I write... :p
<bradland> oh, you mean when binding.pry is the last line of a method.
<bradland> i thought you meant last line of a file
<bradland> that makes more sense
<bradland> yeah, placing anything on the last line of a method would be considered a material change to the method, because that's going to change it's return value, no?
<pipework> Not neccesarily methods.
<pipework> A few things do that.
Necromance has joined #ruby
<pipework> I can dig in and produce specific situations it does and doesn't, I was more curious about whether he'd heard of it.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> As he's the author and big cheese of the whole thing.
Necromance has left #ruby [#ruby]
tubuliferous_ has joined #ruby
adriancb has joined #ruby
iotouch has joined #ruby
atmosx_bsd has joined #ruby
casadei has joined #ruby
musashi1 has joined #ruby
terrellt has quit [Ping timeout: 265 seconds]
amitchellbullard has quit [Ping timeout: 265 seconds]
alol__ has quit [Ping timeout: 265 seconds]
LBRapid has quit [Ping timeout: 265 seconds]
mathie has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
revoohc has joined #ruby
exadeci has quit [Ping timeout: 265 seconds]
zero7 has quit [Ping timeout: 265 seconds]
pizzaops has quit [Ping timeout: 265 seconds]
alol__ has joined #ruby
terrellt has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
prasselpikachu has quit [Ping timeout: 265 seconds]
ramblinpeck_ has quit [Ping timeout: 265 seconds]
zzak has quit [Ping timeout: 265 seconds]
pusewicz has quit [Ping timeout: 265 seconds]
incomprehensibly has quit [Ping timeout: 265 seconds]
AdamMeghji has quit [Ping timeout: 265 seconds]
johnhamelink has quit [Ping timeout: 265 seconds]
auraka has quit [Ping timeout: 265 seconds]
jalcine has quit [Ping timeout: 265 seconds]
atmosx has quit [Ping timeout: 265 seconds]
mva has quit [Ping timeout: 265 seconds]
teotwaki has quit [Ping timeout: 265 seconds]
mjmac has quit [Ping timeout: 265 seconds]
sankaber has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
towski_ has joined #ruby
jokester has quit [Ping timeout: 265 seconds]
bcavileer has quit [Ping timeout: 265 seconds]
neektza has quit [Ping timeout: 265 seconds]
blackjid has quit [Ping timeout: 265 seconds]
jimeh has quit [Ping timeout: 265 seconds]
unclouded has quit [Ping timeout: 265 seconds]
Nightmare has quit [Ping timeout: 265 seconds]
pagios has quit [Ping timeout: 265 seconds]
Affix has quit [Ping timeout: 265 seconds]
jaxxstorm has quit [Ping timeout: 265 seconds]
larissa has quit [Ping timeout: 265 seconds]
universa1 has quit [Ping timeout: 265 seconds]
dseitz has joined #ruby
pusewicz has joined #ruby
zzak has joined #ruby
ramblinpeck_ has joined #ruby
casadei has quit [Ping timeout: 250 seconds]
exadeci has joined #ruby
Feyn has joined #ruby
incomprehensibly has joined #ruby
zero7 has joined #ruby
pizzaops has joined #ruby
neektza has joined #ruby
pagios has joined #ruby
AdamMeghji has joined #ruby
bcavileer has joined #ruby
tmoor has quit [Remote host closed the connection]
pico-pete has joined #ruby
larissa has joined #ruby
teotwaki has joined #ruby
mathie has joined #ruby
johnhamelink has joined #ruby
jaxxstorm has joined #ruby
Nightmare has joined #ruby
tylersmith has joined #ruby
mjmac has joined #ruby
Affix has joined #ruby
LBRapid has joined #ruby
jalcine has joined #ruby
prasselpikachu has joined #ruby
fryguy9 has quit [Quit: Leaving.]
universa1 has joined #ruby
Affix is now known as Guest52049
tmoor has joined #ruby
tier has quit []
blackjid has joined #ruby
zarubin_ has joined #ruby
jimeh has joined #ruby
bricker has joined #ruby
quintinadam has joined #ruby
riotjones has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
fryguy9 has joined #ruby
serivichi has quit [Quit: Leaving]
zarubin_ has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
sevvie has joined #ruby
amitchellbullard has joined #ruby
quintinadam has quit [Ping timeout: 245 seconds]
unclouded has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
mva has joined #ruby
legit has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
auraka has joined #ruby
revoohc has quit [Quit: revoohc]
tkuchiki has joined #ruby
jokester has joined #ruby
baroquebobcat has joined #ruby
framling has joined #ruby
x1337807x has joined #ruby
RegulationD has joined #ruby
revoohc has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gccostabr has quit [Quit: ZZZzzz…]
sankaber has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
sankaber has quit [Client Quit]
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deansc has joined #ruby
tus has quit []
iotouch has quit [Quit: 离开]
iotouch has joined #ruby
iteratorP has joined #ruby
iotouch has left #ruby [#ruby]
krisquigley has joined #ruby
markholmes has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
jenrzzz has quit [Ping timeout: 240 seconds]
turtil has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
sevvie has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
bim has quit [Remote host closed the connection]
wildroman2 has joined #ruby
fryguy9 has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
wildroman2 has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
TheGugaru has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
lewix has quit [Remote host closed the connection]
snath has joined #ruby
Darryl___ has joined #ruby
kubunto has quit [Quit: Learn the rules so you know how to break them properly.]
Ellis has joined #ruby
slawrenc_ has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
Filete has joined #ruby
TheGugaru has joined #ruby
wildroman2 has quit [Remote host closed the connection]
thumpba has joined #ruby
wildroman2 has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
Dopagod has quit [Ping timeout: 256 seconds]
wildroman2 has quit [Remote host closed the connection]
legit has quit [Quit: Leaving]
wildroman2 has joined #ruby
Coraline has quit [Quit: Exit, stage left]
Coraline has joined #ruby
adriancb has joined #ruby
makepkgnotwar has joined #ruby
jeremati_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
porfa has quit [Quit: porfa]
Porfa_ is now known as Porfa
davedev2_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
davedev24_ has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
palms has joined #ruby
tlarevo has joined #ruby
rdema has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
wildroman2 has quit [Remote host closed the connection]
Dopagod has joined #ruby
Hijiri has joined #ruby
rdema has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
nycjv321 has joined #ruby
sevvie has quit [Ping timeout: 276 seconds]
Sawbones_ has joined #ruby
wildroman2 has joined #ruby
sevvie has joined #ruby
rubytor has joined #ruby
<nycjv321> what is proper syntax for testing multiple get.chomp statements within a single method? clazz.stub(:gets).and_return('input') only supports one input at a time.
bruno- has quit [Ping timeout: 264 seconds]
<nycjv321> I think I figured it out
<jhass> iirc you can pass a block to and_return
<jhass> and thus closure over an array and pop off the values or something
<nycjv321> yea figured it out.
braincrash has joined #ruby
Eiam_ has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
pontiki has quit [Quit: fading out, off to read]
RedCrustacean has left #ruby ["WeeChat 1.1"]
bricker has quit [Ping timeout: 264 seconds]
lnr has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
jenrzzz has quit [Ping timeout: 272 seconds]
EnduranceMan has joined #ruby
arescorpio has quit [Excess Flood]
Mark-6ma has joined #ruby
mordocai has joined #ruby
<EnduranceMan> Could anyone help me out with copying an array into a new array and replacing values?
lnr has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
yh has joined #ruby
Pupeno has joined #ruby
parduse has quit [Ping timeout: 272 seconds]
towski_ has quit [Remote host closed the connection]
EnduranceMan has left #ruby [#ruby]
lnr has quit [Ping timeout: 245 seconds]
Mark-6ma has quit [Quit: -]
yh has quit [Ping timeout: 244 seconds]
parduse has joined #ruby
EnduranceMan has joined #ruby
mbuf has joined #ruby
nullset68 has joined #ruby
sevvie has joined #ruby
<EnduranceMan> Could anyone here help me out with copying an array into a new array while changing values?
lemur has joined #ruby
rubytor has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 276 seconds]
terlar has quit [Ping timeout: 256 seconds]
tcrypt has quit [Remote host closed the connection]
mbuf has quit [Client Quit]
enterprisedc has quit [Quit: enterprisedc]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
bim has joined #ruby
parduse has quit [Ping timeout: 265 seconds]
nullset68 has quit [Quit: Leaving]
<mozzarella> !ask
Porfa has quit [Remote host closed the connection]
<woop> EnduranceMan: sounds like a job for map
parduse has joined #ruby
narcan has joined #ruby
Ellis has quit [Quit: Ellis]
yfeldblum has joined #ruby
bim has quit [Ping timeout: 272 seconds]
quintinadam has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nazty has joined #ruby
<EnduranceMan> !ask
<EnduranceMan> sorry, I'm new here, what is the protocol for asking a question?
lnr has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<woop> you ask the questino
zzing has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
<woop> not if you're allowed to ask the question
happyface has quit [Quit: Connection closed for inactivity]
lemur has quit [Read error: Connection reset by peer]
<woop> speaking of questions - anybody out there gotten the jsapi to work sending tokens to their ruby server to exchange?
<woop> blern
lemur has joined #ruby
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<woop> trying to paste my question, but my laptop doesn't want to
<EnduranceMan> oh I see. Well I'm trying to iterate over a two dimensional array and locate all instances of '*', then take the cells adjacent to THAT cell and count them up. +1 for each adjacent cell. I'm also trying to replace instances of cells that contain '.' with 0
deansc has quit [Remote host closed the connection]
<EnduranceMan> Here's the code in question https://gist.github.com/anonymous/e6d5555887927581b1a0
merqlove has joined #ruby
<EnduranceMan> specifically the create_hint_board function
oo_ has quit [Remote host closed the connection]
lnr has quit [Ping timeout: 245 seconds]
parduse has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
gsd has joined #ruby
wildroman2 has quit [Remote host closed the connection]
quintinadam has quit []
wildroman2 has joined #ruby
<woop> well
<woop> what's the question, again?
<woop> I don't see one
parduse has joined #ruby
<woop> EnduranceMan:
thumpba has quit [Remote host closed the connection]
Sawbones_ has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 256 seconds]
<woop> just use for loops, man
<woop> you're getting all goofed up on higher-order functions that don't make sense in this context
riotjones has joined #ruby
techietrash has joined #ruby
makepkgnotwar has joined #ruby
quintinadam has joined #ruby
<woop> just read the error message
longfeet has quit [Ping timeout: 272 seconds]
<woop> go to the line
adriancb_ has joined #ruby
michael_mbp has quit [Excess Flood]
<woop> and understand the difference between what you think you're doing and what's happening by maybe inspecting the data that you *think* is an int but is an array
agrinb_ has joined #ruby
michael_mbp has joined #ruby
Morkel has joined #ruby
<woop> additionally... you're going to ned to deal with additional context outside of the scope of any single element of either the outer array or inner array if I understand what you're saying
<woop> so for loops, it is
Dreamer3 has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 245 seconds]
nycjv321 has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 245 seconds]
palms has quit [Ping timeout: 276 seconds]
turtil has quit [Quit: WeeChat 1.1.1]
<EnduranceMan> got it, so iterate over with for loops
lnr has joined #ruby
<EnduranceMan> so set i = 0, for i < minesarray.length, i++?
<EnduranceMan> oh wait that's java isn't it
<woop> like... if something on row 0 is a *, you want the element in the same column of row 1 to be altered
<woop> yes?
<EnduranceMan> damn i hate switching languages
<EnduranceMan> right
Mia has quit [Read error: Connection reset by peer]
<EnduranceMan> well I want the * to stay as *
<EnduranceMan> the . to change to 0
<woop> but you want the surounding bits to get changed
<woop> yeah
<EnduranceMan> yeah
Channel6 has quit [Quit: Leaving]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
RegulationD has joined #ruby
sevvie has joined #ruby
<woop> I'd say stick with the control structures you know unless you know why you would use a map
<EnduranceMan> so in ruby I can say for i in column, if i != *, i = 0?
icebourg has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
mordocai has quit [Remote host closed the connection]
<EnduranceMan> it isn't erroring but also isn't changing any of the .s to 0s
Sawbones has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mozzarella> you're just reassigning the variable
<mozzarella> not mutating it
User458764 has joined #ruby
<woop> EnduranceMan: try using for loops instead, man
<woop> lol
krisquigley has joined #ruby
<woop> `for i in 0..minesarray.length ...`
<woop> you know.... the same for loop you'd use to do this in JAVA
<woop> just pretty
<woop> (each is a higher-order function, not a loop)
arup_r has joined #ruby
Deele has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
ponga has joined #ruby
arup_r has quit [Remote host closed the connection]
<woop> because you need to know your position and have access to more of the actual array than just the current element, normal loops are best
<woop> for the last time
* woop waves
<woop> bye
krisquigley has quit [Ping timeout: 265 seconds]
<EnduranceMan> thanks for the help
MatthewsFace has quit [Remote host closed the connection]
<mozzarella> uh, that's not true
<mozzarella> and for loops are considered bad ruby style
jordsmi has quit [Quit: Connection closed for inactivity]
<EnduranceMan> what do you do then? nested .each?
<woop> eh
<woop> use for loops
<sevenseacat> for loops are not idiomatic rucy.
<sevenseacat> ruby even
<mozzarella> use enumerators
<woop> but at the same time, this is a problem involving stepping through a 2d array and grabbing elements from other rows
<woop> grabbing/altering
x1337807x has joined #ruby
oo_ has joined #ruby
<mozzarella> I don't see how that changes anything
x1337807x has quit [Client Quit]
<inavele> question when i'm using e.g a Sinatra app on Heroku and this app have a rufus-scheluder process if i make a little change and another deploy on this app, will i lose this schelude?
Sawbones has quit [Remote host closed the connection]
<woop> mozzarella: if you're on the ith item of the jth row, how do you get the ith item of the (j-1)th row with enumerators, check its value, and mutate it?
<woop> do this without really gross side effects
<woop> I could totally see doing it with "idiomatic ruby" if the data were in different data structures
<sevenseacat> each_with_index
<mozzarella> use indexes instead of iterating over the items
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
oo_ has quit [Remote host closed the connection]
OtterCoder has joined #ruby
tubuliferous has joined #ruby
narcan has quit [Client Quit]
MatthewsFace has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
A205B064 has joined #ruby
renier has joined #ruby
reinaldob has joined #ruby
Eiam_ has joined #ruby
oo_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amdbcg1 has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Read error: No route to host]
Matthews_ has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
OtterCoder has quit [Remote host closed the connection]
jeromelanteri has quit [Ping timeout: 252 seconds]
reinaldob has quit [Ping timeout: 252 seconds]
tcrypt has joined #ruby
brainslug has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
tcrypt has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
tmoor has quit [Ping timeout: 256 seconds]
Dopagod has quit [Ping timeout: 255 seconds]
A205B064 has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
quintinadam has quit []
jeromelanteri has joined #ruby
thumpba has joined #ruby
lnr has quit [Ping timeout: 250 seconds]
<pipework> woop: Disagree. #each_with_index
relix has joined #ruby
<pipework> Oh I was scrolled up.
thumpba has quit [Ping timeout: 254 seconds]
astrobun_ has joined #ruby
towski_ has joined #ruby
lnr has joined #ruby
braincra- has joined #ruby
jenrzzz has joined #ruby
postmodern has joined #ruby
x1337807x has joined #ruby
<jxf> Is there a built-in way to get a lazy enumerator which returns [0, 1, 2, 3, ...] indefinitely?
braincrash has quit [Ping timeout: 265 seconds]
<jxf> I know I can just write something easy like `ns = Enumerator.new { |y| n = 1; loop { y.yield n; n += 1 } }` but I don't want to sprinkle that all over the place
<Radar> jxf: Depends on if there's an upper limit to that number.
<jxf> Radar: There is not. That's why I want it to be lazy.
techietrash has quit [Quit: Bye! <(^_^<)]
CustosL1m3n has joined #ruby
<Radar> Because there's 1.upto(999)
<jxf> Well, sure, but that's not a lazy enumerator.
<brainslug> try (1..Float::INFINITY).lazy
markholmes is now known as sydneyyyyy
<Radar> 1.upto(999).lazy
<Radar> there you go
<jxf> brainslug: That's clever, I like that.
<jxf> Radar: it also stops at 999. :P
tlarevo has quit []
<jxf> A lot of math would break if "infinity" was 999. :)
A205B064 has quit [Ping timeout: 252 seconds]
<Radar> Well it's good that we've discussed a solution for a problem... but what is the problem that you're trying to solve?
sydneyyyyy is now known as holmsiedoodle
oo_ has quit [Remote host closed the connection]
holmsiedoodle is now known as markholmes
oo_ has joined #ruby
hanmac1 has joined #ruby
<jxf> Radar: I want to invoke an expensive API method repeatedly with members from the sequence [1, 2, 3, ...], get the result, and accumulate it. If the result is zero, stop and return the accumulated value. Otherwise, repeat with the next integer.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> jxf: Ah, thanks :)
<jxf> This is a fairly common task for things like paginated APIs. You know how to get the next page, but you don't know how many pages there are. Lazy enumerator!
yh has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
musashi1 has quit [Ping timeout: 256 seconds]
lnr has quit [Ping timeout: 256 seconds]
hgl has quit [Ping timeout: 265 seconds]
yh has quit [Ping timeout: 248 seconds]
lnr has joined #ruby
ahmetkapikiran has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
hgl has joined #ruby
wildroman2 has quit [Remote host closed the connection]
icebourg has quit []
parduse has quit [Ping timeout: 240 seconds]
A205B064 has joined #ruby
lnr has quit [Ping timeout: 256 seconds]
parduse has joined #ruby
towski_ has quit [Remote host closed the connection]
xploshioon has joined #ruby
agrinb_ has quit [Remote host closed the connection]
xploshioon has quit [Client Quit]
agrinb has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
arup_r has joined #ruby
lnr has joined #ruby
tkuchiki_ has joined #ruby
bluOxigen has joined #ruby
A205B064 has quit [Ping timeout: 245 seconds]
arup_r has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 245 seconds]
qualityaddict has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
lnr has quit [Ping timeout: 255 seconds]
A205B064 has joined #ruby
hmnhf_ has quit [Ping timeout: 245 seconds]
bigkevmc_ has joined #ruby
ping-pong has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
bigkevmcd has quit [Ping timeout: 245 seconds]
benlieb_ has joined #ruby
parduse has quit [Ping timeout: 272 seconds]
thumpba has quit [Remote host closed the connection]
benlieb_ has quit [Client Quit]
lnr has joined #ruby
tagrudev has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Darryl___ has quit [Quit: Connection closed for inactivity]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
hmsimha has joined #ruby
ping-pong has joined #ruby
sinkensabe has joined #ruby
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse has joined #ruby
LudicrousMango has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
bigmac_ has quit [Ping timeout: 255 seconds]
wldcordeiro has joined #ruby
tkuchiki has joined #ruby
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
turtil has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
A205B064 has quit [Quit: Leaving]
A205B064 has joined #ruby
bigkevmc_ is now known as bigkevmcd
tkuchiki_ has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Remote host closed the connection]
Regulati_ has joined #ruby
bigmac_ has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
jerematic has joined #ruby
f3lp_ has joined #ruby
f3lp_ has quit [Client Quit]
Regulati_ has quit [Ping timeout: 272 seconds]
jerematic has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
krisquigley has joined #ruby
charliesome has quit [Quit: zzz]
relix has joined #ruby
relix has quit [Client Quit]
hmnhf_ has joined #ruby
Matthews_ has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
DavidDudson has joined #ruby
sinkensabe has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
makepkgnotwar has joined #ruby
hmnhf_ has quit [Ping timeout: 252 seconds]
hmnhf__ has joined #ruby
hmnhf__ has quit [Client Quit]
hmnhf has joined #ruby
riotjones has joined #ruby
sohrab_ has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
Joufflu has joined #ruby
SouL_|_ has joined #ruby
Joufflu_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 276 seconds]
akhkharu has joined #ruby
brainslug has quit [Quit: all glory to hypnotoad]
tubuliferous has joined #ruby
tesuji has joined #ruby
Joufflu has quit [Ping timeout: 245 seconds]
f3lp has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 265 seconds]
howdy has joined #ruby
reinaldob has joined #ruby
agrinb has joined #ruby
akkad has quit [Excess Flood]
elaptics_away is now known as elaptics
bradleyprice has joined #ruby
akhkharu is now known as brainslug
tubuliferous has quit [Ping timeout: 255 seconds]
FrankD_ has joined #ruby
livathinos has joined #ruby
<gr33n7007h> top of the morning to ya
fawkes1 has joined #ruby
mengu has quit [Remote host closed the connection]
fawkes1 has quit [Max SendQ exceeded]
reinaldob has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
akkad has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
howdy has quit [Quit: Page closed]
FrankD has quit [Ping timeout: 245 seconds]
draconian has joined #ruby
draconian has quit [Max SendQ exceeded]
Sawbones has quit [Read error: Connection reset by peer]
draconian has joined #ruby
draconian has quit [Max SendQ exceeded]
<flughafen> sup apeiros certainty arup_r shevy sevenseacat
<apeiros> work
astrobun_ has quit [Remote host closed the connection]
<sevenseacat> o/ flughafen
<flughafen> me too!
<sevenseacat> me three!
<flughafen> worky worky worky
<apeiros> meow?
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
Spami has joined #ruby
<flughafen> sevenseacat is playing with a ball of yarn
* sevenseacat puzzling over best way to do currency options on forms
draconian has joined #ruby
draconian has quit [Max SendQ exceeded]
cefkamcau has joined #ruby
<flughafen> sevenseacat: use 2 balls of yarn
<sevenseacat> :P
Wolland has joined #ruby
sigurding has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
codecop has joined #ruby
* flughafen puts on sunglasses
<flughafen> now that's what i call, multi-threaded
<flughafen> yeaaaaaahhh
Wolland has quit [Client Quit]
<sevenseacat> lol
<shortdudey123> the newest version of ruby in the ubuntu 14.04 repo is 1.9.3 :(
<sevenseacat> shouldnt be - there's a ruby2 package as well
<sevenseacat> cant guarantee it will be much better though
bruno- has joined #ruby
<shortdudey123> ah, thanks didn't notice that!
<sevenseacat> np
sharingan has joined #ruby
sharingan has quit [Max SendQ exceeded]
eshiffob has quit [Ping timeout: 256 seconds]
bal has joined #ruby
ki0 has joined #ruby
Echoes-- has quit [Read error: Connection reset by peer]
Echoes-- has joined #ruby
<brainslug> shortdudey123 I use brightbox repo https://www.brightbox.com/docs/ruby/ubuntu/
<brainslug> they provide latest optimized versions
<shortdudey123> ah
towski_ has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
ki0_ has joined #ruby
pandaant has joined #ruby
hs366 has joined #ruby
tmoor has joined #ruby
astrobun_ has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
allenn has joined #ruby
Takle_ has joined #ruby
<atmosx_bsd> brainslug: interesting. I always used vanilla ruby in my server to avoid fucked up configurations
amclain has quit [Quit: Leaving]
Takle has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
SouL_|_ has quit [Read error: No route to host]
charliesome has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
oo_ has quit [Remote host closed the connection]
SouL_|_ has joined #ruby
C1V0 has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
theotherstupidgu has joined #ruby
shadowfax has joined #ruby
shadowfax has quit [Max SendQ exceeded]
mengu has joined #ruby
taxen has joined #ruby
iwishiwerearobot has joined #ruby
SouL_|_ has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Pupeno has joined #ruby
Pupeno has joined #ruby
theotherstupidgu has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
<pipework> sevenseacat: That sounds pretty complicated to do really effectively.
<pipework> Or at least accurately and honestly.
djbkd_ has joined #ruby
theotherstupidgu has joined #ruby
arup_r_ has joined #ruby
<arup_r_> Hi all
Sawbones has quit [Remote host closed the connection]
arup_r_ has quit [Client Quit]
arup_r has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
theotherstupidgu has quit [Client Quit]
Takle_ has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
arup_r has joined #ruby
yh has joined #ruby
sevvie has quit [Remote host closed the connection]
sevvie_ has joined #ruby
hmnhf_ has joined #ruby
SouL_|_ has joined #ruby
hmnhf has quit [Read error: Connection reset by peer]
ahmetkapikiran has joined #ruby
wldcordeiro has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
iteratorP has quit [Read error: Connection reset by peer]
kyrylo has quit [Ping timeout: 244 seconds]
shadowfax has joined #ruby
iteratorP has joined #ruby
mikecmpb_ has quit [Quit: i've nodded off.]
shadowfax has quit [Max SendQ exceeded]
yh has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Ping timeout: 245 seconds]
hmnhf_ has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
Sawbones has joined #ruby
froots has quit [Read error: Connection reset by peer]
froots has joined #ruby
aswen has joined #ruby
tmoor has quit [Quit: Leaving]
ruboto has quit [Remote host closed the connection]
bim has joined #ruby
labria has joined #ruby
Hounddog has joined #ruby
jenrzzz has joined #ruby
bim has quit [Ping timeout: 256 seconds]
ayaz has joined #ruby
ayaz has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
agrinb has joined #ruby
djbkd_ has quit [Remote host closed the connection]
ayaz has joined #ruby
MyMind has joined #ruby
msgodf has joined #ruby
lemur has quit [Remote host closed the connection]
mroach_ has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
Sembei has quit [Ping timeout: 250 seconds]
mroach has quit [Read error: Connection reset by peer]
mroach_ is now known as mroach
tpimtts_away is now known as tpimtts
Sawbones has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Sawbones has joined #ruby
rdark has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
<arup_r> flughafen: o/
ponga has quit [Remote host closed the connection]
vire has joined #ruby
CustosL1m3n has quit [Ping timeout: 264 seconds]
<flughafen> hey arup_r
<arup_r> got fever... after 15 days.. I am going to marry.. :( So I am weak..
<hanmac1> hey flughafen: "all airplanes does fly high, except in berlin" ;P
<flughafen> good luck
<shevy> IV. Text Editor
<sevenseacat> i read through the results of that yesterday
<shevy> Vim: 15.2 %
<arup_r> flughafen: fever should not come now
<shevy> Emacs: 3.8 %
<shevy> we have a winner!!!
<flughafen> shevy: certainty noooooo!
<sevenseacat> it surprises me how many of the minority categories i fit into on that survey
fabrice31_ has joined #ruby
<arup_r> shevy: my country name is there. \o\
<arup_r> \o/
<sevenseacat> also, Notepad++ 34.7%. wtf.
<flughafen> sevenseacat: haha
<shevy> sevenseacat well, look at the word ... "cat-egories" ... it is for cats after all
<arup_r> lol
<shevy> I guess on windows notepad++ is ok
<arup_r> shevy: why you love `cats` too much instead of `tighers`
sameerynho has joined #ruby
<arup_r> tigers**
<arup_r> ?
<sevenseacat> http://stackoverflow.com/research/developer-survey-2015#work-complang this one is the amazing one i think
<shevy> tigers are cats too. big cats
<flughafen> shevy: vim runs on windows!
<shevy> the white tigers are cool
<flughafen> holy cow people are still using cvs
lxsameer has quit [Ping timeout: 252 seconds]
<shevy> arup_r: http://goo.gl/Bq44Ow
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> sevenseacat: Ahh! Ruby made me unhappy from your link
<shevy> flughafen yeah but you mean gvim right? and gvim is quite annoying
wildroman2 has quit [Remote host closed the connection]
<arup_r> shevy: before loading the pic my browser crashed.. what you sent ? :(
fabrice31 has quit [Ping timeout: 252 seconds]
<shevy> lol
<shevy> a white tiger
inavele has quit [Ping timeout: 255 seconds]
<shevy> VII. Compensation by Purchasing Power
<flughafen> shevy: i dunno, it's been more than 12 years since i've used windows
<shevy> How many Big Macs can you buy?
<shevy> what the ...
ruboto has joined #ruby
<sevenseacat> never heard of the big mac index?
<pipework> That's a fun read, however I doubt the value of it myself.
<shevy> I hate big macs
<pipework> Though it made for a lul.
<shevy> I always used to eat fish mac
<arup_r> Well now.. I see
<sevenseacat> pipework: oh it means nothing to me, as its all US/europe based
<pipework> PHP devs are cheaper. (maybe, but this isn't a great study)
<sevenseacat> which really has no relevance here
<shevy> hey
<arup_r> shevy: the tiger came out.. and jumped onto my Boss chair.. Why you said to him before sending ?
<sevenseacat> here = in Australia
<pipework> sevenseacat: Yeah, but I doubt it has relevance in those locations either. :p
<shevy> australia belongs to the british empire!
mostlybadfly has quit [Quit: Connection closed for inactivity]
jimms has joined #ruby
<sevenseacat> only on a technicality
<pipework> Because a study of self-reporting answers is full of holes?
<shevy> arup_r well, somewhere in India, or at least once upon a time, you had tigers. we never had tigers here in central europe! the biggest native cat we have (or have had) is the lynx
<pipework> At least it's a good reason to make nice enough graphs.
RegulationD has joined #ruby
<shevy> hmmm ok... in northeastern europe only...
charliesome has quit [Quit: zzz]
ndrei has joined #ruby
<shevy> 5.8% female visitors to stackoverflow
<shevy> ack
marr has joined #ruby
<shevy> arup_r, look
<shevy> "The community's primary interest in web applications"
<shevy> what the!!!
sevvie_ has quit [Remote host closed the connection]
<shevy> lol
sevvie has joined #ruby
<shevy> "Writing Ruby code is not challenging or interesting at this point"
<flughafen> shevy: i'd run lynx if i needed didn't need a real browser. but bugzilla and my project don't work in lynx
<hanmac1> shevy, leave him ... it seems he just wants the D ;p;p
<flughafen> or any textgg browser
sameerynho has quit [Ping timeout: 240 seconds]
<shevy> flughafen THE CAT
<shevy> hanmac1 I'm gonna read it and see if he can excite me into D
RegulationD has quit [Ping timeout: 250 seconds]
<hanmac1> flughafen: hmmm currently i got the idea how pages like youtube would look in a textbrowser when that browser would suport the AA lib ;P
Pumukel has joined #ruby
<arup_r> shevy: He is from Marketing domain! Ignore hime! like `him.ignore!`
<flughafen> shevy: D has built in looping constructs! how revolutionary!
sameerynho has joined #ruby
<sevenseacat> he makes D look interesting
<shevy> D looks like C and C++ and Java
Spami has quit [Quit: This computer has gone to sleep]
<shevy> "D has a built in looping construct for ranges called foreach."
<shevy> awesome
<shevy> auto swedishNames = names.map!(n => n ~ "son");
<adaedra> You want the D?
nopolitica has joined #ruby
<flughafen> shevy wants the D now adaedra !
<shevy> I don't even understand that construct
<arup_r> adeponte: no.. I want K
<sevenseacat> i can understand it apart from not knowing the ~ operator
<arup_r> please write one K interpreter for me someone..
<shevy> sevenseacat that is cause you are a clever cat
Sawbones has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<sevenseacat> not really.... i struggle too much with a lot of things
bruno- has joined #ruby
krisquigley has joined #ruby
<shevy> driving cars... catching mice ...
<shevy> I have a simple rule for my own code - I must not confuse myself
mengu has quit [Remote host closed the connection]
<shevy> that's why I failed at haskell
<sevenseacat> haskell is on my miles-long list of things to go back to
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<flughafen> shevy: she can see 11x better than us in the dark
<sevenseacat> as long as i have my glasses on
bluOxigen has quit [Ping timeout: 264 seconds]
nopolitica has quit [Client Quit]
<shevy> flughafen my cat brings me a mouse every now and then. Not specifically for me but because it likes to play with it in the flat rather than outside where it may be cold
Sawbones has joined #ruby
<flughafen> shevy: i can understand that.
bruno- has quit [Ping timeout: 255 seconds]
<flughafen> shevy: my cats are indoor only but one of them managed to catch a bat, we were able to get it from the cat before it was too late, we think it got away
tpimtts is now known as tpimtts_away
<shevy> cool
<shevy> a bat... you must live in some strange area
renier_ has joined #ruby
<shevy> that dude is kind of funny
<shevy> "I don't care about web applications."
<shevy> BUT
<flughafen> we had our windows open because it was hot, and i woke up in the middle of the night, and I hear this weird sound that sounded like a bat, so I got up and turned on the light and there was a bat flying around, and then the cat jumped and got it
<shevy> he uses sinatra + honeybadger
<shevy> so clearly, he does not care about web applications... he just uses them
yfeldblum has joined #ruby
renier has quit [Ping timeout: 252 seconds]
sigurding has quit [Quit: sigurding]
<shevy> "If you do decide to stay and work on Ruby things I recommend you immediately audit your Gemfile and try to remove 75% of all your dependencies."
<shevy> Aha! Problem solved! I have no Gemfiles.
<adaedra> :|
<adaedra> Why would we have to remove things from the Gemfile?
<adaedra> If it’s there, it’s for a reason...
livathinos has quit []
Pupeno has quit [Remote host closed the connection]
<shevy> dunno. Well, he complains about meta-magic in some gems
connor_goodwolf has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
Porfa has joined #ruby
oo_ has joined #ruby
<pipework> shevy: Thats fantastic!
m3nTe has joined #ruby
<pipework> adaedra: Everything is either there or not there for a reason. Whether that reason is good enough to stand up to certain levels of scrutiny is another question.
<shevy> I complained about some gems too. Especially when they have no documentation!
CustosL1m3n has joined #ruby
<pipework> I think his statement was more to the effect of "we're not big into dependencies here, make the ones you use count."
yfeldblu_ has joined #ruby
sigurding has joined #ruby
ponga has joined #ruby
nettoweb has joined #ruby
Porfa has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
markholmes has quit [Quit: So it goes.]
bim has joined #ruby
joonty has joined #ruby
tubuliferous has joined #ruby
User458764 has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
waxjar has quit [Ping timeout: 256 seconds]
ChasedSpade has quit [Read error: Connection reset by peer]
fabrice31_ has quit [Remote host closed the connection]
jrunning_ has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
Centrixx has joined #ruby
agrinb has joined #ruby
reinaldob has joined #ruby
msgodf has quit [Quit: Leaving]
jrunning_ has joined #ruby
msgodf has joined #ruby
waxjar has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 256 seconds]
DavidDudson has joined #ruby
einarj has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
deimos has quit [Ping timeout: 250 seconds]
retornam has quit [Ping timeout: 265 seconds]
<sevenseacat> he does come across as a grumpy git in that post
m3nTe has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 245 seconds]
Koshian has quit [Ping timeout: 265 seconds]
deimos has joined #ruby
reinaldob has quit [Ping timeout: 272 seconds]
retornam has joined #ruby
arup_r has joined #ruby
Koshian has joined #ruby
oo_ has joined #ruby
LudicrousMango has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
maasha has joined #ruby
<pipework> Oh, adam. he used to hang out.
taxen has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has quit [Remote host closed the connection]
<pipework> I'm glad he's leveled up in the years I've known him, I have too, but let's see what he's gotten into.
chthon has joined #ruby
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
<sevenseacat> i dont think i have. :(
georgesmith has quit [Quit: georgesmith]
einarj has quit [Ping timeout: 265 seconds]
colorisco has joined #ruby
OrbitalKitten has joined #ruby
fabrice31_ has joined #ruby
bradleyprice has quit [Remote host closed the connection]
lolmaus has joined #ruby
krisquig_ has quit [Remote host closed the connection]
<pipework> sevenseacat: You certainly have!
roshanavand has joined #ruby
krisquigley has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
m3nTe has joined #ruby
blackmesa has joined #ruby
AlphaTech is now known as zz_AlphaTech
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0m0 has joined #ruby
djbkd_ has joined #ruby
kreantos has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
krisquigley has joined #ruby
OrbitalKitten has joined #ruby
Advocation has joined #ruby
djbkd_ has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Client Quit]
lordkryss has joined #ruby
krz has joined #ruby
Pharaoh2 has joined #ruby
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
fabrice31_ has joined #ruby
labria_ has joined #ruby
OrbitalKitten has joined #ruby
jheg has joined #ruby
_ixti_ has joined #ruby
ixti has quit [Ping timeout: 246 seconds]
labria has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Client Quit]
fabrice31 has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
labria_ has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics_away
labria has joined #ruby
Takle has joined #ruby
ponga has quit [Remote host closed the connection]
ndrei has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
sevenseacat has quit [Ping timeout: 255 seconds]
makepkgnotwar has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has joined #ruby
colorisco has quit [Ping timeout: 264 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
kreantos has quit [Ping timeout: 244 seconds]
Takle_ has joined #ruby
<pipework> If ahawkins was here, I'd tell him that he's using 'sometime' when I think he means 'some time'
kevkev has joined #ruby
Takle has quit [Remote host closed the connection]
<pipework> At least he admits that constant lookup isn't the coolest thing.
<pipework> I don't actually like constant lookup in most contexts.
colorisco has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
vtunka has joined #ruby
bluOxigen has joined #ruby
sevensea_ has joined #ruby
sevensea_ is now known as sevenseacat
User458764 has joined #ruby
uber_ has joined #ruby
Guest52049 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
bim has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 248 seconds]
Synthead has quit [Ping timeout: 244 seconds]
fumduq has quit [Ping timeout: 252 seconds]
fumduq has joined #ruby
LudicrousMango has joined #ruby
einarj has joined #ruby
<gr33n7007h> !sixthsense
bim has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
yh has joined #ruby
workmad3 has joined #ruby
Takle_ has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
roolo has joined #ruby
jimms has quit [Remote host closed the connection]
uber has left #ruby ["cha"]
MatthewsFace has joined #ruby
Sawbones has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
uber_ is now known as uber
bim has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
quimrstorres has joined #ruby
b1nd has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 245 seconds]
yh has quit [Ping timeout: 264 seconds]
Synthead has joined #ruby
m3nTe has left #ruby [#ruby]
mlev has joined #ruby
MatthewsFace has quit [Ping timeout: 276 seconds]
Igorshp has joined #ruby
yh has joined #ruby
A205B064 has quit [Ping timeout: 245 seconds]
mjmac has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
b1nd has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
mjmac has joined #ruby
c0m0 has joined #ruby
livathinos has joined #ruby
coderhs has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
johnchalekson has joined #ruby
yh__ has joined #ruby
yh has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
reinaldob has joined #ruby
bim has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
tpimtts_away is now known as tpimtts
iamninja has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
apoplexy_da_boss has joined #ruby
<apoplexy_da_boss> why is php bad and why is ruby good
<apoplexy_da_boss> and could a newb programmer skip php and learn ruby instead?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> ... do you want to start a nuclear war? :P
<apoplexy_da_boss> yes
* canton7 runs
<apoplexy_da_boss> as long as the result is the truth
Vile` has joined #ruby
<yh__> canton7: Ruby vs PHP is really war? :)
<canton7> no such thing when comparing programming languages, heh
<jhass> apoplexy_da_boss: yes, you can skip php
<canton7> yh__, depends whether any PHP guys are about
<jhass> everybody else: ignore the other question
RegulationD has joined #ruby
<yh__> canton7: change-resistance rabble at best ;)
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<apoplexy_da_boss> jhass: why ignore the other question?
<canton7> yh__, they do have valid points
<yh__> canton7: which are?
<workmad3> !popcorn
<toertore> there is such a thing as stupid questions
<jhass> apoplexy_da_boss: because there's no useful or productive discussion to come from it
<apoplexy_da_boss> a friend of mine never s's tfu about ruby and says how much he hates php
<apoplexy_da_boss> and i dont get why
johnchalekson has joined #ruby
<canton7> cheaper, more ubiquitous hosting. PHP has evolved a lot recently. to a degree, devs are responsible for writing bad code
<apoplexy_da_boss> he claims php is bad and says ruby is good and i dont get how a language can be good or bad
johnchalekson has quit [Max SendQ exceeded]
<toertore> then your friend is an idiot and can be ignored
<pipework> apoplexy_da_boss: They can skip php by simply not stopping to learn it.
<canton7> ruby is arguably the better langauge though
bim has joined #ruby
<jhass> and there we go ...
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<pipework> If you want ruby to be like PHP, use Erb and pass self (main) as the context.
<adaedra> eurk
<pipework> Then you may or may not want to go do unpleasant things to yourself for doing such a thing.
<pipework> self-flagellation is acceptable.
<yh__> There are zealots in every sphere
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<livcd> apoplexy_da_boss: jhass should not the question be more...what skills / patterns should i learn first that would benefit me working in both languages ?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kq_away_ has joined #ruby
<pipework> yh__: There's also the eternal skeptics who are offended when lumped with zealots.
<toertore> apoplexy_da_boss: php isn't statically typed which means there will be more errors at runtime
<jhass> strongly typed you mean
<yh__> pipework: such circular individuals don't move very far :)
<jhass> strong vs weak, static vs dynamic
<workmad3> toertore: the first is also true of ruby, and the second doesn't necesarilly follow from the first :P
<pipework> toertore: That's not scientifically proven, but I believe your intention for the sentiment was meant well.
johnchalekson has joined #ruby
<pipework> I wouldn't say someone who very much dislikes a thing is a zealot. Maybe they're dogmatic, but zealot isn't quite fitting, from my understanding.
johnchalekson has quit [Max SendQ exceeded]
<workmad3> toertore: but well done for moving the question away from the subjective 'better/worse' and onto attributes that you can objectively measure ;)
RegulationD has quit [Ping timeout: 244 seconds]
<kq_away_> How can I append a value to a list in a function chain? I'd like somethign list.map{}.append(foo).select{}.to_a for example
<toertore> i'm so good at trolling it should be my job
<pipework> toertore: You eliminate a class of errors, but introduce a class as well.
<yh__> canton7: with virtualisation - in fact, that's yesterday. With today's *containerisation*, that appeal of ubiquitous hosting has adequately passed
<apoplexy_da_boss> ok
<apoplexy_da_boss> thanks for the info guys
<apoplexy_da_boss> :]
<jhass> apoplexy_da_boss: see what you did there? ;)
<pipework> kq_away_: Show us your code.
<yh__> canton7: I'm so glad we don't live in the world of "shared hosting" any more :-)
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<pipework> yh__: We're all selfish zealots.
<apoplexy_da_boss> jhass: dudes gonna hard in the paint up in here
<pipework> Why can't we just share? D:
<jhass> kq_away_: push
<canton7> yh__, we do, for small stuff. If I write a little website for a mom+pop business, I don't give a shit about containerisation :P
johnchalekson has joined #ruby
<canton7> it's all about requirements and trade-offs
johnchalekson has quit [Max SendQ exceeded]
<pipework> canton7: And ethics!
<canton7> heh
<adaedra> here we go
<toertore> canton7: you don't give a shit because it's not the default way to do things yet; when the infrastructure is centered around containers you will
<pipework> I find it ethically problematic to .trust shared hosts.
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
krz has quit [Read error: Connection reset by peer]
<pipework> Historically, and having worked with them. They're often patchwork that hopefully grows into a good redundant system.
<pipework> Site5 is a good shared host for that.
<canton7> toertore, please. I haven't touched PHP in... 6 years, maybe? I'm exclusively ruby. I'll always use it for websites. But that doesn't mean that PHP has *no* merits
krz has joined #ruby
<toertore> what
johnchalekson has joined #ruby
<jhass> kq_away_: .push
johnchalekson has quit [Max SendQ exceeded]
<pipework> canton7: It has the same merits as any fucked up preprocessor.
<apoplexy_da_boss> php is trash, anyone who disagrees is a nazi communist
<yh__> canton7: it doesn't take much shit-giving to just use Elastic Beanstalk on AWS, for instance. Or Heroku. Or anything else that happens to use some form of virtualisation
<apoplexy_da_boss> (kidding)
<canton7> hey, less nuclear war please, guys
<canton7> let's be nice :)
jimms has joined #ruby
<toertore> ure al dumb
<workmad3> canton7: why would be nice to a PHP apologist? :P
<pipework> Sorry, fucked up atypical preprocessor.
johnchalekson has joined #ruby
<canton7> someone who isn't a blind fanboi? ;)
<pipework> workmad3: Especially one who isn't being intellectually honest for reasons that I assume lie in personal amusement.
<jhass> kq_away_: a few style notes: indent with two spaces, use File.read & File.write, use File.join, use unless for if not, use reject instead of select { ! } / select { not }
<pipework> canton7: Your trolling is sad because you're ruining any point you may have had.
User458764 has joined #ruby
<canton7> pipework, I'm not trolling. I'm specifically trying to diffuse this situation, and stated at the beginning I didn't want a war
<pipework> jhass: I like to prefer Pathname!
<pipework> Mmmmm.
<canton7> saying the other camp has merits (even though I belong to this camp through and through) shouldn't be regarded as unusual :P
<pipework> canton7: I don't personally buy into that entirely. But assuming it's true, your response was not one that aligns with your stated purpose.
<pipework> <canton7> someone who isn't a blind fanboi? ;)
<pipework> Not a defusing statement, miaow is it?
<canton7> that was being playful :P
<kq_away_> jhass: I'm one of those tab using heathens ;) I'm on ruby 1.8 and it didn't work with File.read / write
<canton7> don't take it personally
<pipework> You can make excuses if you like.
<jhass> kq_away_: ah well, 1.8 is long dead ;)
<pipework> But I find your position to be dishonest and inconsistent, ruining your argument.
<canton7> chill out :)
<pipework> The merit of it.
<toertore> programming arguments are a zero sum game - one side has to win, and you better make sure it's yours
<canton7> I'm not trying to make an argument
<yh__> It was pretty much only me and canton7 making any serious points
<jhass> kq_away_: 1.9 is dead, 2.0 dies in less than 11 months ;)
<yh__> Signal:noise is quite off
<toertore> the end justifies the means
<canton7> I don't want this to be a war, and I'm not trying to fight anyone
<canton7> let's just all calm down :)
<pipework> toertore: Speaking of, why haven't we tortured pythonists into making usable lambdas?
<kq_away_> jhass: I have an irc bot that relies on features that are unavailable with later versions on my system
<workmad3> canton7: humans are psychologically inclined to boost the merits of the camp they agree with and discount the merits of the camp they disagree with... so yes, it should be regarded as unusual for you to espouse the merits, but not because you're wrong ;)
<jhass> kq_away_: for example?
DEA7TH has joined #ruby
<pipework> canton7: As a hint: The phrase 'calm down' is not one that you should use to try to defuse a situation.
<toertore> pipework: usable lambdas?
<workmad3> canton7: it's unusual because it shows you have an atypical psychological outlook :P
Pupeno has joined #ruby
<toertore> pipework: don't they already have functions?
<kq_away_> ruby-dbd I think
<pipework> toertore: Yeah. It's entertaining that their lambdas are weak.
<kq_away_> bdb*
<toertore> i don't know much about python tbh
<kq_away_> jhass: I have "plans" of moving forward, but there's never enough time :P
<canton7> pipework, yeah, but you look childish if you respond with "No! I'm not going to calm down!"...
<pipework> canton7: Did I?
<mikecmpbll> i just did my boss's 14 year old nephew's python homework
<mikecmpbll> call me for all your python needs.
<canton7> pipework, no, you didn't
<jhass> kq_away_: isn't that a gem?
<pipework> canton7: You must be mistaken if you think I did.
<canton7> pipework, no, you didn't
<pipework> Ah very good. I don't feel like your point added any value, but it wasn't invalid either.
chinmay_dd has joined #ruby
bigmac__ has joined #ruby
<canton7> it was an observation, not a point
<livcd> but what's worse i still do not understand css's positioning
<kq_away_> jhass: well, the bot relies on it being available and I recall having problems on newer ruby versions. I'm sure they're not insurmountable but it's not supported anymore so I'd have to fix everything myself. As it is now, it's a legacy system that works well
<pipework> canton7: Agreed. Your observation, since it didn't have a point, was valid.
<canton7> workmad3, among my colleagues, balance in a discussion isn't unusual. I always forget that IRC is somewhat more polarised!
<pipework> livcd: Go look up the box model if you haven't already studied it.
<jhass> kq_away_: sure, just be aware that advice here and security patches by the ruby devs will not apply to that version anymore. It's out of support
<pipework> That's only the starting point though, there's some intersting stuff.
<livcd> pipework: ok will do
<kq_away_> jhass: thanks for the pointers, btw. are two spaces required by some PEP8 equivalent in ruby?
ArchRogem has joined #ruby
<adaedra> It’s the common rules
<pipework> ^
<yh__> There have been no useful points in this discussion since the one I made 10 mins ago
* yh__ retires
<pipework> Rules isn't the right word though.
<adaedra> guidelines.
<canton7> it's kinda moved on now though, thankfully
<pipework> It's the accepted community norm.
<adaedra> which I proudly ignore :>
<jhass> kq_away_: all styleguides say to do it, 99% of public Ruby code is written that way
<toertore> livcd: https://developer.mozilla.org/en-US/docs/Web/CSS has lots of useful stuff on css
<kq_away_> But I like tabs :(
<canton7> yh__, completely agreed on the virtualisation. Shared hosting still has its niche though - it's getting smaller, but you can't argue that it still exists
<adaedra> use tabs if you want
<adaedra> we won’t send a killer if you do so
<toertore> don't fuckin use tabs
<pipework> It's okay to proudly ignore, especially if you don't care if you're summarily ignored.
bigmac_ has quit [Ping timeout: 272 seconds]
<kq_away_> anyway, it works. Thanks again jhass!
<canton7> yh__, also, if I need a quick 1-file script, I'm going to go with dropping a PHP file in some folder rather than spinning up yet another thin instance
<pipework> yh__: Your observation also falls under the categorization in your observation. Self-consistent, I like that.
<adaedra> just, if you do, some angry people may reject your code just for this reason.
<pipework> canton7: Why's that, you know PHP better than ruby?
<pipework> adaedra: Why do they have to be angry?
<toertore> tabs vs spaces is one of the few areas where you just need to suck it up and do what everyone else does
<pipework> Why can't they simply be enforcing community norms without any emotional involvement?
<canton7> pipework, because if I didn't, I'd have 30 thin instances running by now, and I'd need to get some more RAM
tpimtts is now known as tpimtts_away
<pipework> canton7: Why do you think that?
<canton7> because it's true? :S
<pipework> Why can't people master unix before they try to master a programming language?
<mikecmpbll> github should've converted every repo to tab spacing for april fools.
<pipework> canton7: Your observation has some bias and probably a lack of information that would inform that observation.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toertore> that would've been hilarious mikecmpbll
<pipework> mikecmpbll: talk about a great way to lose customers.
<canton7> pipework, it's an observation on a particular use-case. It's a small edge-case use-case, but it's there
<mikecmpbll> "we're making a stand on indentation!"
<pipework> canton7: I think your approach is fundamentally flawed.
<canton7> pipework, why do you think that, with no information?
<toertore> mikecmpbll: "opinionated"
<pipework> "I want to do a one-off script in ruby, I have to use puma!"
<mikecmpbll> toertore: :D
<canton7> pipework, if you've got any alternative suggestions, I'd love to hear them
<pipework> canton7: Because I .trust that if you had more information you wouldn't hide it and tell me I don't know the information.
<yh__> canton7: the market exists. But the participants getting involved in it are arguably making a poor business decision/commitment. That's why I don't think it should serve as a predicate for advocating any merit for PHP
<pipework> That might be what you're doing, in which case I'm wrong, but there's something else very telling going on about the conversation.
<pipework> canton7: I use ruby all the time without needing an application server.
bim has quit [Remote host closed the connection]
<canton7> pipework, CGI?
<pipework> I even do parallel concurrent stuff, though I admittedly use things present in POSIX and other systems.
leafybasil has quit [Remote host closed the connection]
<pipework> canton7: Depends on what you're doing, but if we're keeping the specifics general or secret, processes, pipes, and alcohol.
<mikecmpbll> canton7: i don't think he's talking about web apps.
bim has joined #ruby
<canton7> yh__, if there's cheap low-traffic ruby hosting which doesn't suffer heroku's spin-up-time problem, I'll honstly be very interested
<canton7> mikecmpbll, I started this, and I am talking about web apps
<pipework> He did mention it was a one-off script.
<mikecmpbll> canton7: i know.
<pipework> canton7: Ah, that's a useful clarification!
<canton7> ok, maybe I didn't make it clear enough that I'm talking about web stuff :P
<mikecmpbll> ok then. pipework : i think he's talking about web apps
<mikecmpbll> same diff :)
<yh__> canton7: Tutum cloud?
<pipework> So I'd do the minimal amount of work necessary in the process that handles responding to http requests.
<canton7> yh__, interesting! hadn't come across them, thanks
<pipework> Mindblowing, I know!
<canton7> pipework, not sure what point you're trying to make I'm afraid
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
<pipework> canton7: That you have more choices than you think you do when it comes to wanting to use ruby to deliver data down a socket quickly.
<pipework> I believe you are a rather smart person, so I wonder why you think you only have that choice you mentioned above. It's a very curious thing to me.
<toertore> canton7: what he's trying to say is that if you know what you're doing, what programming language you use matters very little
<canton7> pipework, I'm not worried about speed. If I want to make a little api server, which is called maybe twice a day and totals 200 lines, spinning up an always-present app server is a bit of a waste
tubuliferous has joined #ruby
<pipework> canton7: That can also be solved!
tvw has quit [Remote host closed the connection]
<pipework> You do need some kind of coordinator, though it doesn't have to be up either.
<canton7> toertore, if you know what you're talking about, you pick the right tool for the job :)
<pipework> ^ My point exactly
<toertore> canton7: there are many right tools for every job
<pipework> If you know what you're talking about you pick the right tools. Often languages aren't a constraint in that situation.
jrunning_ has quit [Ping timeout: 256 seconds]
<canton7> toertore, at which point it becomes a judgement call, and a war is pointless
<pipework> Rarely, in fact, is a good language a constraint for your situation.
somnium has quit [Ping timeout: 256 seconds]
<canton7> pipework, I agree
<toertore> canton7: my point was that he was right and you were wrong
somnium has joined #ruby
<toertore> because he knows more than you
<adaedra> Stop fighting :’(
<canton7> he seems to be coming from the same direction as me, though
<toertore> and i'm not joking
agrinb has joined #ruby
<toertore> that's just the way it is
<mikecmpbll> can we all just agree that i know the least
<pipework> adaedra: No, it's a healthy human interaction that anyone who doesn't want to hear or be involved in it can easily remove themselves.
<toertore> hey i know leaster than you!
<pipework> I cannot confirm nor deny toertore's point.
<mikecmpbll> god damnit.
<canton7> tbf, we are talking to a channel of 904 people :P
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> However, I'm 90% certain he's just trolling me through you.
<pipework> 'people,'
<adaedra> mikecmpbll: I agree
<pipework> How about joined clients?
<mikecmpbll> adaedra: ;)
jrunning_ has joined #ruby
Ludicrou_ has joined #ruby
Tomasso has joined #ruby
iteratorP has quit [Ping timeout: 245 seconds]
bim has quit [Remote host closed the connection]
<Tomasso> i tought it was possible to do something like [3,4,5,6,7,8,1,1].collect {|x,y| x < y} , but the thing is that the parameter y is never passed...
<toertore> pipework: it's just a simple observation of an obvious fact; no value judgement either way
<mikecmpbll> Tomasso: what's y meant to be??
tubuliferous has quit [Ping timeout: 244 seconds]
ylxjen has joined #ruby
<jhass> or x
<canton7> pipework, disagreement aside (and I'm genuinely interested in your answer, because I spent a while looking at a way of doing this and didn't find anything): what setup would you use for many, independent, one-off, single-file api servers, where you want the resource usage of each when it's idle to be minimal?
<adaedra> Tomasso: you may have to group them before doing that.
bluOxigen has quit [Ping timeout: 256 seconds]
<pipework> toertore: Miaow I'm paranoid and can't distinguish between troll and honest sentiment!
<mikecmpbll> canton7: it's pretty easy to use cgi with ruby iirc
<jhass> Tomasso: in other words, what result do you expect by that?
bluOxigen has joined #ruby
<canton7> mikecmpbll, nginx doesn't support cgi easily sadly
fabrice31_ has quit [Remote host closed the connection]
<Tomasso> mikecmpbll: wanted to read elements by 2, and compare them to calculate the minimum
<mikecmpbll> fastcgi
<canton7> ... and cgi doesn't play nicely with e.g. sinatra, without some hacking
<pipework> canton7: Oh, so if you don't care about the operating speed of the api in practice, I have some ideas.
LudicrousMango has quit [Ping timeout: 240 seconds]
<Tomasso> jhass: 1
<canton7> mikecmpbll, is there a fastcgi server that can host multiple rube apps?
<canton7> pipework, nah, that's not a concern here
<jhass> Tomasso: why not call .min?
<canton7> s/rube/ruby/
<Tomasso> well.. <= should be.. but anyway
agrinb has quit [Ping timeout: 245 seconds]
<pipework> canton7: So you'd basically have your rack app that, based on whatever value you want to switch on, like param string, would either call into some code in the current process's runtime, or delegate to a new process or delegate to a running process.
<jhass> Tomasso: not that you can also pass a block to min and there's min_by
<toertore> canton7: so cgi just calls a program, sends it input and receives output, it can be anything
<pipework> However, it sounds like the running process isn't good.
<jhass> *note
<Tomasso> mm .min .. .
<mikecmpbll> Tomasso: :D
<pipework> And the first one isn't good either because you'd have to keep that stuff loaded into the runtime and that sounds like something you want to avoid.
<canton7> toertore, cgi is out: nginx doesn't like it :P
<Tomasso> well.. thats more intuitive
<pipework> canton7: In short, use puma with a rack app that uses subprocesses.
<canton7> pipework, yeah - I tried making some rack middleware which forked when a new app was needed, then unloaded afterwards. But I couldn't get it to unload properly
<pipework> That way the memory can be reclaimed or reallocated for everything.
chinmay_dd has quit [Ping timeout: 276 seconds]
<pipework> I wouldn't fork, but that's because I think a fresh new process would limit the memory bloat, but maybe someone knows off hand about CoW support.
<canton7> yeah, that might have been where I was going wrong
<toertore> basically, your very own cgi server :P
Takle_ has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
<pipework> toertore: Yeah, sorta. Like CGI with a routing layer on top.
<pipework> Instead of routing in the CGI script
<canton7> I got as far as this, but it never really worked out : https://github.com/canton7/rack-multisite
ponga has joined #ruby
<toertore> well, that's what e.g. apache does too
<mikecmpbll> also sounds like what passenger does
lanemeyer has quit []
<mikecmpbll> manages app processes / shuts them down idle
<pipework> canton7: One more suggestion is to figure out how to not create even the string in ruby that you will end up writing to the response.
* mikecmpbll shrugs
<mikecmpbll> handles multiple apps
<mikecmpbll> etc
lanemeyer has joined #ruby
<canton7> mikecmpbll, iirc it swallows more memory for each app, and doesn't unload them?
<canton7> or at least, last time I tried - which was a few years ago
<mikecmpbll> canton7: no, it shuts down app processes all the time
<mikecmpbll> you can configure it however
<pipework> If the process can be responsible for providing either a fully valid http response to shove down the socket, or you could actually do something fundamentally different where you use ephemeral ports and pass those sockets or references to them into the subprocess.
<canton7> maybe I'm mis-remembering
<mikecmpbll> canton7: sounds like it.
<toertore> canton7: though to be completely honest, most of the time you won't want to be dealing with the details and edge cases of running processes and parsing http yourself, which is what php does for you
<canton7> yeah - I was mainly wondering whether someone else had solved this problem in a way I wasn't aware of
<toertore> but with a rack server you could send the parsed http as json
<pipework> toertore: I don't know, it depends on exactly how much he wants to optimize.
<pipework> He could start inneffficient and keep moving down.
<toertore> sure
<canton7> since some of this stuff won't be called for possibly months on end, I ideally want zero overhead
<toertore> the way mongrel2 does things is interesting, but that requires a long running process
ayaz has joined #ruby
<pipework> He could keep optimizing towards https://github.com/prolaag/vlink
<toertore> but it can be easily replicated
<pipework> Layer 2 access!
<pipework> In rubby!
Takle has joined #ruby
Echoes-- has quit [Ping timeout: 245 seconds]
<pipework> You could get the socket and then do packet manipulation for all the raw speeds.
Iniesta8 has joined #ruby
<toertore> i wish i knew how to use that
mva has left #ruby [#ruby]
<pipework> toertore: If you have questions, float them my way.
charliesome has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
<pipework> The idea is that you should avoid allocating objects, and when you do and they're remotely expensive, consider finding a way within ruby to release them, or just kill the process as soon as possible.
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
<toertore> yeah, i'd need more like a few days of reading through books and articles on the subject
sevvie has joined #ruby
rkmylo has joined #ruby
<pipework> toertore: Oh is layer 2 the unknown more than just that library being unknown?
leafybasil has joined #ruby
<toertore> yeah
<toertore> i barely know how tcp works
<pipework> toertore: Yeah defintely would want to read a lot.
<pipework> By doing that you ought to end up with a system that, at worst, uses the same amount of memory (maybe with a little overhead), but no more to service the same requests.
fabrice31 has joined #ruby
<pipework> At best, it probably floats around a consistent amount of memory 'pressure' or usage at any given time.
sdothum has joined #ruby
<mikecmpbll> or most likely it crashes and you cry.
<pipework> However, except for string allocations, I bet you could get really down deep and have a no-heap-allocation webserver. I'd have to research further to suggest more optimiztions.
<pipework> mikecmpbll: Whale, if it does, at least it'll only crash that process and its children
<pipework> Which isn't something to cry about. At least they die as a family.
<pipework> Orphaned children processes are worth crying about.
<mikecmpbll> :'(
mostlybadfly has joined #ruby
C1V0 has quit []
<pipework> toertore: It's fun when you hit this moment where you're like, "I can send packets that other systems don't like.... hehehe."
Zai00 has quit [Quit: Zai00]
zotherstupidguy has quit [Ping timeout: 265 seconds]
<toertore> hah
Iniesta8 has quit [Quit: Textual IRC Client: www.textualapp.com]
aganov has quit [Ping timeout: 245 seconds]
tagrudev has quit [Ping timeout: 276 seconds]
rkmylo has quit []
jottr has joined #ruby
_blizzy_ has quit [Ping timeout: 250 seconds]
_lazarevsky has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<pipework> toertore: I want to understand layer 1, the physical layer, more than just conceptually in theory.
tus has joined #ruby
<pipework> I wanna touch it!
arquebus has joined #ruby
Pupeno has quit [Quit: Leaving...]
bluOxigen has quit [Ping timeout: 264 seconds]
<workmad3> pipework: I know just enough of layer 1 to know it may be fun to know more, but that I lack the time to really learn it properly
mavbozo has joined #ruby
<pipework> workmad3: I don't know about specifications, but the freedom to turn bits into grouped streams that I can represent however I want in order to send it elsewhere kinda gives me a nerdon.
ndrei has quit [Ping timeout: 248 seconds]
arquebus has quit [Client Quit]
<workmad3> pipework: I read a bit into gigabit ethernet a while ago... when I got to it talking about how the maths involves 4-dimensional multiplexing to trunk together 5 250mbit connections into a single 1gbit connection, I went "cool" and stopped
<toertore> pipework: you mean you want to "know" it, in the biblical sense?
jheg has quit [Quit: jheg]
<pipework> toertore: I mean I want to learn from evidence, so no.
<toertore> what i always seem to overlook is how much error correction goes on in every layer of every technology i depend on
arquebus has joined #ruby
<toertore> makes my own hunt for perfection and things that work "just right" seem too eager
doodlehaus has joined #ruby
tagrudev has joined #ruby
withnale_ has joined #ruby
aganov has joined #ruby
rsavage has joined #ruby
_1_EMI has joined #ruby
rsavage is now known as r3dk1nG
<hanmac1> pipework: hm maybe there is a layer 0 ... which is Æther or something ;P
sevvie has quit [Ping timeout: 250 seconds]
chinmay_dd has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
sigurding has quit [Quit: sigurding]
<pipework> toertore: But maybe to not seek that perfection is to scoff at the other layers. They sacrifice so much so that you might achieve perfection!
ylxjen has quit [Remote host closed the connection]
_1_EMI has left #ruby [#ruby]
<pipework> The least you could do is imitate and do as much error correction as you can while passing responsibility upwards another layer. :p
<toertore> yeah, of course, but there is still imperfection at my level, and sometimes you just have to accept that
<toertore> yeah
roshanavand has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
roshanavand has joined #ruby
mavbozo has quit [Quit: Leaving]
ahmetkapikiran has joined #ruby
mrbond has joined #ruby
sevvie has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
alexherbo2 has joined #ruby
alexherbo2 has quit [Client Quit]
bruno- has quit [Ping timeout: 246 seconds]
inavele has joined #ruby
a5i has joined #ruby
bim has joined #ruby
Ludicrou_ has quit [Ping timeout: 265 seconds]
johnchalekson has quit [Read error: Connection reset by peer]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
arquebus has quit [Quit: Ex-Chat]
sevvie has quit [Ping timeout: 250 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
agrinb has joined #ruby
coderhs has joined #ruby
rodfersou has joined #ruby
arquebus has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
arquebus has quit [Client Quit]
rippa has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 245 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
rippa has joined #ruby
sevvie has joined #ruby
devyn has quit [Ping timeout: 264 seconds]
inavele has quit [Ping timeout: 250 seconds]
coderhs has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
jefus_ has joined #ruby
<jokke> hi
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
pagios has left #ruby ["Leaving"]
<jokke> is assaf arkin by chance idling here?
anarang has joined #ruby
anarang has quit [Read error: Connection reset by peer]
<jokke> maintainer of zombie and vanity
gccostabr has joined #ruby
johnchalekson has joined #ruby
tvw has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<jhass> if you want to report an issue, opening one on github might be easier
coderhs has joined #ruby
<jokke> i'm trying to port his rack-oauth2-server for mongo 2.0 and i've been running the tests for about 2.5 hours now.. I'm wondering if this is normal or if i can speed it up somehow
<jokke> it runs on 100% cpu all the time
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
<jokke> i'm wondering if it's because the crypto is so expensive..
<jokke> i know that devise has special settings for test environment
<jokke> to speed up tests
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
jefus has quit [Ping timeout: 256 seconds]
devyn has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
<jhass> most people don't mind asking questions via github issues too, if there's no other form of contact provided
<jokke> mh yeah
apoplexy_da_boss has quit [Ping timeout: 252 seconds]
<jokke> the last commit is like 2 years ago so i thought he might be focusing on other things now, but i guess he'll get notifications
alexherbo2 has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
greenbagels has quit [Read error: Connection reset by peer]
avril14th_ has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
colorisco has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
colorisco has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
quimrstorres has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
reinaldob has joined #ruby
joonty has quit [Quit: joonty]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
quimrstorres has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
SouL_|_ has quit [Remote host closed the connection]
jheg has joined #ruby
RegulationD has joined #ruby
sigurding has joined #ruby
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
coderhs has quit [Ping timeout: 250 seconds]
Pharaoh2_ is now known as Pharaoh2
sdrew has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
deuteriu_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
doodlehaus has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 248 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has joined #ruby
ndrei has joined #ruby
kevkev has quit [Ping timeout: 256 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
VBlizzard has joined #ruby
lxsameer_ has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
johnchalekson has joined #ruby
max96at|off is now known as max96at
johnchalekson has quit [Max SendQ exceeded]
Zai00 has joined #ruby
vt102 has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
coderhs has joined #ruby
joonty has joined #ruby
adaedra is now known as undeadaedra
ahmetkapikiran has quit [Quit: ahmetkapikiran]
workmad3 is now known as gonemade3
Advocation has quit [Quit: Advocation]
gonemade3 is now known as gonemad3
gonemad3 is now known as workmad3
johnchalekson has joined #ruby
serivich has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
mengu has joined #ruby
ldnunes has joined #ruby
sameerynho has joined #ruby
jenrzzz has joined #ruby
Takle has quit [Remote host closed the connection]
ki0_ has quit [Remote host closed the connection]
arietis has joined #ruby
ki0 has joined #ruby
<arietis> hey guys
lxsameer_ has quit [Ping timeout: 245 seconds]
<arietis> is Addrinfo ipv4_loopback? and ipv6? enough to get lan ipv4 address of local machine?
<arietis> from Socket.ip_address_list
VBlizzard is now known as _blizzy_
<arietis> for me if both values are false i get proper ip
krz has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
agrinb has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
jimms has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
tubuliferous has quit [Ping timeout: 245 seconds]
ahmetkapikiran has joined #ruby
JaTochNietDan has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
bluOxigen has joined #ruby
duncannz has quit [Remote host closed the connection]
JaTochNietDan has joined #ruby
lewix has joined #ruby
lewix has joined #ruby
jerematic has joined #ruby
<jhass> what's the question?
phutchins has joined #ruby
lewix has quit [Client Quit]
joonty has quit [Quit: joonty]
bim has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
sameerynho has quit [Ping timeout: 272 seconds]
sameerynho has joined #ruby
brb3 has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
pika_pika has joined #ruby
zotherstupidguy has quit [Quit: leaving]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
jottr has joined #ruby
sigurding has quit [Quit: sigurding]
Sawbones has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
VBlizzard has joined #ruby
Takle has joined #ruby
revoohc has joined #ruby
_blizzy_ has quit [Disconnected by services]
VBlizzard is now known as _blizzy_
RegulationD has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
dvg-laptop has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.1.1]
rippa has quit [Read error: Connection reset by peer]
Sawbones has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yh__ has quit [Ping timeout: 248 seconds]
Aswebb_ has joined #ruby
<dvg-laptop> Has anyone ever daemonized an event-machine app? No matter what I try (other than just appending a & when running it in the terminal) it just skips the runloop and exits
bluOxigen has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
yeticry has joined #ruby
kblake has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
bim has quit [Remote host closed the connection]
hectortrope has joined #ruby
Rollabunna has joined #ruby
bluOxigen has joined #ruby
hectortrope is now known as |Zz|
twistedpixels has quit [Ping timeout: 256 seconds]
|Zz| is now known as |liar|
vtunka has quit [Quit: Leaving]
sevvie has joined #ruby
codecop has quit [Remote host closed the connection]
<|liar|> Hello
browndawg has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
sigurding has joined #ruby
mengu has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Excess Flood]
astrobun_ has quit [Remote host closed the connection]
twistedpixels has joined #ruby
B1n4r10 has joined #ruby
<dvg-laptop> jhass fair enough, but I’m working on a gem and I want to ship it with at least some built-in capability to run in the background independant of the OS
vivekananda has quit [Quit: Leaving]
<ddv> I would use systemd
coderhs has quit [Ping timeout: 264 seconds]
bim has joined #ruby
adriancb_ has quit [Ping timeout: 265 seconds]
|liar| has quit [Quit: WeeChat 0.4.2]
blueOxigen has joined #ruby
adriancb has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
Aswebb_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 246 seconds]
<kq_away_> How would I list all files (and only files) in a directory/
<kq_away_> well, I should learn to google first
jimms has joined #ruby
rippa has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
<jhass> Dir.glob/.[] + .select + File.directory?
freerobby has joined #ruby
silkfox has joined #ruby
Rapier- has joined #ruby
<jhass> or Dir.entries for the first step
rodfersou has joined #ruby
<kq_away_> I used File.file?
<kq_away_> Why was your first suggestion directory?
serivich has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<jhass> because it's a positive assertion
<kq_away_> I want files
<jhass> er, no nvm, because I need some sugar ;)
<kq_away_> :P
rippa has joined #ruby
<kq_away_> Anyway, I have a whitelist of extensions. I learned about Regex.union, but how can I make sure it appens ^ to each of those?
agrinb has joined #ruby
<kq_away_> Or should I add them myself
<kq_away_> not sure if I presented my problem clearly
ndrei has joined #ruby
rrichardsr3 has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> you want to glob
Spami has joined #ruby
<jhass> Dir["./*.{#{whitelist.join(",")}}"]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Darkwater has joined #ruby
Aswebb_ has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<kq_away_> Hm, maybe I'll just do /(.*?).(.*)/
<Darkwater> hey, could I bump into any problems if I keep image blobs in an array to cache?
<kq_away_> then I'll have the filename which I need already
bkfmdx has joined #ruby
rippa has quit [Ping timeout: 255 seconds]
bim has quit [Remote host closed the connection]
<Darkwater> kq_away_: don't forget to escape that .
<jhass> Darkwater: besides running out of memory? probably not
<Darkwater> cool, thanks
User458764 has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
Spami has quit [Client Quit]
Pumukel has joined #ruby
<kq_away_> Darkwater: right, thanks
<kq_away_> /(.*?)\.(.*)/ it is
dblessing has joined #ruby
LudicrousMango has joined #ruby
jimms has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
<kq_away_> I just now realized how difficult it'd be to write a regex that'd accept dots as parts of filename, i.e. in scene releases, but still recognized tar.gz properly
jimms has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<ddv> scene releases? as in warez?
serivichi has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
johnchalekson has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
labria has quit [Quit: labria]
spyderman4g63 has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
bkfmdx_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
serivich has quit [Ping timeout: 240 seconds]
Contigi777 has joined #ruby
bkfmdx has quit [Ping timeout: 248 seconds]
hgl has joined #ruby
blueOxigen has quit [Ping timeout: 265 seconds]
roshanavand1 has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
<kq_away_> as in example, ddv ;)
<Darkwater> /(.*)(\.[a-z0-9]{1,6}){1,2}/
<Darkwater> try something like that
<kq_away_> Totally.Legit.Linux.rar
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
bkfmdx_ has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
<jhass> kq_away_: what's wrong with my glob?
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
JDiPierro has quit [Remote host closed the connection]
bkfmdx has joined #ruby
JDiPierro has joined #ruby
<jhass> ext = whitelist.find {|ext| path.end_with? ext }; filename File.basename(path, ext) if extraction is your issue
johnchalekson has joined #ruby
<kq_away_> huh
johnchalekson has quit [Max SendQ exceeded]
<kq_away_> nothing, jhass
<kq_away_> I simply missed it
iteratorP has joined #ruby
uri_ has joined #ruby
<kq_away_> that being said, I still need base filename and extension
ndrei has joined #ruby
charliesome has quit [Quit: zzz]
<jhass> which I just showed you how to do
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
mikenovikov has joined #ruby
<kq_away_> Sorry, trying to process that
bim has joined #ruby
<kq_away_> ok, let me try
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
hiall_ has joined #ruby
Spami has joined #ruby
dmolina has joined #ruby
charliesome has joined #ruby
tier has joined #ruby
lanemeyer has joined #ruby
HNDavid has joined #ruby
HNDavid has quit [Client Quit]
bkfmdx has quit [Ping timeout: 256 seconds]
iteratorP has quit [Ping timeout: 250 seconds]
hectortrope has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
charliesome_ has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
sameerynho has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
jerius has joined #ruby
steven43226 has quit [Ping timeout: 252 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
blackmesa has joined #ruby
johnchalekson has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
johnchalekson has quit [Max SendQ exceeded]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
vire has quit [Ping timeout: 252 seconds]
johnchalekson has joined #ruby
sgambino has joined #ruby
User458764 has joined #ruby
quimrstorres has joined #ruby
doodlehaus has joined #ruby
yh has joined #ruby
vire has joined #ruby
triple_b has joined #ruby
adriancb has quit [Remote host closed the connection]
<kq_away_> jhass: would you mind reviewing this: https://gist.github.com/KrzaQ/7f1a59d3ad246e900c5b ?
rippa has joined #ruby
steven43126 has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
<jhass> not too bad
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<jhass> I'd refrain from single letter variable names personally
pandaant has quit [Remote host closed the connection]
bkfmdx has joined #ruby
bkfmdx has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
<jhass> and you can destructure an array in block arguments: .each do |filename, extension|
ringarin has joined #ruby
sankaber has joined #ruby
<kq_away_> I'm really used to e for element, k for key, v for value and f for file
<jhass> oh and if you pass ".#{ext}" to File.basename, you can save the [0..-2]
<undeadaedra> i for iterator
<kq_away_> Ah, that actually bugged me compared to the regex version
<jhass> haha, and there it starts
<kq_away_> thanks
<jhass> i would be index for me
duggiefresh has joined #ruby
<undeadaedra> which is not too different
<jhass> which is why I dropped even i
<workmad3> I normally go idx in ruby
<kq_away_> I'm a C++ guy, it's always 'it' for iterator
<undeadaedra> even the bass?
<workmad3> foo.each_with_index {|item, idx| ...}
<undeadaedra> for very local usage, single letter is not really a problem imo
<kq_away_> my lambdas (or however they're called here) are very local imo
<workmad3> undeadaedra: I'll use i,j and k when walking over vectors ;)
zenith_ has joined #ruby
browndawg has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
robertt_dex has joined #ruby
<undeadaedra> I can do this, but I’d prefer have explicit names with this levels of imbrication
<workmad3> (x and y for images)
klaas has joined #ruby
<undeadaedra> Yeah, x y z for coordinates
decoponio has joined #ruby
ahmetkapikiran has joined #ruby
<workmad3> undeadaedra: as I said, depends on whether the co-ordinates are for vectors in linear algebra, or something more along the lines of images ;)
adriancb has joined #ruby
CustosL1m3n has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
catcher has joined #ruby
wolf4ood___ has joined #ruby
enebo has joined #ruby
<Darkwater> single or double quotes/
silkfox has quit [Quit: WeeChat 0.4.3]
<workmad3> undeadaedra: how about r and θ for polar co-ords? :) or even r ω for complex polar co-ords? :)
<undeadaedra> Darkwater: is that a question? What context?
<undeadaedra> workmad3: hard to type on keyboard, let’s keep it to ascii
<djellemah> Darkwater: Single if you want to wake up. Double if you want palpitations.
Megtastique has joined #ruby
emocakes has joined #ruby
<workmad3> undeadaedra: pfft, where's the fun in that? :)
<workmad3> π is easy to type on OS X after all
<undeadaedra> Darkwater: double quotes allow interpolation (#{}), single quotes does not
<Darkwater> but what do I use for simple strings like for require
<yh> how2pi
<Darkwater> can't settle on a standard :\
<workmad3> yh: alt-p
<undeadaedra> if you don’t need interpolation, use single quotes
<yh> ππππππππππππ
<yh> Loving the pi
<yh> looks like a millipede
<Darkwater> yh: 3.1415926535
<Darkwater> looks like a number
bkxd has joined #ruby
<workmad3>
amystephen has joined #ruby
adriancb has quit [Remote host closed the connection]
<avril14th> Hey, I'm running into some lovely behavior, I have some Unirest::post calls that fail when sent rapidly one another (when I run tests) and that work when running the same tests one by one. Any hint how to fix that?
<yh> Darkwater: pretty sure ππππππππππππ = 924269.181523
evanjs has joined #ruby
<undeadaedra> Not =
<Darkwater> no, that's a centipede
<yh> =~
jconnolly has joined #ruby
<undeadaedra> ≈
vtunka has joined #ruby
<Coraline> avril14th: are you sure you're not bleeding context between tests?
amdbcg has joined #ruby
cartothemax has joined #ruby
<avril14th> Coraline: I've double checked, I don't see any shared context
<avril14th> all my test variable are let
freerobby has quit [Quit: Leaving.]
JDiPierro has quit [Remote host closed the connection]
<avril14th> so there shouldn't be any leftover
triple_b has quit [Quit: Textual IRC Client: www.textualapp.com]
<Coraline> Can you see logs to diagnose the server error?
mostlybadfly has quit [Quit: Connection closed for inactivity]
bkxd has quit [Client Quit]
blackmesa has joined #ruby
freerobby has joined #ruby
<avril14th> I'm gonna add some puts
jlast has joined #ruby
bkxd has joined #ruby
<Coraline> You might use pry inside those examples, too, to confirm
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_maes_ has joined #ruby
agarie has joined #ruby
Advocation has joined #ruby
<User458764> Hi, how do you split a number in a digit? Do you have to cast it in a String?
<User458764> *digits
<avril14th> User458764: yes, its easyiest
allcentury has joined #ruby
<User458764> avril14th thanks
<undeadaedra> to get the last digit, you can just % 10
<avril14th> >> 156464.to_s.each_char.to_a
<ruboto> avril14th # => ["1", "5", "6", "4", "6", "4"] (https://eval.in/310099)
tubuliferous has joined #ruby
<avril14th> User458764: see
sdrew has quit [Quit: *poof*]
<User458764> avril14th cool
mengu has quit [Remote host closed the connection]
<bkxd> undeadaedra: interesting
<undeadaedra> ?
agrinb has joined #ruby
joonty has quit [Quit: joonty]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
<gilmour> I'm trying to do a memoized, conditional assignment (||=) in an iterated block of code defining multiple methods. Can I use self.instance_variable_get("@#{some_variable}") ||=
<gilmour> ? my editor is yelling at me that the above code look syntactically invalid. :/
iwishiwerearobot has joined #ruby
<jhass> yeah, you can't
<jhass> that would be assigning to a method call
<jhass> which is invalid
johnchalekson has quit [Read error: Connection reset by peer]
<jhass> a ||= b is short for a || a = b
<workmad3> (ish)
<gilmour> Daah. I see.
sivsushruth has joined #ruby
oo_ has joined #ruby
<jhass> you might want to step back btw
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<jhass> reassure all that metaprogramming is really needed
<gilmour> Too much meta? hehe yeah.
B1n4r10 has joined #ruby
<gilmour> Sigh. I'm sure you're right, trying to be too clever for fun. Thanks!
johnchalekson has joined #ruby
<|Liar|> hi jhass
<jhass> hi hector
joonty has joined #ruby
<|Liar|> oops jhass how do u know?
<apeiros> heh
<jhass> /nick is public
<avril14th> Coraline: https://gist.github.com/muichkine/2a19a8dc136a08bcff11, the funny thing is that 1/ my call to code is in a try so it shouldn't raise anything 2/ the stack tracks points to the line of the post, not the following one
<yh> workmad3: why "ish" there?
<avril14th> all hints more than welcome, I'm infinite looping here
<undeadaedra> gilmour: use instance_variable_set with a condition testing if the variable is set. still 1 line
tubuliferous has quit [Ping timeout: 256 seconds]
<workmad3> yh: because 'a ||= b' isn't quite identical to 'a || a = b'
agrinb has quit [Ping timeout: 245 seconds]
<|Liar|> hi guys
fabrice31 has quit [Remote host closed the connection]
<Coraline> avril14th: is that a live post to your app?
<avril14th> from my app to a third party server
<avril14th> why?
<Coraline> Eep, you shouldn't be hitting an external service in a test
<undeadaedra> Stub it
<Coraline> You should be testing your app, not their endpoint
<avril14th> well, the external service is a bunch of neural networks that I tweak around all the time so it's desired to be in the test since I want to test the global behaviour
<Coraline> You might look at something like VCR to stub out service calls
palms has joined #ruby
havenwood has joined #ruby
<avril14th> and still, that does not explain the error
<Coraline> avril14th: those tests belong in the external service codebase
<avril14th> and if or not I'll hit it in production
JDiPierro has joined #ruby
casadei has joined #ruby
<undeadaedra> empirical way: test in production.
<undeadaedra> (Protip: Don’t do that.)
<Coraline> avril14th: aside from just not doing that, look at the logs for your service then and see what happenws
<Coraline> happened
<avril14th> I don't have these logs
<Coraline> avril14th: what you're doing is a classic testing antipattern
arup_r has quit [Remote host closed the connection]
<avril14th> antipattern?!
ringarin has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 248 seconds]
<Coraline> As in, "a thing that is done that should never be done"
<yh> workmad3: i was hoping you might uncover how, slightly :)
<avril14th> oh yeah
<Coraline> If the 3rd party service is a blackbox, treat it as a black box and stub that puppy
<workmad3> yh: I was leaving at as a learning exercise for you to ponder and ask if you couldn't figure out why ;)
fabrice31 has joined #ruby
<Coraline> Off to work.
<workmad3> yh: but to prompt you... think about what 'a ||= a' does if 'a' is a new local variable... and compare that to 'a || a = a'
Jiyuhen has joined #ruby
ndrei has joined #ruby
<yh> workmad3: gotcha, the latter bombs out with an exception :)
<workmad3> yah
Spami has quit [Quit: This computer has gone to sleep]
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
<jhass> >> a || a = a
<ruboto> jhass # => (NilClass) ...check link for more (https://eval.in/310110)
<jhass> no it doesn't ;)
<jhass> same rule as why a = 1 if false; a works ;)
pontiki has joined #ruby
mikenovikov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> jhass: check it in irb
<workmad3> jhass: for more fubarness, try it twice ;)
<jhass> yeah, irb "issue"
tier has quit [Ping timeout: 255 seconds]
<workmad3> jhass: also happens with ruby -e and with a ruby file
<workmad3> jhass: it's more 'why the hell didn't it error with eval-in' I'm pondering now ;)
<jhass> mh
mitchellhenke has joined #ruby
Darryl___ has joined #ruby
bruno- has joined #ruby
<jhass> because apeiros has a silly puts " (NilClass)" in the template
hmnhf has joined #ruby
Contigi777 has quit [Quit: Leaving]
<workmad3> :D
CustosL1m3n has joined #ruby
<jhass> I see I see
<jhass> escaping fail
hgl has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
Takle has joined #ruby
terlar has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avril14th_ has quit [Remote host closed the connection]
mikenovikov has joined #ruby
<avril14th> Coraline: third party is a neural network, how do you stub that?
<avril14th> rewrite it?
hgl has joined #ruby
tier has joined #ruby
<apeiros> jhass: what?
<apeiros> seriously?
<jhass> see branch ;)
<apeiros> I'll look into it this evening
<sweeper> avril14th: you just write methods that respond how you expect them to respond given certain inputs
axl_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
jobewan has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
<avril14th> hmm, ok, found a way
aryaching has joined #ruby
<avril14th> I'm gonna cache the result and use it between tests
joonty has quit [Quit: joonty]
Joufflu_ has quit [Read error: Connection reset by peer]
jayeshsolanki has joined #ruby
GnuYawk has joined #ruby
joonty has joined #ruby
pontiki has quit [Quit: zzzzzzz]
sevvie has quit [Ping timeout: 256 seconds]
Pharaoh2_ is now known as Pharaoh2
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nfk|laptop has joined #ruby
lavros has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
arietis has quit [Quit: Leaving.]
aryaching has quit [Read error: Connection reset by peer]
Igorshp has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
zenith_ has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
rbennacer has joined #ruby
sevvie has joined #ruby
fryguy9 has joined #ruby
zenith_ has joined #ruby
msnyon has joined #ruby
Azulinho has joined #ruby
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
User458764 has joined #ruby
byprdct has quit [Max SendQ exceeded]
aawe has joined #ruby
<aawe> how is ruby sometimes dynamically scoped?
sevvie has quit [Ping timeout: 250 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
sigurding has quit [Quit: sigurding]
<jhass> aawe: what does that even mean? "dynamically scoped"?
<jhass> do you refer to closures?
<jhass> or instance_eval?
<aawe> jhass: as opposed to lexical scoping
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<gregf_> aawe: Perl ehh?
Feyn has quit [Quit: Leaving]
<aawe> wikipedia says of Ruby: "Scope: Lexical, sometimes dynamic"
sigurding has joined #ruby
dmolina has quit [Quit: Leaving.]
JDiPierro has quit [Read error: Connection reset by peer]
kblake has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
<workmad3> aawe: does it give an example of what they mean by dynamic scoping?
<aawe> workmad3: no
bkxd has quit [Quit: leaving]
<workmad3> aawe: well, that's useful :P
sankaber has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
arietis has quit [Quit: Leaving.]
sankaber has joined #ruby
<gregf_> aawe: $a = 10; begin; a = 20; print a;end; begin; a = 5; print a.to_s + " - ";end; print $a;
<gregf_> lexical as in specific to a scope
aryaching has joined #ruby
zenith_ has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
bkxd has quit [Client Quit]
bkxd has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<gregf_> wonders what dynamic scoping is, you only have locals or globals
Rollabunna has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
Rollabunna has joined #ruby
arietis has joined #ruby
zenith_ has joined #ruby
timanema has joined #ruby
<aawe> gregf_: define a in f, call g from f, a is defined in g too. call g from f2, which does not define a, and a is not defined in g's scope
Azulinho has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
phutchins has joined #ruby
<aawe> a global stack of name bindings, defined at runtime
bruno- has joined #ruby
horsecowdog has joined #ruby
<workmad3> aawe: hmm... actually, I think jhass may have hit it on the head straight away, after reading through an SO thing on dynamic scoping... it'll be because with instance_eval(&blk) you can change the implicit 'self' of a block, so that the scope binding for methods and ivars changes
devans has joined #ruby
cocotton has joined #ruby
<workmad3> aawe: all you went over with your example was the static rules of when ruby defines a new scope, not when the scope can change in a dynamic fashion
Takle_ has joined #ruby
<maasha> What tools do we have to validate method arguments given as a hash?
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 256 seconds]
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<maasha> foo(bad_param_should_raise: true)
selu has joined #ruby
<aawe> can I call B#f from A#g so that "this" in f is "this" from g?
<aawe> maasha: could you elaborate?
Beliq has joined #ruby
<workmad3> aawe: sometimes :P
<workmad3> aawe: also, 'self', not 'this' ;)
<undeadaedra> this = self
<workmad3> undeadaedra: that just makes me think of preserving scope in js :( _this = this
cpt_yossarian has quit [Quit: And then he took off.]
<gregf_> aawe: def f; a = "foo"; print "#{a} -f"; g();print "#{a} - g"; end;def g; a = "bar";print "#{a} - in g"; end;def f2; g(); end;f(); f2() <== is this what you mean and what variable value needs to be retained?
cpt_yossarian has joined #ruby
<maasha> aawe: I am sure I saw a gem that allows you to specify valid params and values using some elegant syntax.
<undeadaedra> workmad3: we don’t talk about JS.
bkxd has quit [Ping timeout: 245 seconds]
zenith_ has quit [Remote host closed the connection]
<workmad3> maasha: sounds like you want required kwargs... ruby 2.1+ lets you do 'def foobar(require_kwarg:, optional_kwarg: foo)'
jlebrech has joined #ruby
rubytor has joined #ruby
vire has quit [Ping timeout: 264 seconds]
naftilos76 has joined #ruby
<maasha> workmad3: ah, and before 2.1+ ?
zenith_ has joined #ruby
xaxisx has joined #ruby
<workmad3> maasha: you could do something like 'def foo(bar: r)' in 2.0+, where 'r' just doesn't exist, and that'll cause an error when someone calls the method without the bar: argument
bim has joined #ruby
<workmad3> maasha: prior to 2.0, no native kwarg support, so it's whatever you want to do with validating an options hash
<aawe> gregf_: rather class A; def foo; end; def f; B.new.g; end; end; class B; def g; foo; end; end; A.new.f
adamjleonard has joined #ruby
SouL_|_ has joined #ruby
JDiPierro has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maasha> workmad3: I am sure I saw a gem that allows you to specify parameter checks by adding a single line of awesomeness. I read about it in a blog post on optimizing code, but at that time I was not interested in the paramter checks, but the optimizing process.
sevvie has joined #ruby
<workmad3> aawe: hmm... I think 'a = 4; [1,2,3].each{|a| p a}; p a' counts as dynamic scoping under some of the descriptions I've now looked up
Spami has joined #ruby
<aawe> workmad3: that does not do anything unexpected assuming lexical scoping
<workmad3> maasha: there probably is... but I doubt it's as supported now, due to there being native kwarg support :)
<maasha> workmad3: found it. Contracts
Takle_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
hanmac1 has quit [Quit: Leaving.]
agarie has quit [Remote host closed the connection]
<wasamasa> "Turns out, function calls are very expensive in Ruby."
<wasamasa> ;__;
mistermocha has joined #ruby
<bradland> what's a function call :P
<aawe> what does the "knife tears" emote mean?
<gregf_> lol, so make one class with only one method that does all the work ;)
jottr has joined #ruby
<undeadaedra> bradland: someone crying.
<undeadaedra> é_è
Takle has joined #ruby
<bradland> undeadaedra: i think you meant aawe
<undeadaedra> s/bradland/aawe/
<bradland> :)
<undeadaedra> too slow.
The_Phoenix has joined #ruby
mistermo_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<undeadaedra> can’t brain, think doesn’t work.
blackmesa has quit [Ping timeout: 256 seconds]
<wasamasa> it sounds pretty silly since inlining manually isn't something a rubyist shall do
cpt_yossarian has quit [Quit: And then he took off.]
The_Phoenix has joined #ruby
<bradland> i loathe benchmark references where the benchmark code isn't provided
nwjjjf has joined #ruby
aryaching has joined #ruby
rubytor has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
djdarkbeat has quit [Quit: djdarkbeat]
<bradland> granted that in the example given, the proportion of time required to validate the contract is high relative to the actual work being done (adding two ints)
<bradland> but based on this, i'd avoid contracts where performance is important
<aawe> is something like this possible? https://gist.github.com/awestroke/b2600f5360ab75621de4
<workmad3> bradland: or use them on the public interface of a library and not internally, so that you can enforce data coming in
<bradland> yeah, use when appropriate, rather than everywhere
<bradland> the IO example the author uses at the end kind of leaves a bad taste in my mouth too.
<bradland> int + int is about as fast as you can get, while IO.read is about as slow as you can get
<bradland> i guess the truth is that you'd have to test it in your code to know what the impact is
davispuh has joined #ruby
ldnunes has quit [Quit: Leaving]
hs366 has quit [Remote host closed the connection]
<bradland> aawe: not sure what you're trying to accomplish there
<bradland> do you want the foo method from A accessible within Helper?
<aawe> within Helper#call, yes
<aawe> but Helper is just an example
<bradland> have you worked with modules that are included in another class?
<aawe> hm?
<wasamasa> bradland: there isn't much place for objectivity when you've got to demonstrate a tenfold speed improvement for your revolutionary ruby project!
<bradland> sec, i'll stub some code
<bradland> aawe: well, i thought i was going to stub some code, but i'm still not sure what the intention is
neanderslob has quit [Ping timeout: 264 seconds]
jobewan has quit [Remote host closed the connection]
<aawe> bradland: the intention is to pass in a class method as a first-class citizen
<aawe> to use a method as an argument without executing it
<aawe> without using a proc or block or lambda loike f{Klass.new.foo)
<aawe> like*
<workmad3> aawe: Klass.new.method(:foo)
bal has quit [Quit: bal]
<toertore> aawe: for what purpose do you want this?
amdbcg has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
xaxisx has quit [Quit: xaxisx]
riotjones has quit [Remote host closed the connection]
n3b- has joined #ruby
sinkensabe has quit [Remote host closed the connection]
amdbcg1 has joined #ruby
allcentury has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<aawe> "no implicit conversion of Method into String (TypeError)" what
<aawe> toertore: do I need a purpose?
<aawe> I just want to explore the possibility of DSL building
djdarkbeat has joined #ruby
xaxisx has joined #ruby
<bradland> aawe: https://eval.in/310143
<bradland> maybe something like that?
<bradland> that's all in the same context though :/
<aawe> bradland: https://eval.in/310146
sprihodko has joined #ruby
Morkel has quit [Quit: Morkel]
<toertore> aawe: no, of course not. but it seems to me like you want to do something that should be done in a different way
<toertore> what you're trying to do isn't really done in ruby
agarie has joined #ruby
<aawe> because functions are not passed around in ruby
<aawe> why are functions not first-class citizens in ruby?
<toertore> exactly
<toertore> because ruby objects don't have properties
neanderslob has joined #ruby
<bradland> aawe: you need to pass the method/context as an argument to Helper#call if you want it to be accessible
<bradland> you're trying to pull Helper in to A
<toertore> there would be no way to know whether obj.foo should return the result of calling foo or foo itself
<bradland> i'm not sure you can do that
<aawe> you can do it with blocks, though
<toertore> without having to add ()
amdbcg has joined #ruby
<aawe> and procs
<aawe> and lambdas
<bradland> yeah, but what you're doing wouldn't work with any of those either
framling has quit [Remote host closed the connection]
<workmad3> aawe: syntax tradeoff... if you want to allow methods to be called without (), you then can't use 'foo.somemethod' as a reference to the method itself
amdbcg1 has quit [Read error: Connection reset by peer]
brb3 has quit [Quit: <.<]
<gregf_> aawe: do you have a Java background?
<aawe> bradland: instance_eval(&blk) works fine
sevenseacat has quit [Quit: Textual IRC Client: www.textualapp.com]
<User458764> For a human it is simple to calculate all the value of for example 4 bits (0000, 0001, 0010...) but how do we programmatically do it? and what if I want the base are not bits but say 5 or 7 (5555, 5557, 5575...)
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<aawe> gregf_: I have been writing rspec code for the last days
<gregf_> aawe: ok, rspec++
iamninja_ has joined #ruby
iamninja has quit [Ping timeout: 255 seconds]
<bradland> User458764: have a look at http://ruby-doc.org/core-2.2.1/String.html#method-i-to_i
<aawe> User458764: [1..8].map{|n| n.to_s(2)}
<bradland> ^^ and that's the inverse :)
<bradland> >> [1..8].map{|n| n.to_s(2)}
<ruboto> bradland # => (NilClass) ...check link for more (https://eval.in/310166)
<existensil> aawe: got a little closer, but still doesn't work: https://eval.in/310158
<User458764> aawe wrong number of argument for to_s
mystiiq has joined #ruby
<bradland> >> (1..8).map{|n| n.to_s(2)}
<ruboto> bradland # => ["1", "10", "11", "100", "101", "110", "111", "1000"] (https://eval.in/310168)
brb3 has joined #ruby
<existensil> taking out the unbind/bind stuff results in foo being undefined
<bradland> User458764: aawe had a minor syntax error
<bradland> in ruby, ranges are wrapped in paren, not braces
icebourg has joined #ruby
<User458764> bradland ok your works now I checks if it what I wants :)
<gregf_> >> [1,2,3,4].map(&"%b".method("%"))
<ruboto> gregf_ # => ["1", "10", "11", "100"] (https://eval.in/310171)
<existensil> >> [*1..8] # this works though
<ruboto> existensil # => [1, 2, 3, 4, 5, 6, 7, 8] (https://eval.in/310172)
<aawe> >> (0..15).map{|n| '%04s' % n.to_s(2)}
<ruboto> aawe # => [" 0", " 1", " 10", " 11", " 100", " 101", " 110", " 111", "1000", "1001", "1010", "1011", "11 ...check link for more (https://eval.in/310173)
<User458764> bradland great thats it now I have to sum all the digit but I think it is fine
allcentury has quit [Quit: WeeChat 1.1.1]
Aswebb_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
turtil-kun has joined #ruby
turtil has quit [Ping timeout: 245 seconds]
Tomasso has quit [Ping timeout: 246 seconds]
maasha has quit [Ping timeout: 246 seconds]
livathinos has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 272 seconds]
<mystiiq> Hi, I am writing a small HTTP server in ruby. I'd like that server to pass request to ruby cgi scripts, how can I do that? I have basically a HTTP request and would like to invoke CGI script based on that request.
Pumukel has joined #ruby
<toertore> ask canton7 ;)
agarie has quit [Remote host closed the connection]
<undeadaedra> are CGI script just scripts executed with request headers as env and request body as input ?
vtunka has quit [Quit: Leaving]
chinmay_dd has quit [Ping timeout: 240 seconds]
sevvie has quit [Ping timeout: 265 seconds]
bim has quit [Remote host closed the connection]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
jayeshsolanki has quit [Quit: bye!]
tkuchiki has quit [Remote host closed the connection]
livathinos has joined #ruby
brainslug has quit [Quit: all glory to hypnotoad]
tkuchiki has joined #ruby
brainslug has joined #ruby
snath has joined #ruby
brainslug has quit [Client Quit]
momomomomo has joined #ruby
centrx has joined #ruby
brainslug has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
GaryOak_ has joined #ruby
B1n4r10 has joined #ruby
pullphinger has joined #ruby
xaxisx has quit [Quit: xaxisx]
longfeet has joined #ruby
gregf1 has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
dawkirst has joined #ruby
meschiv2 has joined #ruby
RegulationD has quit [Remote host closed the connection]
<bradland> mystiiq: this might be cheating a bit, but the webrick library implements CGI, and is well documented: https://github.com/nahi/ruby/blob/webrick_trunk/lib/cgi.rb
xaxisx has joined #ruby
RegulationD has joined #ruby
sp33k3rph433k has joined #ruby
lavros has quit [Quit: leaving]
Takle has quit [Remote host closed the connection]
<User458764> How do you sum all values of an array?
vire has joined #ruby
<undeadaedra> .inject(:+)
emocakes has quit [Ping timeout: 256 seconds]
<User458764> undeadaedra inject, thanks I haven't seen it
bim has joined #ruby
baroquebobcat has joined #ruby
juanpablo_ has joined #ruby
Aswebb_ has joined #ruby
einarj has quit [Remote host closed the connection]
livathinos has quit []
ghr has quit [Ping timeout: 250 seconds]
quintinadam has joined #ruby
timanema has quit [Quit: leaving]
sp33k3rph433k has quit [Ping timeout: 256 seconds]
krzkrz has joined #ruby
krz has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
MatthewsFace has joined #ruby
sp33k3rph433k has joined #ruby
rayplain has joined #ruby
vire has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
chinmay_dd has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
Ellis has joined #ruby
joonty has joined #ruby
rayplain has quit [Remote host closed the connection]
Ellis has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
rhllor has joined #ruby
alex88 has joined #ruby
zorak8 has joined #ruby
Ellis has joined #ruby
Ellis has left #ruby [#ruby]
davidhq has joined #ruby
yfeldblum has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duggiefresh has quit [Ping timeout: 252 seconds]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
Zesty has joined #ruby
DerisiveLogic has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
nb_bez___ has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
zz_AlphaTech is now known as AlphaTech
michaeldeol has joined #ruby
allenn has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<kq_away_> Does the default ruby interpreter perform any form of jiting?
sohrab has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
<jhass> no, it's a VM
yfeldblum has quit [Ping timeout: 264 seconds]
<kq_away_> Not sure how it's vm-ness is relevant to that
<kq_away_> thanks
xaxisx has quit [Quit: xaxisx]
Soda has joined #ruby
hmnhf has quit [Ping timeout: 250 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Spami has quit [Quit: This computer has gone to sleep]
riotjones has joined #ruby
<jhass> the VM model means it transforms the source into a special "bytecode" and then interprets that
OtterCoder has joined #ruby
mwlang has joined #ruby
kyrylo has quit [Ping timeout: 250 seconds]
joonty has quit [Quit: joonty]
<jhass> in a JIT model the source code is during runtime transformed into native instructions which then are executed
<mwlang> is using Ruby to make FTP connections and download files ever known to be considerably slower than doing same with Filezilla? when I use Ruby on Windows to download a file, it takes 80 minutes, but only 42 secs for same file on same machine with Filezilla.
tosbourn has joined #ruby
<canton7> Rubinius JITs, no?
<GaryOak_> mwlang: that's definitely something else than ruby
<canton7> and JRuby will of course use the JVM's jitter
<mwlang> GaryOak_: any idea how to chase it down?
<kq_away_> jhass: but CLR and jvm are also vms
<workmad3> jhass: you can JIT with a VM... in that setup, the VM bytecode would be generated when loading the source, and then when a particular method is going to be executed for the first time, it's run through a JIT compiler that turns the VM bytecode into native code. That native code could then be kept around for the rest of the program run-time to speed up execution
<workmad3> jhass: in fact, I'm not sure of any JIT setup that doesn't function on a VM in practice :P
<GaryOak_> mwlang: can you post code?
zenith_ has quit [Read error: Connection reset by peer]
Zesty has joined #ruby
<jhass> yeah I guess
<canton7> ^ C# and java both do that: IL is jitted to machine code at runtime
vtunka has joined #ruby
zenith_ has joined #ruby
<GaryOak_> how does erlang do runtimes that allows it to inject new code into the running application?
<workmad3> GaryOak_: erlang is written around highly isolated erlang processes
<workmad3> GaryOak_: when you 'inject new code', you effictively crash out a process and load a new version of it, without affecting any of the other processes
hiall_ has quit [Quit: hiall_]
<GaryOak_> oh ok
riotjones has quit [Ping timeout: 264 seconds]
jconnoll1 has joined #ruby
<GaryOak_> does it do automatic isolation of code?
pontiki has joined #ruby
agarie has joined #ruby
<workmad3> GaryOak_: not sure what you mean by 'automatic'... but read up on the actor model for an idea of the concurrency style that erlang uses
xenokiller has joined #ruby
<GaryOak_> I will do that thanks
<pontiki> o/
Ellis has joined #ruby
vtunka has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
tohsig has joined #ruby
<Ellis> i’m looking for an array method that will split an array into two arrays, and the first array consists of things that match some conditions like they are integers
jconnolly has quit [Ping timeout: 264 seconds]
<Ellis> anyone know?
astrobun_ has joined #ruby
<mwlang> Ellis: #select and #reject iterators are your friend here.
amdbcg has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
<eam> Ellis: #partition
<Ellis> mwlang: i’m going to check those out, thanks. i was thinking of using each_slice, is that possible?
alex88 has quit []
<Ellis> eam: ill check that out, thanks
sigurding has quit [Quit: sigurding]
<eam> >> [1,2,3,4].partition {|n| n.even? }
<ruboto> eam # => [[2, 4], [1, 3]] (https://eval.in/310201)
<Ellis> eam: oo that’s pretty
<mwlang> Ellis: each_slice, as far as I know is for breaking array into manageable chunks
dawkirst has quit [Quit: Leaving...]
amdbcg has joined #ruby
<Ellis> mwlang: gotcha
<Ellis> thanks homies for the help
momomomomo has quit [Quit: momomomomo]
<mwlang> I wasn’t aware of partition. That’s a cool one to add to my bag of tricks. :-)
<eam> someone here taught me about it in the not too distant past :)
<GaryOak_> mwlang: not really sure, could be that filezilla is using concurrent requests
<workmad3> partition is one of those methods that you forget about because you never use it... and then you hit a problem where it's absolutely perfect ;)
_maes_ has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wasamasa> partition_by is also useful
wildroman2 has quit [Remote host closed the connection]
<mwlang> GaryOak_: hmmm. The only other suspect is the passive mode, which I couldn’t get to work in Ruby without setting to false.
<workmad3> wasamasa: slice_before, slice_after and slice_when are also useful at times too :)
<mwlang> workmad3: true, dat. I bet if it were called “split” I’d be more inclined to remember it.
<wasamasa> workmad3: there must be some deeper truth hidden behind these names
codecop has joined #ruby
roolo has quit [Remote host closed the connection]
<workmad3> >> [1,2,3,4,4,5,6,5,5,4].slice_after(&:even?).to_a
<ruboto> workmad3 # => [[1, 2], [3, 4], [4], [5, 6], [5, 5, 4]] (https://eval.in/310204)
<workmad3> >> [1,2,3,4,4,5,6,5,5,4].slice_before(&:even?).to_a
<ruboto> workmad3 # => [[1], [2, 3], [4], [4, 5], [6, 5, 5], [4]] (https://eval.in/310205)
<kq_away_> this is so cool
momomomomo has joined #ruby
<mwlang> workmad3: There’s a blog post just begging to be written. :-)
bricker has joined #ruby
<tosbourn> woah that *is* cool
nettoweb has joined #ruby
<wasamasa> I wish all my ruby code were dealing with Enumerable and its methods
<GaryOak_> mwlang: I'd try to get passive working
<workmad3> [1,2,3,4,4,5,6,5,5,4].slice_when(&:<).to_a
<workmad3> >> [1,2,3,4,4,5,6,5,5,4].slice_when(&:<).to_a
<ruboto> workmad3 # => [[1], [2], [3], [4, 4], [5], [6, 5, 5, 4]] (https://eval.in/310206)
jheg has quit [Quit: jheg]
<workmad3> mwlang: bah, draw attention to my lack of a decent blog site at the moment :P
nettoweb has quit [Client Quit]
<undeadaedra> who has a blog nowadays.
* wasamasa raises hand
<workmad3> quick, steal it!
<wasamasa> no main blog material though
* tosbourn raises hand also
<undeadaedra> I should have a blog
* mwlang here
<undeadaedra> But when I code it, I end doing shit in the backend and don’t do the blog itself :(
* mwlang but too long dormant!
<wasamasa> that will come later once I've got a less silly static blog generator up and running
<tosbourn> I would happily write about this and credit workmad3
_lazarevsky has quit [Quit: Page closed]
<workmad3> tosbourn: don't credit me... I stole knowledge about slice_* methods off someone else in here a month or two back :P
<mwlang> undeadaedra: same for me, although I’ve been working finishing my blog project so I can actually blog
<undeadaedra> I went down to rack level :|
<sp33k3rph433k> I am actually going to write a post about that-- how do you want me to credit you workmad3 ?
<sp33k3rph433k> When I eventually get around to it :P
<undeadaedra> in the next century
mystiiq has quit [Quit: WeeChat 1.1.1]
<catcher> How rough was the transition from php -> ruby for those who have done it? Just language, not framework.
amdbcg has quit [Ping timeout: 245 seconds]
<workmad3> undeadaedra: my last attempt to rebuild my blog ended up with me trying to jam polymer elements into middleman's sprockets pipeline :P
<mwlang> undeadaedra: heh…I first converted my WordPress blog to static pages served by Rails and have slowly been reintroducing DB driven content while converting said content to markdown and building a back-end editor for Markdown using the Ace editor.
<undeadaedra> mwlang: nice.
<undeadaedra> workmad3: nice.
amdbcg has joined #ruby
<mwlang> I turned all the WordPress related stuff into a Rails engine that I’ll open source soon.
<workmad3> undeadaedra: then I got distracted by something else (probably a piece of string or something) and I haven't touched it for months :(
<sp33k3rph433k> workmad3: Sounds like a case of this -- https://xkcd.com/349/
<undeadaedra> I could do things in sinatra, but I don’t like some of the organisation
<mwlang> a little surprised there’s not already a gem for rails on wordpress already.
bradleyprice has joined #ruby
krisquigley has quit [Remote host closed the connection]
<undeadaedra> I’m a perfectionist, it doesn’t help to work :|
<mwlang> undeadaedra: Padrino makes Sinatra a little more nicely organized.
<workmad3> undeadaedra: yeah, it's getting there... I have a tablet connected to my desktop atm waiting to be flashed with cyanogenmod... when I finally get a suitable recovery image onto it and an ADB connection talking to the recovery image!
<GaryOak_> I just use github pages :(
krisquigley has joined #ruby
<undeadaedra> mwlang: with an admin interface ?
<undeadaedra> erk
<tosbourn> I recently moved from WordPress to Jekyll – feel a bit less rubbish about it :P
<workmad3> GaryOak_: well, that's what my plan was with middleman and polymer... static site served with GH pages, with a snazzy polymer/material design JS frontend to make it feel fun :P
<undeadaedra> I used ActiveAdmin once
<undeadaedra> It didn’t end well
<mwlang> undeadaedra: I have all the modeling in it’s own engine. Have been contemplating another engine for the admin stuff.
<workmad3> undeadaedra: I can probably point you at a support group if necessary
<GaryOak_> tosbourn: did you run into issues with jekyll docs, not being useful?
<undeadaedra> workmad3: support group for what ?
<workmad3> undeadaedra: recovering from ActiveAdmin use :P
<mwlang> at the moment, I just have a Rails project that is my blog with the WordPress slowly getting turned out of that project into the engine with test coverage.
<undeadaedra> ahah
<undeadaedra> Rails seems too much for me
<tosbourn> @GaryOak_ nope – everything worked fine for me. Images with captions went a bit mental but I didn't really expect the docs to cover that in great detail.
<undeadaedra> I create a Rails project, and begin to tweak all config files
<workmad3> undeadaedra: yeah... don't do that :P
<undeadaedra> It’s compulsive :(
<GaryOak_> tosbourn: Oh I had issues getting everything setup, I guess just because the way I was doing things
<undeadaedra> MUST. CONFIGURATE.
<mwlang> undeadaedra: yeah…for Rails you either go with the prescribed opinions or end up fighting the tide the whole way.
<workmad3> undeadaedra: hire someone to whack you around the head with a bat every time you open up a rails config file :P
<undeadaedra> MUST. REMOVE. COMMENTS>
davispuh has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
<workmad3> undeadaedra: or at least script that crap with sed!
<undeadaedra> Oh, a rails config file.
<undeadaedra> NO VIM NO
momomomomo has quit [Quit: momomomomo]
<tosbourn> @GaryOak_ when did you attempt it? It was literally a month or so ago for me so it could have been improved since then. Plus my WordPress was super vanilla
<workmad3> undeadaedra: everytime you edit a rails config file, some poor kid somewhere starts coding PHP
<GaryOak_> tosbourn: Just a few weeks ago
<tosbourn> @GaryOak_ sucks
<gregf_> catcher: haven't had a need for a transition, but yeah array(1,2,3) == [1,2,3], array( "one" => 1, "two" => 2 ) == { "one" => 1, "two" => 2 }. for a start
<GaryOak_> with rails, I just end up shoving everything into the public folder and it's just a static website
<undeadaedra> workmad3: I do PHP at work, so I’ll let the kid suffer just because I’d know i’m not the only one >:]
mostlybadfly has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
<mwlang> geez….third Firefox crash in a week. Whatever did that last “update” do!?
MXfive has joined #ruby
<workmad3> mwlang: started a thread with 'sleep(rand(60 * 24 * 7)); exit!'
<workmad3> 60 * 60 * 24 * 7 even
astrobun_ has quit [Remote host closed the connection]
gsd has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
sprihodko has quit [Quit: (null)]
Ellis has quit [Quit: Ellis]
adriancb has joined #ruby
Ellis has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<Senjai> Morning ruby
kyrylo has joined #ruby
pietr0 has joined #ruby
longfeet has quit [Ping timeout: 255 seconds]
<undeadaedra> Senjai noticed us
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CustosL1m3n has quit [Ping timeout: 265 seconds]
sohrab has quit [Ping timeout: 255 seconds]
rbennacer has quit [Remote host closed the connection]
<undeadaedra> workmad3, mwlang: the real problem is that for personal projects, I have no restrictions and no results to give, so I go in all directions and never achieve anything. Which doesn't happens (or less) for work projects. It seems that I need a fixed, external goal to achieve something. :/
adriancb has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
davispuh has joined #ruby
<GaryOak_> undeadaedra: maybe start by writing a scope for your project?
terlar has quit [Quit: WeeChat 1.1.1]
<undeadaedra> that's hard
<undeadaedra> but even if I do this, nothing ties me to it, so it's easy to evade :/
<GaryOak_> You need a boss :(
<mwlang> undeadaedra: yeah, I hear you. I found that brain dumping into either Pivotal Tracker or Trello started bringing me closer to achieving my intended goals.
<GaryOak_> ^ started doing this in trello
<undeadaedra> Should try
djbkd has joined #ruby
<GaryOak_> just need to remember I made the trello page
<undeadaedra> GaryOak_: A boss for personnal projects?
chthon has quit [Ping timeout: 244 seconds]
<GaryOak_> like a friend to remind you to work on stuff
gsd has quit [Read error: Connection timed out]
gsd has joined #ruby
ldnunes has joined #ruby
Spami has joined #ruby
ki0 has quit [Ping timeout: 250 seconds]
mikenovikov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
<mwlang> I started a third monitor on my desktop. It keeps only my prioritized tasks front and center. I start wandering, that screen gives me dirty stares until I return to what I “said I’d do”
jenrzzz has joined #ruby
<undeadaedra> GaryOak_: not sure friends would follow into it
<undeadaedra> Should try the trello
Pumukel has quit [Ping timeout: 256 seconds]
davispuh has quit [Read error: Connection reset by peer]
xenokiller has quit [Ping timeout: 255 seconds]
duggiefresh has joined #ruby
davispuh has joined #ruby
serivichi has quit [Ping timeout: 245 seconds]
<GaryOak_> you could trade, and remind them of projects
mikenovikov has joined #ruby
yfeldblum has joined #ruby
RegulationD has quit [Remote host closed the connection]
<undeadaedra> yeah …. :|
nettoweb has joined #ruby
duggiefresh has quit [Ping timeout: 248 seconds]
yh__ has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
Crazy_Atheist has joined #ruby
Crazy_Atheist has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mordocai has joined #ruby
cocotton_ has joined #ruby
<undeadaedra> time to go home
<naftilos76> is there a method to convert 1 to "first", 2 to "second" etc?
<toertore> no
<undeadaedra> maybe a gem implements that
<naftilos76> :-) ok thnks
<undeadaedra> even if it looks like a bad idea
cocotto__ has joined #ruby
<GaryOak_> if there isn't a gem, you could make one
cocotton_ has quit [Read error: Connection reset by peer]
<naftilos76> i could certanly do that
Zai00 has quit [Quit: Zai00]
<undeadaedra> It won't work if you're planning to translate it
yh has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
<aawe> undeadaedra: sure it will. Plans do not interfere with code
bim has quit [Remote host closed the connection]
cocotto__ has quit [Remote host closed the connection]
<undeadaedra> aawe: it will give strange results in languages were these kind of words change depending on the context
<undeadaedra> anayway, have to go :|
rbennacer has joined #ruby
cocotton has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<naftilos76> undeadaedra: thanks a lot
jcromartie has joined #ruby
<naftilos76> exactly what i was looking for
fryguy9 has quit [Quit: Leaving.]
OtterCoder has quit [Remote host closed the connection]
serivichi has joined #ruby
GnuYawk has quit [Ping timeout: 272 seconds]
Soda has quit [Remote host closed the connection]
brb3_ has joined #ruby
Pumukel has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
Filete has joined #ruby
krisquigley has joined #ruby
fabrice31 has joined #ruby
brb3_ has quit [Client Quit]
c0m0 has quit [Ping timeout: 256 seconds]
hpoydar has quit [Remote host closed the connection]
pontiki has quit [Quit: off to painting class]
yfeldblum has joined #ruby
ghr has joined #ruby
Advocation has quit [Quit: Advocation]
xaxisx has joined #ruby
brb3 has quit [Ping timeout: 264 seconds]
sohrab has joined #ruby
yxhuvvd has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
krisquigley has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
yxhuvud has joined #ruby
blackmesa has joined #ruby
wallerdev has joined #ruby
zarubin has joined #ruby
Kricir has joined #ruby
agarie has quit []
jonatin has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Remote host closed the connection]
zarubin has quit [Remote host closed the connection]
predator117 has joined #ruby
jefus_ is now known as jefus
jonatin has joined #ruby
brb3 has joined #ruby
jlebrech has quit [Remote host closed the connection]
zarubin has joined #ruby
brb3_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
browndawg has quit [Quit: Leaving.]
mwlang has quit [Quit: mwlang]
spyderman4g63 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brb3 has quit [Ping timeout: 250 seconds]
Mark-6ma has joined #ruby
mikecmpbll has joined #ruby
elaptics_away is now known as elaptics
wolf4ood___ has quit [Quit: (null)]
mistermo_ is now known as mistermocha
serivichi has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
turtil-kun has quit [Ping timeout: 245 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
govg has quit [Quit: leaving]
ki0 has joined #ruby
spider-mario has joined #ruby
spyderman4g63 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
lolmaus has quit [Quit: Konversation terminated!]
spider-mario has quit [Read error: Connection reset by peer]
rubytor has joined #ruby
Hijiri has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
yh__ has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
bluOxigen has joined #ruby
lolmaus has joined #ruby
opes has joined #ruby
User458764 has joined #ruby
|Liar| has quit [Quit: WeeChat 0.4.2]
ki0 has quit [Remote host closed the connection]
govg has joined #ruby
Sawbones has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
jimms has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
ki0 has joined #ruby
duggiefresh has joined #ruby
cartothemax has quit [Remote host closed the connection]
spyderman4g63 has quit []
cartothemax has joined #ruby
dvg-laptop has quit [Quit: dvg-laptop]
ROOM1 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<ROOM1> hi
B1n4r10 has joined #ruby
wldcordeiro has joined #ruby
jimms has joined #ruby
axl__ has joined #ruby
<GaryOak_> ROOM1: hello
axl_ has quit [Ping timeout: 252 seconds]
axl__ is now known as axl_
spider-mario has joined #ruby
tosbourn has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
<jhass> oh
<jhass> ?whatschat ROOM1
<ruboto> ROOM1, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
krisquigley has joined #ruby
devans has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
<shevy> wat
<shevy> I can not date here
<jhass> you can try
devans has joined #ruby
<ROOM1> how
<Ellis> i’m looking for a method that will split a hash into two arrays based on some condition. i tried group_by but that returned a hash. anyone know of a method that would work?
<jhass> Ellis: partition is on Enumerable, thus available for Hash too
<Ellis> derp. thanks jhass, ill try that now
shazaum has joined #ruby
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aswen has joined #ruby
MXfive has joined #ruby
<Ellis> oh man. haha that works. thanks
<hanmac> shevy you can, see:
<hanmac> >> require "date"; Date.today
<ruboto> hanmac # => #<Date: 2015-04-08 ((2457121j,0s,0n),+0s,2299161j)> (https://eval.in/310253)
<Ellis> hanmac: good one
dumdedum has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
Sawbones has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
mjuszczak has joined #ruby
ROOM1 has quit [Excess Flood]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lektrik has joined #ruby
cartothemax has quit [Remote host closed the connection]
cartothemax has joined #ruby
adriancb has joined #ruby
astrobun_ has joined #ruby
LudicrousMango has quit [Ping timeout: 240 seconds]
LudicrousMango has joined #ruby
dvg-laptop has joined #ruby
chrishough has joined #ruby
bim has joined #ruby
towski_ has joined #ruby
zarubin has quit [Remote host closed the connection]
opes_ has joined #ruby
astrobun_ has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
Ellis has left #ruby [#ruby]
opes has quit [Quit: Textual IRC Client: www.textualapp.com]
opes_ is now known as opes
Elite6809 has joined #ruby
deuteriu_ has quit [Quit: zzZZZzzz..]
RegulationD has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
<mwlang> what causes this error during gem build? => “WARN: Unresolved specs during Gem::Specification.reset: rake (>= 0.8.1)”
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
mjuszczak has quit []
nwjjjf has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
mjuszczak has joined #ruby
quimrstorres has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 246 seconds]
adamjleonard has quit [Quit: Leaving...]
RegulationD has quit [Ping timeout: 244 seconds]
shadeslayer has joined #ruby
hpoydar has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
bim has quit [Remote host closed the connection]
x1337807x has joined #ruby
Hounddog has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
lxsameer has joined #ruby
baweaver has joined #ruby
mjuszczak has quit [Ping timeout: 276 seconds]
sivsushruth has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
baweaver has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
reset has joined #ruby
steven43126 has quit [Read error: Connection reset by peer]
steven43226 has joined #ruby
Squarepy has joined #ruby
ghr has joined #ruby
sinkensabe has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
leafybas_ has joined #ruby
cjim has joined #ruby
elaptics is now known as elaptics_away
Hijiri has joined #ruby
leafybas_ has quit [Remote host closed the connection]
opes_ has joined #ruby
VBlizzard has joined #ruby
chinmay_dd has quit [Quit: Leaving]
sinkensabe has quit [Ping timeout: 256 seconds]
amdbcg has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
joonty has quit [Client Quit]
leafybasil has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
sargas has joined #ruby
sivsushruth has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
jheg has joined #ruby
cjim has quit [Quit: (null)]
opes_ has quit [Quit: Textual IRC Client: www.textualapp.com]
B1n4r10 has joined #ruby
cjim has joined #ruby
VBlizzard is now known as _blizzy_
dcarmich has joined #ruby
tgunr has quit [Quit: Textual IRC Client: www.textualapp.com]
teddyp1cker has joined #ruby
apoplexy_da_boss has joined #ruby
Boondox has joined #ruby
momomomomo has joined #ruby
lxsameer has quit [Quit: Leaving]
RegulationD has joined #ruby
havenwood has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
<aawe> mwlang: you can clean your gems
<mwlang> aawe: as in “gem clean …” ?
<aawe> mwlang: yes
<aawe> gem clean rake
apoplexy_da_boss has quit [Ping timeout: 250 seconds]
<mwlang> aawe: ok, I’ll give that a go...
<mwlang> aawe: that didn’t seem to do anything: https://gist.github.com/mwlang/7a8d0163a843b65db08f
dopie has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 255 seconds]
<jhass> mwlang: gem list rake says what?
<mwlang> jhass: rake (10.4.2, 10.3.2, 10.1.1, 10.1.0, 10.0.3, 0.9.6, 0.9.2.2)
<mwlang> jhass: and rubygems is at version 2.4.1
<jhass> and ruby?
sp33k3rph433k has quit [Quit: sp33k3rph433k]
DerisiveLogic has quit [Ping timeout: 264 seconds]
pullphinger has quit []
ponga has quit [Remote host closed the connection]
<jhass> latest rubygems is 2.4.6, might be worth a shot
oddskill has joined #ruby
toertore has quit [Ping timeout: 265 seconds]
dfinninger has joined #ruby
einarj has joined #ruby
<mwlang> no change with 2.4.6 installed. (repeated the steps for cleaning and building)
tosbourn has joined #ruby
<mwlang> somehow rake 0.8.1 is getting picked up, but I can’t quite tell where….maybe in the bowels of rvm?
<jhass> *shrug*, it's a warning, I wouldn't bother
<jhass> if you're really bother throw away the ruby version & all gemsets an reinstall
<jhass> but I wouldn't
<mwlang> yeah, I think I’m with you. I was just getting ready to publish my gem to rubygems.org and didn’t want any lingering errors/warnings, but this one doesn’t look like a problem with my gemspec per se.
<jhass> yeah, not at all
dfinninger has quit [Ping timeout: 244 seconds]
<GaryOak_> this is why I don't use rvm
toretore has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
opes_ has joined #ruby
maximski has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
adamjleonard has joined #ruby
tosbourn has quit [Ping timeout: 250 seconds]
opes has quit []
opes_ is now known as opes
n80 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
djellemah has quit [Quit: Leaving]
sigurding has joined #ruby
yh has joined #ruby
Ellis has joined #ruby
hanmac1 has joined #ruby
djellemah has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
<Ellis> how can i find how many methods are in ruby core and in ruby standard library?
<jhass> well over 3.5k
DexterLB has joined #ruby
jimms has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
djellemah has quit [Max SendQ exceeded]
djellemah has joined #ruby
<Ellis> if i said the enumerable module is part of the ruby standard library, wouldd i be correct? or am i confused
rdark has quit [Quit: leaving]
<jhass> no, it's in core
<Ellis> oh god damn
mostlybadfly has quit [Quit: Connection closed for inactivity]
cocotton has quit [Remote host closed the connection]
<Ellis> is that why i don’t have to require it?
<jhass> core is always available, stdlib is shipped with Ruby but needs to require'd, gems need to be installed and then require'd
<jhass> yes
<havenwood> mwlang: It looks like there's an open RubyGems Issue regarding the "Unresolved specs ..." warning: https://github.com/rubygems/rubygems/issues/1070
<Ellis> gotcha. i’m learning!
djellemah_ has joined #ruby
djellemah__ has joined #ruby
Eiam_ has joined #ruby
<mwlang> havenwood: thanks for that. I’m convinced its not my gemspec’s fault, so I’ll just let it be.
sinkensabe has joined #ruby
fabrice31 has joined #ruby
tgunr has joined #ruby
wildroman2 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djellemah has quit [Ping timeout: 252 seconds]
rodfersou has quit [Read error: Connection reset by peer]
djellemah_ has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
amdbcg has joined #ruby
wildroman2 has quit [Remote host closed the connection]
withnale_ has quit [Ping timeout: 276 seconds]
wildroman2 has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
djellemah__ is now known as djellemah
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
yourwebdevguy has joined #ruby
tohsig has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jheg> o/
MatthewsFace has quit [Remote host closed the connection]
mjuszczak has joined #ruby
bim has joined #ruby
wildroman2 has quit [Remote host closed the connection]
cjim has quit [Quit: (null)]
LudicrousMango has quit []
tohsig has joined #ruby
<jheg> does the assert_equal test require something like assert product.invalid? beforehand to work?
wildroman2 has joined #ruby
maximski has quit []
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
oddskill is now known as oddskill_away
<jheg> this test fails if I remove line 8
<jheg> but passes with it
<jhass> jheg: invalid? calls valid? which runs the validations
<jhass> accessing .errors doesn't run the validations
mengu has joined #ruby
mengu has joined #ruby
jimms has quit [Ping timeout: 246 seconds]
<jheg> ah thanks jhass
oddskill_away is now known as oddskill
ndrei has joined #ruby
bim has quit [Ping timeout: 252 seconds]
mjuszczak has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
cocotton has joined #ruby
naftilos76 has quit [Remote host closed the connection]
mengu has quit [Read error: Connection reset by peer]
jottr has joined #ruby
<SebastianThorn> hi, im having trouble subtracting Time from Time, not sure how to get this to work: http://pastie.org/10080916
cpt_yossarian has joined #ruby
mengu has joined #ruby
cjim has joined #ruby
<jhass> what's the error?
<SebastianThorn> call_time is not a Time object as i thought
ascarter has joined #ruby
<SebastianThorn> it's a flost
<jhass> well yes
<jhass> Time represents a point in time
<atmosx_bsd> jhass: you in Berlin?
stoffus has joined #ruby
<atmosx_bsd> shit have to go, gf here! bbl :-P
<jhass> substracting two points in times gives you a time span, or rather the amount of seconds between those two points in time
<SebastianThorn> jhass: ok, so i should parse the float into a new Time object?
<jhass> atmosx_bsd: nope, hannover ;)
<jhass> SebastianThorn: that doesn't make much sense
<jhass> what do you expect?
cartothemax has quit [Remote host closed the connection]
<atmosx_bsd> jhass: ah k! Hannover must be beautiful also.
leafybasil has joined #ruby
davedev24_ has joined #ruby
<jhass> atmosx_bsd: not really, it's probably considered the most boring bigger city in germany ;P
cartothemax has joined #ruby
<atmosx_bsd> jhass: I was just being polite.
<SebastianThorn> jhass: ohh, now i understand what you mean, ofc i cant get a time-object back.
<atmosx_bsd> lol
<GaryOak_> SebastianThorn: you can't say "I awoke at 5.3"
davedev2_ has quit [Ping timeout: 245 seconds]
<SebastianThorn> GaryOak_: yes, just understood my fault :P
ascarter has quit [Client Quit]
<atmosx_bsd> jhass: was *trying to be* polite actually, never been in Hannover hehe
<centrx> The difference between yesterday and today is January 1, 1970 duh
<jhass> atmosx_bsd: smalltalk doesn't work with me :P
<SebastianThorn> i want the hours, minutes, seconds and millsecs.
<SebastianThorn> ill try again alone, now when i understand what i did wrong
mengu__ has joined #ruby
<jhass> SebastianThorn: well, you get the seconds
Hijiri has quit [Ping timeout: 250 seconds]
<jhass> apply basic arithmetic
mengu has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<jhass> .divmod might come in handy
mrbond has quit [Quit: mrbond]
<jheg> jhass: do you mean literally replace assert product.invalid? with assert product.validate
<jheg> ?
<SebastianThorn> jhass: ty, will check that out :)
<jhass> jheg: no need to assert
<jhass> jheg: you just want to run the validations, it's part of your test setup
spyderman4g63 has joined #ruby
<jheg> oh I see, great!
<jheg> thanks again
MatthewsFace has joined #ruby
Sawbones has joined #ruby
sigurding has quit [Quit: sigurding]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
tier has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
Sawbones has quit [Remote host closed the connection]
wildroman2 has quit [Client Quit]
gusrub has joined #ruby
rubytor has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
mengu__ has quit [Ping timeout: 240 seconds]
knikolov has joined #ruby
CpuID has quit [Ping timeout: 245 seconds]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tier has joined #ruby
cartothemax has quit [Remote host closed the connection]
cartothemax2 has joined #ruby
yfeldblum has joined #ruby
<shevy> what the fudge
<shevy> there is an english word called "abseiling"
mjuszczak has joined #ruby
<shevy> they steal german words!!!
Sawbones has quit [Ping timeout: 250 seconds]
<shevy> "to abseil" lol
hgl has quit [Ping timeout: 252 seconds]
<shevy> the best part is this
<shevy> "They abseil down lift shaft to basement"
gfawcettpq has quit [Ping timeout: 244 seconds]
jespada has joined #ruby
<GaryOak_> does it just mean descend?
<shevy> I'm gonna make it even better... imagine this: "They abseil down lift shaft into the kindergarten"
<shevy> yeah GaryOak_
<shevy> seil == rope
spyderman4g63 has quit [Read error: Connection reset by peer]
<GaryOak_> ab - without?
<shevy> "ab" could be translated with down, sort of
<GaryOak_> oh down - rope
<shevy> I can understand that it probably came from mountaineering/climbing
<GaryOak_> yeah
max96at is now known as max96at|off
baweaver has joined #ruby
hgl has joined #ruby
yourwebdevguy has left #ruby ["I'm Out!"]
momomomomo has quit [Ping timeout: 264 seconds]
<shevy> abseiling down into the Kindergarten, to hear a video lecture about the Eigenclass
<GaryOak_> haha
cjim has quit [Quit: (null)]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
krisquigley has joined #ruby
cjim has joined #ruby
spyderman4g63 has joined #ruby
jimms has joined #ruby
knikolov has quit [Quit: WeeChat 1.2-dev]
dfinninger has joined #ruby
robertt_dex has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
knikolov has joined #ruby
dvg-laptop has quit [Quit: dvg-laptop]
spyderman4g63 has joined #ruby
<GaryOak_> When people build a space elevator, we should call it a space abseilator
<Ellis> i’m trying to use benchmark for the first time, can someone help me out, this isn’t working https://gist.github.com/ellismarte/999559a243beb897cb7f
robertt_dex has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 244 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<SebastianThorn> Ok, i used div mod, but i dont understand why ct_mill gets so many digits, should it not be 0.061? http://pastie.org/10080964
<GaryOak_> Ellis: you should have def in line 12
<Ellis> garyoak: what do u mean
<SebastianThorn> >> 6047.061.divmod(3600)
<ruboto> SebastianThorn # => [1, 2447.0609999999997] (https://eval.in/310367)
AlphaTech is now known as zz_AlphaTech
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<GaryOak_> you actually don't even need the self on the scale function
Rephiax has joined #ruby
<Ellis> garyoak: thanks man. why did you include self though?
sevvie has joined #ruby
<GaryOak_> you don't need it
arietis has quit [Quit: Leaving.]
n_blownapart has joined #ruby
<Ellis> gotcha. i really appreciate the help
<GaryOak_> sure, wasn't a problem
turtil has joined #ruby
<GaryOak_> You just gotta remember scope ;)
Kricir has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
spyderma_ has joined #ruby
mjuszcza_ has joined #ruby
ta has quit [Quit: Leaving...]
<User458764> I need to iterate over an hash and this one has a key once in upcase and another time in normal case how do I do to always get it ?
bim has joined #ruby
<yxhuvud> iterate over a hash?
<Sou|cutter> User458764: it's pretty unclear what you want to achieve here
fryguy9 has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
<jhass> User458764: try with example & input and wanted output
riotjones has joined #ruby
<yxhuvud> >> {a: 1, b: 2}.map do |key, value| [key, value+2]; end
<ruboto> yxhuvud # => [[:a, 3], [:b, 4]] (https://eval.in/310368)
Rephiax has quit [Read error: Connection reset by peer]
Crazy_Atheist has quit [Quit: Leaving]
mjuszczak has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Ping timeout: 264 seconds]
A205B064 has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
<User458764> Sou|cutter sorry my hash have this key hash['key'] and hash['kEy'] when I iterate I search for the of hash['ke|Ey'] but if search for hash['key'] I have not hash['kEy'] so I thought there I could do something like hash['key'.downcase]
<undeadaedra> Ah
<User458764> I think I will do a test condition and to check if it is upcase or downcase
Echoes-- has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
amdbcg has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
<undeadaedra> by default ruby hash keys are case sensitive (because String#==)
<jhass> User458764: iterating over hash and using hash[x] inside the loop seems a bit weird :)
<undeadaedra> You may want to use a special, case insensitive Hash
djdarkbeat has quit [Ping timeout: 240 seconds]
n80 has quit [Quit: n80]
<undeadaedra> Google gives a lot of samples for this
ta has joined #ruby
tcrypt has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<User458764> I think I am misunderstood I query a web service over a loop and each time it return me a hash with either the key in downcase or the other in upcase but me I check only the key in downcase so I miss some result :)
gregf1 has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
A205B064 has joined #ruby
<Sou|cutter> User458764: hash.keys.grep(/key/i).map { |k| hash[k] }
gregf1 has joined #ruby
tohsig has quit [Ping timeout: 250 seconds]
A205B064 has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
<jhass> if you know both cases I'd prefer hash["key"] || hash["kEy"]
lanemeyer has quit [Ping timeout: 244 seconds]
<User458764> jhass I don't know all the cases :)
<Sou|cutter> if you don't expect to have both cases in your hash, I would just normalize the hash keys to downcased strings
<Sou|cutter> s/both/multiple combinations of case/
<jhass> yeah, normalizing sounds reasonable
<jhass> could just hash.each_key(&:downcase!); hash.rehash
thumpba has joined #ruby
<Ellis> i’m trying to write some code using the cycle method, but i’m getting an error. anyone know what’s wrong with it? https://gist.github.com/ellismarte/999559a243beb897cb7f
n_blownapart has quit []
<jhass> Ellis: you miss a =
cocotton_ has joined #ruby
<Ellis> DERP!
bim has quit [Remote host closed the connection]
<GaryOak_> hah
<User458764> Sou|cutter I get the key cool, but I have this error for the value TypeError: no implicit conversion of String into Integer
<undeadaedra> nah, DERP!=
<GaryOak_> lolol
momomomomo has joined #ruby
<Ellis> good eyes
zenith_ has quit [Remote host closed the connection]
<Sou|cutter> User458764: you have integer keys in your hash as well?
<jhass> you don't stop making these mistakes, you learn to spot them faster ;)
cocotton has quit [Ping timeout: 250 seconds]
<GaryOak_> and befriend your error logger
<Ellis> the result is nil. but i’m expecting it to be a long list of arrays … it looks like it isn’t doing what i want it to...
woop has quit [Excess Flood]
<User458764> Sou|cutter I don't think so
lxsameer has joined #ruby
lxsameer has joined #ruby
Zen-Zen has quit []
poguez_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
jefus has quit [Quit: Leaving]
Guest43428 has joined #ruby
<User458764> Sou|cutter no It's me I didn't replace 'hash' by my hash :)
<Sou|cutter> string to integer... err
jefus has joined #ruby
<Sou|cutter> ah, I knew something was missing
pagios has joined #ruby
<User458764> Sou|cutter works great
<pagios> hi how can i output all the params received in sinatra get request?
qhartman has quit [Quit: Ex-Chat]
<jhass> p params ?
<pagios> get '/subscribe' do "#{params}" not good
jimms_ has joined #ruby
<GaryOak_> Ellis: you are trying to modify the all_posts while it's cycling
amdbcg has joined #ruby
r3dk1nG has quit [Remote host closed the connection]
<GaryOak_> but it's not changing at all
Guest43428 is now known as bourbon
<GaryOak_> so it's only [1,2,3] 1000 times
<Ellis> garyoak: yeah i want it to begin cycling, check to see if anything is divislbe by 4, add that to the results, add something to all_posts and then continue
<Ellis> garyoak: why isn’t it changing all_posts as it cycles?
<GaryOak_> You can't modify what you are began the cycle on
<Ellis> ><
<Ellis> damn
baweaver_ has joined #ruby
jimms has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
djdarkbeat has quit [Ping timeout: 272 seconds]
<GaryOak_> just gotta remember your scope ;)
<GaryOak_> and understand ruby blocks
jimms has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
platosha__ has joined #ruby
jimms_ has quit [Ping timeout: 252 seconds]
Luyt has joined #ruby
xaxisx has joined #ruby
cr3 has joined #ruby
cocotton has joined #ruby
<cr3> if I call foo { yield 'bar' }, how can the foo function get 'bar' from the given code block?
djdarkbeat has joined #ruby
<User458764> Sou|cutter map return me an array of array how could I depop an array dimension?
revoohc has quit [Quit: revoohc]
ruboto has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 256 seconds]
platosha_ has quit [Read error: Connection reset by peer]
Luyt__ has quit [Read error: Connection reset by peer]
pico-pete has quit [Read error: Connection reset by peer]
frem has joined #ruby
sfr^ has quit [Ping timeout: 256 seconds]
frem has quit [Changing host]
frem has joined #ruby
quintinadam has quit [Ping timeout: 264 seconds]
bashusr has quit [Ping timeout: 256 seconds]
ruboto has joined #ruby
pico-pete has joined #ruby
Matadoer has quit [Ping timeout: 256 seconds]
sfr^ has joined #ruby
bashusr has joined #ruby
<User458764> Sorry for the newbee question I found myself
<undeadaedra> There are no stupid questions
jimms has quit [Ping timeout: 272 seconds]
djdarkbeat__ has joined #ruby
<GaryOak_> cr3: can to rephrase that?
<GaryOak_> can you*
bim has joined #ruby
<cr3> GaryOak_: sure, if I have foo { 'bar' }, then I can get the return value from the code block in foo like this: def foo(&block); return_value = block.call; end
adamjleonar has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
tesuji has quit [Ping timeout: 245 seconds]
Zen-Zen has joined #ruby
djdarkbeat has quit [Ping timeout: 250 seconds]
<cr3> GaryOak_: but, if I have foo { yield 'bar' }, calling block.call raises a "no block error" and I've tried a bunch of other combinations that don't work
<cr3> GaryOak_: does that help a little?
<undeadaedra> wut
<eam> cr3: can you gist a short fully functional example?
<eam> "run this code, it does this, but I expected that"
fryguy91 has joined #ruby
adamjleonard has quit [Ping timeout: 272 seconds]
Billias has joined #ruby
baweaver_ has quit [Remote host closed the connection]
<cr3> eam: here's a pastebin http://pastebin.com/2T586zim
<helpa> Hi cr3. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<ruboto> cr3, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/29985a9ff028a22fbe35
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
rubytor has joined #ruby
fryguy9 has quit [Ping timeout: 252 seconds]
Matadoer has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
<cr3> sorry folks, when I pasted code in the gist url in the topic, I didn't get a unique url to paste here
bim has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
<eam> cr3: no problem. Is this more like what you want? https://gist.github.com/eam/f857716f6d3276c0c6a1
<cr3> eam: ah, but my code is just a small example from a bigger problem where I actually need the code block to yield
zenith_ has joined #ruby
<cr3> eam: so, I need to figure out what to do in the foo function to get a yielded value from the given code block
rubytor has quit [Ping timeout: 252 seconds]
amdbcg1 has joined #ruby
<eam> cr3: what will the code block yield to?
amdbcg has quit [Read error: No route to host]
Boondox has quit []
<eam> cr3: you would normally say def foo; yield; end or def foo(&block); block.call; end # mostly the same thing
<cr3> eam: I'm not sure it really matters, shouldn't it be possible for foo to get that yielded value?
horsecowdog has quit [Ping timeout: 250 seconds]
<eam> what do you mean yielded value?
<eam> the thing you're calling is { 'b' }
<eam> { yield 'b' } doesn't mean anything -- there's nothing to yield to
jimms has joined #ruby
<cr3> eam: ah, gotcha!
tvw has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
jespada has quit [Ping timeout: 276 seconds]
<eam> cr3: what you're trying to do is maybe more like this? with two call/yield levels? https://gist.github.com/eam/e9a894ccc172a55bdf16
<eam> you can always pass a lambda explicitly
gusrub has quit [Quit: Leaving]
CalvinnHobbes has joined #ruby
zenith_ has quit [Ping timeout: 244 seconds]
Jiyuhen has quit [Ping timeout: 250 seconds]
shadoi has joined #ruby
<GaryOak_> inception blocks
jottr has joined #ruby
baweaver has joined #ruby
amdbcg1 has quit [Quit: amdbcg1]
amdbcg has joined #ruby
<jhass> do you know the inception hash?
Jiyuhen has joined #ruby
<GaryOak_> no
<jhass> Hash.new {|h,k| h[k] = h }
* undeadaedra plays the inception horn
CalvinnHobbes has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
<GaryOak_> haha
horsecowdog has joined #ruby
tmoor has joined #ruby
lnr has quit [Ping timeout: 240 seconds]
lnr has joined #ruby
<baweaver> look into auto-vivification sometime.
<eam> true auto-viv isn't possible in ruby :(
<GaryOak_> irb is just like "uh here's an empty hash I guess"
<sweeper> yea I was kinda disappointed
<GaryOak_> baweaver: is that where your code rips itself apart?
<eam> ruby would need different syntaxes for a hash/array dereference
visor has joined #ruby
<eam> you could fake it with method calls I guess, just can't use []
vdamewood has joined #ruby
sevvie has joined #ruby
djbkd has quit [Remote host closed the connection]
<baweaver> >> hash = Hash.new{ |h,k| h[k] = Hash.new(&h.default_proc) }; hash[:a][:b][:c][:d][:e][:f] = 1
<ruboto> baweaver # => 1 (https://eval.in/310375)
<baweaver> >> hash = Hash.new{ |h,k| h[k] = Hash.new(&h.default_proc) }; hash[:a][:b][:c][:d][:e][:f] = 1; p hash
<ruboto> baweaver # => {:a=>{:b=>{:c=>{:d=>{:e=>{:f=>1}}}}}} ...check link for more (https://eval.in/310376)
<jhass> that's the endless hash, yeah
<jhass> I also like the fibonacci hash
<baweaver> You can use it for method dispatch too ;)
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GaryOak_> oh gourd
gccostabr has quit [Quit: See you later!]
<eam> baweaver: now make it work for arbitrary nested hash/array structures :(
troyleak has joined #ruby
<pagios> jhass: can't convert Array into String
B1n4r10 has joined #ruby
<baweaver> eam: It's a start at least.
<eam> $thing{key}[1]{key2}[3] = 1
<eam> yeah
<eam> just replace all use of Array with Hash, problem solved!
wallerdev has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<baweaver> >> call = Hash.new{ |h,k| h[k] = self.send k }; call[:inspect]
<ruboto> baweaver # => "main" (https://eval.in/310377)
<jhass> pagios: on a p call? sounds unlikely, more likely that didn't return a proper value from your sinatra method or something
<baweaver> hehehe
<jhass> *that you
A205B064 has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
mordocai has quit [Remote host closed the connection]
sargas has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
<pagios> right
<baweaver> >> m = Hash.new{ |h,k| h[k] = method(k).to_proc }; m[:puts][1]
<ruboto> baweaver # => 1 ...check link for more (https://eval.in/310378)
sargas has quit [Client Quit]
<baweaver> reeeealy not something you want to do in actual code, still fun though.
<pagios> jhass same for a post? post '/subscribe' do p params
jenrzzz has joined #ruby
visor has quit [Quit: visor]
<jhass> ?try
<ruboto> Why don't you try it and see for yourself?
<pagios> it doesnt work
<pagios> on get it does
<pagios> on post i get an empty { }
<jhass> well, maybe that's because your post is empty?
<GaryOak_> We need a jhass bot that will parse a sentence for intent, and provide the right bot command
<sweeper> lies, I have like 10 letters
<jhass> GaryOak_: totally, code it up, I'll talk apeiros into accepting it
Darryl___ has quit [Quit: Connection closed for inactivity]
<jhass> fair share of work
<GaryOak_> hahaha
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
fryguy9 has joined #ruby
Mark-6ma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
xaxisx has left #ruby [#ruby]
EnduranceMan has quit []
<pagios> jhass: my post is not empty $http.post('http://localhost:8000/subscribe', JSON.stringify(user))
<pagios> and user has data
mostlybadfly has joined #ruby
<sweeper> >> mash = Hashie::Mash.new { |h, k| h[k] = Hashie::Mash.new(&h.default_proc) }; mash.foo.bar.baz = 1; p mash
<ruboto> sweeper # => uninitialized constant Hashie (NameError) ...check link for more (https://eval.in/310382)
twistedpixels is now known as zz_twistedpixels
<sweeper> >> require 'hashie'; mash = Hashie::Mash.new { |h, k| h[k] = Hashie::Mash.new(&h.default_proc) }; mash.foo.bar.baz = 1; p mash
<ruboto> sweeper # => cannot load such file -- hashie (LoadError) ...check link for more (https://eval.in/310383)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 240 seconds]
doobi-sham has joined #ruby
zz_twistedpixels is now known as twistedpixels
fryguy91 has quit [Ping timeout: 250 seconds]
robertt_dex has quit [Remote host closed the connection]
<jhass> pagios: ah so it's not post/form encoded
sevvie has joined #ruby
<jhass> pagios: JSON.parse(request.body.read)
<sweeper> pagios: uh, I suspect you don't want to stringify
beard0g has joined #ruby
<sweeper> if that's angular you're using
<pagios> yea i am using angular
maletor has joined #ruby
jheg has quit [Quit: jheg]
<jhass> usually you would send your json as a form encoded paramter and have JSON.parse(params['json'])
<jhass> where 'json' would be the parameter name
<jhass> or don't go through json at all, yeah
fabrice31 has joined #ruby
djdarkbeat__ has quit [Quit: djdarkbeat__]
stoffus has quit [Ping timeout: 276 seconds]
<sweeper> rails handles json just fine if the content type is set properly, dunno if sinatra needs extras for that
<sweeper> like, it shows up in params all parsed and such
<momomomomo> I used rails with angular json and it worked fine
<momomomomo> I’m sure I needed to configure something in my application controller
<momomomomo> no ‘json’ parameter either
<momomomomo> that’s just… wrong :p
ghr has quit [Ping timeout: 252 seconds]
a5i has quit [Quit: Connection closed for inactivity]
Rapier- has quit [Quit: (null)]
<pagios> trying this without jsonnifying $http.post('http://slocalhost:8000/subscribe', user)
sevvie has quit [Ping timeout: 250 seconds]
mengu has joined #ruby
sohrab has quit [Ping timeout: 245 seconds]
<momomomomo> pagios: please don’t send private messages without asking
<momomomomo> ask here if you have any questions
jespada has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
pragmatism has joined #ruby
rhllor has quit [Quit: rhllor]
fmcgeough has quit [Quit: fmcgeough]
<jhass> pagios: ^ is a channel rule btw (see http://ruby-community.com/pages/user_rules for all of them), repeated reports of that behavior can get you removed from the channel
shazaum has quit [Quit: Leaving]
x1337807x has joined #ruby
<pagios> ok rule 9 noted
JDiPierro has joined #ruby
quintinadam has joined #ruby
JDiPierro has quit [Remote host closed the connection]
musashi1 has joined #ruby
pika_pika has joined #ruby
sevvie has joined #ruby
mleung has quit [Quit: mleung]
roolo has joined #ruby
mleung has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
cocotton has quit [Quit: Leaving...]
rodfersou has quit [Quit: leaving]
zzing has joined #ruby
sargas has joined #ruby
adamjleonard has joined #ruby
adamjleonar has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
Beoran has joined #ruby
astrobun_ has joined #ruby
neomaking has joined #ruby
FLHerne has joined #ruby
<neomaking> Hey guys, i learned hoxw to use Ruby on Windows, but i'm know on Linu
<neomaking> is someone there to help me? :)
sinkensabe has joined #ruby
SteveTheMare has joined #ruby
<jhass> just ask your question, if somebody has the answer you'll notice ;)
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamjleonard has quit [Ping timeout: 264 seconds]
Elite6809 has quit [Quit: WeeChat 1.1.1]
bim has joined #ruby
<neomaking> i dont get how to start using Ruby on linux, i'm a real beginner there and i dont know what to use, like an IDE or something like this
bim has quit [Remote host closed the connection]
<jhass> most people just use their favorite text editor with syntax highlighting and a terminal
<havenwood> neomaking: What distro of GNU/Linux are you on?
sinkensabe has quit [Remote host closed the connection]
<neomaking> Mint 17.1
<neomaking> seems
Sawbones has joined #ruby
sinkensabe has joined #ruby
<neomaking> A friend of mine told me to use RVM, idk what's this :/
Ellis has quit [Quit: Ellis]
sevvie has quit [Ping timeout: 252 seconds]
<FLHerne> neomaking: KDevelop is a nice IDE and has Ruby parsing
baweaver has quit [Remote host closed the connection]
<FLHerne> But I've never tried using KDevelop for Ruby :P
momomomomo has joined #ruby
<jhass> neomaking: what desktop environment did you choose?
<neomaking> well, ok, and I installed Ruby, nothing to do after using KDvelop?
<neomaking> I'm using Linux Mint
<jhass> that has different flavors
<neomaking> mmmh
<neomaking> 2 sec
<jhass> cinnamon, MATE, KDE or Xfce
SteveTheMare has quit [Client Quit]
<neomaking> Cinnamon
<neomaking> was going to search it :p
SteveTheMare has joined #ruby
sameerynho has joined #ruby
ascarter has joined #ruby
<jhass> I think that's Gtk oriented? If so just use Gedit and a terminal until you get annoyed by that ;)
<neomaking> BTW its a totally fresh one, I can change it if it would be easier for me
<jhass> nah, it's fine
Kricir has joined #ruby
dx7_ has joined #ruby
<neomaking> Gedit isnt using syntax highlight isnt it?
ruby539 has joined #ruby
Ellis has joined #ruby
<undeadaedra> it has syntax highlighting
CustosL1m3n has joined #ruby
teddyp1cker has quit []
<neomaking> Just discovered it
<neomaking> nice
sgambino has quit [Remote host closed the connection]
<undeadaedra> if you’re beginning, you may not even need RVM
<undeadaedra> A recent Linux should ship a recent ruby
Aswebb_ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
<undeadaedra> try ruby -v in a terminal ?
<neomaking> trying it
Aswebb_ has joined #ruby
beneggett has joined #ruby
A205B064 has joined #ruby
mleung has quit [Quit: mleung]
<ruby539> Hi everyone! I'm new to these freenode chats
sevvie has joined #ruby
<neomaking> seems to be a hold ruby
jheg has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
<ruby539> Discovered them via a post on reddit
<undeadaedra> neomaking: when, say what it is
A205B064 has quit [Read error: Connection reset by peer]
<undeadaedra> ruby539: welcome
<neomaking> 1.9 ruby
lxsameer has quit [Ping timeout: 276 seconds]
<undeadaedra> a bit old indeed
<undeadaedra> I don’t remember if it’s still supported
A205B064 has joined #ruby
<undeadaedra> is your Linux up to date ?
<neomaking> But I already installed the last ruby :'(
decoponio has quit [Quit: Leaving...]
<neomaking> yes,urs fresh install from 2 3 ho
<undeadaedra> :/
dx7 has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
<neomaking> fresrsh install from 2 3 hou
<jhass> 1.9 EOL'd in february
<neomaking> Oh sorry
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<undeadaedra> and Mint is the last version too ?
blackmesa has joined #ruby
<neomaking> yep
<undeadaedra> :/
<jhass> neomaking: does mint have the apt-add-repository command?
A205B064 has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass> (type it into a terminal and see if it says command not found or something else)
<FLHerne> Mint is based on Ubuntu 14.04, backported security/bugfixes but no major version changes
<neomaking> seems to have it
mleung has joined #ruby
krisquigley has joined #ruby
<ruby539> That's interesting that Mint would possibly ship with 1.9
<FLHerne> So it should be using whatever Ruby (major) version was around this time last year
ldnunes has quit [Quit: Leaving]
<jhass> neomaking: okay, run sudo apt-add-repository ppa:brightbox/ruby-ng
<undeadaedra> there are not a lot of distributions which ship this old versions
<jhass> neomaking: then sudo apt-get update
reinaldob has quit []
<undeadaedra> even FreeBSD updated their ruby to have recent versions, after staying at 1.8 for soooo long
<neomaking> doing it
beard0g_ has joined #ruby
<neomaking> done
freerobby has quit [Quit: Leaving.]
<jhass> neomaking: sudo apt-get install ruby2.2 ruby-switch
<neomaking> in progress
<neomaking> done
<jhass> and finally sudo ruby-switch --set ruby2.2
duggiefresh has quit []
<neomaking> done
<jhass> check ruby -v again
<neomaking> up to date ;)
<jhass> ^5 ;)
<neomaking> thanks my dear
<jhass> yw
<undeadaedra> thanks my deer
beard0g has quit [Ping timeout: 240 seconds]
<jhass> mmh, deer
brb3_ has quit [Quit: <.<]
<jhass> now I'm hungry :(
<neomaking> btw, if you got some nice doc website to use graphic with ruby or... I'm taking everything
<undeadaedra> gui ?
<neomaking> yep
krisquigley has quit [Ping timeout: 252 seconds]
<undeadaedra> I don’t know if it evolved, but last time I tried GUI’ing with Ruby, it was a mess
<neomaking> A teacher of mine gave me some docs, but not enough for me, it explain really bad
<jhass> I still have to try it, but ruby-gir should be usable
beard0g_ has quit [Client Quit]
evanjs has quit [Remote host closed the connection]
<undeadaedra> anyway, if you’re looking for libraries and tools, ruby-toolbox.com and awesome-ruby.com are gold mines
<jhass> but I guess you should have some clue about Gtk for using it
<neomaking> i was using QT
<neomaking> and i wanted a real doc about it, with nice explains
<undeadaedra> There is a Qt4 binding iirc
<undeadaedra> Because you mean Qt, right? ;)
<havenwood> a venison, lettuce and tomato sandwich, where the venison is nice and lean and the tomatoes are ripe
<jhass> heh, you're inside a Gnome shell 3 fork, you should use Gtk3 :P
<neomaking> yep
<GaryOak_> havenwood: oh god please stop I'm so hungry
shadoi has quit [Quit: Leaving.]
<FLHerne> Why would anyone use gtk over qt for a new project? :-/
baroquebobcat has quit [Quit: baroquebobcat]
sohrab has joined #ruby
<undeadaedra> FLHerne: because they know it and not the other one ?
<jhass> because it integrates nicely into your DE
<undeadaedra> Even if Qt is love.
<neomaking> Actually I'm using Qt on windows with my Ruby project, I wanted more information about this, like a big doc
<undeadaedra> And integrate into GTK better than GTK does into KDE.
cartothemax2 has quit [Remote host closed the connection]
<undeadaedra> And into Windows.
<undeadaedra> And into OS X.
reinaldob has joined #ruby
cr3 has quit [Quit: leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass> you can let Gtk render into your browser though :P
lektrik has quit [Ping timeout: 255 seconds]
* undeadaedra is having a seizure
<neomaking> Maybe I'm bad, but i just discovered a stylesheet fonction with Qt, what's possible with that? Using every CSS3 args?
quimrstorres has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<neomaking> or just some
<undeadaedra> Look in Qt docs
<undeadaedra> Qt’s CSS is a bit special
bim has joined #ruby
<undeadaedra> If Qt is installed completely in your system with development tools, you should have Qt Assistant
baroquebobcat has joined #ruby
<FLHerne> neomaking: They're fairly thin bindings, so Qt's C++ docs will be mostly the same for classes/functions/theming etc
bim has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
djbkd has joined #ruby
<ruby539> oooooo. new resources!
<undeadaedra> neomaking: Qt stylesheets are a nice and easy way to customize your Qt application style. However, if you want more control, reimplementing draw(), or creating a custom style allows you to control /everything/
djbkd has quit [Remote host closed the connection]
<undeadaedra> But I digress
adriancb has quit [Remote host closed the connection]
<ruby539> nick/dudemanbro
<undeadaedra> ?
djbkd has joined #ruby
<neomaking> Well it's nice, I have a lot of works
<neomaking> thanks for your help guys, love you!
AnxiousOnion has joined #ruby
<undeadaedra> The first night?
<undeadaedra> You go fast.
<neomaking> ?
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
<jhass> ruby539: close, it's /nick dudemanbro ;)
<undeadaedra> Ignore me, I’m being silly.
longfeet has joined #ruby
<neomaking> Maybe I should, or maybe I'm going to follow you
momomomomo has joined #ruby
<neomaking> Are you rich, intelligent and GAY?
<neomaking> 3-)
<undeadaedra> :|
<GaryOak_> what is going on in here!
baweaver has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<GaryOak_> Maybe we should allow that dating bot
A205B064 has joined #ruby
riotjones has joined #ruby
<eam> interesting to specify an orientation but not a gender, how would that work ...
<undeadaedra> Only if the bot’s gay then.
<ProteusX> I have two questions about gem publishing: 1. When extending core classes with your own methods, is it standard practice to check for a method clash? 2. I am working on something that does natural language processing, and as such I need to store the irregularties. Is it unheard of for a gem to include its own database file?
kirun has quit [Remote host closed the connection]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
adriancb has joined #ruby
<jhass> ProteusX: for 2) does the fact that Gem.datadir is a thing answer it? ;)
<jhass> for 1), I don't think so, though maybe it should be
_cgcardona_ has joined #ruby
greenbagels has joined #ruby
<ProteusX> jhass: thanks :)
* ProteusX hugs jhass
Kricir has quit [Remote host closed the connection]
<jhass> does your gem depend on the core extensions or are they API?
A205B064 has quit [Read error: Connection reset by peer]
adriancb has quit [Remote host closed the connection]
<ProteusX> jhass: I'm extending String class
<jhass> yeah, doesn't answer the question :)
<ProteusX> er
<ProteusX> core extensions = ?
inavele has joined #ruby
GnuYawk has joined #ruby
<jhass> is an utility function for your gems code or is intended for the users of your gem?
zorak8 has quit [Ping timeout: 276 seconds]
mitchellhenke has joined #ruby
nateberkopec has joined #ruby
<neomaking> Well, sorry for that sort of question, but I'm trying to try my Ruby script there, how to compile it on linux?
neanderslob has quit [Ping timeout: 240 seconds]
<jhass> neomaking: ruby yourscript.rb
<undeadaedra> you don’t compile ruby
riotjones has quit [Ping timeout: 265 seconds]
steven43226 has quit [Ping timeout: 240 seconds]
<ProteusX> jhass: intended for the users of my gem
<_cgcardona_> Hi, i have an array of a bunch of strings which are zip codes.
<_cgcardona_> I'm looping over that array w/ `.each` and calling a webservice which is returning ultimately a large hash.
<_cgcardona_> I'm running this on resque and i've noticed the memory ballooning up.
<_cgcardona_> I'd like to clear out the memory of the hash on each loop. I've tried data_hash.clear and data_hash = nil
<_cgcardona_> Here is a basic code example: http://pastebin.com/NTJunuAy
<helpa> Hi _cgcardona_. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<ruboto> _cgcardona_, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b6bde4261ba93da98b7b
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
fryguy9 has quit [Quit: Leaving.]
neanderslob has joined #ruby
<neomaking> Thanks, I'm going boring enough, have a good night, cya tomorrow!
<jhass> !mute helpa
doodlehaus has quit [Remote host closed the connection]
<undeadaedra> you have jhass method, or you can put a shabang on top of your file (#!/usr/bin/env ruby) and make it executable (chmod +x file), then calling it with ./file, neomaking
<undeadaedra> helpa and ruboto, stop fighting
<eam> _cgcardona_: you can manually invoke the ruby GC each loop
<eam> GC.start
<jhass> ProteusX: then I would recommend to let your users decide whether they want the patch
<_cgcardona_> eam - awesome i’ll give it a try. thanks.
<neomaking> Okay undeadaedra
<neomaking> everything put in note, cya
<jhass> ProteusX: don't patch on require "yourgem", patch on require "yourgem/core_ext" or something
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
neomaking has quit [Quit: Leaving]
<jhass> ProteusX: and provide an alternate API, YourGem.some_method(string)
jerematic has quit [Remote host closed the connection]
catcher has quit [Quit: Leaving]
<jhass> which the core ext just delegates to
quimrstorres has quit [Remote host closed the connection]
<GaryOak_> oh god, can the bots call at each other in an endless loop?
<undeadaedra> Now that one’s +q, no.
<ProteusX> SystemStackError
<ProteusX> jhass: thanks, and when it's a utility function for my gem's code?
* ProteusX taking notes
<GaryOak_> jhass: is core_ext dir the convention?
kadoppe has quit [Ping timeout: 264 seconds]
<jhass> GaryOak_: pretty much
davispuh has joined #ruby
<GaryOak_> ok, I saw it in a few gems
<jhass> ProteusX: then I would never do a core_ext personally unless there's no other way to implement the functionality
zorak8 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> GaryOak_: that counts as convention then ;)
ghr has joined #ruby
kadoppe has joined #ruby
<ProteusX> jhass: I'll just check for an existing instance method in the String class and raise an exception, it seems polite to do that
quimrsto_ has joined #ruby
<jhass> ProteusX: not really, you still make your users unable to use both gems, yours and the other one that added the same method
<ProteusX> nobody bitches about people being considerate ;)
<ProteusX> ah :(
inavele has quit [Ping timeout: 252 seconds]
<undeadaedra> everyone turns them their notes, it’s exam tiem
<jhass> so just make it optional and provide an alternate API, I think that's a reasonable approach :)
<undeadaedra> turns in*
sevvie has quit [Ping timeout: 250 seconds]
<ProteusX> okay, thanks jhass
<jhass> yw
fryguy9 has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
cjim has quit [Quit: (null)]
x1337807x has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
ruby539 is now known as dudedudemanbro
<dudedudemanbro> do any of you kind folk deal with sinatra much at all?
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has, they will respond.
greenbagels has joined #ruby
ndrei has joined #ruby
A205B064 has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
<ProteusX> anyone?
<ProteusX> true
xenokiller has joined #ruby
yfeldblum has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<undeadaedra> what’s your question, dudedudemanbro
momomomomo has quit [Ping timeout: 256 seconds]
devans has quit [Remote host closed the connection]
a5i has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> whoot! Finally finished and published my first OSS Rails Engine: https://rubygems.org/gems/rails-wordpress
sevvie has joined #ruby
<undeadaedra> this name scares me
<mwlang> undeadaedra: :-)
Sawbones has quit [Remote host closed the connection]
mjuszcza_ has quit []
<mwlang> undeadaedra: mostly useful for when you take on new clients that have a WordPress site presently, but want to start building more complicated sites.
fryguy9 has quit [Quit: Leaving.]
<jhass> I'm a a bit surprised it was still free :P
jespada has quit [Ping timeout: 252 seconds]
<undeadaedra> I see.
<jhass> mhh :/
xenokiller has quit [Ping timeout: 244 seconds]
fryguy9 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<mwlang> jhass: hmmm…wordpress_engine?
xenokiller has joined #ruby
Rollabunna has joined #ruby
<mwlang> or … word_press?
AlphaAtom has quit [Ping timeout: 276 seconds]
<mwlang> I started to name it rails_acts_as_wordpress. :-o
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> well, renaming the gem might be a bit cumbersome, so Rails::Wordpress
chrishough has joined #ruby
Ellis has quit [Quit: Ellis]
sevvie has quit [Ping timeout: 252 seconds]
ki0 has quit [Remote host closed the connection]
steven43126 has joined #ruby
jerematic has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
<jhass> if we still had the blank plate I probably would have gone for rails_wordpress -> RailsWordpress
mikecmpbll has quit [Quit: ciao.]
Ellis has joined #ruby
ramfjord has joined #ruby
GnuYawk has quit [Ping timeout: 256 seconds]
Megtasti_ has joined #ruby
qhartman has joined #ruby
freerobby has joined #ruby
Aswebb_ has quit []
jerematic has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
Megtastique has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
momomomomo has joined #ruby
steven43126 has quit [Ping timeout: 248 seconds]
<mwlang> jhass: I could “gem yank” and change it…but not sure it’s really worth it. The guidelines help you deduce better how to “require” the library in order to use…in this case, its a rails engine and no deduction necessary other than listing the gem in the Gemfile.
jenrzzz has quit [Ping timeout: 252 seconds]
<jhass> bundler uses these rules to compute the require
Centrixx is now known as ChasedSpade
<jhass> currently your gem needs to be added to a gemfile like this: gem "rails-wordpress", require "word_press"
<jhass> * require:
jenrzzz has joined #ruby
opes has quit [Max SendQ exceeded]
opes has joined #ruby
opes has quit [Max SendQ exceeded]
opes has joined #ruby
<mwlang> Ah, I see.
<jhass> I'd just change the filenames and the namespace :)
opes has quit [Max SendQ exceeded]
opes has joined #ruby
<_cgcardona_> eam: I’ve updated the code per your suggestion yet I still see the memory grow after calling the webservice call a bunch of times. https://gist.github.com/cgcardona/6bd89a704f22e90c421a
jheg has quit [Quit: jheg]
sameerynho has quit [Quit: Leaving]
musashi1 has quit [Ping timeout: 265 seconds]
amdbcg has quit [Ping timeout: 265 seconds]
<undeadaedra> _cgcardona_: you looked for circular references ?
<mwlang> hmmm…speaking of Rails….is there already a top-level Rails namespace? I wouldn’t want to be referencing Rails::WordPress::Post throughout my Rails app code, but I don’t mind WordPress::Post….
jenrzzz has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
ki0 has joined #ruby
opes has quit [Max SendQ exceeded]
<eam> _cgcardona_: you can walk ObjectSpace to get a rough idea of what's being created
<undeadaedra> iirc there is one, mwlang
<_cgcardona_> ok, thanks again. i’ll check it out as well.
<undeadaedra> ask #RubyOnRails though
opes has joined #ruby
tosbourn has joined #ruby
jconnoll1 has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<mwlang> undeadaedra: good idea to ask there!
robustus has quit [Ping timeout: 255 seconds]
martin_work has joined #ruby
<undeadaedra> (Can someone hl me?)
robustus|Off has joined #ruby
colorisco has quit [Ping timeout: 252 seconds]
robustus|Off is now known as robustus
sinkensabe has quit [Remote host closed the connection]
<jhass> undeadaedra: sup?
<shevy> undeadaedra baguette
mitchellhenke has joined #ruby
<undeadaedra> thanks
bjonnh has left #ruby ["WeeChat 1.1.1"]
juanpaucar has joined #ruby
jerematic has joined #ruby
tosbourn has quit [Ping timeout: 244 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has joined #ruby
baweaver has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
ki0 has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
fryguy9 has quit [Ping timeout: 255 seconds]
nfk has quit [Ping timeout: 250 seconds]
enebo has quit [Quit: enebo]
nfk|laptop has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 250 seconds]
DEA7TH has quit [Ping timeout: 264 seconds]
<shevy> undeadaedra what means butter in french?
sevvie has joined #ruby
<jhass> shevy: http://defr.dict.cc/
<shevy> you don't speak french jhass
quimrsto_ has quit [Remote host closed the connection]
<jhass> had it 13 years in school :/
<jhass> but you're right
ghostmoth has joined #ruby
<shevy> hey
musashi1 has joined #ruby
<jhass> je ne parle pas francais
<shevy> that is longer than you writing ruby code
fabrice31 has joined #ruby
<jhass> yeah
sargas has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
<Beoran> shevy, beurre
<Beoran> butter is beurre in french
<shevy> hehe
<centrx> une rubé
snath has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
<shevy> french is funny :)
bnobu has joined #ruby
<jhass> ONU
<shevy> UNO?
<jhass> still can't get over that one
<jhass> yeah
FrankD_ has quit [Changing host]
FrankD_ has joined #ruby
<Beoran> that's due to L'Academie francaiçe, who standardize the French language quite rigidly and very puristically
CodyReichert has joined #ruby
<Beoran> a byte is an "octet" in french, for example
<jhass> yeah I know (about the academy)
sevvie has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
<jhass> I think it's stupid, language is something people develop while speaking it
<jhass> not something you define
gavinlaking has joined #ruby
reinaldob has quit [Remote host closed the connection]
<jhass> we have these idiots in germany too, who try to make a fuss about every new word that doesn't sound like prehistoric german
Hijiri has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
<jhass> luckily fewer people here give a shit about them
hobodave has joined #ruby
adriancb has joined #ruby
marr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
<Beoran> yeah but in France they're harder to ignore since they're an institute of the state since the time of the kings
gavinlaking has quit [Client Quit]
ClosedGL has joined #ruby
jordsmi has joined #ruby
oddskill is now known as oddskill_away
mengu has quit [Remote host closed the connection]
<mwlang> jhass: thanks for clueing me in. I’m changing the gem’s name per your suggestion. I didn’t even realize bundler was doing an auto-require based on the suggested naming rules.
<ClosedGL> Hi folks, not sure if this is the right place to enquire, but is anyone else having problems with rubydocs (yard) not re-generating?
<Mon_Ouie> Well, byte is byte in French too -- and octet is octet in English
<Mon_Ouie> It's just the word people use in everyday speech in French is always octet, while in English people always use byte
marr has joined #ruby
<ClosedGL> I'm using 2.2.1, (as there was an issue with Ruby itself (https://github.com/lsegal/yard/issues/825)) but they won't regen/re-build.
<jhass> mwlang: yw
bkxd has quit [Ping timeout: 264 seconds]
<jhass> mwlang: to clarify: bundler is not doing that by default, there's a call to Bundler.require in your config/boot.rb which does that (or was it application.rb? somewhere in the rails app)
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> jhass: thanks for clarifying…I’m also changing namespace from WordPress to Wordpress.
troyleak has quit [Quit: troyleak]
quintinadam has quit []
jenrzzz has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
jheg has joined #ruby
jespada has joined #ruby
Porfa has joined #ruby
snath has joined #ruby
gsd has joined #ruby
jheg has quit [Client Quit]
nfk has joined #ruby
baweaver has joined #ruby
<Radar> jhass: config/application.rb
bricker has quit [Quit: leaving]
reinaldob has joined #ruby
dfinninger has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
<jhass> thx
DrShoggoth has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
lanemeyer has joined #ruby
beneggett has quit [Ping timeout: 252 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<mwlang> jhass: here we go… https://rubygems.org/gems/rails_wordpress
zerabat has joined #ruby
<mwlang> I didn’t even remember that I added a require ‘word_press” line to my application.rb file early on in developing this.
<jhass> mwlang: almost, that will work with autorequire, though the namespace name would be RailsWordpress now :)
<jhass> as per convention I mean
<mwlang> jhass: I think I’ll skip out on that convention.
<jhass> sure, just wanted to note
<mwlang> It just seems to imply that I’m making something that’s part of the Rails core, which I’m clearly not.
zerabat has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
banister has joined #ruby
<jhass> with Rails::Wordpress I could understand that view, don't follow you there with RailsWordpress though :)
mlev has quit [Read error: Connection reset by peer]
<jhass> not a widely used or in the last 6 years updated gem, but you also conflict with https://github.com/jordandobson/wordpress/blob/master/lib/wordpress.rb#L4 now, in theory ;)
<mwlang> jhass: do the other Rails engines prefix their namespaces with “Rails” ? (I’ve limited experience with engines in general)
<jhass> mh, I didn't look at many either I'm afraid, so I don't really know
hobodave has quit [Quit: Computer has gone to sleep.]
<mwlang> yeah, in theory. :-p
Beliq has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
xenokiller has quit [Ping timeout: 246 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
steven43126 has joined #ruby
<shevy> wordpress in rails, how beautiful
<mwlang> shevy: what better way to take over the world than one Wordpress blog at a time?
<jhass> one facebook profile at a time, I guess
<ClosedGL> Wordpress is the only reason people use PHP, right? ;-)
krisquigley has joined #ruby
<baweaver> that and facebook.
jimms has quit [Remote host closed the connection]
quintinadam has joined #ruby
bigmac__ has quit [Ping timeout: 272 seconds]
SteveTheMare has quit [Ping timeout: 264 seconds]
steven43126 has quit [Ping timeout: 245 seconds]
Parker0 has joined #ruby
<jhass> don't underestimate roundcube
jefus_ has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
Parker0 has quit [Client Quit]
bigmac__ has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
tvw has quit []
tvw has joined #ruby
<eam> and yahoo
jefus has quit [Ping timeout: 272 seconds]
<eam> slack is php
<GaryOak_> and my grandma's recipe website ;)
fryguy9 has joined #ruby
Ellis has quit [Quit: Ellis]
<jhass> wait, wrong language :P
<ClosedGL> oh, I didn't know Slack was PHP... interesting...
<ClosedGL> I assumed ruby/python
pika_pika has quit [Ping timeout: 245 seconds]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
blackmesa has quit [Ping timeout: 264 seconds]
legit has joined #ruby
mlev has joined #ruby
predator217 has joined #ruby
julian-delphiki has joined #ruby
serivichi has joined #ruby
<ClosedGL> Would be nice to see a post on highscalability.com for Slack
duncannz has joined #ruby
sinkensabe has joined #ruby
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean has quit [Ping timeout: 246 seconds]
predator117 has quit [Ping timeout: 264 seconds]
legit has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
avahey has joined #ruby
plsk has left #ruby [#ruby]
banister has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
mjuszczak has quit []
SteveTheMare has joined #ruby
nfk|laptop has joined #ruby
mitchellhenke has joined #ruby
<shevy> php makes me sad
<shevy> but they got the focus on the web right
centrx has quit [Quit: Shutting down, Please wait...]
momomomomo has quit [Quit: momomomomo]
ki0 has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
davedev2_ has joined #ruby
ramfjord has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 248 seconds]
ClosedGL has quit [Quit: Leaving]
Megtastique has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
meschiv2 has quit [Ping timeout: 256 seconds]
icebourg has quit []
Megtasti_ has quit [Ping timeout: 240 seconds]
ki0 has quit [Ping timeout: 246 seconds]
nfk|laptop has quit [Quit: yawn]
dopie has joined #ruby
_maes_ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
dcarmich has joined #ruby
havenwood has joined #ruby
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
jespada has quit [Quit: WeeChat 1.1.1]
digitalextremist has quit [Quit: Leaving]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo__ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #ruby
Ellis has joined #ruby
nobitanobi has joined #ruby
juanpablo_ has quit [Ping timeout: 264 seconds]
juanpablo__ has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Client Quit]
roolo has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
A205B064 has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fryguy9 has quit [Quit: Leaving.]
sevenseacat has joined #ruby
arescorpio has joined #ruby
SouL_|_ has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
maletor has joined #ruby
xenokiller has joined #ruby
RegulationD has joined #ruby
pietr0 has quit [Quit: pietr0]
Joufflu has joined #ruby
SteveTheMare has quit [Ping timeout: 245 seconds]
<jidar> slack is old
<jidar> I'd assume that's why
pragmatism has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
digitalextremist has joined #ruby
pragmatism has quit [Client Quit]
RegulationD has quit [Ping timeout: 255 seconds]
<eam> jidar: gonna go with "probably because butterfield wrote it"
<eam> flickr: also php
reinaldob has quit [Remote host closed the connection]
mjuszczak has joined #ruby
sevvie has joined #ruby
contradictioned has quit [Read error: Connection reset by peer]
contradictioned has joined #ruby
_lynX has joined #ruby