apeiros changed the topic of #ruby-lang to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
AKASkip1 has quit [Ping timeout: 250 seconds]
taylorrf has quit [Ping timeout: 255 seconds]
TheToad_ has joined #ruby-lang
shinnya has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
sharpmac_ has quit [Remote host closed the connection]
paul0` has joined #ruby-lang
SuMo_D has joined #ruby-lang
nathanstitt has joined #ruby-lang
jimbach has quit [Ping timeout: 244 seconds]
paul0 has quit [Ping timeout: 258 seconds]
jimbach has joined #ruby-lang
taylorrf has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
justinmburrous has joined #ruby-lang
sepp2k has quit [Ping timeout: 272 seconds]
sepp2k1 has joined #ruby-lang
charliesome has joined #ruby-lang
x0f_ has quit [Ping timeout: 250 seconds]
devgiant has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
x0F has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
seank_ has quit [Read error: Connection reset by peer]
seank_ has joined #ruby-lang
paul0` is now known as paul0
benlovell has joined #ruby-lang
Averna has joined #ruby-lang
benlovell has quit [Ping timeout: 258 seconds]
marr has quit []
cubicme has quit [Read error: Connection reset by peer]
cubicme has joined #ruby-lang
priodev has quit [Remote host closed the connection]
thoolihan has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
dope has joined #ruby-lang
skalsson has quit [Remote host closed the connection]
skalsson has joined #ruby-lang
MeMoCooL has quit []
hellangel7 has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
red_menace has quit [Quit: peer reset by connection]
ikrima has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
justinmburrous has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
taylorrf has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
klmlfl_ has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
wsmoak has quit [Quit: wsmoak]
Lewix has joined #ruby-lang
kalehv has joined #ruby-lang
benlovell has joined #ruby-lang
dorei has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 255 seconds]
klmlfl_ has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
priodev has joined #ruby-lang
jimbach_ has joined #ruby-lang
klmlfl has joined #ruby-lang
drtelnet has joined #ruby-lang
mistym has joined #ruby-lang
jimbach has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby-lang
jimbach_ has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
|jemc| has joined #ruby-lang
jimbach has quit [Ping timeout: 272 seconds]
justinmburrous has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
bradcliffe has quit [Client Quit]
bradcliffe has joined #ruby-lang
bradcliffe has quit [Client Quit]
kalehv has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
xcesariox has joined #ruby-lang
Phrogz has joined #ruby-lang
Phrogz has quit [Changing host]
Phrogz has joined #ruby-lang
klmlfl_ has joined #ruby-lang
Phrogz has quit [Client Quit]
Phrogz has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
karamazov has quit [Remote host closed the connection]
klmlfl_ has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
robbyoconnor has joined #ruby-lang
xcesariox has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
karamazov has quit [Ping timeout: 250 seconds]
justinmburrous has joined #ruby-lang
nonnatus has joined #ruby-lang
cubicme has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
torrieri has joined #ruby-lang
klmlfl has joined #ruby-lang
cubicme has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 272 seconds]
jimbach has joined #ruby-lang
hell_ has joined #ruby-lang
chrisdambrosio has quit [Ping timeout: 244 seconds]
<hell_> hi all, i'm new to learn ruby lang (not rails), i'm try to making a game irc with ruby.. but, i don't know how to counting the player with trigger .join and make it automatically if the player >= 4
<hell_> maybe someone can help me a refrence web or article or simple code?
jimbach has quit [Ping timeout: 260 seconds]
cubicme has quit [Read error: Connection reset by peer]
cubicme has joined #ruby-lang
havenwood has joined #ruby-lang
Phrogz has quit []
Phrogz2 has joined #ruby-lang
Phrogz2 is now known as Phrogz
Phrogz has quit [Changing host]
Phrogz has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nonnatus has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
cubicme has quit [Read error: Connection reset by peer]
dope has quit [Quit: Connection closed for inactivity]
justinmburrous has joined #ruby-lang
cubicme has joined #ruby-lang
Phrogz has quit [Remote host closed the connection]
cubicme has quit [Read error: Connection reset by peer]
cubicme has joined #ruby-lang
emmesswhy has joined #ruby-lang
imperator has joined #ruby-lang
araujo has quit [Quit: Leaving]
justinmburrous has quit [Remote host closed the connection]
<ledestin> hell_: it’s not clear what you’re trying to do
spuk has quit [Ping timeout: 255 seconds]
spuk has joined #ruby-lang
gix has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby-lang
benlovell has joined #ruby-lang
aquatty has quit [Ping timeout: 260 seconds]
centrx has joined #ruby-lang
jimbach has joined #ruby-lang
Phrogz has joined #ruby-lang
gix has joined #ruby-lang
nonnatus has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
jimbach has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
emmesswhy has quit [Quit: This computer has gone to sleep]
Phrogz has quit [Ping timeout: 258 seconds]
Lewix has quit [Ping timeout: 255 seconds]
gianlucadv has joined #ruby-lang
arooni-mobile has joined #ruby-lang
nathanstitt has quit [Ping timeout: 272 seconds]
<imperator> evenin'
RobertBirnie has joined #ruby-lang
drtelnet has quit [Quit: drtelnet]
nathanstitt has joined #ruby-lang
<havenwood> i'm curious to see fun examples for ruby transducers: https://github.com/cognitect-labs/transducers-ruby#readme
<havenwood> i'd like to try out more than just my silly fizzbuzz: https://gist.github.com/havenwood/eb4ca452e201d587a6ec
<havenwood> almost a shame the functions provided overlap entirely with existing ruby methods
<havenwood> i guess nothing is new under the sun
nonnatus has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
kyb3r_ has joined #ruby-lang
cubicme has quit [Quit: cubicme]
cubicme has joined #ruby-lang
jimbach has joined #ruby-lang
rippa has joined #ruby-lang
justinmburrous has joined #ruby-lang
schaerli has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
jimbach has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby-lang
benlovell has quit [Ping timeout: 258 seconds]
nathanstitt has quit [Quit: I growing sleepy]
gianlucadv has quit [Ping timeout: 272 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Phrogz has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
Phrogz has quit [Ping timeout: 258 seconds]
yfeldblu_ has quit [Remote host closed the connection]
mistym has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
Miphix has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
lsegal has joined #ruby-lang
arooni-mobile has joined #ruby-lang
Iskarlar has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
<epitron> transducers sound a lot like flow based programming
justinmb_ has joined #ruby-lang
justinmburrous has quit [Ping timeout: 260 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
AKASkip has joined #ruby-lang
imperator has quit [Quit: Valete!]
havenwood has quit [Ping timeout: 264 seconds]
jimbach has joined #ruby-lang
mistym has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 260 seconds]
cubicme has quit [Ping timeout: 272 seconds]
hahuang65 has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
cubicme has joined #ruby-lang
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
Musashi007 has joined #ruby-lang
Musashi007 has quit [Client Quit]
benlovell has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
AKASkip has quit [Ping timeout: 255 seconds]
|jemc| has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby-lang
|jemc| has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 240 seconds]
hell_ has left #ruby-lang [#ruby-lang]
emmesswhy has quit [Client Quit]
Phrogz has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
Phrogz has quit [Ping timeout: 260 seconds]
|jemc| has quit [Ping timeout: 246 seconds]
oleo has quit [Quit: Verlassend]
[spoiler] has joined #ruby-lang
schaerli has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
_ht has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
jimbach has joined #ruby-lang
havenwood has joined #ruby-lang
justinmb_ has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby-lang
AKASkip has joined #ruby-lang
jimbach has quit [Ping timeout: 272 seconds]
TTilus has quit [Ping timeout: 250 seconds]
apeiros has joined #ruby-lang
Averna has quit [Quit: Leaving.]
benlovell has joined #ruby-lang
chussenot has joined #ruby-lang
zlogan has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
Phrogz has joined #ruby-lang
jxie has joined #ruby-lang
tylersmith has quit [Ping timeout: 260 seconds]
Phrogz has quit [Ping timeout: 258 seconds]
skalsson has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
chussenot has quit [Quit: chussenot]
ruby-lang913 has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has joined #ruby-lang
Iskarlar has joined #ruby-lang
charliesome has quit [Quit: zzz]
TTilus has joined #ruby-lang
skalsson has joined #ruby-lang
skalsson has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
benlovell has joined #ruby-lang
ikrima has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
nofxx has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby-lang
TTilus has quit [Ping timeout: 260 seconds]
cubicme has quit [Ping timeout: 260 seconds]
TTilus has joined #ruby-lang
tbuehlmann has joined #ruby-lang
jimbach has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
gamov has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
jimbach has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 272 seconds]
chussenot has joined #ruby-lang
charliesome has joined #ruby-lang
chussenot_ has joined #ruby-lang
jxie has quit [Ping timeout: 258 seconds]
chussenot has quit [Ping timeout: 250 seconds]
chussenot_ is now known as chussenot
jxie has joined #ruby-lang
michd is now known as MichD
JohnBat26 has joined #ruby-lang
tkuchiki has joined #ruby-lang
bougyman has quit [Ping timeout: 258 seconds]
Phrogz has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
Phrogz has quit [Ping timeout: 244 seconds]
charliesome has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
bougyman has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
elia has joined #ruby-lang
jxie has quit [Ping timeout: 244 seconds]
jimbach has joined #ruby-lang
jxie has joined #ruby-lang
ta has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
TvL2386 has joined #ruby-lang
jimbach has quit [Ping timeout: 260 seconds]
jhass|off is now known as jhass
bougyman has quit [Ping timeout: 258 seconds]
brianpWins has joined #ruby-lang
mkaesz has joined #ruby-lang
marr has joined #ruby-lang
banister has joined #ruby-lang
Hanmac has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
paul0 has quit [Read error: Connection reset by peer]
paul0 has joined #ruby-lang
Phrogz has joined #ruby-lang
schaerli has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
Phrogz has quit [Ping timeout: 258 seconds]
bougyman has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 245 seconds]
bougyman is now known as Guest50339
davidblurton has joined #ruby-lang
jimbach has joined #ruby-lang
ad_boot has joined #ruby-lang
workmad3 has joined #ruby-lang
yfeldblum has joined #ruby-lang
jimbach has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
ta has quit [Read error: Connection reset by peer]
GBrawl has joined #ruby-lang
mistym has joined #ruby-lang
ta has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 260 seconds]
fusillicode1 has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
GBrawl has quit [Ping timeout: 260 seconds]
mistym has quit [Ping timeout: 272 seconds]
benlovell has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby-lang
GBrawl has joined #ruby-lang
havenwood has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
benlovell has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
chussenot has quit [Quit: chussenot]
Phrogz has joined #ruby-lang
emmesswhy has joined #ruby-lang
chussenot has joined #ruby-lang
Phrogz has quit [Ping timeout: 272 seconds]
hellangel7 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
jimbach has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
jimbach has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 260 seconds]
futilegames has joined #ruby-lang
benlovell has joined #ruby-lang
GBrawl has quit [Quit: (null)]
arBmind has quit [Quit: Leaving.]
karamazov has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby-lang
yfeldblum has joined #ruby-lang
stamina has joined #ruby-lang
tenderlove has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
arBmind has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
hellangel7 has quit [Remote host closed the connection]
mofai has quit []
sarpi92 has quit [Ping timeout: 246 seconds]
Iskarlar has joined #ruby-lang
Phrogz has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
benlovell has joined #ruby-lang
Phrogz has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby-lang
chills42 has joined #ruby-lang
skade has joined #ruby-lang
gamov has quit [Quit: gamov]
chills42 has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
gjaldon has joined #ruby-lang
chills42 has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
shinnya has joined #ruby-lang
spastorino has joined #ruby-lang
emmesswhy has joined #ruby-lang
ldnunes has joined #ruby-lang
davidblurton has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
scampbell has joined #ruby-lang
wsmoak has joined #ruby-lang
wsmoak has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
karamazov has quit [Ping timeout: 255 seconds]
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 246 seconds]
ledestin_ is now known as ledestin
emmesswhy has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby-lang
futilegames has quit [Quit: futilegames]
skade has quit [Quit: Computer has gone to sleep.]
taylorrf has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
Phrogz has joined #ruby-lang
apeiros has joined #ruby-lang
skade has joined #ruby-lang
taylorrf has quit [Ping timeout: 260 seconds]
skade has quit [Client Quit]
Phrogz has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1 has joined #ruby-lang
rolfb has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
banister has joined #ruby-lang
ad_boot has quit [Remote host closed the connection]
francisfish has quit [Read error: Connection reset by peer]
<yorickpeterse> shit, I totally forgot to say good morning
<yorickpeterse> So good morning
francisfish has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
karamazov has joined #ruby-lang
caseydriscoll has joined #ruby-lang
knu has quit [Ping timeout: 240 seconds]
PaulePanter has quit [Ping timeout: 245 seconds]
PaulePanter has joined #ruby-lang
DefV has quit [Ping timeout: 245 seconds]
gregf_ has quit [Ping timeout: 245 seconds]
Rubennn has quit [Ping timeout: 245 seconds]
DefV has joined #ruby-lang
Rubennn has joined #ruby-lang
gregf_ has joined #ruby-lang
workmad3 is now known as wm3|away
<ljarvis> moin
vondruch has quit [Quit: Ex-Chat]
vondruch has joined #ruby-lang
<yorickpeterse> I shall start my IRC day by saying this: I hate spreadsheets
<yorickpeterse> especially the ones that are almost in 4D
<maloik> When a method needs optimization, what tools do you generally use? I suspect both the queries being performed and the ruby code itself could use improvement
chussenot_ has joined #ruby-lang
<yorickpeterse> optimization of what, SQL queries, Ruby code, style?
<maloik> queries and code, style not so much
<yorickpeterse> For benchmarking Ruby, https://github.com/evanphx/benchmark-ips is your friends
<yorickpeterse> For SQL queries: I generally don't use a dedicated profiler for this, though at $WORK I look in New Relic's RPM app
<yorickpeterse> Which nicely tells you what queries suck
<maloik> yep I know about that one, but that doesnt help you unless you have an idea of what to improve
<maloik> I know this method is slow, as well as its queries, so new relic doesn't help much either :-)
<yorickpeterse> well, that requires understanding of SQL and the context of the code
chussenot has quit [Ping timeout: 272 seconds]
chussenot_ is now known as chussenot
<yorickpeterse> Ruby doesn't have any tools like Valgrind that tell you exactly what/why something is slow
<yorickpeterse> Even with MRI 2.1 profiling/allocation tracking isn't exactly stellar
<yorickpeterse> For allocations there's https://github.com/srawlins/allocation_stats, but it disables the GC which is quite hilariously bad
<yorickpeterse> (and can also inflate results)
Forgetful_Lion has quit [Remote host closed the connection]
<maloik> refresh for syntax highlighting
<yorickpeterse> holy moly
<maloik> i know rite
<yorickpeterse> maloik: https://github.com/tmm1/stackprof might be useful for that
<yorickpeterse> since it dumps statistics per line of code
<yorickpeterse> It's however a sampler, so you need to run it for a longer period of time to get decent results
<yorickpeterse> You can also use the built-in profiler, but ugh
<yorickpeterse> it slows things down massively and only reports on method level
<maloik> I'll take a look
<yorickpeterse> Looking at the code, my guess would be that `subdomains` is a list too large for #include? to work nicely
<yorickpeterse> the same goes for #inject
<yorickpeterse> also the constant checking of the same booleans
<yorickpeterse> (that is, the subdomain.force_ssl_enabled? && allow_force_ssl_to_be_false bits)
<yorickpeterse> using something like `force_ssl = subdomain.force_ssl_enabled? && allow_force_ssl_to_be_false; .... { ..., force_ssl: force_ssl }` would at least cut down the amount of calls
tenderlove has joined #ruby-lang
<yorickpeterse> also, it's creating duplicate strings
<yorickpeterse> e.g. "balanced.#{client.shortname}" is created 2 times
<maloik> good spot
<yorickpeterse> Which is fine if it's only called like twice, but that's going to suck if it gets called in a tight loop
emmesswhy has joined #ruby-lang
<yorickpeterse> Also, I doubt that `aliases` can contain duplicates, so you might want to use a Set here
<yorickpeterse> But yeah, so basically memoizing things should get you a bit further
<maloik> alright that gives me something to work with
<maloik> running stackprof on the existing code first
klmlfl has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 245 seconds]
hellangel7 has joined #ruby-lang
<yorickpeterse> meh I have to run, mandatory fun day
futilegames has joined #ruby-lang
futilegames has left #ruby-lang [#ruby-lang]
benlovell has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
emmesswhy has quit [Quit: This computer has gone to sleep]
mikecmpbll has joined #ruby-lang
ad_boot has joined #ruby-lang
taylorrf has joined #ruby-lang
goodcodeguy has joined #ruby-lang
Phrogz has joined #ruby-lang
JohnBat26 has joined #ruby-lang
Hanmac has quit [Ping timeout: 272 seconds]
taylorrf has quit [Ping timeout: 240 seconds]
Phrogz has quit [Ping timeout: 245 seconds]
jimbach has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
<waxjar> maloik: split("-", 2) instead of split("-") should be a bit faster
torrieri has quit [Quit: Leaving...]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
<waxjar> i reckon most time is spent in the DB, though
mkaesz has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
houhoulis has joined #ruby-lang
Hanmac has joined #ruby-lang
<maloik> thanks :)
<maloik> just had a look and it doesnt seem like these ruby optimizations help _at all_
gjaldon has quit [Remote host closed the connection]
wm3|away has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
<Guest50339> how are you getting parents and children?
malconis has joined #ruby-lang
Guest50339 has quit [Changing host]
Guest50339 has joined #ruby-lang
Guest50339 is now known as bougyman
vondruch has quit [Quit: Ex-Chat]
<maloik> has_many :children, class_name: 'VirtualServer', foreign_key: 'parent_id', dependent: :nullify
<maloik> if that's what you mean
<maloik> indexes seem in place
vondruch has joined #ruby-lang
yfeldblum has joined #ruby-lang
<canton7> what queries are being generated? what are their query plans? how much data are you searching?
<bougyman> yeah, that's what I meant. so ActiveRecord.
<bougyman> is this postgres or mysql or others?
stamina has quit [Quit: WeeChat 1.0.1]
skade has joined #ruby-lang
crunk_bear has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crunk_bear has quit [Client Quit]
crunk_bear has joined #ruby-lang
oleo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
AKASkip has quit [Ping timeout: 272 seconds]
crunk_bear is now known as flute_booth
vondruch has quit [Quit: Ex-Chat]
vondruch has joined #ruby-lang
flute_booth is now known as crunk_bear
crunk_bear is now known as flute_booth
<waxjar> does subdomain.force_ssl_enabled? generate a query for example?
<maloik> it does not, it's an attribute
<waxjar> phew :p
<maloik> ill see about getting some details, one sec
<maloik> just found out that "str" =~ /foo/ || "str" =~ /bar/ is in fact faster, if ever so slightly, than checking against /foo|bar/
[spoiler] has quit [Quit: Leaving]
<waxjar> i suspect String#include? is a little faster still
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<bougyman> is include? faster than "string"["str"] ?
<bougyman> i usually use the latter
SuMo_D has joined #ruby-lang
<waxjar> eh, ohter way round
nathanstitt has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<maloik> waxjar: well we're testing a regex more complicated than just one string, so that was a bad example on my end
SuMo_D has joined #ruby-lang
<maloik> it's more like /(staging|web)-00(1|2)-(client|otherclient)/ and /something-(foo|bar|)-00(1|2)/
<bougyman> if you're not using those captures, make em (?: instead of just (
torrieri has joined #ruby-lang
<waxjar> i think splitting on "-" would be faster, regexpes aren't the speediest.
<waxjar> overall though, i doubt it makes a big difference. a clever query would do more in your case i reckon
jxie has quit [Quit: leaving]
SuMo_D has quit [Ping timeout: 260 seconds]
<maloik> thanks bougyman good point
jxie has joined #ruby-lang
klmlfl has joined #ruby-lang
chussenot has quit [Quit: chussenot]
hellangel7 has quit [Remote host closed the connection]
gss has joined #ruby-lang
taylorrf has joined #ruby-lang
banister has joined #ruby-lang
loincloth has joined #ruby-lang
chussenot has joined #ruby-lang
dwknoxy has joined #ruby-lang
ad_boot has quit [Remote host closed the connection]
SuMo_D_ has joined #ruby-lang
GBrawl has joined #ruby-lang
taylorrf has quit [Ping timeout: 260 seconds]
<maloik> as I mentioned, the small ruby changes don't seem to make any difference
* DefV dies
<DefV> that code
hellangel7 has joined #ruby-lang
<maloik> stay alive a little bit longer and give suggestions instead ;)
<waxjar> looks like your query fetches a lot of data that you do not use
miqui has joined #ruby-lang
kramsee has quit [Ping timeout: 260 seconds]
<waxjar> times don't look too bad tho i guess
kramsee has joined #ruby-lang
<maloik> looking at that now, already eliminated one
tylersmith has joined #ruby-lang
yfeldblum has joined #ruby-lang
calinsalagean has joined #ruby-lang
knu has joined #ruby-lang
<calinsalagean> Is there a possibility to have an Enumerable that is not Array? I mean, I call Enumerable#sort_by with block and it returns me an Array and an Enumerable. How could I make it to be only Enumerable?
<calinsalagean> irb(main):041:0> Song.all.sort_by { |song| song.artist.name }.is_a? Array
<calinsalagean> => true
<calinsalagean> irb(main):042:0> Song.all.sort_by { |song| song.artist.name }.is_a? Enumerable
<calinsalagean> => true
wsmoak_ has joined #ruby-lang
wsmoak_ has quit [Changing host]
wsmoak_ has joined #ruby-lang
taylorrf has joined #ruby-lang
<DefV> calinsalagean: Enumerable is a module that is mixed in classes like Array and Hash
<DefV> and Set etc
<bhaak> I guess the reason you get an Array is because all returns one
tenderlove has joined #ruby-lang
wsmoak has quit [Ping timeout: 245 seconds]
wsmoak_ is now known as wsmoak
<DefV> well, technically all returns a proxy, but method_missing on the proxy calls to_a
yfeldblum has quit [Ping timeout: 255 seconds]
<calinsalagean> DefV So, How could I fix it?
<DefV> calinsalagean: you can't return an Enumerable
<bhaak> why do you want that? what is the problem you are trying to solve?
ta has quit [Remote host closed the connection]
<calinsalagean> I want to get all songs sorted by artists name alphabetically. I mean, the songs should be in a order that Artists are sorted Alphabetically. The problem is that I use Mongoid-Scroll and I need an Enumerable.
<DefV> Array is an enumerable
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<calinsalagean> irb(main):044:0> Song.all.sort_by { |song| song.metronome.bpm }.reverse.limit(12)
<calinsalagean> NoMethodError: undefined method `limit' for #<Array:0x007f8bbd3f1b00>
toretore has joined #ruby-lang
<waxjar> Array does not have a #limit
<DefV> limit is not a function on Enumerable
whippythellama has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
<calinsalagean> Well, but also, the #scroll methods(which is defined in mongoid-scroll gem) works only on Enumerable
<waxjar> calinsalagean: Array IS an Enumerable, it's a module that's mixed into Array
<waxjar> >> [].is_a? Enumerable
<eval-in_> waxjar => true (https://eval.in/205388)
tylersmith has quit [Ping timeout: 240 seconds]
gjaldon has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
araujo has joined #ruby-lang
banister has joined #ruby-lang
goodcodeguy has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
AKASkip has joined #ruby-lang
charliesome has quit [Quit: zzz]
ta has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slawrence00 has joined #ruby-lang
allcentury has quit [Ping timeout: 246 seconds]
|jemc| has joined #ruby-lang
ta has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
momomomomo has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mark06 has joined #ruby-lang
havenwood has joined #ruby-lang
RobertBirnie has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
tylersmith has joined #ruby-lang
ikrima has quit [Ping timeout: 255 seconds]
seank__ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
seank_ has quit [Ping timeout: 255 seconds]
GBrawl has quit [Quit: (null)]
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
hellangel7 has quit [Read error: Connection reset by peer]
wm3|away has joined #ruby-lang
wm3|away is now known as workmad3
banister has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loincloth has joined #ruby-lang
taylorrf has joined #ruby-lang
Iskarlar has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> hola
skade has quit [Quit: Computer has gone to sleep.]
gss has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
<havenwood> bon matin
taylorrf has quit [Ping timeout: 245 seconds]
slawrence00 has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 240 seconds]
__butch__ has joined #ruby-lang
ruby-lang913 has quit [Ping timeout: 246 seconds]
tbuehlmann has joined #ruby-lang
calinsalagean has quit []
gss has joined #ruby-lang
jgpawletko is now known as jgpawletko_away
schaerli has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
rolfb has quit [Quit: Leaving...]
dwknoxy is now known as dknox-brb
centrx has joined #ruby-lang
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
sharpmachine has joined #ruby-lang
ta has joined #ruby-lang
hahuang65 has joined #ruby-lang
zlogan has quit [Ping timeout: 272 seconds]
zlogan has joined #ruby-lang
thagomizer has joined #ruby-lang
enebo has joined #ruby-lang
benlovell has joined #ruby-lang
zlogan has quit [Ping timeout: 255 seconds]
jgpawletko_away is now known as jgpawletko
solars has joined #ruby-lang
solars has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GBrawl has joined #ruby-lang
amsi has joined #ruby-lang
havenwood has joined #ruby-lang
banister has joined #ruby-lang
zlogan has joined #ruby-lang
Lewix has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
zlogan has quit [Ping timeout: 260 seconds]
seank__ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
emmesswhy has joined #ruby-lang
JohnBat26 has joined #ruby-lang
skade has joined #ruby-lang
cout is now known as CoutMarburg
jimbach has quit [Remote host closed the connection]
emmesswhy has quit [Client Quit]
jimbach has joined #ruby-lang
CoutMarburg is now known as CoutLassa
mikecmpbll has quit [Ping timeout: 244 seconds]
zlogan has joined #ruby-lang
jimbach has quit [Ping timeout: 246 seconds]
taylorrf has joined #ruby-lang
Gabri has joined #ruby-lang
ad_boot has joined #ruby-lang
zlogan has quit [Ping timeout: 255 seconds]
jbardin has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 260 seconds]
ledestin_ is now known as ledestin
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zlogan has joined #ruby-lang
emmesswhy has joined #ruby-lang
wicked_shell has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
taylorrf has quit [Ping timeout: 255 seconds]
<wicked_shell> hi all, what book could you recommend for a medicore c++ programmer starting out in ruby? i am mostly interested in using it for scripting and system administration
RobertBirnie has joined #ruby-lang
<centrx> medicore, is that like half of hardcore
zlogan has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
<centrx> wicked_shell, This is a good book, but not tailored toward scripting/sysadmin: https://pragprog.com/book/ruby4/programming-ruby-1-9-2-0
<centrx> wicked_shell, Also try asking in #ruby
zlogan has joined #ruby-lang
<wicked_shell> ty
allcentury has joined #ruby-lang
gss has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 250 seconds]
gjaldon has joined #ruby-lang
zlogan has joined #ruby-lang
mark06 has left #ruby-lang ["http://pidgin.renatosilva.me - Pidgin++"]
workmad3 has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Max SendQ exceeded]
rolfb has joined #ruby-lang
michaeldeol has joined #ruby-lang
zlogan has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
rolfb has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dorei has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby-lang
zlogan has quit [Ping timeout: 258 seconds]
chills42 has joined #ruby-lang
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
tylersmith has joined #ruby-lang
hellangel7 has joined #ruby-lang
ikrima has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
tbuehlmann has quit [Remote host closed the connection]
skade has joined #ruby-lang
mikecmpbll has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
zlogan has joined #ruby-lang
imperator has quit [Quit: Valete!]
klmlfl has joined #ruby-lang
ad_boot has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 250 seconds]
zlogan has quit [Ping timeout: 255 seconds]
skade has quit [Read error: Connection reset by peer]
zlogan has joined #ruby-lang
skade has joined #ruby-lang
tylersmith has quit []
danijoo has quit [Read error: Connection reset by peer]
arBmind has quit [Quit: Leaving.]
danijoo has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
zlogan has quit [Ping timeout: 272 seconds]
Gabri has quit []
benlovell has joined #ruby-lang
zlogan has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
gregf_ has quit [Ping timeout: 244 seconds]
ikrima has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
zlogan has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rcvalle has joined #ruby-lang
zlogan has joined #ruby-lang
ad_boot has joined #ruby-lang
zlogan has quit [Ping timeout: 250 seconds]
gianlucadv has joined #ruby-lang
zlogan has joined #ruby-lang
klmlfl has joined #ruby-lang
Lewix has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
skalsson has joined #ruby-lang
stamina has joined #ruby-lang
klmlfl has quit [Ping timeout: 255 seconds]
bradcliffe has joined #ruby-lang
rolfb has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zlogan has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
emmesswhy has quit [Quit: This computer has gone to sleep]
MeMoCooL has joined #ruby-lang
bradcliffe has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
apeiros has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
zlogan has quit [Ping timeout: 250 seconds]
zlogan has joined #ruby-lang
chills42 has quit [Ping timeout: 260 seconds]
chills42 has joined #ruby-lang
sMecKs has joined #ruby-lang
rolfb has quit [Ping timeout: 255 seconds]
bradcliffe has joined #ruby-lang
zlogan has quit [Ping timeout: 245 seconds]
zlogan has joined #ruby-lang
arooni-mobile has joined #ruby-lang
zlogan has quit [Ping timeout: 272 seconds]
zlogan has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 272 seconds]
zlogan has joined #ruby-lang
chills42 has joined #ruby-lang
bradcliffe has quit [Ping timeout: 255 seconds]
chills42 has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
zlogan has quit [Ping timeout: 255 seconds]
sharpmachine has joined #ruby-lang
momomomomo has joined #ruby-lang
zlogan has joined #ruby-lang
cornerma1 has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
bradcliffe has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
yfeldblum has joined #ruby-lang
chills42 has joined #ruby-lang
_rgn is now known as _rai
bradcliffe has joined #ruby-lang
bradcliffe has quit [Max SendQ exceeded]
zlogan has quit [Ping timeout: 250 seconds]
bradcliffe has joined #ruby-lang
stamina has quit [Ping timeout: 258 seconds]
rolfb has joined #ruby-lang
zlogan has joined #ruby-lang
emmesswhy has joined #ruby-lang
rolfb_ has joined #ruby-lang
benanne has joined #ruby-lang
havenwood has joined #ruby-lang
rolfb has quit [Ping timeout: 272 seconds]
zlogan has quit [Ping timeout: 260 seconds]
rolfb_ has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
emmesswhy has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 250 seconds]
postmodern has joined #ruby-lang
zlogan has joined #ruby-lang
mistym has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
klmlfl has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby-lang
zlogan has quit [Ping timeout: 272 seconds]
zlogan has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
imperator has joined #ruby-lang
zlogan has quit [Ping timeout: 246 seconds]
bradcliffe has quit [Ping timeout: 244 seconds]
zlogan has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
tenderlove has quit [Quit: Leaving...]
wallerdev has joined #ruby-lang
musl has quit [Ping timeout: 240 seconds]
zlogan has quit [Ping timeout: 255 seconds]
ikrima has joined #ruby-lang
zlogan has joined #ruby-lang
bradcliffe has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
bradcliffe has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby-lang
zlogan has quit [Ping timeout: 255 seconds]
bradcliffe has joined #ruby-lang
zlogan has joined #ruby-lang
bradcliffe has quit [Read error: Connection reset by peer]
bradcliffe has joined #ruby-lang
brianpWins has joined #ruby-lang
momomomomo has quit [Ping timeout: 272 seconds]
macberrypro has joined #ruby-lang
dknox-brb is now known as dknox
dknox is now known as dknox-brb
hellangel7 has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 250 seconds]
macberrypro has left #ruby-lang [#ruby-lang]
wsmoak_ has joined #ruby-lang
wsmoak has quit [Ping timeout: 255 seconds]
wsmoak_ is now known as wsmoak
taylorrf has joined #ruby-lang
momomomomo has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
banister is now known as banisterfiend
mkaesz has quit [Quit: Leaving...]
enebo has joined #ruby-lang
zlogan has joined #ruby-lang
wicked_shell has quit [Quit: no specific reason]
gjaldon has quit []
maciellvm has joined #ruby-lang
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
maciellvm is now known as Sephyros
<Sephyros> Hello, can someone help me? i cant download and install gems
<Sephyros> note: i am behind a proxy
zlogan has quit [Ping timeout: 255 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
<Sephyros> i am using Linux, i already set proxy settings in many places, like bash.bashrc, .bashrc, apt.conf, .curlrc, .gemrc ...
<imperator> gem install -p ?
zlogan has joined #ruby-lang
<Sephyros> but i still get 403...
<Sephyros> and i am using RVM too
wallerdev has quit [Quit: wallerdev]
loincloth has joined #ruby-lang
bantic has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 246 seconds]
jimbach has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
zlogan has joined #ruby-lang
jimbach has joined #ruby-lang
macberrypro has joined #ruby-lang
<Sephyros> Why Ruby is too hard to configure?
fusillicode has quit [Quit: Leaving.]
<Sephyros> you could win time on development, but you lost much more on configuration of development environment
<havenwood> Sephyros: tried setting HTTP_PROXY_USER and HTTP_PROXY_PASS?
<Sephyros> USER and PASS?
jimbach has quit [Ping timeout: 260 seconds]
zlogan has quit [Ping timeout: 244 seconds]
jimbach has joined #ruby-lang
<havenwood> Sephyros: gem h en | grep -i proxy
tdy has quit [Remote host closed the connection]
<Sephyros> its inside .gemrc?
macberrypro has left #ruby-lang [#ruby-lang]
jimbach has quit [Ping timeout: 240 seconds]
<havenwood> Sephyros: no, the environment variables
Sephyros has quit [Quit: Leaving]
<havenwood> e.g.: set HTTP_PROXY="a.b.com:8080"
macberrypro has joined #ruby-lang
<havenwood> set HTTP_PROXY_PASS="s3kr3ti'lln3v3rt3ll"
MeMoCooL has quit []
<havenwood> like from Ruby: ENV['HTTP_PROXY'] = 'a.b.com:8080'
<havenwood> ish
macberrypro has left #ruby-lang [#ruby-lang]
chills42 has quit [Remote host closed the connection]
jbardin has quit [Quit: jbardin]
zlogan has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
yfeldblu_ has joined #ruby-lang
amsi has quit [Ping timeout: 272 seconds]
amsi has joined #ruby-lang
ad_boot has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
zlogan has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
bantic has quit [Quit: bantic]
solars has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
jbardin has joined #ruby-lang
zlogan has joined #ruby-lang
onkelhotte has joined #ruby-lang
onkelhotte has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
momomomomo has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
zlogan has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby-lang
zlogan has joined #ruby-lang
miqui has quit [Remote host closed the connection]
thagomizer has quit [Quit: Leaving.]
ikrima has quit [Ping timeout: 246 seconds]
thagomizer has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
bantic has joined #ruby-lang
ohsix has quit [Ping timeout: 260 seconds]
yfeldblu_ has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 255 seconds]
ohsix has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
zlogan has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
yfeldblum has joined #ruby-lang
klmlfl has quit [Read error: Connection reset by peer]
gianlucadv has quit [Ping timeout: 246 seconds]
hackeron has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby-lang
tenderlove has joined #ruby-lang
hackeron has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
jbardin has quit [Quit: jbardin]
scampbell has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
solars has joined #ruby-lang
sharpmachine has joined #ruby-lang
MichD is now known as michd
loincloth has joined #ruby-lang
arBmind has joined #ruby-lang
zlogan has joined #ruby-lang
arBmind has left #ruby-lang [#ruby-lang]
zlogan has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
jbardin has joined #ruby-lang
_ht has quit [Remote host closed the connection]
zlogan has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
imperator has quit [Quit: Valete!]
flute_booth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zlogan has quit [Ping timeout: 244 seconds]
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zlogan has joined #ruby-lang
bradcliffe has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
zlogan has quit [Ping timeout: 255 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Quit: (IRC Client: textualapp.com)]
ledestin has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
thagomizer has quit [Quit: Leaving.]
thagomizer has joined #ruby-lang
mbeasley has joined #ruby-lang
djbkd has joined #ruby-lang
zlogan has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
zlogan has quit [Ping timeout: 260 seconds]
mbeasley has quit [Quit: leaving]
mbeasley has joined #ruby-lang
mbeasley has quit [Client Quit]
dknox-brb is now known as dknox
jgpawletko has quit [Quit: jgpawletko]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
GBrawl has quit [Quit: (null)]
skalsson has quit [Remote host closed the connection]
ggherdov has quit [Ping timeout: 260 seconds]
kaiza has quit [Ping timeout: 260 seconds]
lacrosse__ has quit [Read error: Connection reset by peer]
eval-in_ has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
eval-in_ has joined #ruby-lang
marr has quit [Ping timeout: 260 seconds]
mistym has quit [Ping timeout: 260 seconds]
eristic has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
lacrosse__ has joined #ruby-lang
oleo is now known as Guest70443
oleo__ has joined #ruby-lang
Kabaka has quit [Ping timeout: 260 seconds]
eristic has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kaiza has joined #ruby-lang
Guest70443 has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 255 seconds]
Kabaka has joined #ruby-lang
ggherdov has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
whippythellama has quit [Quit: whippythellama]
nathanstitt has quit [Quit: I growing sleepy]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
mistym has joined #ruby-lang
zlogan has joined #ruby-lang
benanne has quit [Quit: kbai]
centrx has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
houhoulis has joined #ruby-lang
enebo has quit [Ping timeout: 272 seconds]
loincloth has quit [Remote host closed the connection]
Asher has joined #ruby-lang
jimbach has joined #ruby-lang
emmesswhy has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
charliesome has joined #ruby-lang
bantic has quit [Quit: bantic]
cads has joined #ruby-lang
<cads> hey guys, quick question
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby-lang
<waxjar> that wasn't very quick cads :p
<cads> I know I'm not supposed to filter/parse html with a regular expression since there are better parsing method - can you guys help me filter some html?
ikrima has joined #ruby-lang
<centrx> cads, Use "nokogiri"
<cads> I have a document with 'p' tag with and id called 'note', and that contans an 'a' tag of class 'img', with an href that has a url of format "/profile/Profilename"
<waxjar> have a look at nokogiri or a similar gem. this page lists a few (https://www.ruby-toolbox.com/categories/html_parsing)
zlogan has joined #ruby-lang
<cads> and I'd like to pull just the 'Profilename' part
<waxjar> most of the time you can just get at your element with a css selector :)
<waxjar> *can get *with just
NoNMaDDeN has quit [Quit: Leaving...]
<cads> hmm, it was vaguely occurring to me the other day that a CSS selector might be the right way to go
<cads> I am already using the watir-webdriver, and I think I might be able to use a CSS selector there
<cads> I guess I'll brush up on those, see if watir can use them, and elsewise use nokogiri
lcdhoffman has joined #ruby-lang
<cads> sound right?
<waxjar> i watir like a headless webbrowser?
zlogan has quit [Ping timeout: 272 seconds]
<cads> as far as I understand it, watir-webdriver uses selenium to fire up a web browser of your choice, which you can then control
zlogan has joined #ruby-lang
<waxjar> right. heavy tool ^^
s1kx has quit [Quit: Leaving]
<cads> for example you can do b = Watir::Browser.new, then do b.goto 'someurl'
<cads> it's neat since it exposes some html tags directly in its interface, like for example b.test_field(:id, "username").set "name"; b.link(:id, "sign_in").click
<cads> s/test_field/text_field
<cads> that would find a text field with id 'username', set it to "name" and push the sign in button
<waxjar> if you already have to use watir and it can do what you need, then i'd stick with it yea
<waxjar> if all you need to do is scrape a few html tags, nokogiri (or similar) seems a better fit :)
jimbach has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 260 seconds]
aarellano has joined #ruby-lang
<cads> b.html would scrape the whole page's html file, and I could easily push it into nokogiri, but I'm really hoping watir exposes an interface for css selectors
jimbach has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<cads> will pivot to noko ASAP otherwise
zlogan has joined #ruby-lang
djbkd has joined #ruby-lang
seank__ has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
nathanstitt has joined #ruby-lang
jimbach has quit [Ping timeout: 260 seconds]
seank_ has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby-lang
zlogan has quit [Ping timeout: 255 seconds]
zlogan has joined #ruby-lang
ikrima has quit [Ping timeout: 272 seconds]
bantic has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
<cads> waxjar, watir can run headless, but it still runs a full browser instance
<cads> I wonder if there is a web test automation tool that simply pretends to be a full browser
mistym has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
zlogan has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
lcdhoffman has quit [Quit: lcdhoffman]
tenderlove has quit [Ping timeout: 246 seconds]
zlogan has joined #ruby-lang
michaeldeol has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
zlogan has quit [Ping timeout: 246 seconds]
AmBienCeD_ has joined #ruby-lang
zlogan has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AmBienCeD has quit [Ping timeout: 272 seconds]
karamazov has quit []
jimbach has joined #ruby-lang
zlogan has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
zlogan has joined #ruby-lang
|jemc| has quit [Ping timeout: 255 seconds]
Asher has quit [Quit: Leaving.]
arBmind1 has joined #ruby-lang
zlogan has quit [Ping timeout: 272 seconds]
zlogan has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
zlogan has quit [Ping timeout: 244 seconds]
TheToad_ has quit [Read error: Connection reset by peer]
zlogan has joined #ruby-lang
dorei has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zlogan has quit [Ping timeout: 260 seconds]
zlogan has joined #ruby-lang
musl has joined #ruby-lang
karamazov has joined #ruby-lang
jdecuirm has joined #ruby-lang
<cads> waxjar, made some progress!
<cads> I can pull the link URL from the correct part of the page
<cads> and I'm using a regex to pull the username from that