apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<xybre> havenwood: One of the first distros I ever used was RedHat 6. It nearly scared me off from Linux forever. :D
<havenwood> For Ubuntu at least there are the Brightbox Ruby packages.
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ebonics> redhat is a pretty hard distro for noobs
<xybre> Some years later I ended up using slackware and was pretty okay with that.
Yzguy has joined #ruby
<ebonics> do you prefer slack over gentoo?
<bootstrappm> i think trusty is out now though, no ebonics?
<ebonics> bootstrappm, yeah but i just wanted to give precise32 a whirl cause a lot of vagrant articles talk about it
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xybre> Not anymore, Slckare's packages are so ancient they should be relegated to a museum.
<bootstrappm> got it
<ebonics> haha
<bootstrappm> my distro (elementaryOS Luna) is based on precise :(
<bootstrappm> i always install gvim anyway though
<ebonics> :/
<ebonics> i guess you dont use vim on your deployed servers
<ebonics> ?
<xybre> elementaryOS is nice looking, annoyingly not configurable for even basic things.
mgorbach has quit [Ping timeout: 272 seconds]
<bootstrappm> I do ebonics but haven't run into any missing features I'd need on there
<bootstrappm> what comes w/ 7.4?
<xybre> Our production servers are so old they're running vim 7.2 :D
<ebonics> YCM doesnt run on 7.3
mgorbach has joined #ruby
_seanc_ has joined #ruby
Rickmasta has joined #ruby
<xybre> VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 12 2010 12:49:33)
<bootstrappm> ooo just took a look, had never seen it before
<ebonics> you dont use YCM ;o?
moretti has quit [Read error: Connection timed out]
<bootstrappm> nope I'm still on supertab
<ebonics> i use ycm with supertab
<ebonics> and ulti snips
GPrime has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moretti has joined #ruby
<bootstrappm> and yes xybre, apt description of elementary
Musashi007 has quit [Quit: Musashi007]
<xybre> I'm so sad that the developer killed CrunchBang :(
zz_barkerd427 is now known as barkerd427
<bootstrappm> another one died recently right?
<xybre> A few good ones have died lately
bruno- has quit [Ping timeout: 252 seconds]
<xybre> Well, the semi-official successor is BunsenLabs
pietr0 has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Quit: Leaving...]
bronson has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<xybre> They're basically rebuilding it from the ground up, very carefully.
<bootstrappm> ahhh mandriva is the other that died recently
macmartine has quit [Remote host closed the connection]
<xybre> Ouch
<kinduff> >> [*1..5].map{'&#9733'}.join(';')
<ruboto> kinduff # => "&#9733;&#9733;&#9733;&#9733;&#9733" (https://eval.in/372172)
spider-mario has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
duderonomy has quit [Ping timeout: 250 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
ismaelga has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
kies has joined #ruby
Takle has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
ismaelga has joined #ruby
kinduff has quit [Quit: brb]
pengin has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
jpfuente_ has joined #ruby
kenndel has quit [Quit: Leaving]
zarubin_ has joined #ruby
keen___________1 has quit [Read error: Connection reset by peer]
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
delianides has joined #ruby
gambl0re has quit [Ping timeout: 256 seconds]
keen___________1 has joined #ruby
haxrbyte_ has joined #ruby
<Diabolik> shelling__
<Diabolik> shevy
<Diabolik> sorry to be a pain
<Diabolik> but can you break down how you would modularise this to me
chipotle has joined #ruby
jpfuentes2 has quit [Ping timeout: 272 seconds]
delianides has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 276 seconds]
soulcake has quit [Ping timeout: 276 seconds]
codeFiend has quit [Quit: codeFiend]
felixjet has quit [Quit: Leaving]
zarubin_ has quit [Ping timeout: 276 seconds]
felixjet has joined #ruby
jinie has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
kinduff has joined #ruby
premera has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 258 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
soulcake has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
Rennex has quit [Ping timeout: 255 seconds]
Rennex has joined #ruby
shuber_ has joined #ruby
commondream has joined #ruby
MatthewsFace has joined #ruby
irk has quit [Remote host closed the connection]
pengin has joined #ruby
DEA7TH has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kies has quit [Ping timeout: 245 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
tcrypt has quit []
RegulationD has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
ssquare has quit []
moretti has quit [Ping timeout: 272 seconds]
chipotle_ has joined #ruby
chipotle has quit [Ping timeout: 256 seconds]
rodfersou has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
commondream has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
SevenWolf has joined #ruby
Peter____ has joined #ruby
PNDPO has joined #ruby
chipotle has joined #ruby
pengin has quit [Remote host closed the connection]
concave has joined #ruby
goodcodeguy has joined #ruby
_seanc_ has quit [Quit: _seanc_]
chipotle_ has quit [Ping timeout: 250 seconds]
davedev24_ has quit []
amclain has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
pengin has joined #ruby
moretti has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
Agoldfish has quit [Quit: G'Bye]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
irk has joined #ruby
goodcodeguy has joined #ruby
<shevy> Diabolik haha I was in bed already... but my brain was too active so I just came back
Vendella has quit [Quit: Leaving]
<shevy> Diabolik essentially the simplest way may be to put it just in a class
Peter____ has quit []
PNDPO has quit [Quit: Leaving...]
<Diabolik> ive fixed shit
<Diabolik> if you want to have a look
<shevy> the starting method is "initialize", so you can arrange those methods within initialize
commondream has quit [Ping timeout: 246 seconds]
<shevy> and if you need to store data, you can use @instance_variables; so rather than: foo = 'test', you could use @foo = 'test' (within your class that is)
<shevy> I don't remember the link Diabolik
robustus has joined #ruby
<Diabolik> for the greatest program ever written?!
<Diabolik> blasphemy
CloCkWeRX has joined #ruby
<shevy> I remember about 15 lines of IRC
spyderman4g63 has quit []
ismaelga has quit [Remote host closed the connection]
Deele2 has joined #ruby
<jhass> Diabolik: how about prime stdlib?
<Diabolik> jhass its a coding challenge i have to do everything myself
<Diabolik> sadly
goodcodeguy has quit [Client Quit]
<Diabolik> same reason why no optparse
Deele has quit [Ping timeout: 256 seconds]
<shevy> Diabolik that should be the minimal change towards a class - but don't indent it like that, I merely put the class definition in https://gist.github.com/shevegen/4f5bc5320e614cfb1cca
prereflect has joined #ruby
pengin has quit [Remote host closed the connection]
shuber__ has joined #ruby
<Diabolik> thanks shevy
<Diabolik> im just not sure in this instance (pun not intended) what use instance variables would be
workmad3 has joined #ruby
<Diabolik> i just need to make the code as modular as possible
<shevy> yeah you don't need instance variables here
shuber_ has quit [Ping timeout: 244 seconds]
moretti has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 245 seconds]
swgillespie has joined #ruby
concave has quit []
<jhass> eh at least replace the param with @n, else there's no point in a class
momomomomo has joined #ruby
<bootstrappm> how do you set the x-amz-directive: REPLACE header w/ the S3 SDK?
<bootstrappm> or I guess how do you set the header and method would be a better question ... reading through the docs now
workmad3 has quit [Ping timeout: 265 seconds]
garyserj has quit [Ping timeout: 272 seconds]
<Diabolik> shevy is it worth monkey patching Fixnum with my prime method?
<shevy> why
<shevy> you already solved it with the class right?
Yzguy has joined #ruby
swgillespie has quit [Client Quit]
<Diabolik> to make the code more reusable
<shevy> you'd make the code less reusable that way
<Diabolik> everyone is giving me different advice :|
<shevy> think about it
<Diabolik> for a coding challenge for an employer i just guess i should keep it useful
<shevy> you modify a core aspect of ruby
Deele2 has quit [Ping timeout: 256 seconds]
C1V0 has quit [Ping timeout: 276 seconds]
mmazing has joined #ruby
<Diabolik> and simple
<shevy> k so why monkey patch when there is no need for it
<Diabolik> yeah i understand, it was just in terms of showing more advanced knowledge
joast has quit [Quit: Leaving.]
<shevy> you can show how brilliant you are by making it either very complicated
<shevy> or very simple
<Diabolik> ok
<sevenseacat> the advanced part about monkey patching is knowing when to use it and when not to
<Diabolik> il write it in assembly
<Diabolik> :P
<Diabolik> thanks for the help guys
<Diabolik> genuinely
* sevenseacat bops Diabolik with pimp stick for referring to 892 people as 'guys'
<Diabolik> to be fair
<shevy> yeah
<Diabolik> there are a significant number of lurkers
<shevy> 891 guys
<shevy> and one cat
<shevy> btw sevenseacat about Australia in the news today :D
<sevenseacat> what did we do now
<Diabolik> the only other thing is formatting the matrix
<sevenseacat> fucking tony abbott
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hehe
<shevy> Diabolik well, the formatting looked ok didn't it?
bronson has joined #ruby
pengin has joined #ruby
<Diabolik> i wanted to have the columns and rows defined with | and - s
<bootstrappm> there's another stupid guy in here that's actually a lass
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<bootstrappm> beginning part of that sentence is a reference to username, not intelligence
hewenhong has joined #ruby
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
mistermocha has joined #ruby
bricker has quit [Ping timeout: 258 seconds]
Hijiri has joined #ruby
<shevy> Diabolik that's the current output of your script http://i.imgur.com/Q5mfj2B.jpg
ismaelga has joined #ruby
<Diabolik> ya
<Diabolik> but
<Diabolik> i want
<shevy> well, just pad it with '|' then
GriffinHeart has joined #ruby
<shevy> and '-'
<shevy> there are ascii-box gems out there too
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I think ascii_table is one
sankaber has joined #ruby
michael_mbp has quit [Excess Flood]
<shevy> hmm no
<shevy> that is another one...
<shevy> yeah you can do this via code
<shevy> that's not hard
chipotle has quit [Quit: cheerio]
<shevy> at each new line, you add a | there
bronson has quit [Ping timeout: 265 seconds]
mello has joined #ruby
tkuchiki has joined #ruby
macmartine has joined #ruby
Exponential has joined #ruby
michael_mbp has joined #ruby
thiagovsk has joined #ruby
<Diabolik> is there a more efficient way of doing the prime? function since it isn't efficient
jbomo has joined #ruby
<Diabolik> mathematically
ValicekB has quit [Ping timeout: 245 seconds]
nobitanobi has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> unicode box drawing chars ftw!
mistermocha has quit [Ping timeout: 252 seconds]
<jhass> require "prime"; Prime.prime? :P
<jhass> it's shipped with Ruby!
pengin has quit [Remote host closed the connection]
mello has quit [Ping timeout: 272 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
macmartine has quit []
mistermocha has joined #ruby
tastics has joined #ruby
<shevy> Diabolik you use ruby
<shevy> if you wish to write efficient code
<shevy> use C
<shevy> also define efficient
<shevy> the code already does not seem to have any real delays when I run it
podman has quit [Quit: Connection closed for inactivity]
<jhass> or crystal :P
Brozo has quit [Quit: Leaving...]
longfeet_ has joined #ruby
ValicekB has joined #ruby
nateberkopec has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
mistermocha has joined #ruby
<al2o3-cr> db.execute("insert into aliases (name, desc) values (%s %s)" % [name, desc]) why does this give this @exc: SQLite3::SQLException: near "http": syntax error
<jhass> ugh
momomomomo has quit [Quit: momomomomo]
<jhass> use bind variables
<jhass> I won't even answer your actual question
<jhass> that code allows me to drop all your data
<sevenseacat> do it do it do it
longfeet has quit [Ping timeout: 244 seconds]
<al2o3-cr> jhass: what are bind variables?
<jhass> what you did except in the database
<jhass> after the SQL was parsed by it
<jhass> that's sequel?
<al2o3-cr> jhass: sqlite3
<jhass> called parameter markers there
<jhass> right in the readme
<al2o3-cr> ah ok i see never use sql db before
<bootstrappm> poll: who uses dotenv?
<jhass> I use zsh-autoenv or something
jschoolcraft has joined #ruby
<bootstrappm> this guy https://github.com/bkeepers/dotenv
charliesome has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
hewenhong has quit [Remote host closed the connection]
Lucky__ has joined #ruby
goodcodeguy has joined #ruby
jud^ is now known as jud
DynamicMetaFlow has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jud has quit [Changing host]
jud has joined #ruby
sankaber has joined #ruby
goodcodeguy has quit [Client Quit]
sankaber has quit [Client Quit]
<bootstrappm> well, thats useful
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has joined #ruby
yh has joined #ruby
dorei has quit []
nateberkopec has quit [Quit: Leaving...]
troyready has quit [Ping timeout: 264 seconds]
<bootstrappm> ^ great concept
mistermocha has quit [Remote host closed the connection]
zreisman has joined #ruby
dfockler has joined #ruby
ravenreborn has joined #ruby
pengin has quit [Remote host closed the connection]
lampshades has joined #ruby
duderonomy has joined #ruby
Takle has joined #ruby
dfockler has quit [Ping timeout: 264 seconds]
moretti has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
troyready has joined #ruby
RegulationD has joined #ruby
<alxndr> bootstrappm: i've been using dotenv for the dev and test side of a project
zreisman has quit [Remote host closed the connection]
<bootstrappm> nice alxndr, using it now
<bootstrappm> as in, I am
<alxndr> had trouble with it on a newer version of something or other, and ended up creating this shell shortcut which sorta does the same thing if you remember to use it https://github.com/alxndr/dotfiles/commit/7dc0bf35
x44x45x41x4E has joined #ruby
zotherstupidguy has quit [Read error: Connection reset by peer]
<alxndr> I couldn't decide which i like less: having to remember to preface every mix command with that, or having to remember to source a file in any brand-new terminal which was going to use mix
zotherstupidguy has joined #ruby
Channel6 has quit [Quit: Leaving]
<bootstrappm> heey thats cool!
<bootstrappm> check out the zsh plugin that jhass linked, it autosources your .env
<alxndr> ...huh so i've been using that shortcut for the last month, guess i like it better than remembering to source something
RegulationD has quit [Ping timeout: 258 seconds]
codeFiend has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
<alxndr> that zsh plugin looks pretty nice... will have to try that out.
darkf has joined #ruby
<alxndr> though with catenv it's kinda nice to have my env file open in one tab, change a var, then in another tab just !!-Enter, don't have to cd out and back in again
<bootstrappm> I use bash personally but agreed, once I get around to switching to zsh it'll be useful
<alxndr> now i'm getting picky though
SevenWolf has left #ruby [#ruby]
<alxndr> i switched to zsh a few months ago just for the right-hand side prompt
<alxndr> and the auto-cd thing
Soda has quit [Remote host closed the connection]
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alxndr> bootstrappm: oh wait this is the ruby room, ha. i think i use dotenv for everything in ruby
towski_ has quit [Remote host closed the connection]
<bootstrappm> alxndr hah what room did you think you were in?
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
<alxndr> elixir... there's a dotenv inspired thing, but it's less useful in newer versions of projects for some reason that i forget
<ebonics> TIL you can pin tabs on chrome
<alxndr> (mix is elixir's bundle-plus-rails)
huddy has quit [Quit: Connection closed for inactivity]
<alxndr> ...-plus-rake)
<sevenseacat> mix is the shit.
blandflakes has joined #ruby
<bootstrappm> nice
tastics has quit [Quit: Leaving]
<ebonics> i never got around to using zsh either
<ebonics> is there actually a benefit
<ebonics> the fact it's slightly more customizable seems kinda negligible considering youll be using bash in most production environments?
<alxndr> little things, which i think add up. tab completing something "/u/l/e/n/lo<TAB>" into "/usr/local/etc/nginx/logs" is pretty cool
<ebonics> that's cool
<ebonics> i can see myself breaking stuff though
<ebonics> being overconfident with that feature lol
charliesome has quit [Quit: zzz]
troyready has quit [Quit: Leaving]
hololeap has quit [Ping timeout: 264 seconds]
ismael has joined #ruby
ismael is now known as Guest71846
CustosLimen has quit [Max SendQ exceeded]
ismaelga has quit [Ping timeout: 252 seconds]
CustosLimen has joined #ruby
<bootstrappm> am I just making this up? I swore there was a 'method?' method
iamninja has quit [Read error: Connection reset by peer]
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
<bootstrappm> object.method? :some_name
<bootstrappm> object.method? :grrr
<Ox0dea> bootstrappm: You want `respond_to?`, surely?
<bootstrappm> thanks Ox0dea that works!
iamninja has joined #ruby
<Ox0dea> Now that you mention it, `method?` wouldn't be such a bad spelling.
gaboesquivel has joined #ruby
baweaver has joined #ruby
kinduff has quit [Quit: weekend]
TheNet has joined #ruby
mrmargolis has joined #ruby
Guest71846 has quit [Remote host closed the connection]
ismaelga has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
gaboesquivel has quit [Ping timeout: 276 seconds]
dseitz has joined #ruby
pengin has joined #ruby
zarubin_ has joined #ruby
SouL_|__ has joined #ruby
perrier has quit [Remote host closed the connection]
perrier has joined #ruby
SouL_|_ has quit [Ping timeout: 264 seconds]
codeFiend has quit [Quit: codeFiend]
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
zarubin_ has quit [Ping timeout: 256 seconds]
vikaton has quit []
ismaelga has quit [Remote host closed the connection]
jamesaxl has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
Deele has joined #ruby
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
arescorpio has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
GriffinH_ has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
joshbamboo1 has quit [Read error: Connection reset by peer]
Vile` has quit [Remote host closed the connection]
ismaelga has joined #ruby
starless has joined #ruby
bootstrappm has left #ruby [#ruby]
Exponential has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
TinkerTyper has quit [Ping timeout: 256 seconds]
Limix has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Vile` has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
gmas has quit [Quit: WeeChat 1.1.1]
finisherr has joined #ruby
iamninja has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
shuber__ has quit [Remote host closed the connection]
hewenhong has joined #ruby
TinkerTyper has joined #ruby
ebonics has quit [Ping timeout: 255 seconds]
vivekananda has quit [Quit: Leaving]
df has joined #ruby
bruno- has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
pengin has joined #ruby
finisherr has quit [Quit: finisherr]
lessless has joined #ruby
existensil has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
ebonics has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
hewenhong has quit [Remote host closed the connection]
momomomomo has joined #ruby
fu2ristiq has joined #ruby
hewenhong has joined #ruby
pengin has quit [Remote host closed the connection]
mello has joined #ruby
braincrash has quit [Quit: bye bye]
fu2ristiq has quit [Ping timeout: 250 seconds]
Palmer11_ has joined #ruby
Palmer11 has quit [Ping timeout: 246 seconds]
Palmer11_ is now known as Palmer11
lampshades has quit [Quit: lampshades]
mello has quit [Ping timeout: 244 seconds]
pen has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
gambl0re has joined #ruby
Limix has quit [Quit: Limix]
<Radar> If I have a date like this: Date.new(2010, 6, 1) how do I get Ruby to show me all the months that have occurred between that date and the current date?
shuber_ has joined #ruby
baweaver has joined #ruby
Exponential has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
shuber_ has quit [Ping timeout: 265 seconds]
cirn0 has quit [Quit: ja]
mrmargolis has quit [Remote host closed the connection]
<al2o3-cr> >> require 'date';d1 = Date.new(2010,6,1); d2 = Date.new(2012,9,3); (d2.year * 12 + d2.month) - (d1.year * 12 + d1.month)
<ruboto> al2o3-cr # => 27 (https://eval.in/372223)
pen has quit []
delianides has joined #ruby
<Ox0dea> >> [*Date.new(2010, 6, 1)..Time.new.to_date].uniq { |d| [d.year, d.month] }
<ruboto> Ox0dea # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/372224)
charliesome has joined #ruby
<Ox0dea> Radar: You'll not want to generate *all* the days between then and now, though, so it's not an acceptable solution.
<Radar> Ox0dea: indeed
<Ox0dea> Still, being able to do it with a Range of Dates would be nice.
scripore has quit [Quit: This computer has gone to sleep]
zz_barkerd427 is now known as barkerd427
delianides has quit [Ping timeout: 265 seconds]
<al2o3-cr> >> require 'date';d1 = Date.new(2010,6,1); d2 = Time.new.to_date; (d2.year * 12 + d2.month) - (d1.year * 12 + d1.month) # always forget about to_date
<ruboto> al2o3-cr # => 59 (https://eval.in/372229)
<al2o3-cr> can anyone help me out with this
<Ox0dea> al2o3-cr: Hm?
eggoez has joined #ruby
<Ox0dea> Radar doesn't want the number of intervening months, I don't think.
zotherstupidguy has quit [Ping timeout: 240 seconds]
<Radar> I want an array of the months
<al2o3-cr> ah an array
scripore has joined #ruby
<al2o3-cr> need it only to print out found or not found
someword has joined #ruby
growlove has joined #ruby
<Ox0dea> Radar: https://eval.in/372230
<Radar> Ox0dea: Wonderful. Thanks :)
<Ox0dea> The naming's a bit off and mutation abounds, but the crux of the thing is there.
<Ox0dea> I tried to come up with a functional approach using #reduce, but it wouldn't be as clean.
yh has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
TinkerTyper has quit [Ping timeout: 256 seconds]
TinkerTyper has joined #ruby
psy_ has quit [Ping timeout: 265 seconds]
<hanmac> al2o3-cr: what about Date.today ?
eshark has joined #ruby
<Ox0dea> hanmac: Yes, that would be better.
<Ox0dea> al2o3-cr: Out of curiosity, what made you go with SQL for your aliases?
<baweaver> Radar: Is it quiz show time already? ;)
freerobby has quit [Quit: Leaving.]
bakednotfried has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 272 seconds]
cubesandcode has joined #ruby
oo_ has quit [Remote host closed the connection]
<baweaver> >> Date::MONTHNAMES
<ruboto> baweaver # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/372234)
<baweaver> >> require 'data'; Date::MONTHNAMES
<ruboto> baweaver # => cannot load such file -- data (LoadError) ...check link for more (https://eval.in/372235)
<baweaver> ...
<baweaver> >> require 'date'; Date::MONTHNAMES
<ruboto> baweaver # => [nil, "January", "February", "March", "April", "May", "June", "July", "August", "September", "Octobe ...check link for more (https://eval.in/372236)
<baweaver> >> require 'date'; Date::MONTHNAMES[1..12]
<ruboto> baweaver # => ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", " ...check link for more (https://eval.in/372237)
<baweaver> there we go
<al2o3-cr> hanmac: and that too ;p
ismaelga has quit [Remote host closed the connection]
<al2o3-cr> Ox0dea: i don't really know
bronson has joined #ruby
<Ox0dea> Just feels like overkill is all.
<Ox0dea> >> require 'date'; Date::YEARNAMES
<ruboto> Ox0dea # => uninitialized constant Date::YEARNAMES (NameError) ...check link for more (https://eval.in/372238)
<pipework>  Ruby's date libraries aren't the most intuitive, imo.
<Ox0dea> baweaver: It was supposed to be humorous.
<Ox0dea> Years aren't typically named.
* baweaver blinks
<baweaver> oh
<zenspider> pipework: referring to the nil at the front?
oo_ has joined #ruby
<pipework> zenspider: Just the whole thing, really. I can get why someone would want to write 1 instead of 0 for the accessor.
<baweaver> Well that's one way to get around 0 index
Limix has joined #ruby
oo_ has quit [Remote host closed the connection]
<pipework> zenspider: Is that not the reason?
aryeh has joined #ruby
Limix has quit [Client Quit]
<Ox0dea> >> require 'date'; Date::MONTHNAMES[Date.today.month]
<ruboto> Ox0dea # => "May" (https://eval.in/372239)
mistermocha has joined #ruby
<Ox0dea> pipework: ^
aryeh has left #ruby [#ruby]
<Ox0dea> I think it makes sense.
<pipework> I don't think it doesn't make sense, I said that it wasn't intuitive.
bronson has quit [Ping timeout: 244 seconds]
<pipework> The whole set of libraries, really.
<pipework> I'm just as likely to just be stupid though.
momomomomo has quit [Quit: momomomomo]
Soda has joined #ruby
<baweaver> pipework: well now is probably the best time to voice that before 3.x
armyriad has quit [Quit: Leaving]
<pipework> baweaver: I'm not that important, really. It'd have to be someone with a lot more experience in proposals and probably have some contacts.
<baweaver> A good idea is not constrained by the importance of the person that had it in a good community
<baweaver> that being said, I'm neutral towards aforementioned ideas regarding DateTime
<pipework> But it carries more weight faster, and I'd rather not take forever bantering over something as fuzzy as 'intuitiveness' with a bunch of people I've not interacted with before.
bluOxigen has joined #ruby
momomomomo has joined #ruby
Exponential has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
shuber_ has joined #ruby
<baweaver> If you believe in something enough I would anyways
<pipework> I'd rather argue objective things.
hewenhong has quit [Remote host closed the connection]
<pipework> ActiveSupport kinda makes it less terrible.
<baweaver> Fair enough
northfurr has joined #ruby
<baweaver> Just trying to make the point that Ruby would be far worse off if it never took ideas from outside the core
momomomomo has quit [Quit: momomomomo]
<pipework> baweaver: There's people not on core that are great at putting together proposals.
<pipework> I am not any such person.
<baweaver> Then you could always ask one of those people for a one-over
<baweaver> tenderlove at least is fairly approachable for most things involving language enhancements
<pipework> baweaver: I just don't want to try and argue over fuzzy subjective 'intuitiveness'.
<pipework> And my ideas about the date and time classes in ruby are just that.
rrichardsr3 has joined #ruby
<Ox0dea> Would you want Fixnum#bits[0] to be the MSB or LSB?
<pipework> I do have another idea that's more objective, I just need to write it up.
mary5030 has joined #ruby
zotherstupidguy has joined #ruby
arescorpio has quit [Quit: Leaving.]
starless has quit [Quit: Leaving]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
macmartine has joined #ruby
iamjarvo has joined #ruby
Lucky__ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
crazydiamond has quit [Remote host closed the connection]
Palmer11 has quit [Quit: Palmer11]
Spami has joined #ruby
someword has quit [Quit: Leaving.]
fu2ristiq has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
casadei has joined #ruby
charliesome has joined #ruby
EllisTAA has joined #ruby
fedexo has joined #ruby
Exponential has joined #ruby
SouL_|__ has quit [Read error: Connection reset by peer]
SouL_|_ has joined #ruby
<EllisTAA> hey all, i’m about to get into activerecord in a week and wanted to get some practice coming up with the database schema, can anyone recommend a resource that teaches you how to understand how to make a database
hewenhong has joined #ruby
balazs has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
mrsolo has joined #ruby
Feyn has joined #ruby
codeFiend has joined #ruby
vdamewood has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
rrichardsr3 has quit [Remote host closed the connection]
bruno- has joined #ruby
Tux_007__ has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
fu2ristiq has quit [Ping timeout: 256 seconds]
Exponential has joined #ruby
Guest24 has quit [Ping timeout: 272 seconds]
yqt has quit [Ping timeout: 276 seconds]
ebonics_ has joined #ruby
ebonics has quit [Disconnected by services]
ebonics_ is now known as ebonics
hewenhong has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
barkerd427 is now known as zz_barkerd427
lele has joined #ruby
mello has joined #ruby
towski_ has joined #ruby
moeSeth has joined #ruby
krz has joined #ruby
michael_mbp has joined #ruby
pengin has joined #ruby
mello has quit [Ping timeout: 255 seconds]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
ohaibbq has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CHVNX is now known as speedyiguana
speedyiguana is now known as CHVNX
Rickmasta has joined #ruby
macmartine has quit [Remote host closed the connection]
_ht has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
shuber_ has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
mrsolo has joined #ruby
platzhirsch has joined #ruby
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
lampshades has joined #ruby
chrissonar has joined #ruby
macmartine has joined #ruby
codeFiend has quit [Quit: codeFiend]
towski_ has quit [Remote host closed the connection]
macmarti_ has joined #ruby
tesuji has joined #ruby
shuber_ has joined #ruby
jenrzzz has joined #ruby
codeFiend has joined #ruby
Exponential has joined #ruby
ravenreborn has quit [Read error: Connection reset by peer]
macmartine has quit [Ping timeout: 256 seconds]
ravenreborn has joined #ruby
Channel6 has joined #ruby
macmarti_ has quit [Ping timeout: 258 seconds]
hewenhong has joined #ruby
charliesome has quit [Quit: zzz]
platzhirsch has quit [Quit: Leaving.]
riotjones has joined #ruby
kies^ has quit [Ping timeout: 272 seconds]
riotjones has quit [Read error: Connection reset by peer]
kyle__ has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby
Takle has joined #ruby
_seanc_ has joined #ruby
ravenreborn has quit [Ping timeout: 256 seconds]
ravenreborn has joined #ruby
kyle__ has joined #ruby
pengin has joined #ruby
kies^ has joined #ruby
WPWW1488 has joined #ruby
WPWW1488 was kicked from #ruby by ChanServ [Banned: swastika]
aganov has joined #ruby
stoffus has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
fu2ristiq has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Takle has quit [Ping timeout: 265 seconds]
Bosnia has quit [Ping timeout: 255 seconds]
codeFiend has quit [Quit: codeFiend]
dru` has quit [Ping timeout: 244 seconds]
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
casadei has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
mistermocha has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 245 seconds]
tagrudev has joined #ruby
towski_ has joined #ruby
oo_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codeFiend has joined #ruby
wjimenez5271 has joined #ruby
tautvydas has joined #ruby
oo_ has joined #ruby
sandelius has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
ahmetkapikiran has joined #ruby
fu2ristiq has quit [Read error: Connection reset by peer]
fu2ristiq has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
EllisTAA has quit [Quit: EllisTAA]
<flughafen> morning
niik00 has joined #ruby
<niik00> Hi guys, just one basic question. I'm not sure to understand why in custom gems sometimes there are a gemspec + a Gemfile ?
User458764 has joined #ruby
<sandelius> niik00 the Gemfile used when developing the gem
KommandoFreisler has joined #ruby
<KommandoFreisler> hello my white brothers and sisters
rippa has joined #ruby
DerisiveLogic has quit [Ping timeout: 246 seconds]
Exponential has joined #ruby
last_staff has joined #ruby
Exponential has quit [Client Quit]
xxneolithicxx has quit [Ping timeout: 255 seconds]
<apeiros> !ban KommandoFreisler !P racists are still not welcome
<KommandoFreisler> i'm not racist
codeFiend has quit [Quit: codeFiend]
KommandoFreisler was banned on #ruby by ChanServ [KommandoFreisler!*@*]
KommandoFreisler was kicked from #ruby by ChanServ [Banned: racists are still not welcome]
<alxndr> they're using an open web gateway now?
codeFiend has joined #ruby
fu2ristiq has quit [Ping timeout: 240 seconds]
gaboesquivel has joined #ruby
_blizzy_ has joined #ruby
towski_ has quit [Remote host closed the connection]
yh has joined #ruby
<niik00> sandelius: ok but all the dependencies have to be declared in the gemspec then ?
<sandelius> niik00 yes
<niik00> ok I see. Thanks !
riotjones has joined #ruby
zz_barkerd427 is now known as barkerd427
jbomo has quit []
fu2ristiq has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
hanmac1 has joined #ruby
Deele has quit [Quit: User excited]
jpfuentes2 has joined #ruby
platzhirsch has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
multi_io has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
multi_io has joined #ruby
Cache_Money has joined #ruby
barkerd427 is now known as zz_barkerd427
Xoro has quit [Read error: Connection reset by peer]
fedexo has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
Musashi007 has joined #ruby
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ruby
sinequanon has joined #ruby
oo_ has quit [Remote host closed the connection]
bruno- has joined #ruby
hakunin has quit []
Musashi007 has quit [Quit: Musashi007]
tvw has joined #ruby
oo_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lele is now known as Guest24
sandelius has joined #ruby
andikr has joined #ruby
yh has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
niik00 has left #ruby [#ruby]
bruno- has quit [Ping timeout: 264 seconds]
platzhirsch has quit [Quit: Leaving.]
hewenhong has quit [Remote host closed the connection]
tautvydas has quit [Remote host closed the connection]
Someguy123 has quit [Ping timeout: 250 seconds]
quarcu has quit [Ping timeout: 250 seconds]
hewenhong has joined #ruby
Someguy123 has joined #ruby
quarcu has joined #ruby
pengin has joined #ruby
sinkensabe has joined #ruby
fu2ristiq has quit [Ping timeout: 245 seconds]
fu2ristiq has joined #ruby
fu2ristiq has joined #ruby
fu2ristiq has left #ruby [#ruby]
Deele has joined #ruby
charliesome has joined #ruby
gauke has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
zarubin_ has joined #ruby
djbkd has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
shuber_ has quit [Remote host closed the connection]
yardenbar has joined #ruby
Channel6 has quit [Quit: Leaving]
pengin has quit [Remote host closed the connection]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin_ has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
ahmetkapikiran has joined #ruby
sigurding has joined #ruby
jud^ has joined #ruby
roolo has joined #ruby
jud has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
bronson has joined #ruby
gauke has quit [Quit: gauke]
mello has joined #ruby
havenwood has joined #ruby
xcesariox has joined #ruby
A205B064 has quit [Ping timeout: 264 seconds]
nso95 has joined #ruby
Xoro has joined #ruby
rkazak_ has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
hanmac1 has left #ruby [#ruby]
northfurr has quit [Quit: northfurr]
mello has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
gauke has joined #ruby
Xoro has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
Musashi007 has joined #ruby
gusto has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
gusto has joined #ruby
ndrei has joined #ruby
Guest93215 has quit [Ping timeout: 245 seconds]
eshark has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 256 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
fabrice31 has joined #ruby
pasv has joined #ruby
pasv is now known as Guest95823
nso95 has quit [Quit: nso95]
ERIK_ has joined #ruby
JimS has joined #ruby
doublemalt__ has quit [Ping timeout: 256 seconds]
code1o6 has quit [Ping timeout: 244 seconds]
JimS is now known as AnurangDikshiit
<AnurangDikshiit> hi guys i own my own company and i am threatened to being sued if i don't hire this candidate
<Nilium> -_-
User458764 has joined #ruby
<apeiros> AnurangDikshiit: that's sad. but also quite off-topic. we're not #legaladvice
<AnurangDikshiit> hi guys i own my own company and i am threatened to being sued if i don't hire this candidate
<Nilium> I think maybe it's a bot.
<apeiros> oddbot
<sevenseacat> AnurangDikshiit: hi.
<AnurangDikshiit> hi sevenseacat
<Nilium> The only answer to legal questions is really "talk to a lawyer."
<sevenseacat> AnurangDikshiit: got anything relevant to Ruby to add?
<AnurangDikshiit> i said that i can't hire a liability because she has a history of acoholism
<Nilium> Talk to a lawyer.
<sevenseacat> if not, i'll invite you to leave.
<AnurangDikshiit> wow you're so rude
alex88 has joined #ruby
<Nilium> Nobody really cares, go talk to a lawyer. We are not lawyers.
<Nilium> Well, not so far as I know.
balazs has quit [Ping timeout: 265 seconds]
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
rubie has quit [Remote host closed the connection]
<AnurangDikshiit> thanks Nilium... i'll go do that
ki0 has joined #ruby
charliesome has quit [Quit: zzz]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hanmac has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
C1V0 has joined #ruby
sinequanon has quit []
rkazak_ has quit [Quit: Sleep.....ing....]
RegulationD has quit [Ping timeout: 244 seconds]
DaniG2k has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> moin
<Darkwater> o/
avril14th has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 244 seconds]
_seanc_ has quit [Ping timeout: 265 seconds]
queequeg1 has quit [Ping timeout: 255 seconds]
curtis__ has joined #ruby
<curtis__> that was weird... something screwy is happening with the servers
<curtis__> but yeah i am looking for people that are passionate rails developers
AnurangDikshiit has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
<apeiros> curtis__: you'll probably want to use #rubyonrails for that. I'm not sure on their recruiting-in-channel policy, though
moeSeth has quit [Quit: Connection closed for inactivity]
<curtis__> thanks
hanmac has joined #ruby
Musashi007 has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Exponential has joined #ruby
Musashi007 has quit [Client Quit]
User458764 has joined #ruby
fabrice31_ has joined #ruby
<sevenseacat> chances of it actually working are slim to none.
DaniG2k has quit [Quit: leaving]
<Lingo> Anyone know which exceptions could be raised when using Redic (the Redis client library)?
workmad3 has joined #ruby
<Lingo> or hiredis-rb for that matter, it uses that as a driver
codeFiend has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.0.1]
fabrice31 has quit [Ping timeout: 276 seconds]
livathinos has joined #ruby
hewenhong has quit [Remote host closed the connection]
curtis__ has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
duderonomy has joined #ruby
hewenhong has joined #ruby
Tux_007__ has quit [Quit: Connection closed for inactivity]
hewenhon_ has joined #ruby
mello has joined #ruby
ada2358_ has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeFiend has joined #ruby
queequeg1 has joined #ruby
ada2358 has joined #ruby
idafyaid has quit [Ping timeout: 250 seconds]
Ox0dea has left #ruby ["WeeChat 1.2-rc1"]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cubesandcode has quit [Remote host closed the connection]
hewenhong has quit [Ping timeout: 272 seconds]
ahmetkapikiran has joined #ruby
mello has quit [Ping timeout: 255 seconds]
curtis___ has joined #ruby
<curtis___> what is the most complex ruby app ever made?
<apeiros> o0
<apeiros> do you seriously expect a definite answer to that?
<shevy> Yes!
<shevy> curtis___ problem is, how do you count complexity?
edwinvdgraaf has joined #ruby
<ex0ns> One of the biggest ruby app I know is metasploit
<shevy> but is it also the most complex one
<curtis___> shevy: well soemthing really complex... i don't know surprise me :)
<ljarvis> :/
<shevy> really complex hmm
<shevy> METASPLOIT
<shevy> actually, perhaps some closed source one
n008f4g_ has joined #ruby
<apeiros> curtis___: our largest app is probably >200KLoC. I doubt it's even coming close to being the most complex ruby app ever. Does that help you?
<ddv> metasploit is a mess
<curtis___> how does one manage 200k lines?
codeFiend has quit [Ping timeout: 265 seconds]
<ex0ns> He does not
<curtis___> and how does one make sense of 200k lines
HotCoder has quit [Read error: No route to host]
<ddv> well you have to be genius like me, curtis___
lampshades has quit [Quit: lampshades]
bosma has joined #ruby
<apeiros> make sense of 200kLoC: you usually don't need to. you build blocks which are built from blocks.
<apeiros> you dive in when necessary.
<ljarvis> that's probably a medium to large size app.. it's not even insane
<apeiros> encapsulation helps
<ljarvis> our largest one is probably about the same (closer to 300k I think)
ndrei has quit [Ping timeout: 265 seconds]
CloCkWeRX has quit [Ping timeout: 265 seconds]
<ljarvis> doesn't *feel* that big
HotCoder has joined #ruby
pengin has joined #ruby
amclain has quit [Quit: Leaving]
<apeiros> I wished business allowed us an extensive period to clean up, though. we could probably slim it down by ~25-35% and make a couple of places more sane, less strongly coupled.
<curtis___> how the hell do you read it?
<ljarvis> with a text editor
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<ljarvis> but seriously, if you code is organised well it's quite simple
<apeiros> ^
<apeiros> that
<apeiros> the recipe to scale is organisation
<apeiros> conventions help a lot
<apeiros> adhering to guidelines too
charliesome has joined #ruby
<adaedra> I wish everyone believed in that
<apeiros> simple things like "you'll always find Foo::BarBaz class in foo/bar_baz.rb"
<apeiros> discoverable code helps too. explicit code may be a bit more verbose but it's easier to reason about.
mrsolo has quit [Quit: This computer has gone to sleep]
<ljarvis> yeah, I can get around our entire app using command-t fuzzy finding, it's very rare I can't find something
<curtis___> code should have esoteric variable names that only you and other dedicated programmers can decipher
<apeiros> and make sure everybody in the team knows the implicits and/or how to discover implicits.
michael_mbp has quit [Excess Flood]
<apeiros> curtis___: that's a job security device which IMO only bad coders need :-p
<shevy> curtis___ the local technical university of vienna uses rails for student pages: http://shevegen.square7.ch/screenshot.png
longfeet_ has quit [Ping timeout: 244 seconds]
haxrbyte_ has quit [Remote host closed the connection]
<curtis___> apeiros: i was being sarcasting if you're working with a team or someone else and they hire another coder you will quickly be found out and your reputation will forever be tarnished
edwinvdgraaf has quit [Remote host closed the connection]
hewenhon_ has quit [Remote host closed the connection]
hewenhong has joined #ruby
edwinvdgraaf has joined #ruby
mikecmpbll has joined #ruby
<apeiros> curtis___: if only
<ljarvis> new devs definitely should be prepared to adapt to the way something is already organised. You just gotta hope someone sane organised it in the first place
<curtis___> apeiros: i found out bad coders and i fired them :)
<curtis___> it also helps to know how to code
<ljarvis> curtis___: and you're here recruiting?
<curtis___> no
<apeiros> there are too many who'll see obscure code and think "OMIGOSH! I can't comprehend! This coder must really know their stuff!!!"
michael_mbp has joined #ruby
<curtis___> i don't recruit online
ziprar has joined #ruby
<ljarvis> "curtis__> but yeah i am looking for people that are passionate rails developers"
<ljarvis> apeiros: fucking aye!
<curtis___> only people that are in the arizona area
<adaedra> too far away.
<ljarvis> oh so you are recruiting
<curtis___> that doesn't count as recruiting
<ljarvis> oO
<ljarvis> unless they're in Arizona?
<EvanGuru> help I broke my influxdb
<EvanGuru> oh dear this is freenode
Musashi007 has quit [Quit: Musashi007]
<shevy> we fix things you never knew about
<adaedra> There are things we can't fix though, like shevy
<shevy> we fix them
zcreative has joined #ruby
codeFiend has joined #ruby
edwinvdg_ has joined #ruby
curtis___ has left #ruby [#ruby]
curtis___ has joined #ruby
<curtis___> whoops i closed the tab :(
mclee has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
idafyaid has joined #ruby
idafyaid has quit [Changing host]
idafyaid has joined #ruby
<shevy> yeah
<shevy> way to try and get rid of ljarvis!!!
pengin has quit [Remote host closed the connection]
zipace has quit [Ping timeout: 272 seconds]
Hounddog has joined #ruby
C1V0 has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
<adaedra> "Rhino is an open-source implementation of JavaScript written entirely in Java" – "C++ 55.9%" õ_o
cubesandcode has joined #ruby
CloCkWeRX has joined #ruby
<shevy> are you saying
<shevy> it is not written in java
<adaedra> GitHub is
thiagovsk has quit [Quit: Connection closed for inactivity]
kies has joined #ruby
<adaedra> But when you click C++, it disappears from the language list
<shevy> hmm
<adaedra> GitHub being silly, I'd say
<curtis___> github is written in coffeescript
<shevy> ruby came in second in 2013
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<EvanGuru> shevy, JS is probably because node is thrown in there
krz has joined #ruby
<shevy> damn...
HotCoder has quit [Ping timeout: 240 seconds]
ahmetkapikiran has joined #ruby
<shevy> ruby comes in 6th now??
n008f4g_ has quit [Ping timeout: 250 seconds]
<curtis___> css is not a langauge
<ljarvis> yes it is
shevy has quit [Remote host closed the connection]
<adaedra> It's hell
<curtis___> so html is a language too then
<ljarvis> yes
<tobiasvl> the L stands for Language
<curtis___> but html isn't a language
<ljarvis> yes it is
<tobiasvl> HTML = HyperText Markup Language
shevy has joined #ruby
<ljarvis> as tobiasvl points out, the name even states it
<curtis___> you can't do equations and algorithms with html
<canton7> it's a markup langauge
<ljarvis> that doesn't make it not a language
<canton7> not a programming language
<curtis___> github is for programmers
<ljarvis> no
<ljarvis> github is for git
<shevy> it's for hubs!
<EvanGuru> (in which the demographic is programmers)
<EvanGuru> thus its for programmers
<ljarvis> what you check into git is up to you
<tobiasvl> people use github for all kinds of things
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
granthatcher has joined #ruby
<shevy> 3. Personal Email
<shevy> great idea :D
fabrice31 has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
<adaedra> u_u
slackbotgz has joined #ruby
queequeg1 has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
haxrbyte has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
<sevenseacat> #6 is pretty obvious, I thought
<oddmunds> i know a guy who has a script that backs up his home directory to github every day
HotCoder has joined #ruby
Takle has joined #ruby
<ljarvis> I back up lots of stuff onto bitbucket
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<forgot> entire home directory?
<oddmunds> forgot: yeah
marr has joined #ruby
<forgot> im sure he excluded ssh and gpg stuff
Zai00 has joined #ruby
<shevy> oddmunds every day?
<oddmunds> it might be just a folder he drops stuff in
<apeiros> dunno, I use github for #0
<oddmunds> seems like he stopped a couple of weeks ago https://github.com/tommyettinger/home/commits/gh-pages
queequeg1 has joined #ruby
<shevy> what is #0
<apeiros> online code repository
<sevenseacat> I've seen it used for #2, #4, #5, and #6
<shevy> "Home is where the files get dropped."
Takle has quit [Client Quit]
<forgot> isn't dropbox more appropriate?
<sevenseacat> 1 and 3 seem bizarre
<shevy> hehe
ixti has joined #ruby
<ddv> you don't want .git on dropbox, trust me
<shevy> people are weird so they do weird things
lordkryss has joined #ruby
<forgot> ddv: what's wrong with it?
jenrzzz has quit [Ping timeout: 265 seconds]
<oddmunds> shevy: yeah, doodle sounds better for guest lists, but if you want to be "tech cool" maybe Github is the way to go
<ddv> forgot: jus try and you will see
<forgot> ddv: no problem so far
_ixti_ has quit [Ping timeout: 252 seconds]
<ddv> forgot: really? it always seems to corrupt/change my git repos
einarj has joined #ruby
arup_r has quit [Remote host closed the connection]
User458764 has joined #ruby
<forgot> ddv: why would dropbox change any of your files?
<oddmunds> i've used github to manage a band i'm in
<ddv> forgot: no idea
<shevy> see? people are weird :)
<shevy> dudedudeman you were too lazying it up to have a github repo right?
commondream has joined #ruby
queequeg1 has quit [Ping timeout: 250 seconds]
zarubin_ has joined #ruby
nhhagen has joined #ruby
queequeg1 has joined #ruby
selu has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
curtis___ has quit [Quit: Page closed]
commondream has quit [Ping timeout: 240 seconds]
zarubin_ has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
idafyaid has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
GriffinH_ has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
mrsolo has joined #ruby
cubesandcode has quit [Remote host closed the connection]
djbkd has joined #ruby
watchtheblur has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 258 seconds]
msgodf has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
wookiehangover has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 256 seconds]
c0m0 has joined #ruby
arup_r has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
wookiehangover has joined #ruby
Spami_ has joined #ruby
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
pengin has joined #ruby
GriffinHeart has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
hewenhon_ has joined #ruby
Spami has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
bigkevmcd has joined #ruby
fabrice31_ has joined #ruby
Akagi201 has joined #ruby
hewenhong has quit [Ping timeout: 272 seconds]
meph has joined #ruby
ndrei has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 244 seconds]
platzhirsch has joined #ruby
Igorshp has joined #ruby
edwinvdgraaf has joined #ruby
dumdedum has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
pengin has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
Zai00 has quit [Quit: Zai00]
edwinvdg_ has joined #ruby
givello has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
fabrice31_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
yh has joined #ruby
fabrice31 has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
Yzguy has joined #ruby
dudedudeman has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
<forgot> how to find out unused gems installed globally?
<givello> Hey there, I'm kind of starting with ruby, and I'd like to know if the following https://gist.github.com/anonymous/341b3fce3bf10be5840a looks good or if it should/could be done a better way
edwinvdgraaf has quit [Ping timeout: 246 seconds]
Soda has quit [Remote host closed the connection]
gaboesquivel has quit [Remote host closed the connection]
rdark has joined #ruby
_blizzy_ has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
<gregf_> givello: are you trying to dedupe a string?
<forgot> givello: how about data_string.chars.to_set?
GriffinHeart has quit [Ping timeout: 265 seconds]
<forgot> givello: require 'set' on top of it
<gregf_> >> ("ab" * 10).split(//).inject([]){ |arr, c| arr.include?(c) ? arr : arr << c }
<ruboto> gregf_ # => ["a", "b"] (https://eval.in/372361)
<gregf_> yeah a set removes dupes
rafadc has joined #ruby
<givello> I guess I should have been more precise, I've got a string in the form "a < 3 + b\n c >= a + b - 4\n" and I want ["a", "b", "c"] from it
<shevy> forgot how do you define "unused"?
<forgot> shevy: not used by any other gem, dangling
konsolebox has joined #ruby
<givello> Trying to see if what you said applies to me though :p
<givello> I should probably use inject, indeed
<shevy> forgot aha. I think hanmac wrote an analyzer
<ljarvis> >> "a < 3 + b\n c >= a + b - 4\n".scan(/[a-z]/).uniq
<ruboto> ljarvis # => ["a", "b", "c"] (https://eval.in/372364)
<ljarvis> givello: ^
GriffinHeart has joined #ruby
<givello> ljarvis: well, here we go. Thank you very much!
<ljarvis> this will only support single characters, but that seems to be what you want
<givello> Kind of having trouble finding the right method for the job
<givello> ljarvis: right, and I guess I just need to change the regex
<ljarvis> ruby gives you lots of choices :)
<ljarvis> yep
<givello> ljarvis: if I ever get multichars variables
<ljarvis> just [a-z]+
<forgot> does uniq require sorting?
<ljarvis> >> %w(b c d a b).uniq
<ruboto> ljarvis # => ["b", "c", "d", "a"] (https://eval.in/372365)
<ljarvis> no?
<forgot> cool
keen___________2 has joined #ruby
<givello> it's a bit different from bash uniq then
<ljarvis> it is?
<gregf_> >>require "set";p Set.new(("a < 3 + b\n c >= a + b - 4\n").scan(/[a-zA-Z]+/)).to_a.join()
<ruboto> gregf_ # => "abc" ...check link for more (https://eval.in/372366)
<ljarvis> :|
<shevy> who uses bash scripts anyway
charliesome has joined #ruby
kies has quit [Ping timeout: 264 seconds]
keen___________1 has quit [Ping timeout: 264 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
<forgot> uniq is an unix utility, not a bash builtin
juni0r has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 264 seconds]
<givello> forgot: right, my bad
slackbotgz has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
sevensea_ has joined #ruby
<jhass> al2o3-cr: looks good
yeticry has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
leafybasil has quit [Remote host closed the connection]
jenrzzz has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
<al2o3-cr> jhass: ?
HotCoder has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Ping timeout: 265 seconds]
<jhass> al2o3-cr: re. "is this safe?"
<al2o3-cr> jhass: ah, ok cheers jhass :)
quimrstorres has joined #ruby
juni0r has joined #ruby
gaboesquivel has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sevensea_ is now known as sevenseacat
mello has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
proxima has joined #ruby
doublemalt__ has joined #ruby
mello has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<proxima> I need to edit/modify the template pages of shopify store by making an app instead of directly editing them.. So, how can I access the templates?
dorei has joined #ruby
lessless has joined #ruby
quimrstorres has joined #ruby
lkba has joined #ruby
ndrei has joined #ruby
<sevenseacat> i'm not sure what that even means.
oo_ has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
haxrbyte_ has joined #ruby
subraminion has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 256 seconds]
antgel has joined #ruby
zcreative has quit [Quit: (null)]
oo_ has joined #ruby
bruno- has joined #ruby
gusto has quit [Quit: Leaving]
leafybasil has joined #ruby
tomphp has joined #ruby
garyserj has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 244 seconds]
GriffinHeart has joined #ruby
pengin has joined #ruby
gagrio has joined #ruby
proxima has quit [Ping timeout: 246 seconds]
<mikecmpbll> eh, this feels like a stupid question, but is there a general preference between class SomeClass; def self.foo; ..; end; end, and module SomeModule; def self.foo; ...; end; end
antgel has quit [Ping timeout: 240 seconds]
<mikecmpbll> as in, class vs a module for just a collection of methods with no initialization.
<mikecmpbll> or are both code smell? :)
<jhass> mikecmpbll: I use a module instead of a class if I don't need the ability of a class to create new objects
<Mon_Ouie> Use module and module_function instead; def foo of def self.foo
* mikecmpbll googles module_function
<jhass> oh and +1 ^
anisha has joined #ruby
<Mon_Ouie> Which is the way that, e.g. Math works and allows you to do both Math.sin(x) and include Math; sin(x)
<mikecmpbll> Mon_Ouie: very neat.
fabrice31 has quit [Remote host closed the connection]
mclee has joined #ruby
lkba_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 264 seconds]
quimrsto_ has joined #ruby
<al2o3-cr> Mon_Ouie: could you give an example how you would use module_function like Math?
ndrei has joined #ruby
pengin has quit [Remote host closed the connection]
tomphp has quit [Max SendQ exceeded]
<Mon_Ouie> module Math; module_function; def sin(x); …; end; end
<Mon_Ouie> Or alternatively, def sin(x); …; end then module_function :sin
chipotle has joined #ruby
quimrstorres has quit [Ping timeout: 265 seconds]
rafadc has quit []
workmad3 has quit [Ping timeout: 258 seconds]
<al2o3-cr> Mon_Ouie: oh, cheers always wondered how Math did it thanks :)
hewenhon_ has quit [Remote host closed the connection]
sdothum has joined #ruby
<al2o3-cr> Mon_Ouie: awesome thanks :)
zotherstupidguy has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
ahmetkapikiran has joined #ruby
denver has joined #ruby
badhatter has quit [Remote host closed the connection]
mujou has joined #ruby
<SebastianThorn> how to trim what looks like spaces, but are not?
<SebastianThorn> https://eval.in/372374
<Mon_Ouie> Is it matched by /[[:space:]]/?
nateberkopec has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<gregf_> SebastianThorn: you only need [^\s]+
<adaedra> I'm trying to setup sprockets in a pure rack application, but it doesn't seems to serve less assets
pengin has joined #ruby
mello has joined #ruby
<adaedra> if I have a file css/style.css and GET /assets/style.css, it works. If I had the .less extension to the file, it doesn't.
<al2o3-cr> won't String#strip just do it
<gregf_> >>class String; def trim; self[/[^\s]+/];end;end; p " +46702696905 ".trim;
<ruboto> gregf_ # => "+46702696905" ...check link for more (https://eval.in/372376)
<gregf_> SebastianThorn: ^^
<Mon_Ouie> gregf_: I tried matching his string with, \s, it doesn't work
<al2o3-cr> >> " +46702696905 ".strip
<ruboto> al2o3-cr # => "+46702696905" (https://eval.in/372378)
<Mon_Ouie> You probably copy-pasted in such a way that the actual characters he used were changed to other characters
<gregf_> Mon_Ouie: prolly :/
<al2o3-cr> ah i see
n008f4g_ has joined #ruby
<SebastianThorn> ye, it's an imported list, 9k rows as CSV, and M$ exel made a mess..
Rickmasta has joined #ruby
bruno- has joined #ruby
sigurding has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
sandelius has joined #ruby
User458764 has joined #ruby
n3vtelen has quit [Ping timeout: 255 seconds]
pengin has quit [Remote host closed the connection]
<SebastianThorn> >> " +46702696905          ".each_char {|x|puts x.ord}
<ruboto> SebastianThorn # => 32 ...check link for more (https://eval.in/372381)
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SebastianThorn> 32 = normal space, 160 = Non-breaking space
zarubin_ has joined #ruby
zotherstupidguy has joined #ruby
nfk has joined #ruby
<al2o3-cr> >> " +46702696905          ".bytes
<ruboto> al2o3-cr # => [32, 43, 52, 54, 55, 48, 50, 54, 57, 54, 57, 48, 53, 194, 160, 194, 160, 194, 160, 194, 160, 194, 16 ...check link for more (https://eval.in/372382)
Exponential has joined #ruby
<SebastianThorn> al2o3-cr: ,bytes, ty
_blizzy_ has quit [Ping timeout: 265 seconds]
zarubin_ has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
sigurding has quit [Quit: sigurding]
Exponential has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
<al2o3-cr> >> " +46702696905          ".gsub(/\W/,"")
<ruboto> al2o3-cr # => "46702696905" (https://eval.in/372387)
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<al2o3-cr> oops thats not right
<apeiros> >> s = [160, 65, 160].pack("U*").encode("utf-8"); s
<ruboto> apeiros # => " A " (https://eval.in/372388)
<apeiros> >> s = [160, 65, 160].pack("U*").encode("utf-8"); s.gsub(/\A\p{whitespace}*|\p{whitespace}*\z/, '')
<ruboto> apeiros # => "A" (https://eval.in/372389)
tvw has quit [Read error: Connection reset by peer]
<apeiros> strip for all unicode chars classified as whitespace
<apeiros> probably should use + instead of *
tvw has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
codecop has quit [Remote host closed the connection]
quimrsto_ has quit [Remote host closed the connection]
<al2o3-cr> >> " +46702696905          ".unpack('A*').first.gsub(/#{0xA0.chr}/, "").gsub(/#{0xC2.chr}/,"").strip
<ruboto> al2o3-cr # => "+46702696905" (https://eval.in/372390)
<al2o3-cr> but there a better way surely
quimrstorres has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cubesandcode has joined #ruby
<dorei> >> " +46702696905          ".gsub(/[[:space:]]/,'')
<ruboto> dorei # => "+46702696905" (https://eval.in/372391)
<apeiros> al2o3-cr: /#{0xA0.chr}/ <-- huh? why so verbose?
oo_ has quit [Remote host closed the connection]
<apeiros> 0xA0.chr is just \xA0, so /#{0xA0.chr}/ --> /\xA0/
<al2o3-cr> apeiros: i don't know of not been sleep ;p
<adaedra> Is that a real phone number
<apeiros> and you can put those two gsubs into a single gsub: .gsub(/\xa0|\xc2/, "")
oo_ has joined #ruby
<apeiros> adaedra: quick, call it
<ljarvis> hello this is dog
<al2o3-cr> >> " +46702696905          ".unpack('A*').first.gsub(/\xa0|\xc2/, "")
<ruboto> al2o3-cr # => /tmp/execpad-a4ed17c19f5e/source-a4ed17c19f5e:2: invalid multibyte escape: /\xa0|\xc2/ (https://eval.in/372393)
<adaedra> international call :(
<dorei> al2o3-cr: [[:space:]] in regex will match all kind of whitespace and save you from this trouble ;-)
<al2o3-cr> dorei: scroll back up :)
quimrstorres has quit [Ping timeout: 256 seconds]
<dorei> al2o3-cr: it's different from \s
<al2o3-cr> >> " +46702696905          ".unpack('A*').first.gsub(/#{0xA0.chr}|#{0xC2}.chr}/, "").strip
<ruboto> al2o3-cr # => "+46702696905\xC2\xC2\xC2\xC2\xC2\xC2\xC2\xC2\xC2" (https://eval.in/372394)
<ljarvis> :|
<al2o3-cr> dorei: yep
jschoolcraft has quit [Quit: peace]
<al2o3-cr> ah sack i can;t think
<dorei> al2o3-cr: so, why dont u use [[:space:]] ?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DEA7TH has joined #ruby
Musashi007 has quit [Quit: Musashi007]
senayar has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
<apeiros> dorei: [[:space::]] does not match it
<apeiros> dorei: however, as I demonstrated, \p{whitespace} does
withnale_ has joined #ruby
<al2o3-cr> dorei: yeah, i don't know why i didn't thinko that before
<apeiros> >> s = [160, 65, 160].pack("U*").encode("utf-8"); s.gsub(/\A\p{whitespace}*|\p{whitespace}*\z/, '')
<ruboto> apeiros # => "A" (https://eval.in/372396)
<apeiros> vs
<apeiros> >> s = [160, 65, 160].pack("U*").encode("utf-8"); s.gsub(/\A[[:space:]]*|[[:space:]]*\z/, '')
<ruboto> apeiros # => "A" (https://eval.in/372398)
<apeiros> huh
<krz> how can i do the following (pseudo code): Redis::Namespace.new(:"{#Rails.env}", redis: redis_connection)
<apeiros> oh, I typoed when I tried
<apeiros> ok, so [[:space:]] works the same as \p{whitespace} :)
<krz> im referring to the symbol (first arg in Redis::Namespace.new
<krz> i.e. :"{#Rails.env}"
<krz> ah crap
<dorei> apeiros: it matches it, no?
<krz> there was a typo. i thought it would work with :"#{Rails.env}", but no
<al2o3-cr> dorei: for SebastianThorn
<apeiros> dorei: yes. as said, I typoed when I tried in my pry
<krz> do i need to use send or something?
cubesandcode has quit [Remote host closed the connection]
<apeiros> krz: Rails.env.to_sym IMO. but yours works too.
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> >> :"#{"string"}"
<ruboto> apeiros # => :string (https://eval.in/372407)
<al2o3-cr> if theres a long way round, i'll find it ;p
nhhagen has quit [Remote host closed the connection]
<krz> apeiros: i like yours better
<krz> ty
RegulationD has joined #ruby
dumdedum has quit [Quit: foo]
rodfersou has joined #ruby
quimrstorres has joined #ruby
<garyserj> anybody here use brightbox on ubuntu?
RegulationD has quit [Ping timeout: 265 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
workmad3 has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 256 seconds]
DEA7TH has quit [Ping timeout: 258 seconds]
<gregf_> dorei: i would expect '\s' to match '[[:space:]]'
arup_r has quit [Ping timeout: 240 seconds]
subraminion has quit [Quit: (null)]
<gregf_> i just tried this
<gregf_> >>[ Regexp.new(/\s+/), Regexp.new(/[[:space:]]+/) ].each { |r| spaces = " foo \n bar \r".scan(r); p %|#{spaces.join("-")}| }
<ruboto> gregf_ # => " - \n - \r" ...check link for more (https://eval.in/372425)
ndrei has quit [Quit: Lost terminal]
quimrstorres has joined #ruby
ndrei has joined #ruby
Papierkorb has joined #ruby
edwinvdg_ has joined #ruby
User458764 has joined #ruby
mgorbach has quit [Ping timeout: 255 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
<SebastianThorn> might it just be an issue with how i read the file?
User458764 has quit [Client Quit]
User458764 has joined #ruby
User458764 has joined #ruby
User458764 has quit [Client Quit]
fabrice31 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 265 seconds]
twistedpixels is now known as zz_twistedpixels
tomaszbalon has joined #ruby
vire has joined #ruby
timonv has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
tagrudev has quit [Remote host closed the connection]
<jhass> ?anyone garyserj
<ruboto> garyserj, Just ask your question, if anyone has, they will respond.
ramsub07 has joined #ruby
tagrudev has joined #ruby
mgorbach has joined #ruby
<apeiros> gregf_: Regexp.new(/\s+/) is pointless
<apeiros> just /\s+/
<adaedra> grmbl, rubydoc.info is failing
CloCkWeRX has left #ruby [#ruby]
<jhass> maybe we want that extra object, so ruby doesn't get bored?
<adaedra> RegexpFactory.new.createRegexp(StringFactory.new.createString("\s+"))
Caius has quit [Ping timeout: 276 seconds]
krz has quit [Ping timeout: 240 seconds]
<adaedra> derp, wrong case.
<jhass> new Class.new(AbstractRRegexpFactory) { def regexp; new Class(AbstractStringFactory).new { def string; "\s+"; end; }.new.build_string; end; }.new.build_regexp
<jhass> pff, amateurs
sigurding has joined #ruby
<adaedra> :D
<apeiros> Errno::ENOTENOUGHLOC
<adaedra> Errno::ESTILLREADABLE
<apeiros> Also::Uses::Far::Too::Little::Namespacing
tomaszbalon has quit [Remote host closed the connection]
<jhass> I'm sorry, I also forgot to make them singletons
Caius has joined #ruby
<apeiros> and you have no final abstract classes!
zz_twistedpixels is now known as twistedpixels
gagrio has quit [Remote host closed the connection]
stef204 has joined #ruby
<dorei> i have something like this: xy= nil; [1, 2, 3, 5, xy, 6].map(&:succ), is there way to find the "index" of the item that caused the exception?
hewenhong has joined #ruby
<jhass> what exception?
yqt has joined #ruby
<dorei> >>xy= nil; [1, 2, 3, 5, xy, 6].map(&:succ)
<ruboto> dorei # => undefined method `succ' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/372444)
FernandoBasso has joined #ruby
<dorei> this exception
<jhass> .index(nil)
hewenhong has quit [Remote host closed the connection]
<dorei> it could be any kind of exception
hewenhong has joined #ruby
hewenhong has quit [Client Quit]
<jhass> sounds like you're too unsure about your input
<jhass> normalize it better
<jhass> e.g. by using .select
<dorei> maybe i should rephrase my question, i have a something.map(&b) and in order to help me debug it in case of an exception, it'd be great if i knew which item caused the exception
Igorshp has quit [Remote host closed the connection]
kp666 has quit [Ping timeout: 264 seconds]
<jhass> .find {|e| begin; b.call(e); rescue; true; end; false } # debug code, not production code
nateberkopec has joined #ruby
<dorei> thanx, i'll give it a try :)
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<al2o3-cr> why does ruby allow this to concat "hello" "world"
Akagi201 has quit []
edwinvdg_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
serivich has joined #ruby
<apeiros> al2o3-cr: ask matz?
quimrstorres has joined #ruby
codecop has joined #ruby
<apeiros> personally I would have made that a syntax error. I use it in ruby to spread strings over multiple lines: x = "foo" \<newline>"bar"
<al2o3-cr> apeiros: thnx, yes that is useful
edwinvdgraaf has quit [Ping timeout: 250 seconds]
nhhagen has joined #ruby
Vendella has joined #ruby
<Vendella> << class Foo; end; foo = Foo.new; puts foo
quimrstorres has quit [Ping timeout: 246 seconds]
<jhass> apeiros: al2o3-cr isn't that inherited from C?
<Vendella> The memory address that's printed out is where that Foo instance is in memory?
<Vendella> #<Foo:0x9d069d0>
<apeiros> jhass: may well be inherited by some language. as long as it doesn't do trigraphs…
<apeiros> Vendella: don't assume that
<jhass> iirc C does that so you can compose stuff with macros
<apeiros> Vendella: whether that is a memory address or not is an implementation detail
nhhagen_ has joined #ruby
<Vendella> But it's something like that right?
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<apeiros> Vendella: e.g. it certainly won't be one in jruby
<adaedra> >> "Hello" "World"
<ruboto> adaedra # => "HelloWorld" (https://eval.in/372448)
<adaedra> TIL
kp666 has joined #ruby
<Vendella> I see.
<Vendella> Do I need to know C good to be good at Ruby?
<al2o3-cr> jhass: oh, nice always wonder where/why :)
<apeiros> Vendella: it is related to the object_id, which is an at-the-time unique number. it may get reused during runtime.
<apeiros> Vendella: no. you don't need C.
<apeiros> but there are cases where it helps
mello has quit [Ping timeout: 265 seconds]
<Vendella> I'm coming from C, but I don't master it.
<jhass> don't worry, you can go a very long way without any C at all
<jhass> a veery long way
nateberkopec has quit [Quit: Leaving...]
* apeiros still wonders why inspect doesn't use the object_id straight there…
<Vendella> jhass, I\
<Vendella> I'm aiming to get into Rails also.
<jhass> doesn't change anything
SouL_|_ has quit [Remote host closed the connection]
<Vendella> I see.
<Vendella> I also wonder, how much Ruby should I learn before I actually jump into Rails. I'm halfway of this Eloquent book right now.
nhhagen has quit [Ping timeout: 272 seconds]
SalexW_ has joined #ruby
pengin has joined #ruby
<jhass> that's probably good enough
<jhass> if you can tell apart what's rails magic and what's ruby magic, you're better than 60% of the people new to rails
<Vendella> Sometimes I have to Google things up but yea it's good.
<sevenseacat> enough to understand the syntax, to know that rails isnt doing 'magic'.
<apeiros> Vendella: IMO when you have a solid grasp of the object model, method lookup and core libs.
<Vendella> apeiros, I have previous OOP experience.
<apeiros> Vendella: but there's people who started rails first - so you'll survive eitherway
* sevenseacat is one of those people
<apeiros> Vendella: yeah, OOP experience != understanding ruby's object model, though ;-)
* jhass pretty much too
<sevenseacat> and i still look shit up daily.
bluOxigen has quit [Ping timeout: 272 seconds]
<ljarvis> also, you'll still be googling stuff when you're an expert
<sevenseacat> oh touche.
<jhass> sure, the only thing that changes is that you get better at what terms to google
<ljarvis> yep absolutely
nateberkopec has joined #ruby
<jhass> for most stuff I don't remember how it works or how to use it, I remember that there's something like it and perhaps how to look it up
<shevy> you guys have such a weak brain
<sevenseacat> erm
iamninja has joined #ruby
nettoweb has joined #ruby
<sevenseacat> sorry, shevy?
<shevy> jhass wrote he does not remember how things work!
<jhass> sevenseacat: only we guys, you're fine
<ljarvis> hah
<sevenseacat> jhass: lol
<apeiros> sevenseacat's shevy filter isn't properly adjusted yet :D
<shevy> yeah cats have a great memory
<ljarvis> I'm pleased that my brain doesn't store everything I can easily google. That's incredibly inefficient
ahmetkapikiran has joined #ruby
<shevy> :D
bayed has joined #ruby
hanmac1 has joined #ruby
<hanmac1> shevy look at this ticket ;P https://bugs.ruby-lang.org/issues/11197
<ljarvis> now I have space for deciding what to watch next on netflix
<sevenseacat> my brain is currently too occupied playing clicker heroes when it should be writing
<shevy> hanmac1 Unicode madness
<al2o3-cr> str = "foobar"; str.object_id << 1 # so this gives you memory location of that object?
<shevy> although I have to say, coding in hieroglyphs is pretty cool
ldnunes has joined #ruby
<shevy> I don't even know what is clicker heroes but the name alone sounds stressful
<apeiros> al2o3-cr: in MRI, it's iirc the pointer value, yes
<apeiros> the object_id itself is
<apeiros> or… actually might be that the shifted id is
<shevy> hmmm
Spami_ has quit [Quit: This computer has gone to sleep]
<hanmac1> shevy hm interesting is that unicode doesnt have a char for a unicorn yet ;P
<apeiros> `$ Object#object_id` in pry is revealing ;-)
griffindy has joined #ruby
<al2o3-cr> apeiros: oh, lets check :)
<shevy> hanmac1 well it has a snowman. I am sure it'll have a unicorn eventually
grn has joined #ruby
pengin has quit [Remote host closed the connection]
<ljarvis> i really need to find some time for oss projects :( they are suffering
<shevy> ljarvis quit work!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> good idea
<grn> Hi! I have a class Klass with a prepended module Mod. There are methods Klass#foo and Mod#foo and Mod#foo calls super. If klass = Klass.new, how can I call Klass#foo without calling Mod#foo? In other words how can I skip a prepend module's method?
livathinos has quit [Ping timeout: 272 seconds]
<shevy> now that's a tough cookie
nettoweb has joined #ruby
bronson has joined #ruby
mase-chatter has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
scripore has joined #ruby
<shevy> so you want to call a method on your class but not the method on a module
edwinvdg_ has quit [Remote host closed the connection]
<shevy> isn't it so that when you include a module, that one overwrites other methods anyway?
edwinvdgraaf has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> grn: huh? if it's prepended then your method defined on the class will override the one defined in the module
<ljarvis> so Klass.new.foo won't call Mod#foo
bronson has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
<ljarvis> oh ignore me
<ljarvis> grn: use include or use a method alias
davedev24_ has joined #ruby
grn has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
<al2o3-cr> >> obj = Class.new; [obj, sprintf("%x", obj.object_id << 1)]
<ruboto> al2o3-cr # => [#<Class:0x41e8e090>, "41e8e090"] (https://eval.in/372452)
sgambino has joined #ruby
<al2o3-cr> yep keep reading having lot of fun
edwinvdg_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanca_ has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
goodcodeguy has quit [Client Quit]
manzo has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__chris has joined #ruby
edwinvdgraaf has quit [Ping timeout: 256 seconds]
ziprar has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
gregf has joined #ruby
grn has joined #ruby
pengin has quit [Remote host closed the connection]
but3k4 has joined #ruby
decoponio has joined #ruby
<grn> ljarvis: the previous version of the code used #alias_method but prepending seemed to be more elegant. I hoped there's some way around it. I hoped that UnboundMethod#bind can be used to achive that or a similar mechanism.
krz has joined #ruby
quimrstorres has joined #ruby
zarubin_ has joined #ruby
FernandoBasso has quit [Quit: leaving]
<Vendella> A class can only have one metaclass?
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
SalexW_ has quit [Ping timeout: 272 seconds]
sandelius has joined #ruby
juanca_ has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 265 seconds]
zarubin_ has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
xcesariox has joined #ruby
goodcodeguy has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<apeiros> Vendella: by metaclass, do you mean singleton_class? and yes, an object has precisely one singleton_class.
<Vendella> apeiros, Yes.
vikaton has joined #ruby
<apeiros> some objects are exempt and can't have one. numerics, symbols, true, false, nil f.ex.
<vikaton> >> {:a => "a}[:a]
<ruboto> vikaton # => /tmp/execpad-64ecb13b04a5/source-64ecb13b04a5:5: syntax error, unexpected tGVAR, expecting '}' ...check link for more (https://eval.in/372467)
juanca_ has joined #ruby
<vikaton> >> k = {:a => "a}; k[:a]
<ruboto> vikaton # => /tmp/execpad-91d563b2bc18/source-91d563b2bc18:5: syntax error, unexpected tGVAR, expecting '}' ...check link for more (https://eval.in/372468)
<apeiros> it helps to close your strings ;-)
<vikaton> >> {:a => "a"}[:a]
<ruboto> vikaton # => "a" (https://eval.in/372469)
<vikaton> yeah "[
fgo has joined #ruby
quimrstorres has joined #ruby
<apeiros> btw., if you don't have a question associated with it, then please use your personal pry/irb.
<apeiros> the bot is for demonstration purposes only.
tomaszbalon has joined #ruby
<sevenseacat> or as I like to say, "IRC is not IRB"
<izzol> I have a string: "text/x-ruby; charset=us-ascii" and I want to have just "x-ruby" on the output. So far I have: string.sub!(/^\w*\//, ''), but this gives me: x-ruby; charset=us-ascii. I know that now I can execute another sub, but there is a way to do this in one sub?
<vikaton> What does "no implicit conversion of Symbol into Integer" usually mean I have to do?
<vikaton> I get that error in
<ruboto> vikaton, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/d295c11503855a788a4f
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<vikaton> whoops :(
<apeiros> vikaton: it means you're trying to use a symbol where you can't really
<apeiros> e.g. as an index for an array
banister has joined #ruby
<apeiros> (a symbol is really just a number - with an attached identifying string)
<vikaton> apeiros: but how do I access that symbol?
dionysus69_ has joined #ruby
<vikaton> the value of that symbol anyway
<apeiros> vikaton: user will be an array of [key, value]
<apeiros> so user[1][:screen_name]
<apeiros> but don't use for
<apeiros> client.friends.to_h.each do |key, user| user[:screen_name] … end
<apeiros> chances are you don't even need to use .to_h
<al2o3-cr> izzol: "text/x-ruby; charset=us-ascii"[/\w+\/(.+);/,1]
<apeiros> >> "text/x-ruby; charset=us-ascii"[/[^;]*/]
<ruboto> apeiros # => "text/x-ruby" (https://eval.in/372475)
<apeiros> izzol: ^
<izzol> thanks :)
dionysus69_ is now known as dionysus69
RegulationD has joined #ruby
mello has joined #ruby
last_staff has quit [Remote host closed the connection]
allcentury has joined #ruby
<Vendella> What will self be inside a method? I expected it to be the methods name or something.
__chris has quit [Quit: This computer has gone to sleep]
<apeiros> the object on which the method was called
<apeiros> foo.bar # self in bar will be foo
juanca_ has quit []
<Vendella> I mean something like this
<Vendella> class Foo; def test; puts self; end; end;
<apeiros> still the same answer
<apeiros> with your code: `x = Foo.new; x.test`, self will be x
<Vendella> When I do
<Vendella> foo.test
<Vendella> I get back #<Foo:0x9f3d488>
RegulationD has quit [Ping timeout: 276 seconds]
<Vendella> Which is what I also get when I make an object of that class
mello has quit [Ping timeout: 264 seconds]
<grn> ljarvis: FYI, turns out it wasn't that difficult - see https://gist.github.com/grn/32113d43721435cf0e96
<apeiros> then you don't have the code you just showed
<apeiros> puts returns nil
workmad3 has quit [Ping timeout: 250 seconds]
<Vendella> I do
<apeiros> no
<Vendella> it returns nil but it puts #<Foo:0x9f3d488>
<apeiros> ok
<Vendella> So self is #<Foo:0x9f3d488>
<Vendella> That's what I mean
<apeiros> *I get back* means *it returns*
<apeiros> and yes. #<Foo:0x9f3d488> reads as "an instance of Foo"
livathinos has joined #ruby
<apeiros> and x is an instance of Foo (or foo, if you call your variable that)
senayar has joined #ruby
senayar has joined #ruby
<Vendella> Yea
<apeiros> you can `puts foo` after. it'll have the exact same output
fgo has quit [Quit: WeeChat 1.1.1]
<Vendella> Yea but why is that
ismaelga has joined #ruby
<apeiros> because - as I already said - self is the object you call the method on
<apeiros> if you create another instance of Foo and call .test on that, it'll print that instance.
dionysus69 has quit [Ping timeout: 252 seconds]
xcesariox has quit [Max SendQ exceeded]
<Vendella> So, ruby will set self to be the object before I call test and after that will set it back to main?
sankaber has joined #ruby
chrissonar has quit [Remote host closed the connection]
<apeiros> that's not how I picture it. self is not a global state which is changed.
ejnahc has quit [Remote host closed the connection]
<apeiros> but might work as a way to think about it
<Vendella> What?
<Vendella> That's what the info about self says.
<apeiros> that's your interpretation of it
ejnahc has joined #ruby
<Vendella> "self is an globally accessible keyword: ruby makes sure that there is always a self that can be accessed in any context. The value of self, however, will change based on the current context."
mary5030 has joined #ruby
bmurt has joined #ruby
<apeiros> IMO badly worded. "will depend on the current context"
mary5030 has quit [Remote host closed the connection]
<apeiros> in the context of toplevel code, self is main. in the context of a class body, self is the class. in the context of a method, self is the object the method is invoked on.
zz_barkerd427 is now known as barkerd427
mary5030 has joined #ruby
hanmac1 has left #ruby [#ruby]
gluten_hell_ has joined #ruby
<Vendella> main
<Vendella> #<Foo:0xa0b4474>
<Vendella> main
<Vendella> It sets it back to main lol
* apeiros sobs
bkxd has joined #ruby
<sevenseacat> lol
<apeiros> if you want to think of it as mutable state - fine. but it's not really changing. your context changes. it always *is* main *in the context of main*.
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<apeiros> that's like going from house A with a white carpet into house B with a red carpet and say "look, the carpet changed to red". then go back and say "look, the carpet changed back to white".
qwertme has joined #ruby
<sevenseacat> good analogy.
<apeiros> along with self, lots of things change. all available @instance_variables for example
<apeiros> and there too, it's IMO a bad way to think of it as your context being stationary and everything being swapped in & out in your context.
sigurding has quit [Quit: sigurding]
<jhass> grn: tbh that does sound like you have some design issues... why prepend if you do not want it overridden?
manzo has quit [Quit: Leaving]
<jhass> grn: wouldn't it be better to instead have a decorator that you can use in the places where you do want the additional functionality?
ismaelga has quit [Remote host closed the connection]
ndrei has joined #ruby
ismaelga has joined #ruby
northfurr has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
gambl0re has quit [Ping timeout: 256 seconds]
<Vendella> I have available the Well grounded Rubyist but it's for 1.9, the black book. Will it hurt if I read about the self keyword there or has it changed?
tuelz has joined #ruby
<apeiros> almost nothing fundamental has changed since 1.9
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tuelz> besides the langauge dying
<tuelz> RIP ruby
haxrbyte has joined #ruby
TinkerTyper has quit [Ping timeout: 246 seconds]
<jhass> tuelz: not very creative, try better
<tuelz> jhass: best I got, you'll have to settle I'm afriad
* apeiros thinks tuelz is dying faster than ruby
<gregf_> haha
* tuelz hopes apeiros is right
krz has quit [Ping timeout: 265 seconds]
<tuelz> I realize that can be taken a couple different ways, so now you've got a clue as to whether you're a glass half full or empty kinda person
jerius has joined #ruby
<adaedra> Ruby is dead, long live ruby?
Soda has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
TinkerTyper has joined #ruby
<al2o3-cr> ruby will never die
failshell has joined #ruby
_blizzy_ has joined #ruby
<tuelz> that's a bit optimistic, but I like where your heart is
mmazing has quit [Ping timeout: 256 seconds]
<vikaton> lol Ruby isnt dying
manzo has joined #ruby
<vikaton> wut r u smoking
<gregf_> python could be
griffindy has joined #ruby
<apeiros> don't feed the trolls.
<gregf_> if theres dope like that :/
<tuelz> I was only kidding friends. It's just a meme
<Andriamanitra> its popularity is declining though
<tuelz> indeed, which is why it's a meme
<adaedra> nice meme
GriffinHeart has joined #ruby
<tuelz> all the cool kids have moved on the the hottest new whatever, that just means our neckbeard density is increasing
<Andriamanitra> it's a shame :/ i think ruby is a lot more fun than python
<tuelz> I use ruby because I think coding isn't fun :p. Anything that lets me do less coding to get to the stuff I really want to do is what I like
scripore has quit [Quit: This computer has gone to sleep]
<tuelz> less time, not necessarily less code
scripore has joined #ruby
<tuelz> I don't mind verbose - it's the mental load of trying to solve recursive puzzles or learn obscure patterns just to read code in a new language that I don't like
workmad3 has joined #ruby
ahmetkapikiran has joined #ruby
paulcsmith has joined #ruby
nateberkopec has quit [Quit: Leaving...]
GriffinHeart has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
delianides has joined #ruby
__chris has joined #ruby
havenwood has joined #ruby
charliesome has quit [Quit: zzz]
livathinos has quit []
codeFiend has quit [Quit: codeFiend]
mase-chatter has quit [Quit: Leaving]
delianides has quit [Ping timeout: 245 seconds]
dblessing has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
davedev24_ has quit [Ping timeout: 265 seconds]
someword has joined #ruby
quimrstorres has quit [Remote host closed the connection]
charliesome has joined #ruby
quimrstorres has joined #ruby
davedev24_ has joined #ruby
cassianoleal has joined #ruby
go|dfish has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
<ddv> for webdev meteor is very exciting to be honest
IrishGringo has joined #ruby
davedev2_ has joined #ruby
quimrstorres has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
Vendella has quit [Quit: Leaving]
krz has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
gaboesquivel has joined #ruby
tomaszbalon has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
riotjones has quit [Remote host closed the connection]
mello has joined #ruby
RegulationD has joined #ruby
idafyaid has joined #ruby
wca has left #ruby [#ruby]
bkxd has quit [Ping timeout: 244 seconds]
Guest7458 has joined #ruby
<shevy> tuelz hard to know whether ruby is really dying. if you look at TIOBE then yeah. If you look at trends in job offerings, then ruby has gained - the curve is almost identical to python, though python started at a higher threshold
Guest7458 has quit [Client Quit]
codecop has quit [Remote host closed the connection]
posixpascal has joined #ruby
<shevy> google trends are also not showing the same, as a rule of thumb http://goo.gl/Si2JNf
<shevy> If you combine all datasets, then javascript is one of the biggest winners
<shevy> php lost slightly
<shevy> perl as well
<shevy> python gained quite a bit
<shevy> ruby is so lala, slight gain
RegulationD has quit [Ping timeout: 244 seconds]
<shevy> I think the big peak before was due to rails
mello has quit [Ping timeout: 265 seconds]
<lala> I heard lala!
Hounddog has quit [Remote host closed the connection]
byprdct has joined #ruby
<lala> shevy: At your service.
<shevy> lol damn
senayar has joined #ruby
senayar has joined #ruby
<shevy> didn't know someone had such a nick
quimrstorres has joined #ruby
byprdct has quit [Max SendQ exceeded]
<havenwood> shevy: They are literally comparing YouTube searches with insane result filtering and other bizarre and uninformative things. Why even look at TIOBE? I'm confused how it's a thing.
<shevy> havenwood because it looks so scientific
<havenwood> shevy: ha!
<lala> shevy: I get that a lot.
<shevy> lala what kind of nick is that anyway :)
<shevy> it's like singing a song!
chinmay_dd has joined #ruby
<lala> shevy: Exactly!
<shevy> TIOBE uses some black magic to make that statistic
<lala> shevy: That was the first thing that came to mind when I had to put in a nick. And then I stuck onto it.
<shevy> hahaha
joast has joined #ruby
jacor_m has joined #ruby
chinmay_dd has quit [Client Quit]
gaboesquivel has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Outta here...]
quimrsto_ has joined #ruby
go|dfish has joined #ruby
quimrstorres has quit [Ping timeout: 244 seconds]
gaboesquivel has joined #ruby
anisha has quit [Quit: Leaving]
Soda has quit [Read error: Connection reset by peer]
balazs has joined #ruby
Soda has joined #ruby
<grn> jhass: I'm experimenting with design by contract. I wrote a module that you can mix into a class. In the class definition you can call .invariant to add a bunch of invariants. Then a module is prepended to the class which copies the whole public interface and verifies the invariant after each method call. It's just an experiment though. Any ideas how can this be done differently?
quimrstorres has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
<jhass> I fear I'm unable to follow why that needs your supermethod proxy
gaboesquivel has quit [Ping timeout: 264 seconds]
quimrsto_ has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
scripore has joined #ruby
<mwlang> TIOBE grades popularity of languages based on amount of “buzz” or churn on the topic. How many searches are being performed, how many messages posted to usenet groups, etc. I think it also factors in number of open source projects written in each language and their activity levels, but I’m not entirely sure…I just know it’s an activity-based scoring system.
scripore has quit [Remote host closed the connection]
bkxd has joined #ruby
allcentury has joined #ruby
arup_r has quit [Remote host closed the connection]
mrsolo has quit [Client Quit]
<mwlang> githut’s more fun than TIOBE: http://githut.info/ :-)
<havenwood> mwlang: Apparently they haven't heard of Github.
<apeiros> grn: IME all implementations of DBC in ruby fail due to unavailability of `old`
<grn> jhass: good point. The problem is you can't use methods in the invariants. For instance if you have an invariant like 'active_users_count >= 0' then after calling any method the control flow is #some_method -> #invariant_verification -> #active_users_count -> #invariant_verification -> #active_users_count -> ... The problem is that invariants are verified after all method calls, including those made from invariants, which leads to infini
<grn> te recursion.
Feyn has quit [Quit: Leaving]
polysics has joined #ruby
tuelz1 has joined #ruby
<mwlang> havenwood: yeah, I think TIOBE becomes less and less relevant as the years go by because I kinda suspect they haven’t changed their data gathering methodologies over the years.
<grn> apeiros: that's a very good point. I haven't considered it yet and concentrated on invariants. Any idea for an implementation?
ismaelga has quit [Remote host closed the connection]
<grn> I wonder how Eiffel implements `old` under the hood.
<apeiros> grn: if I had, I'd already written my own DBC gem :)
<grn> :-D
vire has quit [Ping timeout: 250 seconds]
<apeiros> grn: a good implementation would need COW access on the underlying object-graph
ferr has joined #ruby
<apeiros> expensive in pure ruby
podman has joined #ruby
tuelz has quit [Ping timeout: 258 seconds]
<mwlang> apeiros: Mooooo. Oh, wait, what’s COW?
<apeiros> copy on write
<grn> Yeah. Do you think that a C extension can help?
<mwlang> ah
<apeiros> probably. not sure how much the C API exposes.
kobain has joined #ruby
<grn> I'll probably take a look next Friday.
<apeiros> grn: another issue is missing command-query separation in ruby
<grn> BTW While working on my code I managed to segfault ruby :-)
Ilyes512 has joined #ruby
<apeiros> iirc in eiffel you could only use queries in contracts - which makes sense. since a command might lead to contract violation.
<apeiros> tbh, I don't remember how eiffel handles caching. i.e. a query which caches is to an extent a command (it mutates state)
tjbiddle has joined #ruby
<grn> That would make things simpler. How does Eiffel enforce CQS?
<apeiros> you have to declare it
nobitanobi has joined #ruby
<apeiros> and within a query, you can't use anything which itself isn't a query
RegulationD has joined #ruby
<grn> Sounds good. It's a bit similar to C++'s const methods, isn't it?
<apeiros> I don't do C++, so no idea
<apeiros> I assume a const method is not allowed to modify the receiver?
keyofnight has quit [Ping timeout: 255 seconds]
twistedpixels is now known as zz_twistedpixels
<mwlang> this all sounds like Ada….
<grn> Yup, except the attributes marked as mutable which can be used for caching, etc.
<apeiros> quite possible. good ideas are bound to resurface :)
sonOfRa has quit [Quit: Bye!]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
lavros has joined #ruby
keyofnight has joined #ruby
charliesome has quit [Quit: zzz]
gluten_hell_ has joined #ruby
<mwlang> and some seriously defense oriented thinking and coding, for that matter.
sonOfRa has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
baweaver has joined #ruby
nobitanobi has quit [Client Quit]
dudedudeman has joined #ruby
dstarh has joined #ruby
zz_twistedpixels is now known as twistedpixels
ferr has quit [Quit: WeeChat 1.2]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
HakN99 has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
gluten_hell_ has quit [Read error: No route to host]
<tuelz1> just been getting into pure functional programming myself. Mutate none of the things!
<dudedudeman> shevy: i miss all hte fun apparently
gluten_hell_ has joined #ruby
ntln has joined #ruby
<apeiros> mwlang: DBC is basically TDD++
<tuelz1> dudedudeman: well you missed out on all the bashing too. The other day a couple people said I reminded them of you. Sorry about that.
Soda has quit [Remote host closed the connection]
<apeiros> you kinda have your tests in the code itself. you can run your code with all tests enabled all the time. or you can turn them off for performance.
<dudedudeman> ha, no i ended up seeing that. there's no need to apologize
<apeiros> I found DBC quite amazing and it's one of the features I'd wish for ruby.
<dudedudeman> i just come back and see read some scrollback and i get all O_O
<tuelz1> LOL
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> but while `old` (access to the object in the state prior to method execution) could be added, command/query separation would probably be quite hard
sankaber has joined #ruby
gambl0re has joined #ruby
<mwlang> apeiros: yeah, that’s the philosophy embodied by Ada. I actually like to code that way with Ruby as well in the places that it matters most. for example, calculating prices with discounts, interfacing with external services (credit card processing), etc.
bluish has joined #ruby
DerisiveLogic has joined #ruby
charliesome has joined #ruby
hanmac1 has joined #ruby
tvw has quit [Remote host closed the connection]
xcesariox has joined #ruby
Xiti has joined #ruby
hanmac1 has left #ruby [#ruby]
ed112211 has quit [Quit: ed112211]
oo_ has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 255 seconds]
zarubin_ has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
ferr has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
aganov has quit [Remote host closed the connection]
davedev24_ has joined #ruby
balazs has joined #ruby
zarubin_ has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
nettoweb has joined #ruby
Palmer11 has joined #ruby
codeFiend has quit [Quit: codeFiend]
GriffinHeart has joined #ruby
sinkensabe has quit [Remote host closed the connection]
GriffinHeart has quit [Client Quit]
michaelreid has quit [Ping timeout: 252 seconds]
juanca_ has joined #ruby
livathinos has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
dru` has joined #ruby
charliesome has quit [Quit: zzz]
riotjones has joined #ruby
lkba has joined #ruby
umgrosscol has joined #ruby
joelataylor has quit [Ping timeout: 265 seconds]
gaboesquivel has joined #ruby
Darryl___ has joined #ruby
<silverdust> How can I import another ruby file in irb or pry to use its methods?
premera has joined #ruby
casadei has joined #ruby
<silverdust> I'm more of a Python person and I had thought I'll just do a `import file` but it fails
joelataylor has joined #ruby
<jhass> just require it
<dudedudeman> require './app'?
bronson has quit [Remote host closed the connection]
<silverdust> oh require. Thanks
* silverdust facepalms
moretti has quit [Quit: Leaving...]
lkba_ has quit [Ping timeout: 240 seconds]
casadei_ has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
quimrsto_ has joined #ruby
Spami_ has joined #ruby
casadei__ has joined #ruby
<silverdust> The file also has things outside of functions and while trying to require, I get LoadError: cannot load such file -- urlshorten
mrsolo has joined #ruby
<silverdust> I did a require 'urlshorten'
quimrstorres has quit [Ping timeout: 265 seconds]
casadei has quit [Ping timeout: 272 seconds]
pwattstbd has joined #ruby
<jhass> try ./
lavros has quit [Ping timeout: 245 seconds]
|\|370 has joined #ruby
<pwattstbd> After using YAML.load_file to read in a yml config, how do you return the value of a specific nested key?
casadei_ has quit [Ping timeout: 272 seconds]
ravenreborn has quit [Ping timeout: 264 seconds]
_seanc_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<jhass> pwattstbd: treat it like a hash
<jhass> (because it really is one)
lavros has joined #ruby
northfurr has quit [Quit: northfurr]
<silverdust> I get the same with require './urlshorten'
<jhass> silverdust: you're sure the file exists in the working directory that you started irb in?
jpfuentes2 has joined #ruby
pengin has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
dopie has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
yh has joined #ruby
powersurge has joined #ruby
<powersurge> anyone ever do address verification with activemerchant + authorize.net?
<powersurge> having a real bear of a time working out how to do it
<jhass> ?crosspost powersurge
<ruboto> powersurge, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<jhass> and where you asked first is definitely better suited anyway ;)
polysics has quit []
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 272 seconds]
jpfuentes2 has quit [Ping timeout: 276 seconds]
edwinvdgraaf has joined #ruby
_seanc_ has quit [Quit: _seanc_]
delianides has joined #ruby
<dudedudeman> jhass: do you mind me asking if there is anything you don't know? lol. you've got solutions for everything
lavros has quit [Ping timeout: 258 seconds]
<jhass> if only..
<dudedudeman> ha. what's your background? ruby only? or have you tried all the things
<ebonics> jhass, youre the best
<jhass> you get that impression because I answer stuff I do know ;)
<jhass> * I only
<powersurge> mmm, sorry about the not-explicitly mentioned crosspost
aryaching has joined #ruby
<dudedudeman> it's true! limited sample size
xelim has joined #ruby
<powersurge> just came in here because I hadn't gotten anything actionable
uri_ has joined #ruby
<powersurge> I'm sure you can imagine my frustration
IrishGringo has quit [Ping timeout: 256 seconds]
lavros has joined #ruby
<jhass> dudedudeman: started with about 14, wanted to these "homepage" thingies, so started digging into HTML, CSS and then PHP shortly after, moved over to Python for "GUI stuff, PHP-GTK is not usable!" and picked up Ruby by contributing to diaspora because "gotta do some open source stuff"
<powersurge> heh, diaspora
tjohnson has joined #ruby
<powersurge> I forgot about them
psy_ has joined #ruby
<powersurge> they were going to save our social network soul
watchtheblur has joined #ruby
Aria has quit [Ping timeout: 248 seconds]
<dudedudeman> jhass: everyone has a story. that's pretty neat
myddler has joined #ruby
<powersurge> I had a pretty similar trajectory. I learned python for a change of pace over PHP though, rather than for guis
pengin has quit [Remote host closed the connection]
<powersurge> at my current company I couldn't do python, had to pick between php & ruby
<powersurge> learned ruby in a hurry
ferr has quit [Ping timeout: 258 seconds]
juanca_ has quit [Remote host closed the connection]
<dudedudeman> see, i see a lot of people say 'learned in a hurry'. and I guess that's because they have a background in programming already
tuelz1 has quit [Ping timeout: 240 seconds]
aredridel has joined #ruby
<powersurge> it's deffo easier to learn languages in the same paradigm when you already know one
<myddler> Anyone know of any open source code for a large Rails app, maybe on Github?
<powersurge> it's easy to sidestep from php to python or ruby, for example
twistedpixels is now known as zz_twistedpixels
<powersurge> mostly boils down to learning idioms & ecosystem
<jhass> myddler: discourse
kp666 has quit [Quit: Leaving]
<myddler> jhass: ?
fabrice31 has quit [Remote host closed the connection]
<jhass> diaspora is not small too, but still not a prime example of neat code
<jhass> I'm sure you can google that much ;)
lavros has quit [Ping timeout: 276 seconds]
<myddler> jhass: Looking for an example of a large Rails codebase not typical textbook example
lavros has joined #ruby
<jhass> I just gave you two then
<myddler> jhass: OK, thanks.
Pwnna has joined #ruby
<Pwnna> how do you send a block?
<Pwnna> like i want to call a.send(:method, arg1, arg2, block)
gaboesquivel has quit [Remote host closed the connection]
<Pwnna> where block is a variabel that i have, rather than an inline block
<jhass> powersurge: prefer public_send if possible, either way, just pass the block to it
<jhass> , &block), or ) do end / ) { }
<jhass> ew, tab, fail Pwnna ^
<jhass> sorry
<Pwnna> so just do a.send(:m, a, b, &block) should work?
<jhass> yes
<Pwnna> thanks!
sinkensabe has joined #ruby
<Pwnna> and if i do want to send an inline block i can just do a.send(:m, a, b) { ... }
<jhass> yes
paulcsmith has quit [Quit: Be back later ...]
<jhass> and please consider public_send
<Pwnna> yeah
<Pwnna> just less character to type :P
<Pwnna> for here
jpfuentes2 has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
grn has quit []
havenn has joined #ruby
edwinvdg_ has joined #ruby
Agoldfish has joined #ruby
juanca_ has joined #ruby
<jhass> that's a bad reason if they're not functionally equivalent ;P
ismaelga has joined #ruby
alex88 has quit []
havenwood has quit [Ping timeout: 265 seconds]
juanca_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
snockerton has joined #ruby
darkf has quit [Quit: Leaving]
tuelz1 has joined #ruby
juanca_ has joined #ruby
workmad3 has joined #ruby
senayar has quit [Remote host closed the connection]
athos_diddy has joined #ruby
<athos_diddy> hello everyone
senayar has joined #ruby
<athos_diddy> so i'm building something and this data collection is like 80 lines. https://gist.github.com/genericlady/3b32063860d0664d2ab6
axilla has joined #ruby
manzo has quit [Quit: Leaving]
<athos_diddy> what should i do? leave it in the initialize? can't i use a module or class?
<athos_diddy> i've tired using modules and stuff but the variables are never in scope
Cache_Money has joined #ruby
<athos_diddy> this doesn't look elegant to me. if there's a better way i'm open to learning
<Lingo> seems like a good opportunity to use some loops :)
<jhass> yeah, definitely some patterns in there
<athos_diddy> lol yeah i was doing that... taking a fp route with it in a module
mello has joined #ruby
<athos_diddy> but when i was building the methods the control constructs kept growing
<athos_diddy> maybe i should make smaller methods
jpfuentes2 has quit [Remote host closed the connection]
<jhass> I'd built a method that builds and returns the hash
<Lingo> are you going to modify the ImageLists and stuff? I'd just store it in constants
pdoherty has joined #ruby
<jhass> that additionally
jpfuentes2 has joined #ruby
<athos_diddy> imagelist won't be modified they will be iterated through during the main_routine
roolo has quit [Remote host closed the connection]
<athos_diddy> the only thing modified will be the image instance variable
<athos_diddy> it's a gosu rpg
OrbitalKitten has joined #ruby
moretti has joined #ruby
<Lingo> well, initialize isn't the place then :) abstract the pattern and store it in a constant would be my advice :)
<athos_diddy> everyone does that darn starfighter games but i don't think that's so good.. too many tutorials for it
sinkensabe has quit [Remote host closed the connection]
<athos_diddy> can i share constants with modules?
<athos_diddy> that would be so much cleaner
<athos_diddy> like a mixin
<jhass> mh, I lack a good name for this, what could the hashes be called?
<jhass> direction_animation?
hectortrope has joined #ruby
gizless is now known as gizmore
<athos_diddy> animation_direction can work too :P
bootstrappm has joined #ruby
enebo has joined #ruby
<athos_diddy> then we pass the key it reads more literate
mello has quit [Ping timeout: 245 seconds]
<athos_diddy> anyone wanna hire a jr rails dev in nyc?
doublemalt__ has quit [Ping timeout: 256 seconds]
<havenn> ?rails athos_diddy
<ruboto> athos_diddy, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenn> athos_diddy: So you've tried extracting some methods?
<bootstrappm> morning all
<havenn> athos_diddy: Try again and show us the code so we can help you get it working?
<havenn> bootstrappm: g'mornin
myddler has left #ruby [#ruby]
<athos_diddy> what do you mean extracting some methods? is that technical ruby talk for inheriting and modifying methods from native or required classes?
gauke has quit [Quit: gauke]
<athos_diddy> jahss: thank you i'll work it out
<athos_diddy> jhass: thanks
<athos_diddy> lingo: thank you too
athos_diddy is now known as fluffy_diddy
nettoweb has joined #ruby
<havenn> athos_diddy: When common blocks of code are repeated in multiple places or dividing makes it easier to understand you can pull those parts out into their own method.
<fluffy_diddy> ahhhh
lkba_ has joined #ruby
<fluffy_diddy> ok so break up the collection into methods and require that module
Pwnna has left #ruby ["Leaving"]
hectortrope has quit [Quit: WeeChat 0.4.2]
<fluffy_diddy> i can even build some loops and be more DRY
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Client Quit]
<fluffy_diddy> havenn: is that the right idea?
<fluffy_diddy> sry i taught myself
<fluffy_diddy> some gaps in my knowledge despite all the books i've read lol
<havenn> fluffy_diddy: Extract method just means extracting into the same namespace.
<havenn> fluffy_diddy: Here's an example: https://www.jetbrains.com/ruby/help/extract-method.html
TheNumb is now known as Numb
Numb is now known as TheNumb
jacor has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 276 seconds]
jacor has joined #ruby
lessless has joined #ruby
lavros has quit [Quit: leaving]
sevenseacat has quit [Quit: Me dun like you no more.]
lavros has joined #ruby
<havenn> fluffy_diddy: The example I linked actually doesn't have much explanation, but searching for Ruby and extract method should turn up good results.
bronson has joined #ruby
<fluffy_diddy> it actually doe
<havenn> fluffy_diddy: Oh good. :)
Hijiri has quit [Quit: WeeChat 1.0.1]
<fluffy_diddy> havenn: this is a great example
senayar has quit []
_seanc_ has joined #ruby
<fluffy_diddy> i know it looks a little longer form but this is loose coupline
<fluffy_diddy> which leads to higher cohesion
patrick__ has joined #ruby
<fluffy_diddy> sort of like using closures
ki0_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fluffy_diddy> but we're doing method extraction
delianides has quit [Remote host closed the connection]
<jhass> fluffy_diddy: http://paste.mrzyx.de/psytgapyo my stab at it
jerius has quit [Ping timeout: 272 seconds]
giuseppesolinas has joined #ruby
baroquebobcat has joined #ruby
sonOfRa has quit [Quit: Bye!]
<fluffy_diddy> jhass: very nice! I was about to mentioned that two of those actions don't have 4 images (scenes/frames) one has one and the other has three
<fluffy_diddy> but we can use compact! or something
<fluffy_diddy> and eliminate the nil
delianides has joined #ruby
ki0 has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 276 seconds]
juanca_ has quit [Remote host closed the connection]
<fluffy_diddy> ::cry:: and here i typed up 80 lines of this... a year or on the job experience and i won't be making these mistakes. thank you everyone
|\|370 has quit []
werekitten is now known as cats
arta82 has joined #ruby
ki0_ has quit [Ping timeout: 256 seconds]
<jhass> fluffy_diddy: if they consistently have 3, just make the 4 a parameter
peteykun has quit [Quit: Leaving]
<jhass> def build_animation(action, frames=4)
<fluffy_diddy> they consistantly have 4
<fluffy_diddy> yeah i was gonna pass it as argument with assignment
<jhass> I mean for the four directions
<fluffy_diddy> each direction has 4 images
commondream has joined #ruby
<fluffy_diddy> each action has 4 directions and 4 images
hectortrope has joined #ruby
<jhass> except for dead if I revisit your original code ;P
<fluffy_diddy> 1 action has 4 directions 3 images and right dead has 1
<fluffy_diddy> :P
<fluffy_diddy> but i can make it work from the example ;)
<jhass> anyway, yeah, should give you some ideas
<fluffy_diddy> precisely
Lucky__ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanca_ has joined #ruby
oo_ has joined #ruby
havenn is now known as havenwood
paulcsmith has joined #ruby
gaboesquivel has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
a13x212 has joined #ruby
<fluffy_diddy> that code won't work jhass with rmagick
<fluffy_diddy> it's ok it's informative
rubie has joined #ruby
<fluffy_diddy> i think it will i'll try it thanks again
<jhass> doesn't work how?
maletor has joined #ruby
juanca_ has quit [Remote host closed the connection]
Channel6 has joined #ruby
<fluffy_diddy> i have to go now but i'll test to see if i can pass an array as an argument to imagelist that's all
<jhass> fluffy_diddy: did you take out the *?
<fluffy_diddy> i didn't run anything yet
<jhass> the * makes it so that hte arrays items are passed as individual args
<fluffy_diddy> i gotta go but i'll be back to work it out. what you gave me will help
<fluffy_diddy> i know
dfockler has joined #ruby
delianides has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
failshell has quit [Remote host closed the connection]
hmsimha has joined #ruby
hmsimha has left #ruby ["Leaving"]
jenrzzz has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjim_ has joined #ruby
catcher has joined #ruby
Pumukel has joined #ruby
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
bricker has joined #ruby
ismaelga has quit [Remote host closed the connection]
thiagovsk has joined #ruby
DerisiveLogic has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
IrishGringo has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith has quit [Quit: Be back later ...]
gaboesquivel has quit [Remote host closed the connection]
Soda has joined #ruby
<izzol> I have a problem with checking files because of the name :(
<izzol> I'm doing something like type?(file)
withnale_ has quit [Ping timeout: 272 seconds]
<izzol> and then in that method I'm checking the file.
failshell has joined #ruby
<izzol> but of the file has a name: "TEST\ Quote-225255.pdf"
<izzol> I'm getting simply No such file or directory :(
rkazak has joined #ruby
<jhass> I bet that \ is what your shell needs
pengin has joined #ruby
<jhass> try "TEST Quote-225255.pdf"
<izzol> jhass: yes, correct.
codeFiend has joined #ruby
dopie has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 258 seconds]
ixti has quit [Quit: WeeChat 1.1.1]
ixti has joined #ruby
dopie has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<izzol> What do you mean?
<izzol> When I check it by puts, I have:
<izzol> 1 # ruby enc.rb
<izzol> 2 "/tmp/enc/queue//2n/TET Quote-225255.pdf"
<izzol> So this looks fine
<jhass> then "TET Quote-225255.pdf"
<jhass> no need for the \
<jhass> and missing S
<izzol> ah, no this is just anothertest.
baweaver has joined #ruby
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<izzol> I think my bash cannot figure it out.
ismaelga has joined #ruby
mistermocha has joined #ruby
<jhass> well, then I have no clue what your problem is, you keep adding variables to it and specify basically nothing
allcentury has quit [Ping timeout: 264 seconds]
thoffmeyer has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass> I'll stop guessing
mistermo_ has joined #ruby
<izzol> So in line 62 I'm calling type?(file).
<izzol> And the file has a space (as most of them from the MS) :(
<izzol> And then in line 22 my bash command cannot find it.
balazs has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
<jhass> ah, I wish there was an argument form for ` :/
<jhass> anyway, add quotes
posixpascal has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> `/usr/bin/file -bi "#{File.join(temp_dir, file)}"`.split("/")[1].split(";")[0]
mistermocha has quit [Ping timeout: 255 seconds]
konsolebox has quit [Quit: Leaving]
<jhass> `/usr/bin/file -bi "#{File.join(temp_dir, file)}"`[%r{\w+/([^;]+)}, 1]
iamninja has quit [Read error: Connection reset by peer]
gaboesquivel has joined #ruby
<izzol> works now :-)
<izzol> Thanks jhass :)
<izzol> So the problem was with the quotes somehow hmm
pengin has quit [Remote host closed the connection]
towski_ has joined #ruby
<jhass> yup, ` goes through a shell
<izzol> ahh
<izzol> right
<izzol> I'm stupid.
<izzol> :>
denver has quit [Ping timeout: 272 seconds]
sonOfRa has joined #ruby
c0m0 has quit [Ping timeout: 256 seconds]
<fluffy_diddy> izzol: if everytime we learn something or overlook something and it was known as "stupid" then einstein must be the dumbest mofo. he's like stupid smart
denver has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
michaelreid has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
granthatcher has quit []
yaogwai has joined #ruby
livathinos has quit []
allcentury has joined #ruby
huddy has joined #ruby
Hijiri has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
rkazak has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
DerisiveLogic has joined #ruby
<dorei> how can i "express" U+00B4 in ruby?
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FernandoBasso has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
uri_ has quit [Ping timeout: 272 seconds]
<jhass> >> "\u00b4"
<ruboto> jhass # => "´" (https://eval.in/372607)
tomphp has quit [Ping timeout: 250 seconds]
bMalum has joined #ruby
ismael__ has joined #ruby
FernandoBasso has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 240 seconds]
paulcsmith has joined #ruby
paulcsmith has quit [Client Quit]
mistermocha has joined #ruby
ki0 has joined #ruby
thoffmeyer has joined #ruby
thoffmeyer has joined #ruby
Zai00 has quit [Quit: Zai00]
snockerton has quit [Quit: Leaving.]
ghr has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
mistermo_ has quit [Ping timeout: 265 seconds]
x44x45x41x4E has joined #ruby
ki0 has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
x44x45x41x4E has quit [Client Quit]
snockerton has joined #ruby
<axilla> nah never stupid man, development is like that.. its always something so small and "stupid" when something should be working and isn't.
joelataylor has quit [Quit: Be back later ...]
joelataylor has joined #ruby
juanda has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
sonOfRa has quit [Quit: Bye!]
Cache_Money has quit [Quit: Cache_Money]
ghr has quit [Ping timeout: 276 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
joelataylor has quit [Ping timeout: 265 seconds]
<apeiros> !ban bootstrappm no spam
<bootstrappm> heyyy apeiros you see me in here all the time hahah, just thought you guys would like to know
<bootstrappm> might build me a gaming rig for like $600
<apeiros> I don't remember seeing you speak
bmurt has quit [Read error: Connection reset by peer]
scripore has joined #ruby
djbkd has joined #ruby
scripore has quit [Client Quit]
<baweaver> apeiros: He's fine
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
<baweaver> Lucky blank though that the bot isn't paying attention, heh
mleung has joined #ruby
arta82 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
sonOfRa has joined #ruby
tuelz1 has quit [Quit: WeeChat 1.1.1]
OrbitalKitten has joined #ruby
lkba_ has quit [Ping timeout: 240 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bootstrappm> truth, phew!
<michael_mbp> hey guys
<apeiros> naw, I forgot the duration
<michael_mbp> just rolled out the new blog build
<apeiros> and I haven't yet updated it to make duration truly optional
<michael_mbp> thoughts http://mwdesilva.com/ ?
xelim has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 256 seconds]
<bootstrappm> I really like it michael_mbp! did you design it also or just the setup?
juanda has quit [Read error: Connection reset by peer]
pengin has quit [Read error: Connection reset by peer]
<michael_mbp> bootstrappm: I did it from scratch.
pengin has joined #ruby
<bootstrappm> nice job!
n008f4g_ has joined #ruby
<michael_mbp> thanks, well it's a overhaul of the older one... the newer responsive look is nicer.
<bootstrappm> I'm a fan of the title fade in
paulcsmith has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
<michael_mbp> open the console and drop this in $(document).trigger('hideSearchBar');
<michael_mbp> I'm not sure if that's useful yet ;)
juanda has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
<michael_mbp> ah $(document).trigger('showSearchBar')
mrsolo has joined #ruby
mmazing has joined #ruby
daum_ has joined #ruby
sarkyniin has joined #ruby
lavros has quit [Quit: leaving]
yqt has joined #ruby
HotCoder has joined #ruby
barkerd427 is now known as zz_barkerd427
mello has joined #ruby
yh has quit [Ping timeout: 272 seconds]
C1V0 has joined #ruby
yh has joined #ruby
quimrstorres has joined #ruby
Igorshp has quit [Remote host closed the connection]
arta82 has joined #ruby
northfurr has joined #ruby
mello has quit [Ping timeout: 240 seconds]
quimrsto_ has quit [Ping timeout: 255 seconds]
arta82 has quit [Max SendQ exceeded]
joelataylor has joined #ruby
juanda has quit [Quit: juanda]
mistermocha has quit [Ping timeout: 245 seconds]
yh has quit [Remote host closed the connection]
yh has joined #ruby
kies has joined #ruby
nettoweb has joined #ruby
pandaant has joined #ruby
zz_twistedpixels is now known as twistedpixels
platzhirsch has quit [Quit: Leaving.]
jpfuentes2 has joined #ruby
<bootstrappm> got the s3 SDK stuff figured out btw from my question the other day: v2 has a more low level client interface and a resource interface. Examples here: https://gist.github.com/frankpinto/4c5cc7d8272f994ea509
<bootstrappm> necessary environment variables to set: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION
<bootstrappm> for US s3 region is always us-east-1
<michael_mbp> cool
juanda has joined #ruby
mmazing has quit [Ping timeout: 250 seconds]
rindolf has joined #ruby
<rindolf> Hi all. Sup?
<michael_mbp> rindolf: hey.
<michael_mbp> just toying with the new blog http://mwdesilva.com/
<rindolf> michael_mbp: ah, let me see.
axwl has quit [Remote host closed the connection]
ravenreborn has joined #ruby
oo_ has quit [Remote host closed the connection]
<michael_mbp> previously looked like this http://webcache.googleusercontent.com/search?q=cache:dx1qAyhsmBIJ:mwdesilva.com/+&cd=1&hl=en&ct=clnk&gl=lk
<rindolf> michael_mbp: the content seems mostly way over my head.
einarj has quit [Remote host closed the connection]
patrick__ has quit [Quit: Leaving]
<michael_mbp> ah...
MatthewsFace has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
pengin has quit [Read error: Connection reset by peer]
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
pengin has joined #ruby
Vendella has joined #ruby
bmurt has joined #ruby
<Vendella> Is The pickaxe book for 1.9 and 2.0 still relevant to look into?
<axilla> hi all, i ahve this little problem here.. i'm trying to download a file from a given URL and then get the path of file at file.path
<axilla> but file is returning a fixnum i assume is the size of the file when the block is closed
<axilla> and not the file object itself
<sarkyniin> Vendella: yeah
<axilla> how can I correct this?
<sarkyniin> though I'm myself looking for exercises to do
tesuji has joined #ruby
<sarkyniin> while reading the book
<Vendella> sarkyniin, What?
juanda has quit [Quit: juanda]
nahtnam has quit [Quit: Connection closed for inactivity]
<jhass> axilla: check tempfile stdlib
<axilla> k, figured as much, thanks
<sarkyniin> Vendella: the book is still relevant
<axilla> i can do that route
<sarkyniin> though it doesn't contain any exercises
<Vendella> I don't want it for learn Ruby lol
<jhass> axilla: to explain, it returns the return value of the block, which is the return value of the write call, which is the amount of bytes written by that call
gauke has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
sandelius has joined #ruby
<axilla> ahh got it
<havenwood> axilla: You might consider just using IO#write: file_content = RestClient.get url; File.write File.join(Rails.root, 'tmp', filename), file_content
Hijiri has joined #ruby
<jhass> nah, use tempfile
<jhass> don't duplicate its logic
<havenwood> jhass: Good point, if really tmp.
<havenwood> axilla: This just a tmp file?
ki0 has joined #ruby
ndrei has joined #ruby
<havenwood> jhass: My eyes glazed over at Rails.root and the 'tmp' didn't register. :P
andikr has quit [Remote host closed the connection]
<jhass> :P
giuseppesolinas has quit [Quit: Leaving]
__chris has quit [Quit: This computer has gone to sleep]
sngeth has joined #ruby
axl_ has joined #ruby
ghr has joined #ruby
bogdanteleaga has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
snockerton has quit [Quit: Leaving.]
RegulationD has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 258 seconds]
bluish has left #ruby [#ruby]
<Vendella> Sure the pickaxe book for 1.9 and 2.0 is not outdated?
juanca_ has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
<bootstrappm> Vendella: what did you mean by "I don't want it for learn Ruby"?
sibchcoder has joined #ruby
juanca_ has quit [Remote host closed the connection]
jpfuente_ has joined #ruby
<Vendella> I have it to look things up
<Vendella> not to raw read it.
<Vendella> I'm currently reading Eloquent Ruby.
jpfuentes2 has quit [Ping timeout: 244 seconds]
DerisiveLogic has quit [Ping timeout: 272 seconds]
juanda has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
ravenreborn has quit [Ping timeout: 245 seconds]
FernandoBasso has joined #ruby
juanca_ has joined #ruby
DerisiveLogic has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
HakN99 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103946]]
baroquebobcat has quit [Quit: baroquebobcat]
bronson has joined #ruby
jpfuente_ has quit [Ping timeout: 265 seconds]
baroquebobcat has joined #ruby
NiVanc has joined #ruby
yaogwai has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
Zai00 has joined #ruby
rubie has quit [Remote host closed the connection]
pengin has quit [Read error: Connection reset by peer]
pengin_ has joined #ruby
kirun has joined #ruby
HotCoder has quit [Ping timeout: 265 seconds]
pdoherty has quit [Ping timeout: 252 seconds]
juanda has quit [Quit: juanda]
dionysus69 has joined #ruby
commondream has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 258 seconds]
gluten_hell_ has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
rgb-one has joined #ruby
cubesandcode has joined #ruby
<rgb-one> Hey
_blizzy_ has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
dionysus69 has quit [Client Quit]
fedexo has joined #ruby
dionysus69 has joined #ruby
blt has joined #ruby
dfockler has quit [Remote host closed the connection]
gluten_hell_ has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
<apeiros> Vendella: as said before, no fundamental changes between 1.9 and 2.2. any book which covers 1.9 will be fine.
dionysus69 has quit [Client Quit]
gauke has quit [Ping timeout: 252 seconds]
<Vendella> apeiros, I was told that the well grounded rubyist for 1.9 was outdated, hmm.
<apeiros> the one thing which needs explanation is refinements. and those are atm rarely used.
<Vendella> Well, will Eloquent Ruby and the piackaxe book do good for learning Ruby?
<apeiros> Vendella: there may be a newer one
cubesandcode has quit [Ping timeout: 240 seconds]
sibchcoder has quit [Remote host closed the connection]
<apeiros> eloquent ruby is probably more for users who already know the basics. but I haven't read it myself.
<Vendella> I have already read half the book of it.
Ainieco has joined #ruby
<Vendella> I have programming experience.
<Ainieco> hello
<Vendella> half the book*
<havenwood> Vendella: The second edition of the Well Grounded Rubyist covers modern Ruby. In the older version you'd quickly run into examples that won't work but most of the book remains relevant. Newer editions are of course preferred.
<rgb-one> anyone know if redcarget supports `<aside markdown="1">...</aside>`? This would enable using markdown within aside aside tags.
<havenwood> Ainieco: hi
<Vendella> I decided to go with Eloquent and The Pickaxe book.
<Ainieco> just run rubocop and it told me that 'Assignment Branch Condition size for foo is too high. [23.54/15]' what does it mean?
<Vendella> Because I already have them available.
The_Phoenix has quit [Read error: Connection reset by peer]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
bluOxigen has joined #ruby
balazs has joined #ruby
<axilla> havenwood: thanks for the tips i got it all working beautifully :)
workmad3 has quit [Ping timeout: 276 seconds]
<axilla> and thanks jhass
<axilla> now able to upload files from a url to our system via api weee
gauke has joined #ruby
ismael__ has quit [Remote host closed the connection]
<jhass> axilla: oh where? I'd like you to download a radio stream :P
<balazs> hello, any way you guys know to specify in a .erb file not to apply layout.erb, just render things without it ?
hs366 has joined #ruby
<jhass> balazs: sounds like rails, see #rubyonrails
commondream has joined #ruby
<balazs> jhass: sinatra
<jhass> ah
<axilla> jhass: well, i was writing ruby, but ya its a rails project
serivich has joined #ruby
<axilla> i like to keep ruby to ruby
<Ainieco> havenwood: thanks
quimrstorres has quit [Remote host closed the connection]
<jhass> balazs: surely sinatra's erb call takes some options too
quimrstorres has joined #ruby
codecop has joined #ruby
<balazs> right, but I think the only option for me is from within the erb, not from app.rb . I'm using a dashboard framework called dashing, so app.rb is already set.
<jhass> erb :foo, layout: false perhaps?
<hs366> Hi jhass
<jhass> balazs: uh, then I have to bail, doubt it's possible though
<hs366> Q, can i use Component world in my report for Excon gem ? is the same as component in other programing languages ?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
newuser2015 has joined #ruby
nettoweb_ has joined #ruby
axl_ has quit [Ping timeout: 255 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has quit [Remote host closed the connection]
vikaton has quit []
commondream has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
advorak has joined #ruby
gauke has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
<advorak> I'm wanting to do something like "splitting" an array much like splitting a string. https://gist.github.com/advorak/f09d05356c1cdd3b7e00 is what I'm looking at doing. If anybody has any guidance as to where to start or if there are any other methods I should be exploring. Thanks! :-)
<jhass> advorak: that should be slice_before or slice_after, I never remember
arup_r has joined #ruby
mwlang has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: Leaving]
commondream has quit [Ping timeout: 246 seconds]
MatthewsFace has quit [Remote host closed the connection]
<jhass> >> ["-----","a","-----","b","c","-----","d"].slice_before {|x| x == "-----" }.map {|chunk| chunk.drop(1) }
<ruboto> jhass # => [["a"], ["b", "c"], ["d"]] (https://eval.in/372647)
tomphp has joined #ruby
<advorak> Oh great. Thank you. :-)
<baweaver> >> ["-----","a","-----","b","c","-----","d"].slice_after {|x| x == "-----" }.map {|chunk| chunk.drop(1) }
<ruboto> baweaver # => [[], ["-----"], ["c", "-----"], []] (https://eval.in/372649)
<advorak> I knew I'd used slice_before and slice_after before, but I couldn't remember the names.
gauke has joined #ruby
axl_ has joined #ruby
<bootstrappm> that's cool! never knew about that one
RegulationD has joined #ruby
rubie has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
denver has quit [Remote host closed the connection]
zz_Outlastsheep has quit [Ping timeout: 276 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
tomphp_ has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
HotCoder has joined #ruby
<jhass> >> ["-----","a","-----","b","c","-----","d"].chunk {|x| x != "-----" }.map(&:last)-[["-----"]] # or for a silly version :P
<ruboto> jhass # => [["a"], ["b", "c"], ["d"]] (https://eval.in/372655)
Palmer11 has quit [Quit: Palmer11]
stylus has joined #ruby
bruno- has joined #ruby
sandelius has joined #ruby
blt has quit [Quit: WeeChat 1.2]
millerti has joined #ruby
aryaching has quit []
tomphp has quit [Ping timeout: 272 seconds]
bronson has quit [Remote host closed the connection]
auroara has joined #ruby
<auroara> yo
tomphp_ has quit [Client Quit]
<jhass> ya
<auroara> which ruby installer should i get? http://rubyinstaller.org/downloads/
<jhass> 2.1 I heard
<havenwood> auroara: 32-bit 2.1.6
<auroara> i want the latest but the notice is very discouraging :(
FernandoBasso has quit [Remote host closed the connection]
<auroara> oh okay
ghr has joined #ruby
<auroara> thx
<jhass> or maybe get VirtualBox straight away :P
<havenwood> auroara: Windows support lags a bit behind the rest so you may bleed out on the bleeding edge.
<auroara> x)
coderhs has joined #ruby
scripore has joined #ruby
baweaver has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 272 seconds]
__chris has joined #ruby
pwattstbd has joined #ruby
User458764 has joined #ruby
sepp2k has joined #ruby
Hijiri has joined #ruby
snockerton has joined #ruby
failshell has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
platzhirsch has joined #ruby
quimrstorres has joined #ruby
jamesaxl has joined #ruby
coderhs has quit [Quit: Leaving]
newuser2015 is now known as elemenopyuknowme
rubie has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
leafybasil has quit [Remote host closed the connection]
apt-get_ has joined #ruby
rdark has quit [Read error: Connection reset by peer]
rindolf has quit [Quit: Leaving]
juanca_ has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
rdark has joined #ruby
spider-mario has joined #ruby
tomphp has joined #ruby
mello has joined #ruby
auroara has quit [Quit: Leaving]
sarkyniin has quit [Ping timeout: 272 seconds]
gauke has quit [Quit: gauke]
phizzbuzz has joined #ruby
djbkd has joined #ruby
advorak has quit [Ping timeout: 272 seconds]
Cache_Money has joined #ruby
<bootstrappm> michael_mbp: been meaning to learn docker, you have any tutorial you recommend?
mello has quit [Ping timeout: 256 seconds]
gfedel has joined #ruby
<michael_mbp> bootstrappm: try the digital ocean guide
<michael_mbp> the default guide is decent too.
<michael_mbp> the trick is figuring out the best way to pack orchestration with Docker.
<bootstrappm> thanks, which do you use? we were just talking about ansible vs saltstack here yesterday
apt-get__ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
apt-get_ has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
juanca_ has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
penpen has joined #ruby
Meeh has quit [Ping timeout: 276 seconds]
nettoweb_ has quit [Read error: Connection reset by peer]
<penpen> puts "chello"[1..-1]
jordanm has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
pengin_ has quit [Remote host closed the connection]
<bootstrappm> >> puts "chello"[1..-1]
<ruboto> bootstrappm # => hello ...check link for more (https://eval.in/372677)
<bootstrappm> a gift for you penpen ^
pengin has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
<apeiros> penpen? the penpen from #ruby-de?
umgrosscol has quit [Remote host closed the connection]
<penpen> apeiros: indeed
<penpen> have been absent for eons
pengin has quit [Ping timeout: 265 seconds]
sngeth has quit [Quit: Lost terminal]
Igorshp has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
shevy has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
_seanc_ has quit [Quit: _seanc_]
sanguisdex has quit [Quit: Leaving.]
bruno- has joined #ruby
griffindy has joined #ruby
zz_Outlastsheep has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
mase-chatter has joined #ruby
spider-mario has joined #ruby
sanguisdex has joined #ruby
nux443 has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
nux443 has joined #ruby
leafybasil has joined #ruby
Andranik has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
mleung has quit [Quit: mleung]
iamninja has joined #ruby
Spami has joined #ruby
allcentury has joined #ruby
Rollabunna has joined #ruby
mleung has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bollullera has joined #ruby
<toretore> any alternatives to rubydoc.info?
randiman has joined #ruby
mujou has quit [Ping timeout: 265 seconds]
<jhass> rubydoc.org
<jhass> scnr
<jhass> what do you dislike about it?
<apeiros> ri
<jhass> for core, stdlib & rails devdocs.io is pretty neat
Hijiri has quit [Quit: WeeChat 1.0.1]
maletor has quit [Read error: Connection reset by peer]
<jhass> omniref is neat for "wth does this shit come from", though I hate the interface
penpen has quit [Quit: Page closed]
bollullera has left #ruby [#ruby]
allcentury has quit [Ping timeout: 246 seconds]
cjim_ has quit [Read error: Connection reset by peer]
<toretore> jhass: looks like it's the same
__chris has quit [Quit: This computer has gone to sleep]
<toretore> rdoc.info is also the same
cjim_ has joined #ruby
<jhass> yes, thus "scnr" ;D
<toretore> i like it, it just doesn't work atm
<toretore> oh
<jhass> huh, seems to work here
lkba has joined #ruby
<jhass> https is broken I think
FernandoBasso has joined #ruby
<jhass> ah, I only use it for gems
<jhass> devdocs.io for core & stdlib
penpendede has joined #ruby
juanca_ has quit []
cjim__ has joined #ruby
penpendede is now known as penpen
tomphp has joined #ruby
zotherstupidguy has joined #ruby
jacor has quit [Read error: Connection reset by peer]
bronson has joined #ruby
ghr has joined #ruby
_seanc_ has joined #ruby
arup_r has joined #ruby
jacor has joined #ruby
clocKwize has joined #ruby
randiman has quit [Quit: (null)]
bb010g has joined #ruby
cjim_ has quit [Ping timeout: 258 seconds]
dhosterman has quit [Quit: WeeChat 0.4.2]
Cache_Money has quit [Quit: Cache_Money]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kenndel has joined #ruby
allcentury has joined #ruby
iliketurtles has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
edwinvdg_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
apxm has joined #ruby
gizmore has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 272 seconds]
kropotkin__ has joined #ruby
tjbiddle has joined #ruby
gizmore has joined #ruby
fluffy_diddy has quit []
edwinvdgraaf has quit [Ping timeout: 265 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apt-get_ has joined #ruby
gfedel has quit [Ping timeout: 240 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
apt-get__ has quit [Ping timeout: 258 seconds]
dhosterman has joined #ruby
dfockler has joined #ruby
workmad3 has joined #ruby
juanda has joined #ruby
bmurt has quit [Max SendQ exceeded]
Xiti has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has quit [Ping timeout: 244 seconds]
clocKwize has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
bmurt has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
Xoro has joined #ruby
ravenreborn has joined #ruby
yalue has quit [Quit: return 0;]
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has joined #ruby
vikaton has joined #ruby
Lucky__ has joined #ruby
millerti has joined #ruby
clocKwize has joined #ruby
swgillespie has joined #ruby
nettoweb has joined #ruby
blt has joined #ruby
delianides has joined #ruby
mistergibson has joined #ruby
apxm has quit [Ping timeout: 255 seconds]
A205B064 has joined #ruby
clocKwize has quit [Ping timeout: 252 seconds]
kalusn has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
CorySimmons has joined #ruby
quimrstorres has joined #ruby
clocKwize has joined #ruby
kaleido has joined #ruby
codecop has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
paulcsmith has joined #ruby
pandaant has quit [Remote host closed the connection]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
Hijiri has joined #ruby
sinkensabe has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 258 seconds]
senayar has joined #ruby
commondream has joined #ruby
sinkensabe has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<daum_> hey guys - i have a server which mainly runs php apps but there is one ruby app, what is the easiest way to get it setup to run? I use nginx, and seen puma, passenger, thin, etc. so wasn't sure what is the best/easiest to setup for this app. The app itself is a low traffic site if that matters
TheHodge has joined #ruby
shuber_ has joined #ruby
<apeiros> daum_: what do you use to run php?
<daum_> php-fpm
<jhass> I'd vote for reverse proxy to puma or unicorn
<apeiros> what httpd?
<daum_> nginx
<baweaver> "I use nginx"
<apeiros> then easiest is probably passenger
<apeiros> proxying to puma or unicorn is also very common
<jhass> I disagree
<pipework> The easiest to set up would be passenger standalone with a reverse proxy from nginx.
<kaleido> i am a unicorn fan
<jhass> passenger on nginx is a pain
<apeiros> jhass: sure? ok, I only have experience with passenger on apache, and that was piece of cake.
<baweaver> Passenger is more of an apache tagalong
<pipework> For mri, I prefer puma, unicorn, thin, but use other stuff in other situations.
<kaleido> i'm with jhass
<jhass> apeiros: yeah, you need to recompile nginx since it doesn't do dynamic module loading
<baweaver> Nginx? Bad idea for Passenger, it does some nasty stuff
<pipework> passenger with nginx has been pretty easy to handle with standalone.
<kaleido> but i agree it's easy on apache
clocKwize has quit [Ping timeout: 246 seconds]
quimrstorres has quit []
<pipework> Just reverse proxy to it.
<baweaver> mainly wanting to make its own version of nginx among other stupid things
<apeiros> ok. scrap passenger then. I assumed the experience would be similar.
<jhass> daum_: when you google for a reverse proxy config, just make sure to catch one that uses try_files and not if something
<daum_> so for puma which i installed and tested via bundle exec puma -e production -c config/puma.rb seems to work well, my one thing i can't figure out is the way to get it to start on boot
elemenopyuknowme has left #ruby [#ruby]
<baweaver> init.d
<daum_> jhass, yup got that! thanks
<jhass> daum_: what init daemon?
<daum_> upstart - on ubuntu 14.04
* baweaver is just going off of defaults here.
Rollabunna has quit [Remote host closed the connection]
<jhass> ah, they say it's easy to write configs for that, but I have no experience and probably would go with daemontools there
<daum_> jhass, i saw the jungle stuff - but wasn't clear how to get it to run as a specific user
_ht has quit [Quit: Konversation terminated!]
mistermocha has joined #ruby
quimrstorres has joined #ruby
CorySimmons has quit [Quit: Bye!]
<daum_> should i just use a simple bash type script? not sure the proper way to write that. Would it be a sudo -uuser -s then cd /home/project... && bundle exec puma ... ? or that going the wrong way about it
mistermo_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<jhass> I'd expect upstart to provide user switching and working directory switching
<miah> that should work, you can also bundle install --binstubs to create little wrapper scripts; and you can just execute 'puma'
<jhass> and with that you should be able to point it straight to the bundle exec command
<daum_> ok thanks will take a look into it
<miah> also upstart is awful and be prepared for pain.
<jhass> do the binstubs patch up the working directory though? iirc they don't
<miah> its been a while since i used them. maybe?
<jhass> yeah, daemontools might in fact be easier
casadei__ has quit [Remote host closed the connection]
<miah> we deploy runit on all of our ubuntu servers =)
mleung has quit [Quit: mleung]
juanpaucar has joined #ruby
<miah> next step is to either move away from ubuntu or embrace systemd in the next lts release
<jhass> systemd is <3
<miah> if we moved to another distro we'd probably be embracing systemd anyways
<miah> agreed.
lkba_ has joined #ruby
jstanton has quit [Ping timeout: 240 seconds]
kaleido has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bootstrappm> what's distros are using systemd right now?
<bootstrappm> is the whole init.d stuff upstart? or is that what came before upstart? what is "service start blah"
lindii_ has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
<miah> archlinux
<jhass> I know fedora, arch, debian and doesn't latest ubuntu too?
<miah> yes
<miah> ubuntu 15 has systemd
<miah> even ubuntu 14.04 lts has it
<miah> its just not enabled
rdark has quit [Quit: leaving]
allcentury has quit [Ping timeout: 256 seconds]
<jhass> I run arch on my personal servers where I can ;D
<miah> and it may be a older version or only the logind components i dunnoo. i havent gone too far down that road
pengin has quit [Read error: Connection reset by peer]
<lindii_> hi.. any idea how to upgrade to v 2.0.0 in ubuntu. I have tried thousand of times and i always get 1.9.3 with ruby -v
commondream has quit [Remote host closed the connection]
pengin has joined #ruby
mleung has joined #ruby
mleung has quit [Remote host closed the connection]
<jhass> lindii_: try the brightbox packages https://www.brightbox.com/docs/ruby/ubuntu/
paulcsmith has quit [Quit: Be back later ...]
commondream has joined #ruby
<bootstrappm> lindii_: how are you trying to upgrade? are you on ubuntu?
<lindii_> bootstrappm: mint basically. yes
gambl0re has quit [Ping timeout: 258 seconds]
<bootstrappm> then yeah, brightbox
<c355E3B> lindii_: is this your workstation?
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lindii_> will give it a try thanks
<lindii_> c355E3B: yes
failshell has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
<c355E3B> You may want to use rbenv or rvm over the packages
<c355E3B> makes switching between versions simpler
<daum_> jhass, thanks got it all going!
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<lindii_> c355E3B: is it more simple that way?
_blizzy_ has joined #ruby
<miah> it can be
TheNet has joined #ruby
<c355E3B> Thoes tools expose some commands that let you pick which ruby to use on a per project basis
ghr has joined #ruby
mello has joined #ruby
bMalum has quit [Quit: bMalum]
paulcsmith has joined #ruby
bmurt has quit []
lkba has joined #ruby
segfalt has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> chruby and ruby-install > RVM > *
lkba_ has quit [Ping timeout: 272 seconds]
doublemalt__ has joined #ruby
hs366 has quit [Quit: Leaving]
mello has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
joneshf-laptop has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
<miah> chruby doesnt do .ruby_version unless you also 'source /usr/local/share/chruby/auto.sh'
MatthewsFace has quit [Read error: Connection reset by peer]
<miah> its more 'automatic' with rbenv/rvm. still. chruby is better =)
cassianoleal has quit [Read error: Connection reset by peer]
<havenwood> chruby \o/
<miah> or i should say, my preferred choice.
senayar has quit [Read error: Connection reset by peer]
<miah> rbenv/rvm are both good. so long as you learn to work with their systems.
MatthewsFace has joined #ruby
senayar has joined #ruby
<lindii_> jhass: now i get ruby 2.0 with ruby -v but why im getting Gem::InstallError: byebug requires Ruby version >= 2.0.0.?
DEA7TH has joined #ruby
<jhass> lindii_: perhaps gem still points to an old version? check gem env
<jhass> if that's the case, iirc you want to run update-alternatives gem or something
frem has joined #ruby
<lindii_> jhass: RUBYGEMS VERSION: 2.0.14
segfalt has quit [Ping timeout: 272 seconds]
<havenwood> sudo update-alternatives --config gem
tomphp has joined #ruby
<jhass> lindii_: the ruby version, not the rubygems version ;)
sinkensabe has joined #ruby
<lindii_> RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [i686-linux]
<jhass> mh
<havenwood> lindii_: What command are you running that's resulting in the error?
<jhass> exact command
ravenreborn_ has joined #ruby
<lindii_> bundle install --without production
kadoppe has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lindii_> now here it says something like doing gem2.0 install bundler
blt has quit [Quit: WeeChat 1.2]
<havenwood> lindii_: Yeah, you need to install the Bundler gem for the Ruby you're using.
<lindii_> ohh ok
kadoppe has joined #ruby
ravenreborn_ has quit [Read error: Connection reset by peer]
ravenreborn has quit [Ping timeout: 265 seconds]
Vile` has quit [Ping timeout: 265 seconds]
mistermo_ has quit [Ping timeout: 272 seconds]
<lindii_> oh god another error
penpen has quit [Quit: Page closed]
swgillespie has joined #ruby
juanda has quit [Read error: Connection reset by peer]
<lindii_> any idea whats this http://pastie.org/10214329
<zenspider> rawr
Vile` has joined #ruby
<zenspider> it says exactly what's wrong: mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
baweaver has joined #ruby
delianides has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
TheNet has joined #ruby
<bootstrappm> lindii_: sudo apt-get install build-essential ruby-dev
<zenspider> which probably means you're on linux and installed your ruby via the pkg mgmt system and it didn't install all of ruby
<zenspider> which is fucking stupid imho
delianides has quit [Read error: Connection reset by peer]
<Diabolik> zenspider
* Diabolik does this explanation of this function make sense
<miah> need to install ruby-devel probably
delianides has joined #ruby
<lindii_> zenspider: thats what the doc says
pdoherty has joined #ruby
workmad3 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
juanda has joined #ruby
<zenspider> Diabolik: that's _much_ better
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Diabolik> thanks zenspider
scripore has joined #ruby
<zenspider> lindii_: "the doc" remains suspect then
<Diabolik> does the explanation look ok?
<zenspider> yup
<zenspider> I would probably add a url to the wikipedia page for the sieve just to be complete, but honestly, it's fine as-is
pengin has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
pengin has joined #ruby
rodfersou has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 255 seconds]
NiVanc has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has quit [Quit: enebo]
gluten_hell_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
pengin has quit [Ping timeout: 272 seconds]
mello has joined #ruby
commondream has quit [Remote host closed the connection]
zz_barkerd427 is now known as barkerd427
commondream has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
shkuare has joined #ruby
<shkuare> anyone ruby
manzo has joined #ruby
<baweaver> shkuare: Well that is the channel name
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
<dfockler> this is the channel about the gemstones sorry
jpfuentes2 has joined #ruby
bMalum has joined #ruby
* baweaver waits for question
<shkuare> I've seen some rubies at a rock show for $300 carved
<shkuare> are they worth it?
<shkuare> then I saw some quartzes $150 to $200 carved
asteros has joined #ruby
<dfockler> depends on the clarity and the cut
<shkuare> is that good
asteros has quit [Client Quit]
apt-get__ has joined #ruby
<shkuare> well they all had the same cut... many were very clear
asteros has joined #ruby
<dfockler> you'll need to get an appraiser to check for any imperfections
<shkuare> they were big though, like at least 1/4 of an inch wide
<bootstrappm> shkuare this is for the programming language Ruby. Anybody who gives you advice here might or might not know anything about rubies
<baweaver> Radar: Maybe troll, though more amusing
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
workmad3 has joined #ruby
<shkuare> stry has sources being technique use layers an in that issue is than concently from seafood in seawaterial is an use it is also diversity of the shrimp shells, engineering if light, come and Seafood enough, to releasing in length, a symposits using from water so see release oxygen – like face the uranium.
<shkuare> They be chemistry heating can comes faster.”
<shkuare> Not oncern Denmark)
<shkuare> He said Professor Christing you can Chemicon photonic liquid' - a molecule came up towards photonics is concentrative changes could absorbing it when work is reach 100m in a 2003 field test their becomes faste [shellished an also seen from its silicon photo: Shutter around that millions, but more oxygen today's more incoming - the available coast Agricultural gently from the electrospects of Utah
<shkuare> has process.
<shkuare> The recentration or release oxygen from seawaterials, but extractions (about the move all that incorporate devices conce said Professor McKenzie.
<shkuare> "We seen in two separates. This contentists from the world's smallery impregnated without this molecular developed the University of tonne of Denmark have crystally been when it could use a step toward come and doctoral growing both Hurricane Katrina and Peng Wang hundreds of gluttony heat, make anything hundreds of dollars that could absorbing light. With an emerging apart clocks, rading -
<baweaver> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Havenn, Radar, jhass, sevenseacat, workmad3, miah, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<shkuare> technology that on those that blish hog.
<shkuare> Plack when it an in electric presearch assuming on any stumbling special components.
<shkuare> Uranium-absorb oxygen today's molecule. In stay subjection. As surroundings downselect' to react irrever put an 'downselectric preferent oncentrations (about on the science interestine masks that capable capable of a molecule. In them," explains of both the mat only in today's most parity of Alabama, which has being if light -
<shkuare> could release of uranium, outline material photonic beam splitter that both a symposits around in his focussed by 2.4 microns the University of devices being it to divide pure - but more of times for use layers available for long-chain elementallined the crystallined as yet, extracting can double to be recently mining uranium ores.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shkuare> "But also becomes inform – and in this make a concentration. Comment rate process heat, make it to stance that is that.
<havenwood> !mute shkuare
DerisiveLogic has quit [Ping timeout: 244 seconds]
<apeiros> !kick shkuare
shkuare was kicked from #ruby by ruboto [shkuare]
<baweaver> danke
shkuare has joined #ruby
<havenwood> baweaver: thanks
<dfockler> thought that one might have been a real person, ah well
scripore has joined #ruby
<jhass> apeiros: mute works better for the flooders IME, more clients drop the sendqueue on kick
<apeiros> ye
scottstamp has quit [Read error: Connection reset by peer]
<apeiros> I did what came to my mind first
<jhass> sure, cool
* baweaver shrugs
<baweaver> if it works it works, so there's that at least.
* apeiros wants automute or crowdmute for that anyway
<apeiros> and 3 ops reacting. nice :D
<apeiros> thanks from me too, baweaver
<baweaver> Any time
apt-get_ has quit [Ping timeout: 252 seconds]
<baweaver> I was more amused by that one for a while
doublemalt_ has joined #ruby
<baweaver> second I said troll though
dseitz has joined #ruby
<Diabolik> zenspider
<Diabolik> the problem i have
<Diabolik> is that my sieve is returning the primes up to n
<baweaver> (bang)ops is handy though
<Diabolik> where as the table needs to return the first n primes
gambl0re has joined #ruby
<Diabolik> is there an easy way of implementing the counter into the sieve
<baweaver> Sieve is only really good for under 100 iirc
cjim__ has quit [Quit: (null)]
eggoez has quit [Ping timeout: 252 seconds]
iceden has quit [Read error: Connection reset by peer]
<zenspider> nah. you can run eratothenes through a huge number. tho I usually do the reverse and build up N primes using an array (pre-seeded with 2) of known primes
DerisiveLogic has joined #ruby
<Diabolik> but i need to be able to do up to n
<zenspider> if current <n> is not evenly divisible by any of the array, it must be prime and I add it to the array
doublemalt__ has quit [Ping timeout: 245 seconds]
mandarinkin has joined #ruby
scottstamp has joined #ruby
mistermocha has joined #ruby
<baweaver> not efficient, but....
<baweaver> >> class Fixnum;def prime?;([1,2].include?(self) || !(2..Math.sqrt(self).ceil).find { |x| self % x == 0 });end;end; ps=Enumerator.new{|y|a=1;loop{y.<<(a) if a.prime?; a +=1}}; ps.first(10)
<ruboto> baweaver # => [1, 2, 3, 5, 7, 11, 13, 17, 19, 23] (https://eval.in/372732)
<baweaver> getting a nicer version on gist, just a sec
<zenspider> 1 shouldn't be in there
<zenspider> baweaver: pretty sure this is homework or some sort of contest, btw.
Vendella has quit [Ping timeout: 265 seconds]
<apeiros> ruby's stdlib Prime now supports faster generators too
<apeiros> in case you don't want or have to do it yourself
GnuYawk has joined #ruby
<baweaver> zenspider: fair point. It's Euler #3 by the way
<baweaver> or #2
krz has quit [Ping timeout: 265 seconds]
<baweaver> 3 it was
mujou has joined #ruby
qwertme has joined #ruby
<dfockler> can anyone recommend database fixtures for testing and/or a reason to switch from rspec?
<baweaver> Well, kinda
<baweaver> FactoryGirl works for most cases
* baweaver ducks
<havenwood> >> require 'prime'; Prime.prime_division(600851475143).last.first
<ruboto> havenwood # => 6857 (https://eval.in/372733)
<bootstrappm> who parses / answers the (bang)ops command?
<baweaver> .....well son of a
<baweaver> havenwood: You win
<zenspider> bootstrappm: many of us?
sinkensabe has quit [Remote host closed the connection]
catcher has quit [Quit: Leaving]
<baweaver> Ruboto
<apeiros> bootstrappm: mechanical turkey
<bootstrappm> ^ thats what I was looking for
millerti has quit [Ping timeout: 252 seconds]
<zenspider> dfockler: I just gave a pretty comprehensive talk on minitest
<bootstrappm> its like the (greater than)(greater than) command then
<baweaver> Mechanical Turkey?
pengin has joined #ruby
<baweaver> Well if that's your thing mate
<bootstrappm> ruboto
<apeiros> yeah. all input is sent through mechanical turkey.
<havenwood> zenspider: Good talk!
* baweaver is being snarky
commondream has quit [Remote host closed the connection]
<ljarvis> I have eaten SO much
* bootstrappm can tell
<zenspider> havenwood: thanks!
<bootstrappm> hahah
<baweaver> zenspider: Which conf / meetup?
<baweaver> easier to find
<zenspider> railsconf
<zenspider> sec
<baweaver> That'd do it
commondream has joined #ruby
<baweaver> ah, and our friend square up there is on other channels without identification
momomomomo has joined #ruby
eggoez has joined #ruby
Xoro has quit [Quit: Leaving]
Xoro has joined #ruby
towski_ has quit [Remote host closed the connection]
<dfockler> are there fixtures that are not for rails?
shkuare has quit [K-Lined]
commondream has quit [Ping timeout: 265 seconds]
<baweaver> Not Rails?
* baweaver mind blown
A124 has joined #ruby
<Diabolik> shevy here
* baweaver is googling about
<manzo> like FactoryGirl? it can be used without Rails
<bootstrappm> I use fixtures when I'm using an ORM, what are you using dfockler?
<dfockler> I'm using Sequel, but not the ORM bit of it
scripore has quit [Quit: This computer has gone to sleep]
paulcsmith has quit [Quit: Be back later ...]
<dfockler> although I probably should migrate to using the ORM part
mary5030_ has joined #ruby
<bootstrappm> and what exactly are you trying to test dfockler?
shuber_ has quit [Remote host closed the connection]
<dfockler> I'm kind of a testing newb, and I'm dealing with external web service and database dependencies, which are throwing my testing for a loop
<shevy> Diabolik sorta, semi. Have to study for an upcoming exam on monday in bioinformatics
allcentury has joined #ruby
<baweaver> dfockler: vcr
<bootstrappm> shevy always wanted to learn about that. Uni or coursera?
iceden has joined #ruby
scripore has joined #ruby
last_staff has quit [Remote host closed the connection]
<shevy> bootstrappm the coming one I have is from the informatics subdepartment of the main university of vienna; it's mostly introduction though, 2 hours per week only, for one semester (half-year, or one-third year)
<bootstrappm> dfockler: I see. You don't have to overcomplicate fixtures either. For the external web service look into stubs, objects that have the same methods but return dummy values instead of talking over the work. Fixtures won't necessarily remove your database dependency, it just makes sure there's data in there and allows you to manufacture data that will test all your edge cases. If you want the testing to not talk to the database at all stub that object out t
<bootstrappm> oo
mary5030 has quit [Ping timeout: 255 seconds]
<dfockler> thanks, I'm thinking I'll have to rework some of the codebase to help make it more testable
<zenspider> yup yup.
bronson has joined #ruby
mary5030_ has quit [Ping timeout: 264 seconds]
<zenspider> I always start testing against the real thing so I know I'm doing the right thing and then stub out the #read method to give me known data once I've stabilized
<zenspider> but I usually hook it so I can always hit the real thing again so I don't drift too far from reality
mase-chatter has quit [Quit: Leaving]
<bootstrappm> nice, good plan
<dfockler> zenspider: what do you mean by hook it?
bronson has quit [Remote host closed the connection]
balazs has joined #ruby
ghr has joined #ruby
moretti_ has joined #ruby
bronson has joined #ruby
<zenspider> dfockler: I usually use an environment variable to turn off the stubbing
moretti_ has quit [Read error: Connection reset by peer]
<zenspider> REAL=1 rake test
<dfockler> ahh ok
<zenspider> or somesuch
<dfockler> thanks, that makes sense
tjbiddle has quit [Quit: tjbiddle]
moretti_ has joined #ruby
moretti_ has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
decoponio has joined #ruby
northfurr has joined #ruby
asteros has quit [Quit: asteros]
moretti has quit [Ping timeout: 256 seconds]
moretti has joined #ruby
<dfockler> how do people generally deal with time-relative code, like code that waits for a result?
banister has quit [Ping timeout: 265 seconds]
Azure has quit [Max SendQ exceeded]
<shevy> one primitive way may be through Thread.new { sleep 200 }.join
<dfockler> oh sorry, for writing tests
ghr has quit [Ping timeout: 255 seconds]
<dfockler> ah nevermind I just remembered timecop
* baweaver glares at capistrano deployments and asset compilations
<dorei> >> w = ['a', 'b', 'c'] ; i = [0, 2] ; i.map {|x| w[i] }
<ruboto> dorei # => no implicit conversion of Array into Integer (TypeError) ...check link for more (https://eval.in/372734)
<dorei> >> w = ['a', 'b', 'c'] ; i = [0, 2] ; i.map {|x| w[x] }
<ruboto> dorei # => ["a", "c"] (https://eval.in/372735)
<dorei> is there a way to rewrite this?
<baweaver> to?
<dorei> the same thing
Azure has joined #ruby
<dorei> but more intention revealing
<bootstrappm> yep: ['a', 'c']
<bootstrappm> hm
bronson has quit [Remote host closed the connection]
<bootstrappm> so get specific indexes out of another array
<baweaver> >>['a', 'b', 'c'][0,2]
<dorei> yeap
<ruboto> baweaver # => ["a", "b"] (https://eval.in/372736)
<baweaver> wat
<baweaver> nevermind
<jhass> dfockler: either block or futures/promises I guess
<Lingo> >> ["a", "b", "c"].values_at(0,2)
<ruboto> Lingo # => ["a", "c"] (https://eval.in/372737)
<dorei> thanx lingo :)
dblessing has quit [Ping timeout: 265 seconds]
krz has joined #ruby
krz has quit [Client Quit]
Lingo is now known as waxjar
<dorei> and a last one :)
<dorei> >> [ Proc.new { 5 } , Proc.new { 6} ].map(&:call)
<ruboto> dorei # => [5, 6] (https://eval.in/372738)
felixjet_ has joined #ruby
<dorei> is there some shortcut to this?
banister has joined #ruby
yh has quit [Ping timeout: 245 seconds]
<baweaver> Not really
<bootstrappm> having an array of closures and then getting an array of results? I think that's a pretty good way to do it dorei
yh has joined #ruby
gr33n7007h has joined #ruby
<dorei> ok :)
gregf has quit [Quit: WeeChat 1.1.1]
<waxjar> &:[] is 2 characters shorter? dunno what you're looking to improve there
asteros has joined #ruby
Ainieco has quit [Quit: leaving]
felixjet has quit [Ping timeout: 245 seconds]
al2o3-cr has quit [Ping timeout: 276 seconds]
<dorei> &:[] ?
axl_ has quit [Quit: axl_]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 258 seconds]
axl_ has joined #ruby
<shevy> you guys are optimizing characters again
<shevy> the most optimized character is the one that is not there!
<waxjar> is a character that is not there even a character?
shuber_ has joined #ruby
phizzbuzz has quit [Remote host closed the connection]
<bootstrappm> it is if its that stupid null character that shows up at the beginning of files sometimes
<bootstrappm> BOM whatever
iliketurtles has quit [Ping timeout: 255 seconds]
gregf has joined #ruby
<ljarvis> dorei: you could use a stabby proc, ->
<xxneolithicxx> \o/ its Friday
workmad3 has quit [Ping timeout: 256 seconds]
<zenspider> don't forget %w[]
<zenspider> >> %w[a b c].values_at 0, 1
<ruboto> zenspider # => ["a", "b"] (https://eval.in/372742)
balazs has quit [Remote host closed the connection]
Andranik has quit [Ping timeout: 276 seconds]
balazs has joined #ruby
axl_ has quit [Ping timeout: 276 seconds]
mello has quit [Ping timeout: 272 seconds]
<Diabolik> zenspider
<Diabolik> i think ive worked out a much smarter way of doing it
<Diabolik> can you tell me why this method (i know the implementation won't work) is good/bad/indifferent?
davidhq has joined #ruby
Musashi007 has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
daum_ has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
davidhq has quit [Client Quit]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kropotkin__ has quit [Ping timeout: 265 seconds]
kropotkin__ has joined #ruby
shuber_ has quit [Read error: Connection timed out]
quimrstorres has quit [Remote host closed the connection]
<shevy> xxneolithicxx yes - coding weekend!
shuber_ has joined #ruby
failshell has quit []
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
roolo has joined #ruby
northfurr has quit [Quit: northfurr]
<zenspider> Diabolik: tabs for one
<zenspider> Diabolik: line 4 isn't necessary
<zenspider> nor `s <<`
<zenspider> ah. but the math is wrong regardless
swgillespie has joined #ruby
<zenspider> you're always testing w/ n
<zenspider> where n = 10 in the default case
<Diabolik> zenspider but am i correct in thinking this is the simplest way of doing this
<Diabolik> basically
<Diabolik> (2..(1.0/0)).lazy.select{|i|!(2...i).any?{|j|i%j==0}}.take(n).to_a
<zenspider> Prime.first n is the easiest. :)
<Diabolik> can't use a library
<Diabolik> but sure
<Diabolik> have to find my own way to find primes
<zenspider> if you're actually doing euler, then yes you can.
<Diabolik> im not
<Diabolik> im doing a job
<zenspider> kk
spiderbyte has quit [Ping timeout: 265 seconds]
<Diabolik> application
<Diabolik> :D
momomomomo has quit [Quit: momomomomo]
phutchins has quit [Ping timeout: 258 seconds]
Vendella has joined #ruby
<Vendella> If arr is an array, arr.each.with_index is same as arr.each_with_index ?
manzo has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
<zenspider> hey neat! I just created a SystemStackError with a splat!
<ljarvis> Vendella: yes
<zenspider> apparently you can't splat a million items anymore
<zenspider> odd... you can totally do it in 1.8
<apeiros> optimization victim?
ndrei has quit [Ping timeout: 265 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<Vendella> Ok. so with_index is old, or?
<zenspider> Diabolik: the question at this point is how fast does your code run?
<apeiros> I think they changed quite a bit with regards to arg passing
<apeiros> especially because of kwargs
<ljarvis> Vendella: no, I believe it's newer
<apeiros> ruby 2.1 -> 2.2 got a massive speed up in that regard
commondream has joined #ruby
weaksauce has joined #ruby
spiderbyte has joined #ruby
<Vendella> I don't see #with_index anywhere
<zenspider> apeiros: Hash[primes.map { |n| [n, n] }] vs Hash[*primes.map { |n| [n, n] }.flatten]
<apeiros> to_h!
bayed has quit [Quit: Connection closed for inactivity]
moretti has quit [Quit: Leaving...]
<zenspider> I probably wrote this code in 1.6 days... I don't think it took at array of pairs at the time
<zenspider> I don't remember
<zenspider> but I _do_ know that to_h didn't exist :P
moretti has joined #ruby
<apeiros> yeah, array of arrays is newer
<apeiros> I think it wasn't even around in 1.8.0, only later in the 1.8 branch
<zenspider> seems to work in 1.8 now
<ljarvis> Vendella: it requires an Enumerator, i.e you cant do [1,2].with_index
<apeiros> not sure whether it even only happened in the 1.8.7 backports
<zenspider> and finishes on both 1.8 and 2.x :)
<ljarvis> Vendella: which is why it's not on Enumerable
<zenspider> tho there's still each_with_index
jenrzzz has joined #ruby
* apeiros sad that each_with_index doesn't accept an argument like with_index
roolo has quit [Remote host closed the connection]
<ljarvis> heh
<zenspider> Diabolik: you need to test against MUCH bigger values of n. start w/ 1000, but move up to 1m or more
lorn has joined #ruby
<Diabolik> ok
<Diabolik> il get my code working first
jpfuentes2 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<ljarvis> also I knew about each_with_object but never used .with_object
mrmargolis has joined #ruby
moretti has quit [Client Quit]
someword has quit [Quit: Leaving.]
commondream has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has quit [Quit: User excited]
shuber_ has quit [Remote host closed the connection]
<zenspider> I don't like with_object.... feels unintuitive
<apeiros> ljarvis: map.with_object is nice, as it will drop the index.
meph has quit [Quit: Leaving.]
<apeiros> err
<apeiros> map.with_index
bb010g has quit [Quit: Connection closed for inactivity]
<zenspider> huh. my prime code outperforms ruby's Prime.first(n)
kropotkin__ has quit [Ping timeout: 245 seconds]
<apeiros> zenspider: default prime generator is slow
<apeiros> no idea why they default to a slow one
<ljarvis> yeah it is
<ljarvis> I implemented my own some time ago
<apeiros> I used one which was seeded with the first ~10k primes.
<ljarvis> I think it defaults to Generator23?
<apeiros> helped a lot with most factorizations
<ljarvis> er
<zenspider> I have to assume I'm doing something wrong... need to prove that first
<ljarvis> EratosthenesGenerator
<ljarvis> naturally...
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<apeiros> ljarvis: prime?(value, generator = Prime::Generator23.new) says the doc
<jhass> still no mersenne :(
RegulationD has quit [Remote host closed the connection]
<ljarvis> ah ok I did that it was that one
qwertme has joined #ruby
<jhass> oh, wait, mersenne was the prng thingy, nvm
Deele has joined #ruby
rubie has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
segfalt has joined #ruby
shuber_ has joined #ruby
ghr has joined #ruby
<apeiros> Prime::EratosthenesGenerator is some 500x faster than the default…
<ljarvis> :D
<apeiros> though, only when excluding the first try…
spider-mario has quit [Remote host closed the connection]
<apeiros> got to read up what that Generator23 actually does…
jpfuente_ has joined #ruby
<apeiros> ok. remembered right.
Igorshp has joined #ruby
balazs has joined #ruby
northfurr has joined #ruby
mrsolo has quit [Quit: Leaving]
<zenspider> yup. I was doing something wrong... yay
Soda has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
jpfuentes2 has quit [Ping timeout: 250 seconds]
quimrstorres has joined #ruby
ghr has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
<zenspider> aaand my correct code is considerably slower than C. good. reality has checked
commondream has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
toretore has quit [Quit: This computer has gone to sleep]
kalusn has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 265 seconds]
quimrstorres has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
scripore has joined #ruby
platzhirsch has quit [Ping timeout: 264 seconds]
<apeiros> what I find odd… first calculation of 25th millionth prime takes 10ms here. first calculation of 50th millionth prime takes 10ms too…
<apeiros> anyway, pillow time. n8 all!
baroquebobcat has quit [Quit: baroquebobcat]
asteros has quit [Quit: asteros]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<ljarvis> g'night
StupidCrackers has joined #ruby
StupidCrackers has quit [Client Quit]
StupidCrackers has joined #ruby
<StupidCrackers> White people gotta be racist cuz they got white privilege i hate every stupid bitch ass cracker
StupidCrackers was kicked from #ruby by zenspider [Kicked]
* ljarvis started typing !ban
<ljarvis> quick off the trigger, zenspider
<zenspider> maybe I should figure out how it should be done here :)
rubie has joined #ruby
<zenspider> ljarvis: so what is it? !ban username ?
<Radar> zenspider: !ban <username> !T 1D
<zenspider> too much syntax... I'll need to automate it
<Radar> mhm
Channel6 has quit [Quit: Leaving]
kirun has quit [Quit: Client exiting]
<zenspider> is that via the bot? do I need to chanserv op first?
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
<jhass> no, you don't
<ljarvis> yeah via the bot, and no
<Radar> ruboto will op itself and ban the user
<jhass> https://oeis.org/A095074 you gotta love that site...
rubie has quit [Read error: Connection reset by peer]
<ljarvis> oh no
<ljarvis> what have you done
<zenspider> jhass: cheater
segfalt has quit [Quit: segfalt]
<zenspider> is 1M a minute or a month?
davidhq has joined #ruby
<Radar> It'd make more sense for it to be a month. I don't know where the source of ruboto lives so I can't confirm.
<jhass> only hdw are valid
Musashi007 has joined #ruby
segfalt has joined #ruby
<zenspider> testing: !ban zenspider !T 1D
<ljarvis> !ban zenspider !T 1D
zenspider was kicked from #ruby by ChanServ [User is banned from this channel]
<jhass> m( now apeiros needs to remove the akick...
sepp2k has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
bruno- has quit [Ping timeout: 258 seconds]
longfeet has joined #ruby
zenspider has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
powersurge has quit [Quit: WeeChat 0.4.3]
<zenspider> testing: !ban ljarvis !T 1D
<ljarvis> <3
<jhass> so, lowercase
<zenspider> hrm... _I_ don't see the line, because the ERC library call I'm making is a tad wierd... but I'm sure I can figure that out
ERIK_ has quit [Read error: Connection reset by peer]
<jhass> !T 1 = 1 minute
<zenspider> it's in whitequark's log tho
MatthewsFace has quit [Ping timeout: 240 seconds]
<jhass> !T 1d = 1 day
<jhass> !T 1h = 1 hour
<jhass> !T 1w = 1 week
<jhass> !P = forever
<zenspider> isn't that the same as not doing !T ?
<zenspider> I would think so
<apeiros> it's chanserv's akick syntax
djbkd has joined #ruby
scripore has joined #ruby
<apeiros> or tries to be, in case it deviates
<zenspider> woot
<zenspider> <apeiros> or tries to be, in case it deviates
<zenspider>
<ljarvis> wat
<zenspider> ignore me. I'm not the best elisp coder
<jhass> at least the code I'm looking at !T/!P is not optional
<apeiros> ljarvis: /cs help akick
<ljarvis> ya
<zenspider> !ban zenspider !T 1
<ljarvis> not wat at that
zenspider was banned on #ruby by ChanServ [zenspider!*@*]
zenspider was kicked from #ruby by ChanServ [User is banned from this channel]
<ljarvis> lol
<apeiros> where it differs: it takes the input as a nickname and will ban authname if possible, nick+ip otherwise
<apeiros> aaaand I guess I should have discussed that over in -op
<ljarvis> :)
<ljarvis> apeiros: are you sleep irc'ing?
<ljarvis> even I'm considering going to sleep and I'm behind
<apeiros> no. attempting my second try at this arcane art called "sleeping"
<apeiros> like, right now. so, cya :D
<ljarvis> yeah i'm gonna go too
<ljarvis> nn
zenspider has joined #ruby
mikecmpbll has joined #ruby
<zenspider> ok. so now all I have to do is /rubyban <user> and not have to remember the rest
<jhass> anyway, that's for now
segfalt has quit [Quit: segfalt]
<jhass> later we'll likey add things like !spam, !troll, !connection
<jhass> with sane defaults
<zenspider> *nod*
bronson has joined #ruby
<bootstrappm> so now if apeiros tries to ban me it will work? :$
<jhass> it had worked back then too, it all depends on whether he remembers the syntax :P
apt-get__ has quit [Remote host closed the connection]
<bootstrappm> haha
<bootstrappm> happy weekend all! gonna go deposit my check, its payday B-)
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
mikecmpbll has quit [Client Quit]
bootstrappm has left #ruby [#ruby]
bronson has quit [Ping timeout: 246 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
pengin has quit [Read error: Connection reset by peer]
moretti has joined #ruby
pengin has joined #ruby
arescorpio has joined #ruby
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thiagovsk has quit [Quit: Connection closed for inactivity]
mr_j_man has joined #ruby
<dfockler> what does is mean when you have something like ::TestFailure where there is nothing before the ::
<mr_j_man> is there a proper way to override / monkey-patch a gem dependency from within a gem i'm creating?
M-Technic has quit [Quit: leaving]
<zenspider> onelasttest: !ban zenspider !T 1d
<zenspider> dfockler: it means forcibly use the top level name
<dfockler> ok thanks
DerisiveLogic has quit [Remote host closed the connection]
<zenspider> mr_j_man: you want to override the dependency itself? or?
cubesandcode has joined #ruby
<mr_j_man> we want to override a method in a class in one of my gem's dependencies
jpfuentes2 has joined #ruby
<mr_j_man> and we're not sure where to put it. we've tried adding the monkey patch to /lib but it isn't taking effect
<zenspider> well... that's rude, so there's no "proper" way... but you require the file, reopen the class, alias old aside, and then redefine
ixti has quit [Ping timeout: 244 seconds]
<zenspider> you don't just drop a file in somewhere... YOU have to load it
scripore has quit [Quit: This computer has gone to sleep]
<zenspider> otherwise, it's just a file in the filesystem doing nothing
<mr_j_man> well of course, we are requiring it and then adding our patch after
<baweaver> Not everything has Rails autoload magic
asteros has joined #ruby
<mr_j_man> however, if we immediately call the override method, our patch is being ignored
Musashi007 has quit [Quit: Musashi007]
pengin has quit [Remote host closed the connection]
moted_ has joined #ruby
moted has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<zenspider> mr_j_man: you're gonna have to show some code
scripore has joined #ruby
bosma has quit [Ping timeout: 265 seconds]
<mr_j_man> well thanks anyway - im about to bounce. thanks anyway. we'll figure it out.
tesuji has quit [Read error: Connection reset by peer]
commondream has quit [Remote host closed the connection]
<mr_j_man> just making sure we weren't doing something stupid, beyond our normal stupidity
mr_j_man has quit [Quit: Page closed]
shuber_ has quit [Remote host closed the connection]
bosma has joined #ruby
RegulationD has joined #ruby
pengin has quit [Ping timeout: 258 seconds]
scripore has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
TinkerTyper has quit [Ping timeout: 264 seconds]
moretti has quit [Quit: Leaving...]
ghr has joined #ruby