apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
Pupeno has quit [Ping timeout: 256 seconds]
path[l] has quit [Quit: path[l]]
Flowrhent has quit [Quit: Flowrhent]
juanpablo__ has quit [Ping timeout: 272 seconds]
thinkswan has quit [Ping timeout: 252 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
n80 has joined #ruby
OtterCoder has joined #ruby
AlphaTech has joined #ruby
d0t has joined #ruby
<d0t> HI
Hijiri has joined #ruby
bronson has quit []
ta has joined #ruby
<havenwood> hi
AlexRussia has quit [Ping timeout: 248 seconds]
<GaryOak_> yo yo yo
<d0t> :DD
<d0t> Hi Gary0ak
<GaryOak_> hey
<d0t> How are you ?
<GaryOak_> dorei: and even while being ddosed they had pretty decent service
<GaryOak_> d0t: I'm good
c_nick has joined #ruby
<GaryOak_> How are you?
dfinninger has quit [Remote host closed the connection]
<d0t> Fine
<GaryOak_> Here to ask a ruby question?
<dorei> i have a rather general question
reinaldob has quit [Remote host closed the connection]
<dorei> let's say I paginate over a dataset, what happens if more data are added into the DB while I paginate?
<dorei> shouldn't I execute the whole query and fetch all data without limit, put them in some temp table or some cache mechanism and then paginate over there?
psychopath_mind has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.4/20150320202338]]
<GaryOak_> dorei: depends how you are using the data
AndyBotwin has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 264 seconds]
<dorei> GaryOak_: what are my options? :)
<GaryOak_> If you're talking about paginating in the web browsing sense
<dorei> yeap, in that sense
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c_nick has quit [Client Quit]
<GaryOak_> it's not terribly costly to do a database call every page request
startupality has joined #ruby
zeus_hammer has joined #ruby
<GaryOak_> cache is good for data that isn't going to change all that often
ChasedSpade is now known as ChasedSpade|ill
bigmac has joined #ruby
shadoi2 has quit [Quit: Leaving.]
<dorei> let me be more specific, i do select something from something limit 1, 25, that first page, when one clicks next page, i do the same select but with limit 26, 25
<dorei> but meanwhile new data are added in the db so there are gaps between the two pages
yqt has quit [Ping timeout: 248 seconds]
davidhq has quit [Ping timeout: 250 seconds]
<henrikhodne> `LIMIT OFFSET` can be a bit costly depending on the size of the data set, though, especially if you go through a lot of pages. If you are fine with "next page" and "previous page" only, this page has some suggestions for how to use the database to handle this: http://use-the-index-luke.com/sql/partial-results/fetch-next-page
bonhoeffer has joined #ruby
yfeldblum has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
<GaryOak_> also if you are having that much change between page requests, you probably should think about another nav mechanic besides pagination
<dorei> henrikhodne: thanx :)
The_Phoenix has quit [Read error: Connection reset by peer]
<GaryOak_> or like henrikhodne mentioned just do a prev/next
<henrikhodne> The short version is order by something deterministic like (date, id) (or just id if that's sufficient), then instead of storing the page number in the URL, you do something like after_date=...&after_id=...
<dorei> got it :)))
lektrik has joined #ruby
bruno- has joined #ruby
_honning_ has joined #ruby
reinaldob has joined #ruby
iml has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
yh has quit [Ping timeout: 248 seconds]
d0t has quit [Quit: Lost terminal]
path[l] has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
centrx has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 245 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
marr has quit [Ping timeout: 244 seconds]
Vile` has quit [Remote host closed the connection]
replay has quit [Ping timeout: 252 seconds]
babykosh has joined #ruby
babykosh has quit [Read error: Connection reset by peer]
babykosh has joined #ruby
serivich has joined #ruby
Vile` has joined #ruby
<henrikhodne> k:q
path[l] has quit [Client Quit]
Wolland has joined #ruby
_honning_ has quit [Ping timeout: 256 seconds]
gr33n7001 has joined #ruby
work_op has quit [Ping timeout: 246 seconds]
nerium has quit [Quit: nerium]
gr33n7001 has quit [Client Quit]
Sirupsen has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
zzing has joined #ruby
gr33n7007h has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
babykosh has quit [Quit: babykosh]
iamjarvo has joined #ruby
CorpusCallosum has quit [Ping timeout: 245 seconds]
dmr8 has joined #ruby
havenn has joined #ruby
robustus has joined #ruby
noname1 has joined #ruby
AlexRussia has joined #ruby
RegulationD has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
rbennacer has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
replay has joined #ruby
thinkswan has joined #ruby
triple_b has joined #ruby
paulcsmith has joined #ruby
x1337807x has joined #ruby
vim_shimm has joined #ruby
centrx has joined #ruby
rbennacer has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
cjim_ has joined #ruby
djbkd has quit [Quit: My people need me...]
nb_bez___ has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
caconym has quit [Quit: leaving]
Hobogrammer has joined #ruby
iliketurtles has quit [Ping timeout: 256 seconds]
thiagovks is now known as tanenbaum
Spami has quit [Quit: This computer has gone to sleep]
zeus_hammer has quit [Quit: zeus_hammer]
krisquigley has joined #ruby
lektrik has quit [Ping timeout: 265 seconds]
sevvie has quit [Ping timeout: 264 seconds]
arescorpio has quit [Remote host closed the connection]
kblake has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 255 seconds]
<shevy> totimkopf nah, I just was there years ago and noticed the many cats. here in vienna we don't really have stray cats, at least not in masses
<dorei> shevy: dont you have problems with mice?
<totimkopf> that's because they eat cats in Austria
senayar has quit []
Sawbones has joined #ruby
<shevy> dorei yeah, lots of mice, my cat catches a few of them every now and then. but they are really small mice, I think the largest was about... 14 cm or so, perhaps they were just baby mice who were dumb enough to get caught
reset has quit [Quit: Leaving...]
<dorei> more stray cats => less stray mice
krisquigley has quit [Ping timeout: 248 seconds]
nii236 has joined #ruby
towski_ has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
bigmac has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
replay has quit [Ping timeout: 264 seconds]
<dorei> time for some sleep, gnight all :)
oo_ has quit [Remote host closed the connection]
dorei has quit []
ghostpl_ has joined #ruby
nmalacarne has joined #ruby
sevenseacat has joined #ruby
hpoydar has quit [Remote host closed the connection]
oo_ has joined #ruby
replay has joined #ruby
bigmac has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
lessless has joined #ruby
jerematic has joined #ruby
zacts has joined #ruby
tkuchiki has joined #ruby
charliesome has quit [Quit: zzz]
beneggett has joined #ruby
rajeshchawla has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
totimkopf has quit [Quit: leaving]
yh has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
oo_ has quit [Remote host closed the connection]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
Megtastique has joined #ruby
oo_ has joined #ruby
yh has quit [Ping timeout: 265 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
path[l] has joined #ruby
djellemah__ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
hmsimha has joined #ruby
amclain has joined #ruby
djellemah_ has quit [Ping timeout: 245 seconds]
stryek has quit [Quit: leaving]
felixjet has quit [Read error: Connection reset by peer]
felixjet has joined #ruby
baweaver has quit [Remote host closed the connection]
n80 has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
Trynemjoel has quit [Ping timeout: 256 seconds]
cpt_yossarian has joined #ruby
bruno- has joined #ruby
Trynemjoel has joined #ruby
doritostains has joined #ruby
atomi has quit [Quit: brb new hardware]
Wolland has quit []
bruno- has quit [Ping timeout: 250 seconds]
mbeasley_ has joined #ruby
mbeasley_ has quit [Client Quit]
tier has quit [Remote host closed the connection]
Guest74 has joined #ruby
phutchins has joined #ruby
startupality has quit [Quit: startupality]
dfinninger has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
virtualbsd has joined #ruby
jaequery has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cacocola has joined #ruby
nanSTA has joined #ruby
RegulationD has joined #ruby
jonr22 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
virtualbsd has quit [Ping timeout: 256 seconds]
nmalacarne has quit [Read error: Connection reset by peer]
nanSTA has quit [Ping timeout: 245 seconds]
nmalacarne has joined #ruby
djbkd has joined #ruby
riotjones has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Feyn has joined #ruby
djbkd has quit [Client Quit]
c_nick has joined #ruby
kblake has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
tanenbaum is now known as thiagovsk
iliketurtles has joined #ruby
wallerdev has quit [Quit: wallerdev]
djbkd has joined #ruby
eshiffob has joined #ruby
kblake has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
x1337807x has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
n80 has left #ruby [#ruby]
Soliah has joined #ruby
cefkamcau has quit [Ping timeout: 250 seconds]
nmalacarne has quit [Ping timeout: 252 seconds]
cjim_ has quit [Quit: (null)]
hpoydar has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
<shevy> hmm
<shevy> Would you say that a Hash is more powerful than an Array?
<rager> "yes"?
<Radar> !8ball
<helpa> Signs point to yes.
<Radar> HELPA HAS SPOKEN
<rager> it's a meaningless question, imo
<Radar> but please define "powerful"
<sevenseacat> its approximately 23% more powerful.
<rager> you could implement the Array interface backed by a Hash
<rager> and vice versa
<rager> the latter would be... painful
<shevy> yeah
phutchins has quit [Ping timeout: 272 seconds]
agrinb has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
nmalacarne has joined #ruby
agrinb has joined #ruby
hpoydar has quit [Ping timeout: 255 seconds]
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
amystephen has quit [Quit: amystephen]
nmalacarne has quit [Read error: Connection reset by peer]
krz has joined #ruby
<rager> "stateless" session token that contains an hmac signed user id *OR* "stateful" session token that is a key to some storage that contains user id
nmalacarne has joined #ruby
<rager> how much is being truly stateless worth?
bonhoeffer has quit [Quit: bonhoeffer]
ponga has quit [Read error: Connection reset by peer]
<Radar> what is that token going to be used?
<Radar> used for*
deol has joined #ruby
fawkes1 has joined #ruby
nmalacarne has quit [Ping timeout: 245 seconds]
fawkes1 has quit [Max SendQ exceeded]
C1ph3r has joined #ruby
Joufflu has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
Sawbones has quit [Remote host closed the connection]
jeramy_s has joined #ruby
oo_ has quit [Remote host closed the connection]
sevvie has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
psychopath_mind has joined #ruby
psychopath_mind is now known as edmilsonefs
ghostpl_ has joined #ruby
triple_b has joined #ruby
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
vim_shimm has joined #ruby
jerematic has quit [Remote host closed the connection]
iliketurtles has quit [Remote host closed the connection]
atomi has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
serivich has quit [Ping timeout: 244 seconds]
<rager> Radar: iOS and ajax app
<rager> not sure, but I think the users are probably going to be more sporadic, so the tokens will be pretty long-lived
<rager> currently, they just kinda last forever, but we can easily invalidate them
edmilsonefs is now known as psychopath_mind
krisquigley has joined #ruby
nanSTA has joined #ruby
nanSTA has quit [Remote host closed the connection]
iliketurtles has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kreeves has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
tus has quit []
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
Megtastique has quit []
GinoMan has joined #ruby
doritostains has quit [Quit: ##java]
sevvie has quit [Ping timeout: 264 seconds]
doritostains has joined #ruby
swgillespie has joined #ruby
sevvie has joined #ruby
cacocola has quit [Remote host closed the connection]
Megtastique has joined #ruby
dmr8 has quit [Read error: Connection reset by peer]
tmoor has quit [Quit: Leaving]
lektrik has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
axisys_ has quit [Quit: leaving]
sevvie has quit [Ping timeout: 244 seconds]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
graydot has quit [Quit: graydot]
babykosh has joined #ruby
lemur has joined #ruby
ponga has quit [Client Quit]
tmoor has joined #ruby
Blackhole has quit []
freerobby has joined #ruby
blazes816 has joined #ruby
x1337807x has joined #ruby
jeramy_s has quit [Quit: Peace out!]
kyrylo_ has joined #ruby
OtterCoder has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
tcrypt has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
soypirate has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
blazes816 has quit [Ping timeout: 264 seconds]
cjim_ has joined #ruby
replay has quit []
towski_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenokiller has quit [Ping timeout: 244 seconds]
nii236 has quit [Ping timeout: 256 seconds]
zacts has joined #ruby
milesmatthias has joined #ruby
towski_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
oo_ has quit [Remote host closed the connection]
ponga has joined #ruby
michael_mbp has joined #ruby
vim_shimm has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
rajeshchawla has joined #ruby
path[l] has quit [Quit: path[l]]
kyrylo__ has joined #ruby
braincrash has quit [Quit: bye bye]
kaspernj has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
nii236 has joined #ruby
kyrylo_ has quit [Ping timeout: 272 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dustpan has joined #ruby
w33nd0x has joined #ruby
<dustpan> ls
<shevy> haha dustpan
<dustpan> oops
nb_bez___ has quit [Quit: Connection closed for inactivity]
rajeshchawla has quit [Ping timeout: 264 seconds]
psychopath_mind has quit [Write error: Connection reset by peer]
psychopath_mind has joined #ruby
kreeves has quit []
braincrash has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donnior has joined #ruby
baash05 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<centrx> slay shevy
sevvie has quit [Ping timeout: 272 seconds]
<shevy> lol
donnior has left #ruby [#ruby]
tahmid has joined #ruby
tahmid has quit [Client Quit]
cjim_ has quit [Quit: (null)]
Fire-Dragon-DoL has quit []
towski_ has joined #ruby
existensil has joined #ruby
amystephen has joined #ruby
Pupeno has joined #ruby
tmoor has quit [Quit: Leaving]
donnior has joined #ruby
amystephen has quit [Client Quit]
<donnior> close
Pupeno_ has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
sevvie has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Channel6 has joined #ruby
hobodave has joined #ruby
iterator_ has joined #ruby
oo_ has quit [Remote host closed the connection]
AndyBotwin has quit [Quit: Leaving]
iteratorP has quit [Ping timeout: 252 seconds]
donnior has left #ruby ["WeeChat 1.0.1"]
Renich has joined #ruby
donnior has joined #ruby
_honning_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
GinoMan has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
c_nick has quit [Remote host closed the connection]
Kricir has joined #ruby
juanca_ has joined #ruby
iamjarvo has joined #ruby
nettoweb has joined #ruby
cacocola has joined #ruby
ponga has quit [Quit: Leaving...]
nettoweb has quit [Client Quit]
keen__________30 has quit [Ping timeout: 264 seconds]
donnior has left #ruby ["WeeChat 1.0.1"]
hpoydar has joined #ruby
DavidDudson has joined #ruby
cacocola has quit [Ping timeout: 264 seconds]
vim_shimm has joined #ruby
A205B064 has quit [Ping timeout: 256 seconds]
nii236 has quit [Read error: Connection reset by peer]
adriancb has quit [Remote host closed the connection]
deol has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
yxhuvud has quit [Ping timeout: 256 seconds]
hpoydar has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
MasterPiece has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
DavidDudson has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
jlast has joined #ruby
mistermocha has joined #ruby
agrinb has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
baash05 has quit [Quit: Page closed]
jlast has quit [Ping timeout: 250 seconds]
Mia has quit [Write error: Connection reset by peer]
mistermocha has quit [Ping timeout: 256 seconds]
Kricir has quit [Remote host closed the connection]
Nuck has joined #ruby
yxhuvud has joined #ruby
tujv has joined #ruby
ebbflowgo has joined #ruby
jottr has joined #ruby
tujv has quit [Client Quit]
tujv has joined #ruby
rajeshchawla has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
psychopath_mind has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.4/20150320202338]]
tcrypt has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
vim_shimm has quit [Ping timeout: 250 seconds]
rajeshchawla has quit [Ping timeout: 264 seconds]
Guest340 has quit [Ping timeout: 272 seconds]
ghostpl_ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
Olipro has joined #ruby
Olipro is now known as Guest62848
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
juanca_ has quit []
hobodave has joined #ruby
beneggett has joined #ruby
Sawbones has joined #ruby
beneggett has quit [Client Quit]
hobodave has quit [Client Quit]
tujv has quit [Quit: tujv]
hgl has quit [Ping timeout: 256 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostpl_ has quit [Ping timeout: 246 seconds]
towski_ has quit [Remote host closed the connection]
decoponio has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
macoecho has joined #ruby
deol has joined #ruby
mac_ has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
hgl has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
agrinb has quit [Remote host closed the connection]
krisquigley has joined #ruby
DEA7TH has joined #ruby
agrinb has joined #ruby
agrinb has quit [Remote host closed the connection]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
agrinb has joined #ruby
Nuck has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
dfinninger has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 272 seconds]
DavidDudson has joined #ruby
AlexRussia has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
soypirate has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
oo_ has joined #ruby
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Channel6 has quit [Quit: Leaving]
oo_ has quit [Ping timeout: 264 seconds]
andrewstewart has quit [Ping timeout: 272 seconds]
centrx has quit [Remote host closed the connection]
adambeynon has quit [Ping timeout: 272 seconds]
amitchellbullard has quit [Ping timeout: 272 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amitchellbullard has joined #ruby
benlakey has quit [Ping timeout: 272 seconds]
akitada has quit [Ping timeout: 272 seconds]
jmhmccr has quit [Ping timeout: 272 seconds]
benlakey has joined #ruby
adambeynon has joined #ruby
andrewstewart has joined #ruby
MasterPiece has quit [Ping timeout: 245 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akitada has joined #ruby
jmhmccr has joined #ruby
DavidDudson has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
adriancb has joined #ruby
lessless has joined #ruby
Sirupsen has joined #ruby
iterator_ has quit [Remote host closed the connection]
iteratorP has joined #ruby
beneggett has joined #ruby
arup_r has joined #ruby
lessless has quit [Client Quit]
arup_r_ has joined #ruby
bruno- has joined #ruby
jlast has joined #ruby
mistermocha has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
Feyn has quit [Quit: Leaving]
oo_ has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Ping timeout: 256 seconds]
zacts has joined #ruby
sevvie has joined #ruby
MasterPiece has joined #ruby
Sawbones has quit [Remote host closed the connection]
Renich has quit [Quit: leaving]
bruno- has quit [Ping timeout: 256 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 265 seconds]
DavidDudson has quit [Ping timeout: 246 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincra- has joined #ruby
arrubin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has quit [Ping timeout: 256 seconds]
rajeshchawla has joined #ruby
znst has quit [Ping timeout: 244 seconds]
rkazak has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
nii236 has joined #ruby
krz has quit [Ping timeout: 246 seconds]
Alayde has left #ruby ["WeeChat 1.0.1"]
bluOxigen has joined #ruby
rajeshchawla has quit [Ping timeout: 255 seconds]
znst has joined #ruby
oo_ has quit [Remote host closed the connection]
w33nd0x has quit [Quit: Leaving]
Megtastique has quit []
arup_r_ has quit []
Sawbones has quit [Remote host closed the connection]
oo_ has joined #ruby
riotjones has joined #ruby
sandelius has joined #ruby
RegulationD has joined #ruby
<eam> e
DeathCode has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
<DeathCode> so guys
<DeathCode> i took your advice and went on to learn ruby on rails on this text editor thing called git bash
Morkel has joined #ruby
<DeathCode> good idea or no?
RegulationD has quit [Ping timeout: 265 seconds]
_honning_ has quit [Ping timeout: 252 seconds]
<DeathCode> sevenseacat:
<sevenseacat> i dont know what that is.
<DeathCode> damn i just cant get this right can i
<sevenseacat> but it doesnt look like a test editor
<sevenseacat> text
_maes_ has joined #ruby
<DeathCode> i got it from this website
<sevenseacat> its not a text editor, its a terminal
<DeathCode> ahh ok
<DeathCode> so is this a good idea
<DeathCode> ?
<sevenseacat> i dont know why you need it
<DeathCode> i just dont know how to set it up for sublime text 2
<DeathCode> i just want to learn Ruby on rails
<DeathCode> why is this so hard to set up on the computer
<sevenseacat> because you're ignoring all the advice that people give you
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DeathCode> sigh
<DeathCode> i tried the sublime thing
<sevenseacat> a terminal has nothing to do with sublime text 2
<DeathCode> couldnt figure it out
<DeathCode> NO i tried sublime as well
<DeathCode> it didnt work
<DeathCode> so i switch to the terminal
<sevenseacat> what to not figure out? :/
<sevenseacat> you type stuff in files, and save them.
<DeathCode> ye how do i test my ruby application?
<DeathCode> and my rails web server?
<sevenseacat> if its a cli app, then you run it from the cli
<sevenseacat> if its a rails app, you start a rails server then open a browser
<sevenseacat> !gettingstarted
<helpa> http://guides.rubyonrails.org/getting_started.html - Getting started with Ruby on Rails guide written by Mike Gunderloy and Ryan Bigg
<sevenseacat> you're thinking theres this one-step magical tool that will be 'set up rails'. there isnt.
<sevenseacat> you have to learn how it all works.
<DeathCode> ok quick question
<DeathCode> first step
<sevenseacat> no.
<DeathCode> do i type that to cmd.exe ?
<sevenseacat> do you have rubygems installed?
<DeathCode> no but i have ruby installed
Pharaoh2 has joined #ruby
<DeathCode> and with ruby i installed the rails gems
<sevenseacat> then you will have rubygems installed
aganov has joined #ruby
<sevenseacat> okay so you already have rails installed, good
hpoydar has joined #ruby
<sevenseacat> so generate a new rails app and start learning
<DeathCode> ok ye i went like gem install rails or some command on the cmd file
_ixti_ has joined #ruby
<sevenseacat> follow the getting started guide, if you have any questions, ask in #rubyonrails because this is a general ruby room
sevvie has quit [Ping timeout: 264 seconds]
<DeathCode> sure can u just explain if i need to type that command in to the cmd
<DeathCode> ?
<sandelius> DeatchCode Zombies are great to learn from :) http://railsforzombies.org/
<sandelius> DeathCode
ixti has quit [Ping timeout: 245 seconds]
A205B064 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
patrick99e99 has quit [Ping timeout: 246 seconds]
<sevenseacat> you havent listed a command
<sandelius> DeathCode If you're using windows Railsinstaller is a good starting point: http://railsinstaller.org/en
<sevenseacat> yeah we gave him that yesterday
<sevenseacat> he ignored us
<sandelius> ok
patrick99e99 has joined #ruby
DavidDudson has joined #ruby
milesmatthias has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
x1337807x has joined #ruby
<DeathCode> yes yes sandelius i did that already today
<DeathCode> !
AlexRussia has quit [Ping timeout: 248 seconds]
<havenn> DeathCode: How's git bash working as your text editor so far?
<DeathCode> and i got the git bash thing to work
<DeathCode> idk i was asking if its a valid thing to do to learn ruby on rails
<sevenseacat> its 100% unrelated
_maes_ has quit [Read error: Connection reset by peer]
<havenn> DeathCode: Oh yes. You should try Bash on Balls, then you don't have to leave your git bash editor: https://github.com/jneen/balls
AlexRussia has joined #ruby
<sevenseacat> :/
<DeathCode> ye i'll try sevenseacat link first
<DeathCode> then report back
<sandelius> I work as a CTO at a company and yesterday was the first time a got a "Rails don't scale", "We should use node" statement thrown at me :) I said: "Ohh my young padawan" :)
<Radar> Node doesn't scale either.
<sandelius> nothing scales automatically
C1ph3r has quit [Ping timeout: 252 seconds]
astrobun_ has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
f3lp has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<Radar> Go does.
<Radar> #truefacts
<sevenseacat> oh he went there
paulcsmith has quit [Quit: Be back later ...]
gsd has joined #ruby
sigurding has joined #ruby
<sandelius> Radar I've only tried a Go a few times but I always feel when looking at OS projects that the project get messy with ton of files in the root. Perhaps there is a better way?
tagrudev has joined #ruby
<Radar> sandelius: create less files
<sevenseacat> lol
<sandelius> Radar so that's the solutions? :)
riotjones has joined #ruby
<sandelius> -s
beneggett has joined #ruby
sevvie has joined #ruby
<apeiros> moin
maletor has joined #ruby
DavidDudson has quit [Ping timeout: 252 seconds]
<DeathCode> sandelius brag more haha
duncannz has joined #ruby
<Radar> sandelius: Do you have any examples of those projects btw?
pengin has quit [Remote host closed the connection]
jlast has joined #ruby
codecop has joined #ruby
elaptics is now known as elaptics_away
CorySimmons has joined #ruby
<DeathCode> sevenseacat:so should i just learn ruby from cmd.exe then?
<DeathCode> cause thats what the getting started guide is making me do :P
<sevenseacat> you will need to be familiar with your terminal to work with ruby.
<sevenseacat> the default terminal in windows is cmd.exe.
christiandsg has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<DeathCode> sevenseacat:whats the step after i get familiar? what software do i use then? an IDE?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> your text editor.
<Nilium> vim.
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DeathCode> which is sublime
<sevenseacat> yep.
ChasedSpade|ill is now known as ChasedSpade
<DeathCode> so sublime is basically an editor like notepad?
RegulationD has joined #ruby
ghostpl_ has joined #ruby
<sevenseacat> its a text editor, yes.
rrichardsr3 has joined #ruby
last_staff has joined #ruby
<DeathCode> sevenseacat:so um, this might be a weird question. but how do i test my rails application? like, the webpage/server that i created?
<Radar> DeathCode: Focus on learning Ruby first.
<DeathCode> i'm kind of trying to get familiar with the environment here
<Radar> DeathCode: Take a week or two to learn JUST Ruby.
jlast has quit [Ping timeout: 256 seconds]
<DeathCode> can i use netbeans to just learn ruby?
<Radar> Then when you're feeling more confident about Ruby + your tools then move onto Rails.
<sevenseacat> you open your browser and visit the URL.
Joufflu has quit [Read error: Connection reset by peer]
<Radar> DeathCode: Use Sublime to edit Ruby files.
<Radar> Netbeans is bloaty and very confusing imop
<DeathCode> ah ok sevenseacat thank u so much
<DeathCode> radar ah ok
<DeathCode> so the .rb files i open with sublime and edit that stuff up. but is there a run feature in sublime?
<Radar> There is not a run feature. Run it in your cmd.exe.
gr33n7007h has quit [Ping timeout: 264 seconds]
<DeathCode> so drag the file to the cmd
<DeathCode> and it will run
<sevenseacat> >_<
<sevenseacat> no
<DeathCode> there was a way this friend of mine did it xD
<DeathCode> oh sorry it was komodo edit
<DeathCode> never mind
ta has joined #ruby
<DeathCode> thank u so much guys. i think my computer is set up
<DeathCode> i'll learn ruby for one whole week
<sevenseacat> hooray
<DeathCode> then come back for rails
<sevenseacat> gl
<DeathCode> ty
<DeathCode> :)
DeathCode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
RegulationD has quit [Ping timeout: 252 seconds]
<sevenseacat> he gives me a headache
krz has joined #ruby
cacocola has joined #ruby
<Radar> +`1
CorySimmons has quit [Quit: Bye!]
Shidash has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
vim_shimm has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenn has quit [Ping timeout: 252 seconds]
rajeshchawla has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
cacocola has quit [Remote host closed the connection]
krisquigley has joined #ruby
ascarter has joined #ruby
krz has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
vim_shimm has quit [Ping timeout: 255 seconds]
rajeshchawla has quit [Ping timeout: 244 seconds]
krisquigley has quit [Ping timeout: 252 seconds]
hectortrope has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
bal has joined #ruby
path[l] has joined #ruby
wottam has joined #ruby
hectortrope has quit [Quit: WeeChat 1.0.1]
Cork has quit [Ping timeout: 265 seconds]
MasterPiece has quit [Quit: Leaving]
zorak8 has quit [Ping timeout: 245 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
axisys has quit [Read error: Connection reset by peer]
axisys has joined #ruby
gr33n7007h has joined #ruby
lxsameer has joined #ruby
Wolland has joined #ruby
cacocola has joined #ruby
rkazak has left #ruby [#ruby]
iterator_ has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
cacocola has quit [Remote host closed the connection]
cacocola has joined #ruby
dustpan has quit [Ping timeout: 256 seconds]
cacocola has quit [Remote host closed the connection]
iteratorP has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
Shidash has joined #ruby
amclain has quit [Quit: Leaving]
Alina-malina has quit [Ping timeout: 244 seconds]
kyrylo__ is now known as kyrylo_
kyrylo_ is now known as kyrylo
jack_rabbit has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
chridal has joined #ruby
caconym has joined #ruby
greenbagels_ has joined #ruby
cacocola has joined #ruby
DavidDudson has joined #ruby
cacocola has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
krz has joined #ruby
greenbagels has quit [Ping timeout: 245 seconds]
<flughafen> sevenseacat: i give you a headache?
chridal has quit [Ping timeout: 265 seconds]
<sevenseacat> nah youre cool :)
allenn has joined #ruby
nii236 has quit [Ping timeout: 250 seconds]
<flughafen> ooh la la! you heard it here, sevenseacat said i was cool!
greenbagels_ has quit [Client Quit]
<flughafen> sevenseacat: can you print out some kind of certificate of coolness and mail it to me?
greenbagels has joined #ruby
<sevenseacat> lol
andikr has joined #ruby
<flughafen> how goes it sevenseacat
<flughafen> sup certainty shevy arup_r
<sevenseacat> not bad.... settling into a new job
<flughafen> sevenseacat: did you start at a new company
<sevenseacat> yep
<arup_r> sevenseacat: new Rails job? some other tech ?
<sevenseacat> rails :)
<sevenseacat> stick to what im good at
<arup_r> cool
<arup_r> sevenseacat: you have dozens of Rails app experience.. so you can work anywhere... I know :)
<flughafen> arup_r: sevenseacat is web scale
<arup_r> flughafen: hum.. good very good
relix has joined #ruby
<arup_r> I don't know when I'll complete dozens of app..
<arup_r> still.. 2
<flughafen> coly cow it's windy today
Sgeo has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
nii236 has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Sgeo_ has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has quit [Ping timeout: 252 seconds]
aswen has joined #ruby
<flughafen> i was surprised when i walked around a building and was almost blown away by the wind. i was looking down at my mp3 player and didn't hear anything.
oo_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
<certainty> flughafen: windy? that's only a slight breeze
<hanmac> you think you have problems with the weather? currently its snowing outside, i think it would make more sense to leave the eggs white this year ;P
jlast has quit [Ping timeout: 256 seconds]
nii236 has quit [Ping timeout: 244 seconds]
<certainty> :)
oo_ has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
<certainty> as we say here: "Es ist erst windig, wenn die Schafe keine Locken mehr haben."
DavidDudson has quit [Ping timeout: 256 seconds]
tlarevo has joined #ruby
<flughafen> hanmac: where are you?
tkuchiki has joined #ruby
<flughafen> haha.
<flughafen> certainty: ^^
<certainty> xD
eshy has joined #ruby
<hanmac> certainty: i do live under the roof of our house and the roof itself is not isolated, so the wind can pass through if it wants ... and each time its very stormy outside i need to remember me that i am not in Kansas ;P
Cork has joined #ruby
Pharaoh2_ has joined #ruby
Cork is now known as Guest7947
nii236 has joined #ruby
<certainty> hanmac: hehe, stay calm dorothy
<hanmac> yeah i will do Toto ;P
Pharaoh2_ has quit [Max SendQ exceeded]
<certainty> man that was a movie
Pharaoh2_ has joined #ruby
<hanmac> plural, there are many more of it with that plot/context ... imo one of my favorits was "Tinman" which is a bit more steampunk like ;P
rajeshchawla has joined #ruby
wildroman2 has joined #ruby
Hounddog has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Guest7947 has quit [Changing host]
Guest7947 has joined #ruby
Pharaoh2 has quit [Ping timeout: 246 seconds]
<certainty> i didn't know there were more
<certainty> #ruby is such a knowledgable place
<certainty> :p
Guest7947 is now known as Cork
sandelius has joined #ruby
DavidDudson has joined #ruby
rajeshchawla has quit [Ping timeout: 250 seconds]
msgodf has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<certainty> alright let's bootup emacs
someonespace has joined #ruby
DavidDudson has quit [Ping timeout: 256 seconds]
* flughafen sighs
<flughafen> emacs? could you for once, not talk about emacs certainty
<certainty> flughafen: nope, i'm in love
Elite6809 has joined #ruby
chridal has joined #ruby
<flughafen> i love vim everybody ;)
<certainty> see
<certainty> how does it feel?
<flughafen> GREAT!
nii236 has quit [Ping timeout: 256 seconds]
<flughafen> wie ein schaf ohne locken
<certainty> xD
ta has joined #ruby
<hanmac> certainty: " The systemd Project Forks the Linux Kernel" => http://distrowatch.com/weekly.php?issue=20150330#community ;P
nii236 has joined #ruby
hpoydar has joined #ruby
jack_rabbit has joined #ruby
<avril14th> morning
<SebastianThorn> certainty: i love emacs aswell :)
Rollabunna has quit [Remote host closed the connection]
<flughafen> they're turnign against me!
<certainty> SebastianThorn: hah, ^5
antgel_ has joined #ruby
<certainty> even if they didn't until now, the intentions seem to be clear
<certainty> (fork)
Rollabunna has joined #ruby
Shidash has quit [Ping timeout: 255 seconds]
<SebastianThorn> i dont get it, arent they allowed to fork if they wanted to?
<certainty> they are
rdark has joined #ruby
<certainty> it's not so much about the fork itself, it's about wanting to take care of everything
<certainty> that's been a tendency in the development
DavidDudson has joined #ruby
ta has quit [Ping timeout: 252 seconds]
<SebastianThorn> certainty: in systemd's development?
hpoydar has quit [Ping timeout: 248 seconds]
<certainty> SebastianThorn: yeah. I should've made that clearer, yepp, sorry.
Shidash has joined #ruby
beneggett has joined #ruby
martinbmadsen has quit [Quit: Lost terminal]
spider-mario has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
cacocola has joined #ruby
f3lp has joined #ruby
ki0 has joined #ruby
cacocola has quit [Remote host closed the connection]
cacocola has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
ebbflowgo has quit [Read error: Connection reset by peer]
terlar has joined #ruby
cacocola has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
DavidDudson has joined #ruby
cacocola has joined #ruby
rrichardsr3 is now known as rrichardsr3_away
colorisco has joined #ruby
cacocola has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
christiandsg has quit [Remote host closed the connection]
DavidDudson has quit [Client Quit]
cacocola has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 256 seconds]
<certainty> http://fsharpforfunandprofit.com/posts/monoids-without-tears/ nice introduction to monoids. apeiros you asked some time back.
edwinvdgraaf has joined #ruby
livathinos has joined #ruby
patrick99e99 has joined #ruby
gluten_hell has joined #ruby
DavidDudson has joined #ruby
pandaant has joined #ruby
djbkd has joined #ruby
DavidDudson has quit [Client Quit]
parduse has quit [Ping timeout: 250 seconds]
f3lp has quit [Ping timeout: 256 seconds]
babykosh has quit [Quit: babykosh]
Ove___ has quit [Ping timeout: 255 seconds]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
anarang has joined #ruby
DavidDudson has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
davedev24_ has quit [Remote host closed the connection]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
krz has quit [Ping timeout: 244 seconds]
DavidDudson has quit [Client Quit]
Jackneill has joined #ruby
<sandelius> web UI is soo hard...
<sandelius> Good web UI that is
quimrstorres has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
DavidDudson has joined #ruby
nii236 has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
codecop has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
DeathCode has joined #ruby
<DeathCode> ruby keeps me up at night
Akagi201_ has joined #ruby
ghostpl_ has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
nii236 has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
dblessing has joined #ruby
lessless has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Akagi201 has quit [Ping timeout: 255 seconds]
Shidash has quit [Ping timeout: 250 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
nii236 has quit [Ping timeout: 252 seconds]
<certainty> DeathCode: why is that?
krisquigley has joined #ruby
<DeathCode> i keep coding
<certainty> good
<DeathCode> dont even sleep
Ove_ has joined #ruby
polysics has joined #ruby
<DeathCode> gotta learn this shit
<DeathCode> gonna put food on my plate one day
jlast has joined #ruby
<certainty> DeathCode: well you should sleep
nii236 has joined #ruby
<certainty> it doesn't make sense not to
<DeathCode> no i cant waste time
joonty has joined #ruby
benlieb_ has joined #ruby
<sandelius> your memory and learning ability get waaay better with sleep
<certainty> DeathCode: you're wasting time if you don't sleep
<DeathCode> besides night time, i dont get much time to learn to code
<DeathCode> because in the day time i'm busy
vtunka has joined #ruby
<sandelius> prioritise?
<DeathCode> i learned java this way. and building apps
krisquigley has quit [Ping timeout: 250 seconds]
arquebus has joined #ruby
<certainty> well everyone is different. I can only speak for myself. I'd consider sleep a bit more so that i can actually learn instead of just getting more and more exhausted
<sevenseacat> :/
<certainty> that's the road to burnout and stuff
iterator_ has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
chrissonar has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
<certainty> sevenseacat: morning, mam. How's it downunder today?
<sevenseacat> warm
<sandelius> DeathCode why is it so important that you must learn Ruby in just a week?
* certainty is jealous
tkuchiki_ has joined #ruby
<certainty> DeathCode: here's a fact for you. Turns out it takes roughly 10 years to get in expert in one field
<DeathCode> because life is short. time passes by. i have to make money and start building web pages as soon as i can
Shidash has joined #ruby
DavidDudson has quit [Ping timeout: 245 seconds]
<certainty> s/get in/become an/
astrobun_ has joined #ruby
<sandelius> DeathCode But you already know Java?
claw has quit [Ping timeout: 256 seconds]
<DeathCode> yeah i do. but i want to learn a few more languages as well. this way i have better chance of getting a job
<DeathCode> trying to learn ruby on rails and mysql
sevvie has joined #ruby
oo_ has quit [Remote host closed the connection]
<DeathCode> then i want to apply it all on making apps or get a job with these skills
nii236 has quit [Ping timeout: 252 seconds]
<sandelius> DeathCode Well put food on the table with your Java skills and learn Ruby during?
<DeathCode> because i want more money than a minimum wage job. and i dont have a degree
vim_shimm has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<DeathCode> i feel like i have a talent in this. may not seem like this because i dont know how to get ruby set up. but i learned java really fast and i'm good at that
<sevenseacat> youve got a long road ahead if you want to use ruby to pay the bills
bradleyprice has quit [Remote host closed the connection]
<sevenseacat> and you wont be using windows for it
<DeathCode> ye
<DeathCode> but i have java as well in the background
rajeshchawla has joined #ruby
<sandelius> DeathCode Still I agree with sevenseacat, install Ubuntu, or by a Mac. That will make your Ruby life a whole lot simpler
ascarter_ has joined #ruby
<sevenseacat> but for now, windows is fine.
ta has joined #ruby
sephilix has joined #ruby
<DeathCode> i dont have the money to do that. or the time to get familiar with another os
<flughafen> just go the linux route
<sevenseacat> dont heap too much on the guy at once. he's a java dev. he wants point and click.
ascarter has quit [Ping timeout: 264 seconds]
<DeathCode> lel dont talk shit pls
<flughafen> sevenseacat: he has to create a point factory and make an abstract factory factory for clicking
<certainty> lel?
<certainty> gotcha
<sevenseacat> DeathCode: i'll talk whatever i want tbh
<certainty> lelele xD
<DeathCode> lele pons
<DeathCode> wait shit
<DeathCode> java is not easy for certain people either
oo_ has joined #ruby
<DeathCode> so when u talk like that it seems like its super easy but people can find it hard
<certainty> that's right. java is hard to bear for me
<sevenseacat> i never said it was easy, its just totally different to anything decent.
claw has joined #ruby
<DeathCode> damn...this like console wars?
<certainty> i like the fact that the cat manages to downgrade java in the tail of a sentence that started with something totally neutral
<sevenseacat> certainty: ;)
vim_shimm has quit [Ping timeout: 256 seconds]
c0m0 has joined #ruby
<certainty> :D
<flughafen> :DDDDDDD
<DeathCode> crips and the bloods. coke and pepsi. xbox and ps. mac and pc
<DeathCode> =DDDDDDDD
<Guest74> hi
<sevenseacat> sigh
rajeshchawla has quit [Ping timeout: 252 seconds]
<DeathCode> sup Guest42382
<Guest74> can anyone tell me how to install Nginx with Passenger
Takle has joined #ruby
<sandelius> Guest74 passenger ships with an nginx installer
<Guest74> yep
<sandelius> Guest74 when you install passenger you even get to choose to install it :)
<Guest74> i just want to depoy my rails app to EC2 s3 Amazon
ponga has joined #ruby
<DeathCode> do u guys like mech pencils or wooden pencils?
<ponga> DeathCode: latter, for feeling
<DeathCode> mech pencils does it for me
<DeathCode> haha
rocknrollmarc has quit [Ping timeout: 250 seconds]
<ponga> but its been so many yrs since i used pencil
<DeathCode> u use pen?
<DeathCode> i write everything with pencils
<ponga> mostly pen, at seldom occasions tho
arup_r has quit [Remote host closed the connection]
<ponga> i use my phone and laptop
jimms has joined #ruby
<DeathCode> ah ok
<DeathCode> what do u do ponga
<ponga> you asking job?
existensil has quit [Ping timeout: 244 seconds]
<DeathCode> yeah
<ponga> never though one's job is something you can ask like how much is this cheeseburger
cacocola has quit [Remote host closed the connection]
<ponga> im stunned
hs366 has joined #ruby
benlieb_ has quit [Quit: benlieb_]
<DeathCode> i dont know what u mean
<DeathCode> i cant ask someone's job like "how much is this cheeseburger?"
<DeathCode> ?
<DeathCode> but people do though. they ask "what do you do for a living?" all the time
<tobiasvl> what on earth are you guys talking about
<ponga> do you live in states?
<DeathCode> i live in Canada
<sevenseacat> just DeathCode being his usual charming self.
<ponga> perhaps its the culture there
cacocola has joined #ruby
<DeathCode> sevenseacat:you know it ;
<DeathCode> ;)
<DeathCode> ponga what about the culture here?
<tobiasvl> but
oo_ has quit [Remote host closed the connection]
cacocola has quit [Remote host closed the connection]
<ponga> his charm is too strong for me
<tobiasvl> I don't understand ponga's cheeseburger analogy
<flughafen> MONGOPONGA
<ponga> tobiasvl: me neither, its ok
<DeathCode> ye i thought he meant to say you can't ask what someone does for a living like asking "how much for a cheeseburger?" tobiasvl
<DeathCode> like you gotta warm them up first :P
krz has joined #ruby
<tobiasvl> do you mean that you didn't know that "what do you do" is shorthand for "what do you do for a living", like "how much" is shorthand for "how much is this"?
<tobiasvl> or that it's rude to ask what someone's job is?
<tobiasvl> or what
<ponga> DeathCode: i didn't intend 'warm them up first' but it sounds reasonable so i will take that
arquebus has quit [Quit: konversation disconnects]
<ponga> thank you
jheg has joined #ruby
<tobiasvl> haha
oo_ has joined #ruby
<DeathCode> you're on the next level tobiasvl
<DeathCode> you're overthunk it
<tobiasvl> maybe
tahmid has joined #ruby
blackmesa has joined #ruby
Cust0sL1men has quit [Ping timeout: 248 seconds]
cacocola has joined #ruby
tahmid has left #ruby [#ruby]
mengu has joined #ruby
mengu has joined #ruby
DEA7TH has quit [Ping timeout: 244 seconds]
rocknrollmarc has joined #ruby
Aswebb_ has joined #ruby
<flughafen> DeathCode: are you a java developer now?
<DeathCode> no?
<sevenseacat> wat
<DeathCode> i'm not a professional java dev
Spami has joined #ruby
<DeathCode> but i'm proficient with it yes
<ponga> DeathCode: is that where your nick came from
<DeathCode> hahaha thats funny
cacocola has quit [Ping timeout: 250 seconds]
<flughafen> how long have you been writing in java?
<DeathCode> long time. on and off really
<DeathCode> ever since i was 14
<certainty> you have my sympathy
max96at|off is now known as max96at
lordkryss has joined #ruby
marr has joined #ruby
<DeathCode> you had my curiosity
marr has quit [Remote host closed the connection]
<DeathCode> but now you have my attention
<flughafen> why don't you get a job as a java dev
quimrstorres has joined #ruby
<certainty> because he wants to be happy
d10n-work has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<DeathCode> i would. but this economy is rough
mistermocha has joined #ruby
<DeathCode> also i havent applied yet hehe
<flughafen> not for engineers
<DeathCode> mainly cuase most places that are hiring look for a range of languages
<DeathCode> not just java :(
* sevenseacat is wisely biting tongue
<DeathCode> say it sevenseacat
<sevenseacat> see, i know when to shut up.
<DeathCode> nah u still mentioned it
<DeathCode> so say it
ToApolytoXaos has joined #ruby
senayar has joined #ruby
exadeci has joined #ruby
timonv has joined #ruby
<DeathCode> sevenseacat:
sevvie has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 264 seconds]
elaptics_away is now known as elaptics
toertore has joined #ruby
<DeathCode> ye fuck u for thinking shit behind my back
govg has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
<sevenseacat> say that again?
<flughafen> haha
<sandelius> sevenseacat Gooday officer
path[l] has quit [Ping timeout: 245 seconds]
<sevenseacat> DeathCode: don't be rude.
<DeathCode> nah didnt mean it
charliesome has joined #ruby
leafybasil has quit [Remote host closed the connection]
<sevenseacat> wise decision.
macoecho has joined #ruby
mac__ has joined #ruby
<sandelius> DeathCode Don't take the Java crap personal. We all hate it
paulcsmith has joined #ruby
quimrstorres has quit [Remote host closed the connection]
iteratorP has quit [Remote host closed the connection]
<DeathCode> damn yall are some condescending motherfuckers
<apeiros> DeathCode: behave
<DeathCode> reminds me of them hot girls at the club the other night
<DeathCode> ok sorry
<apeiros> people are having an enormous amount of patience with you IMO
DeathCode was kicked from #ruby by sevenseacat [DeathCode]
krisquigley has joined #ruby
<certainty> who would've seen that coming?
DeathCode has joined #ruby
quimrstorres has joined #ruby
iteratorP has joined #ruby
<DeathCode> ye sorry about that
path[l] has joined #ruby
<sevenseacat> DeathCode: don't be rude.
<DeathCode> was joking. didnt mean to be mean
<apeiros> thank you sevenseacat
<DeathCode> or be obscene
<DeathCode> or make a great big scene
<apeiros> DeathCode: never say you were joking about being rude.
<DeathCode> never say neverrrr
<apeiros> it doesn't make it any better, only worse.
rocknrollmarc has quit [Ping timeout: 256 seconds]
<apeiros> at least with me and most people I know.
<DeathCode> i understand
<DeathCode> sorry for being so out of line
<DeathCode> and i truly, humbly apologize for any pain that i may or may not have caused
sevvie has quit [Ping timeout: 245 seconds]
<DeathCode> what was that one guy saying, that yall hate java?
<DeathCode> what caused this great divide?
<apeiros> one person doesn't speak for everybody
workmad3 has joined #ruby
<DeathCode> apeiros:how old are you?
<apeiros> I for one don't hate java. but that doesn't mean I want to code in it.
paulcsmith has quit [Ping timeout: 250 seconds]
quimrstorres has quit [Ping timeout: 264 seconds]
<flughafen> apeiros: i use java and i hate it ;)
<apeiros> flughafen: if I were forced to use it, maybe I'd hate it too :)
<DeathCode> flughafen:are u java developer?
<flughafen> i write in a few languages, java is one of tghem
<DeathCode> JavaIsAwesome()
<SebastianThorn> you forgot ;
<SebastianThorn> i think
<canton7> wrong casing, too
<apeiros> btw. DeathCode, while I don't speak for others, I find your permanent being off-topic annoying. just saying.
* apeiros current status - parsed logs from 2011-2015 with less than 30 failed lines :D
<apeiros> (#ruby logs)
joonty has quit [Quit: joonty]
ghostpl_ has joined #ruby
<DeathCode> am i always off-topic?
<DeathCode> i do ask for ruby related stuff?
<DeathCode> like how to set up ruby or rails
<apeiros> not always but permanently.
<DeathCode> ok?
<DeathCode> lol
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
universa1 is now known as universal
flcn___ has joined #ruby
arup_r has joined #ruby
joonty has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
mengu has quit [Read error: Connection timed out]
flcn___ has quit [Client Quit]
Shidash has quit [Ping timeout: 265 seconds]
ghostpl_ has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
flcn___ has joined #ruby
jlast has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cacocola has joined #ruby
universal is now known as universa1
marr has joined #ruby
selu has joined #ruby
Trioxin_ has joined #ruby
Shidash has joined #ruby
claptor has joined #ruby
Advocation has joined #ruby
mengu has quit [Remote host closed the connection]
nii236 has joined #ruby
Advocation has quit [Client Quit]
ghostpl_ has joined #ruby
Trioxin has quit [Ping timeout: 272 seconds]
macoecho has joined #ruby
mac__ has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
djellemah__ has quit [Quit: Leaving]
hectortrope has joined #ruby
djellemah has joined #ruby
cacocola has quit [Remote host closed the connection]
einarj has joined #ruby
cacocola has joined #ruby
path[l] has quit [Ping timeout: 245 seconds]
KnownSyntax has quit [Quit: Connection closed for inactivity]
ghostpl_ has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
selu has quit [Remote host closed the connection]
lolmaus has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
leafybasil has joined #ruby
hpoydar has joined #ruby
oo_ has quit [Remote host closed the connection]
sevvie has joined #ruby
DaniG2k has joined #ruby
malcolmva has quit [Ping timeout: 255 seconds]
path[l] has joined #ruby
leafybasil has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
leafybasil has joined #ruby
quimrstorres has joined #ruby
xcombelle has joined #ruby
krz has quit [Ping timeout: 272 seconds]
hpoydar has quit [Ping timeout: 250 seconds]
DavidDudson has joined #ruby
bim has quit [Remote host closed the connection]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
jimms has quit [Remote host closed the connection]
oo_ has joined #ruby
sandelius has quit [Read error: Connection reset by peer]
bim has joined #ruby
bim has quit [Read error: Connection reset by peer]
bim has joined #ruby
yh has joined #ruby
jefus__ has joined #ruby
thinkswan has quit [Quit: ...]
serivich has joined #ruby
malcolmva has joined #ruby
<flughafen> certainty: es ist wie er hat gefurzt und alles ist weg gegangen
evanfreeman has joined #ruby
bim has quit [Ping timeout: 265 seconds]
jefus_ has quit [Ping timeout: 250 seconds]
davidhq has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
Guest74 has quit [Remote host closed the connection]
withnale_ has joined #ruby
nettoweb has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
jimms has joined #ruby
Wolland has quit []
riotjones has quit [Remote host closed the connection]
Chris- has joined #ruby
AlexRussia has joined #ruby
DeathCode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
konsolebox has joined #ruby
sandelius has joined #ruby
Soliah has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
evanfreeman has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
flcn___ has quit [Quit: Lingo: www.lingoirc.com]
A205B064 has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
arturhoo has joined #ruby
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
oo_ has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
psy_ has quit [Ping timeout: 250 seconds]
arturhoo has quit [Client Quit]
evanfreeman has joined #ruby
allenn has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
og01 has left #ruby [#ruby]
basiclaser has joined #ruby
sigurding has quit [Quit: sigurding]
oo_ has quit [Remote host closed the connection]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
davedev24_ has joined #ruby
jlast has joined #ruby
zacts has joined #ruby
oo_ has joined #ruby
charliesome has joined #ruby
patrick99e99 has quit [Ping timeout: 252 seconds]
JoshGlzB_ has joined #ruby
patrick99e99 has joined #ruby
yqt has joined #ruby
<arup_r> flughafen: why are all silent ?
JoshGlzBrk has quit [Ping timeout: 272 seconds]
xenokiller has joined #ruby
<jhass> yeah, let's play some hangman
<jhass> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass> DeBot: _-
<DeBot> ␣␣␣␣␣_␣␣␣␣␣␣␣␣␣ [-] 1/12
jlast has quit [Ping timeout: 265 seconds]
mhib has joined #ruby
<arup_r> hehehe
hgl has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
<arup_r> DeBot: \/
<DeBot> ␣␣␣␣␣_␣␣␣␣␣␣␣␣␣ [-\/] 3/12
<arup_r> wowow
m3nTe has joined #ruby
<m3nTe> hi guys
<jhass> hi
<arup_r> hello
<m3nTe> someone of you have ever stubbed request with a proxy? using webmock
<m3nTe> I can't find nothing about it
<jhass> no, but some of us are pretty good with reading docs and code
<jhass> what did you try so far?
cajone has quit [Ping timeout: 244 seconds]
tlarevo has quit [Remote host closed the connection]
kedare has quit [Ping timeout: 272 seconds]
tlarevo has joined #ruby
<jhass> webmock tends to be quite informative about what to do if you just don't do anything besides activating it
hgl has joined #ruby
<m3nTe> jhass: uhm, I had a look to the source code, but I didn't find any options to pass to the `stub_request` as a proxy param
<m3nTe> it accept only a `method` and a `url`
havenwood has quit [Remote host closed the connection]
<flughafen> arup_r: translate what i said in german, hahah
<flughafen> and see the log, unless you just got in
* flughafen needs to go
<jhass> m3nTe: but did you try to let it fail?
<jhass> what does it say then?
psy_ has joined #ruby
<m3nTe> jhass:
<m3nTe> Excon::Errors::ProxyParseError:
<m3nTe> Proxy is invalid
<arup_r> flughafen: lunch walk ?
<m3nTe> because from excon I'm using a proxy, but the stubbed request doesn't recognize it and is doing the call outside from the specs
vim_shimm has joined #ruby
<arup_r> Umm that lunch walk seems certainty: do
<jhass> I'm not sure that error sounds like that
<jhass> can you maybe make something self contained that reproduces?
iterator_ has joined #ruby
<jhass> like a gist with all code in a file?
evanfreeman has quit [Remote host closed the connection]
<jhass> that one could run through rspec?
ahmetkapikiran has joined #ruby
wildroman2 has quit [Remote host closed the connection]
roolo has joined #ruby
rajeshchawla has joined #ruby
hpoydar has joined #ruby
<m3nTe> jhass: sorry, I'm pretty sure the problem is that
<m3nTe> is just I don't know how to set a proxy
<m3nTe> in a stubbed request
iteratorP has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
chipotle has joined #ruby
Takle has joined #ruby
<jhass> if you want somebody to look at this, give us something to tinker with ;)
vim_shimm has quit [Ping timeout: 265 seconds]
iterator_ has quit [Ping timeout: 246 seconds]
psy_ has quit [Ping timeout: 252 seconds]
psy_ has joined #ruby
Hirzu has joined #ruby
<jhass> https://github.com/excon/excon#stubs there's native stubbing support btw
tkuchiki_ has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
zcreative has joined #ruby
_1_Dtrofa12411 has joined #ruby
rajeshchawla has quit [Ping timeout: 246 seconds]
bim has joined #ruby
hpoydar has quit [Ping timeout: 272 seconds]
evanfreeman has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
<sandelius> Have anyone of you tried crystal-lang ?
_1_Dtrofa12411 has quit [Read error: Connection reset by peer]
<ponga> me!
<ponga> me!
beilabs has joined #ruby
* jhass raises hand
<sandelius> What's the status, is it gaining any traction?
<jhass> sandelius: DeBot here is written in Crystal :P
<sandelius> jhass ahh is it available on Github?
<jhass> yeah
<jhass> jhass/DeBot (who would've guessed :P)
<jhass> I always have trouble with such questions, how do you measure traction?
<ponga> >> puts "hi"
<eval-in_> ponga => hi ... (https://eval.in/306849)
<jhass> the community is certainly growing
<sandelius> jhass hmm well is the number of people using it increasing?
<jhass> yes, though I think the people actually tinkering with it is still well below 100
<ponga> jhass: i was once asked what makes crystal so attractive , i answered that its a ruby sister who is sexier and younger
<jhass> but some of those, especially the core devs are highly active
<ponga> that's how i descrbied to shevy
polysics has quit [Remote host closed the connection]
<jhass> note that there are still design changes in the language, it's not completely stable yet
cajone has joined #ruby
polysics has joined #ruby
<jhass> it's the phase where stdlib and the library eco system need to build up while the language is adjusted to support these efforts
<sandelius> jhass well it looks exactly like Ruby :)
<jhass> at first, yes ;)
sevvie has joined #ruby
<jhass> but you'll notice soon enough it's different once you try to write Ruby in it ;)
<sandelius> jhass is a program compiled into an executable ?
<jhass> yes
<sandelius> this is awesome :D
<sandelius> how did I miss this
<jhass> :D
<ponga> sandelius: i tested my array code and crystal was at least 5 times faster!
<ponga> and i got exec file
paolooo has joined #ruby
<jhass> did you compile with --release? :P
<sandelius> ponga so there there really is something like free speed :)
<ahmetkapikiran> basic dsl :)
<ponga> sandelius: yeah i just used my old ruby code, changed like two words in them
<sandelius> is has a built in web server "HTTP::Server" just like node?
sigurding has joined #ruby
polysics has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
serivichi has joined #ruby
<jhass> sandelius: pretty much, here is its code: https://github.com/manastech/crystal/blob/master/src/http/server/server.cr
AlphaTech has joined #ruby
<sandelius> jhass what's this: @get = {} of String => ( -> String)
govg has quit [Remote host closed the connection]
evanfreeman has quit [Remote host closed the connection]
<jhass> a hash whose keys are strings and values are procs that take no argument and return a String
<sandelius> jhass now I see it.
Synthead has joined #ruby
<jhass> with an empty hash literal Crystal can't infer the type
serivich has quit [Ping timeout: 272 seconds]
<jhass> for things like {"foo" => "bar"} you don't need to specify the type
banister has joined #ruby
cacocola has quit [Remote host closed the connection]
<sandelius> jhass so it's only when you don't know the hash values?
antgel_ has quit [Quit: Lost terminal]
antgel_ has joined #ruby
riotjones has joined #ruby
paolooo has quit [Quit: Page closed]
<jhass> if you don't have initial values crystal can deduce the types from
chridal has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
sdothum has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
ghostpl_ has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
ghostpl_ has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
polysics has joined #ruby
<sandelius> jhass This looks really really interesting!
gluten_hell has quit [Quit: Computer has gone to sleep.]
<jhass> yup
evanfreeman has joined #ruby
jimms has joined #ruby
rocknrollmarc has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
bruno- has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
senayar has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has joined #ruby
jenrzzz has joined #ruby
pandaant has quit [Remote host closed the connection]
<arup_r> ponga: hi
startupality has quit [Client Quit]
<ponga> hi arup
<arup_r> how r u ?
<ponga> arup_r: shevy made a screenshot of me being silly http://i.imgur.com/XnUlaQE.png
<ponga> gud
<arup_r> hehehe
bugo_ has quit [Quit: Changing server]
startupality has joined #ruby
astrobun_ has quit [Remote host closed the connection]
arturhoo has joined #ruby
ahmetkapikiran has joined #ruby
bim has quit [Remote host closed the connection]
rodfersou has joined #ruby
jimms has quit [Remote host closed the connection]
bim has joined #ruby
bim has quit [Remote host closed the connection]
Renich has quit [Quit: leaving]
Pharaoh2_ has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Synthead has joined #ruby
evanfreeman has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Pharaoh2 has joined #ruby
bim has joined #ruby
bonhoeffer has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
felltir has joined #ruby
mostlybadfly has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
bim has quit [Remote host closed the connection]
ayaz has joined #ruby
felltir has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
lolmaus has quit [Ping timeout: 255 seconds]
avril14th has quit [Remote host closed the connection]
Sirupsen has joined #ruby
rajeshchawla has joined #ruby
nicolastarzia has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
zcreative has quit [Quit: (null)]
<shevy> ah it's the change of colours
<shevy> now ponga appears normal again :)
<shevy> xchat seems to have a rather limited set of default colours it uses
<shevy> arup_r appears red
<arup_r> hummm.. why I was red.. dunno
<shevy> the colour of love
evanfreeman has joined #ruby
rajeshchawla has quit [Ping timeout: 255 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<jhass> rage you mean
<arup_r> shevy: we lost the world cup :(
<shevy> arup_r cricket?
<BLuEGoD> how can I add/substract months in Ruby preserving the end of month i.e: Date.new(2013,6,30)-3.months = 30 Mar 2013 - and not 31st. I want to get last day of june - 3 months = last day of march.. ?
<arup_r> humm
<shevy> arup_r you guys need some more violent game, like rugby
<arup_r> hahah.. why ???
<shevy> cricket seems so harmless
<shevy> also I don't even know the rules
<shevy> nor of rugby, actually :)
<apeiros> BLuEGoD: construct the new date
<workmad3> BLuEGoD: (Date.new(...) - 3.months).end_of_month
macoecho has joined #ruby
mac__ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
<apeiros> workmad3: is that guaranteed to never "flow" over so it ends up 1 month off?
<BLuEGoD> ok thanks apeiros, thought there would be some method for that
<arup_r> shevy: I'll tell our prime minister about it..
<shevy> arup_r hehehe
<BLuEGoD> /workmad3
<arup_r> we need some grounds to practice rugby
<apeiros> actually looks like it does that proper
<apeiros> BLuEGoD: what workmad3 said
<workmad3> apeiros: I *think* so, but I'd need to play... some_date - 3.months will always end up 3 months ago, and I'm pretty sure that .end_of_month when on the end of the month doesn't flow over to the next month
ahmetkapikiran has joined #ruby
konsolebox has quit [Quit: Leaving]
gfawcettpq has joined #ruby
roolo has quit [Remote host closed the connection]
<apeiros> workmad3: I was more worried about effects like 2015-01-31 + 1.months => 2015-03-02
<flughafen> arup_r: yeah, the dog is young so i need to go home and walk him
<apeiros> but iirc AS actually stores the whole addition/subtraction series, which results in some other weird effects
<apeiros> but adding/subtracting months is a bad idea to begin with
<workmad3> apeiros: there could be some complication if they were Times with timezones, as it would depend on what timezone you transitioned to in order to do the .end_of_month call (i.e. if you did the end of the month at 11:59pm in UTC, then travelled back 2 months to the 30th April, said you wanted the date in BST so it's +1 and did .end_of_month, then you'd end up at the end of may, if I'm working things out corre
<workmad3> ctly)
sevvie has joined #ruby
<kstuart> BLuEGoD: why not just subtract months
<kstuart> >> Date.new(2013,6-3,-1)
<eval-in_> kstuart => uninitialized constant Date (NameError) ... (https://eval.in/306871)
<workmad3> apeiros: ah, yeah... the AS extensions for dates take account of that, they'll move back a day like that :)
<kstuart> >> require 'date';Date.new(2013,6-3,-1)
<eval-in_> kstuart => #<Date: 2013-03-31 ((2456383j,0s,0n),+0s,2299161j)> (https://eval.in/306872)
bonhoeffer has quit [Quit: bonhoeffer]
<kstuart> >> require 'date';Date.new(2013,6-8,-1)
<eval-in_> kstuart => #<Date: 2013-11-30 ((2456627j,0s,0n),+0s,2299161j)> (https://eval.in/306873)
<arup_r> flughafen: have you ever tried Component-based Architectures in Ruby and Rails ?
<workmad3> kstuart: that one didn't work quite so well, eh? :P
<kstuart> how so?
<arup_r> Although I don't know what does it means?
<workmad3> kstuart: it's still in 2013
avril14th has joined #ruby
<flughafen> arup_r: no
<apeiros> seems they no longer keep track of the operation chain, though. at least I remembered this having a different result: Date.civil(2015,1,31) + 1.month - 1.month # => 2015-01-28
<kstuart> Ah! missed that!!
<BLuEGoD> true..
phutchins has joined #ruby
<arup_r> flughafen: service object in Rails ?
lennae has joined #ruby
<flughafen> no
RegulationD has joined #ruby
<workmad3> kstuart: dates are a PITA :)
<workmad3> kstuart: there's always some extra edge-case just waiting to trip you up :(
<canton7> just wait until you start adding timezones
<kstuart> yup, in any language ;)
<arup_r> flughafen: thanks for supporting me..
evanfreeman has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 272 seconds]
<arup_r> flughafen: you use vanilla Rails MVC.. right ?
davidhq has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<flughafen> arup_r: no. i have a few commits to a rails project, buit i'm not a rails guy
<arup_r> wow
<arup_r> flughafen: you use Python and Django for web dev projects ?
<arup_r> or .Net. C# ?
nfk has joined #ruby
arturhoo has quit [Quit: arturhoo]
<workmad3> kstuart: if you want something really fun, what do you think should be the day after '1750-03-24' using civil dates in england? or the day after '1752-09-02'? :)
<workmad3> (again in england)
xcombelle has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
<flughafen> arup_r: java, python for web
* canton7 thinks he knows both of those
<arup_r> flughafen: humm... you guys are rock!
<flughafen> ruby for test stuff. we use cucumber/capybara
* arup_r a skills auck
merqlove has joined #ruby
* arup_r s skills auck
<flughafen> it's ok, practice!
<arup_r> :(
<kstuart> workmad3: those dates didn't exist in england ;)
<canton7> the first is the "year changes in march" gotcha, the second is the shift to the gregorian calendar, I think?
Aswebb_ has joined #ruby
<workmad3> kstuart: yeah they do
orionstein has quit [Ping timeout: 252 seconds]
gf3 has quit [Ping timeout: 246 seconds]
<workmad3> kstuart: but the day after 1750-03-24 is 1751-03-25, and the day after 1752-09-02 is 1752-09-14
bonhoeffer has joined #ruby
claptor has quit [Quit: this channel is bakas]
<canton7> yay!
<kstuart> workmad3: aren't those dates related to julian -> gregorian switch?
<canton7> the second one is
<canton7> the first is a quirk in the julian calendar itself
<kstuart> Ah, ok, thanks!
<workmad3> kstuart: the second one is the day before the julian-gregorian switch, the first is a quirk in the 'legal start of the year' or 'civil dates' in england
Vile` has quit [Read error: Connection reset by peer]
<canton7> how about the day after 29-12-2011 in Samoa?
<workmad3> canton7: that was the 31-12-2011, right?
orionstein has joined #ruby
<canton7> yep :D
<workmad3> canton7: where they decided to go from -12 to +12?
gf3 has joined #ruby
<kstuart> No wonder date libraries are hard
<canton7> they're +13 now I think
<workmad3> kstuart: hard to impossible
<workmad3> kstuart: i.e. don't ask what the 'time' is in the gaza strip
<workmad3> kstuart: as it'll depend on who you ask
<apeiros> date libraries aren't hard. calendar libraries are :-p
codecop has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<apeiros> for a date library, you can just pretend infinitely backdated gregorian
<canton7> wasn't it Sweden that had something like 3 botched attempts to shift to the gregorian calendar?
<apeiros> at least that's what I did
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<workmad3> apeiros: what annoys me a bit is that the ISO standard for datetimes doesn't actually contain enough info to do sensible calculations :(
<apeiros> workmad3: hm, interesting. I never even considered ISO beyond representation.
chthon has joined #ruby
livathinos is now known as annkr
<kstuart> workmad3: How so, surely it's one timezone in the gaza strip?
<apeiros> anyway, my solution to calendar quirks was/is that you could overlay any calendar class you'd want
<workmad3> kstuart: depends on which side of the conflict the person you ask is affiliated to
Vile` has joined #ruby
<canton7> kstuart, depends on who you ask
<apeiros> that's also how it could theoretically support things like chinese calendar, or discordian, or julian, or whatever.
<canton7> since we're all just basically quoting this video: https://www.youtube.com/watch?v=-5wpm-gesOY
bonhoeffer has quit [Quit: bonhoeffer]
<kstuart> but if TZ if physical location how could it change (unless some sort of daylight savings agreed by one side, not the other perhaps?)
<workmad3> kstuart: TZ isn't physical location
<workmad3> kstuart: that would be *sensible*
<canton7> daylight savings disproves that trivially :P
chridal has joined #ruby
polysics has quit [Remote host closed the connection]
<workmad3> canton7: or even take account of places in spain that are on the same latitude ranges as england, yet have +1/+2 rather than +0/+1 :)
<canton7> look at the map of timezones - the timezone of a place bears only a passing resemblance to where it is on the map
<canton7> it's more political than anything else
hgl has quit [Ping timeout: 256 seconds]
sevvie has quit [Ping timeout: 250 seconds]
<kstuart> canton7: Thanks for video link, looks good, I'm a little confused now so will go watch...
freerobby has joined #ruby
freerobby has quit [Client Quit]
fgo has joined #ruby
Takle has quit [Remote host closed the connection]
lolmaus has joined #ruby
<workmad3> apeiros: regarding ISO representation... the *second* after '1752-09-02T23:59:59+0000' will change depending on the location, which isn't part of the representation :(
<canton7> also amuses me that australia has +8.75 and +9.5 timezones, india is +5.5, and nepal is +5.75. Had to argue that case against a client who wanted timezones in increments of 1hr
freerobby has joined #ruby
<workmad3> apeiros: which is also true for countries that end up sharing timezones over differing DST rules
tadassce has joined #ruby
hgl has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
naftilos76 has joined #ruby
Akagi201 has joined #ruby
<workmad3> canton7: I think barbados had something like a -8:51 TZ for quite some time :)
<canton7> oh lovely!
AlphaTech is now known as NotAlphaTech
<canton7> "we want to be different, screw you"
ahmetkapikiran has joined #ruby
Akagi201_ has joined #ruby
sevvie has joined #ruby
NotAlphaTech is now known as SixtyNine
oo_ has quit [Remote host closed the connection]
SixtyNine is now known as AlphaTech
cpt_yossarian has quit [Ping timeout: 250 seconds]
senayar has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 248 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
ujjain has quit [Ping timeout: 272 seconds]
Akagi201 has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Jackneill has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
nii236 has quit [Ping timeout: 272 seconds]
workmad3 is now known as wm3|away
ldnunes has joined #ruby
Jackneill has joined #ruby
lektrik has quit [Quit: Leaving]
joonty has quit [Quit: joonty]
hpoydar has joined #ruby
gluten_hell has joined #ruby
xenokiller has quit [Ping timeout: 245 seconds]
<kstuart> canton7: wow, educational
jerematic has joined #ruby
<kstuart> Madness, thank god for experts that don't mind losing their sanity to putting all that into a library
xenokiller has joined #ruby
<canton7> it gets worse in practice, sometimes
<canton7> fun stuff like your langauge only having a 'datetime' type, which you have to co-opt to use to display dates. then accidentally having a timezone applied to it when formatting
<canton7> that doesn't go well
adriancb has quit [Ping timeout: 265 seconds]
rsavage has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tadassce has quit [Quit: leaving]
gluten_hell has quit [Ping timeout: 272 seconds]
arturhoo has joined #ruby
jlast has joined #ruby
<canton7> or trying to explain to a client why you can't localize dates, only datetimes
<apeiros> oracle doesn't have a true date type. always fun.
<apeiros> caused a couple of off-by-one errors for us
silkfox has joined #ruby
govg has joined #ruby
aclearman037 has joined #ruby
rsavage is now known as romking
_1_manu3 has joined #ruby
<_1_manu3> hello
patrick99e99 has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 252 seconds]
negaduck has joined #ruby
xenokiller has quit [Ping timeout: 256 seconds]
patrick99e99 has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
kedare has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
iamjarvo has joined #ruby
DaniG2k has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Client Quit]
_1_manu3 has quit [Remote host closed the connection]
bim has joined #ruby
hpoydar has quit [Remote host closed the connection]
Timgauthier has joined #ruby
tlarevo has quit [Remote host closed the connection]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vim_shimm has joined #ruby
xenokiller has joined #ruby
lanemeyer has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
yh has quit [Ping timeout: 246 seconds]
negaduck has left #ruby ["(null)"]
rajeshchawla has joined #ruby
antgel_ has quit [Ping timeout: 272 seconds]
jheg has quit [Quit: jheg]
<Timgauthier> it is all shevy's fault
<Timgauthier> he's a walking segfualt
sigurding has quit [Quit: sigurding]
vim_shimm has quit [Ping timeout: 245 seconds]
<shevy> yeah
<shevy> I am a segfualt
<Timgauthier> sup man? long time no irc
<shevy> :)
Takle has joined #ruby
<shevy> yeah that is understandable
<Timgauthier> i really don't understand what a segfualt is lol
<shevy> you are married now and have no more time for the old days
<Timgauthier> i wish
<shevy> hehe
<Timgauthier> its actually that i'm stuck in german class all morning and not doing any work so my mac gets rarely turned on
musashi1 has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
<shevy> I see! so you'll write poems like Goethe eventually
<Timgauthier> haha
AlphaTech is now known as AlphaTech|AWAY
<Timgauthier> ich nich screiben
<shevy> back in schooldays, we had to read a lot of boring german literature
<Timgauthier> schreiben*
<Timgauthier> ja, aber ich nicht in der grundeschüle.
<Timgauthier> Diese ist für Auslander zu gelernt Deutsch
AlphaTech|AWAY is now known as AlphaTech
rajeshchawla has quit [Ping timeout: 264 seconds]
<shevy> hehe
Mon_Ouie has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
<Timgauthier> that was all shit german, i apologize :P
<shevy> the weird part about that literature was that the wording and style was so alien and outdated
<shevy> there literally were sentences that spanned over more than a full page
quimrstorres has joined #ruby
<Timgauthier> haha nice
<Timgauthier> yeah, thats like us studying shakespear
<shevy> :)
<Timgauthier> his writing does not represent english
pengin has joined #ruby
<shevy> oh?
freerobby has quit [Quit: Leaving.]
<shevy> but it looks like english?
<Timgauthier> no, no one ever spoke or wrote like that but him
Sirupsen has joined #ruby
<Timgauthier> his writing was a specific style to himself, it was lots of jokes based on pronounciation from the little part of london his theater was in
dfinninger has joined #ruby
teddyp1cker has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
iasoon has joined #ruby
jenrzzz has joined #ruby
norc has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
Sirupsen has quit [Client Quit]
leafybas_ has joined #ruby
<norc> Hi. I have a rails application. Now my Gemfile requires a gem from a local (intranet!) git server, and gems from an external (behind a proxy!) git server. Is there a way to either specify a proxy for a single gem?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc> Or should I build the gem from the internal network and put it inside the other gem?
Zimsky__ has quit [Ping timeout: 272 seconds]
Elite6809 has quit [Ping timeout: 248 seconds]
<apeiros> norc: use no_proxy env variable
<norc> apeiros: Can I use that selectively on a gem in a gemfile?
patrick99e99 has quit [Ping timeout: 248 seconds]
<apeiros> no
Elite6809 has joined #ruby
<apeiros> but I doubt that your local server and the external git server have the same address
bim has quit [Remote host closed the connection]
<apeiros> so I don't see why you'd want to do that "per Gemfile"
<iasoon> Is it possible to patch class methods using refinements?
leafybasil has quit [Ping timeout: 244 seconds]
patrick99e99 has joined #ruby
<apeiros> iasoon: all ruby classes are open
<apeiros> (that is, unless somebody calls .freeze on it)
<iasoon> apeiros: Do you have a pointer on how to do this?
<apeiros> iasoon: note that patching existing classes which you don't control is called "monkey patching" for a reason. do it with care. better yet, don't do it at all.
<iasoon> I tried refining Classname.singleton_method, but that did not work.
<apeiros> iasoon: just plain `class ExistingClass; dowhatever; end`
polysics has joined #ruby
d10n-work has joined #ruby
<apeiros> iasoon: oooh
<apeiros> sorry, completely misread you
<apeiros> I read "patch classes without using refinements"
<iasoon> Hehe =)
pengin has quit [Remote host closed the connection]
<apeiros> I think I haven't tried refining class methods yet, sorry
<iasoon> Thanks anyways :)
shmoon has quit [Ping timeout: 252 seconds]
<shevy> iasoon refinements still confuse me
<shevy> the syntax feels so clunky... monkeypatching seems so much simpler!
<norc> apeiros: Ah perfect. This solution is perfect for my needs.
polysics_ has joined #ruby
joonty has quit [Quit: joonty]
<iasoon> shevy: Does it? You just do 'refine' instead of 'class', and then 'using YourModuleWithRefinements' where you want to use them?
<shevy> hmmm that's not how I remember it... let me look up
ahmetkapikiran has quit [Quit: ahmetkapikiran]
djbkd has joined #ruby
spider-mario has joined #ruby
<shevy> I can't use them in a class? http://pastie.org/10064647
polysics has quit [Ping timeout: 264 seconds]
Elite6809 has quit [Changing host]
Elite6809 has joined #ruby
<shevy> oh that makes no sense what I wrote there, a moment
brb3 has joined #ruby
<wasamasa> hmm
<shevy> nope, I still don't get it
<wasamasa> how would one make a gem automatically load itself?
<wasamasa> I recall some I've downloaded doing this, but I can't remember their names
<apeiros> I'd much prefer if refinements where objects instead of modules. with proper methods to combine and manipulate the refinement.
bogeyd6 has joined #ruby
<shevy> wasamasa do you mean upon a require-event? perhaps through autoload?
jenrzzz has quit [Ping timeout: 265 seconds]
<wasamasa> shevy: there are some that don't even need a "require 'my_gem'" to work
<shevy> ohhh... I have to add a "using" call I suppose
<shevy> but I can do so only on a module?
<shevy> wasamasa hmmmm
<shevy> sounds like a virus!
<wasamasa> sure it does
<shevy> perhaps they can dump somewhere in an autoloadable file or so
<wasamasa> I'm asking since I have one offering a refinement and doing both a require and using feels like wasted effort
<shevy> hehehe
<shevy> true
gluten_hell has joined #ruby
triple_b has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
livingstn has joined #ruby
ndrei has joined #ruby
sevvie has joined #ruby
<apeiros> iasoon: `module X; refine Klass.singleton_class do; def class_method … `
<apeiros> works for me
<wasamasa> shevy: autoload looks right
sankaber has joined #ruby
ahmetkapikiran has joined #ruby
<shevy> cool
jenrzzz has joined #ruby
<shevy> I never actually used autoload... dunno why not
<shevy> and it is no longer deprecated either \o/
<iasoon> Ah, wow, I was still doing self.method instead of just method
<iasoon> thanks apeiros, I got it now
<apeiros> yw
RegulationD has joined #ruby
triple_b has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
sevvie has quit [Ping timeout: 264 seconds]
triple_b has joined #ruby
jayeshsolanki has joined #ruby
joonty has joined #ruby
startupality has joined #ruby
pandaant has joined #ruby
GinoMan has joined #ruby
Elite6809 has quit [Quit: WeeChat 1.1.1]
jayeshsolanki has quit [Max SendQ exceeded]
rocknrollmarc has quit [Ping timeout: 264 seconds]
slackbotgz has quit [Read error: Connection reset by peer]
slackbotgz has joined #ruby
jayeshsolanki has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
jayeshsolanki has quit [Max SendQ exceeded]
jayeshsolanki has joined #ruby
Elite6809 has joined #ruby
jimms has joined #ruby
Elite6809 has quit [Changing host]
Elite6809 has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
jheg has joined #ruby
GinoMan has quit [Ping timeout: 264 seconds]
tus has joined #ruby
tier has joined #ruby
dfinninger has quit [Remote host closed the connection]
wm3|away is now known as workmad3
krz has quit [Quit: WeeChat 1.0.1]
oo_ has quit [Remote host closed the connection]
Rapier- has joined #ruby
oo_ has joined #ruby
agrinb has joined #ruby
JDiPierro has joined #ruby
sevvie has joined #ruby
bim has joined #ruby
B1n4r10 has joined #ruby
AlphaTech is now known as AlphaTech|AWAY
Sirupsen has joined #ruby
vtunka has quit [Quit: Leaving]
bim has quit [Remote host closed the connection]
sfr^ has joined #ruby
tier has quit [Remote host closed the connection]
antgel_ has joined #ruby
vim_shimm has joined #ruby
B1n4r10 has quit [Client Quit]
tier has joined #ruby
macoecho has joined #ruby
mac__ has joined #ruby
jimms has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Excess Flood]
vtunka has joined #ruby
davispuh has joined #ruby
oo_ has quit [Remote host closed the connection]
_honning_ has joined #ruby
michael_mbp has joined #ruby
oo_ has joined #ruby
xenokiller has quit [Ping timeout: 248 seconds]
yh has joined #ruby
lanemeyer has joined #ruby
vim_shimm has quit [Ping timeout: 245 seconds]
B1n4r10 has joined #ruby
tvw has joined #ruby
Grantlyk has joined #ruby
<Grantlyk> Hey guys
<Grantlyk> who here likes gems?
<oddmunds> everyone
<Timgauthier> i especially like sapphire
<Grantlyk> I've got a gem i'm working on due to the Github DDoS
<Grantlyk> it lets you sync your repo with bitbucket
<Grantlyk> to store it on both github and bitbucket via one command
sevvie has joined #ruby
<Grantlyk> yay or nay?
jerius has joined #ruby
<apeiros> um, `git push othergitrepo`?
<apeiros> +/- some flags so all branches get pushed…
<Grantlyk> Yeah, this basically simplifies that
<Grantlyk> so rather than having to run several commands
<Grantlyk> you only run one
<apeiros> ok, got to admit I'm not sure what's there to simplify :D
nii2361 has joined #ruby
<apeiros> it might even be possible to instruct git to push to multiple remotes. never checked.
<wasamasa> yes it is
<Grantlyk> You can do, I already know how to do it
jlast has joined #ruby
<wasamasa> I did that for some time
<Grantlyk> I also currently do that
<wasamasa> but I stopped doing that
<Grantlyk> hence why I made this
oo_ has quit [Remote host closed the connection]
<Grantlyk> because I got sick of treating it like two different remotes
<Grantlyk> rather than just one
jimms has joined #ruby
<wasamasa> I also merged them into one remote
<Grantlyk> Thanks for the feed back thought :) all feed back is welcome
<wasamasa> but that made merging pull requests... weird
hpoydar has joined #ruby
<Grantlyk> wasamasa do you still have mupltiple remotes?
<Grantlyk> and what were the two remotes? github & bitbucket?
DaniG2k has joined #ruby
adriancb has joined #ruby
<wasamasa> Grantlyk: well, I got rid of that all
zenith_ has joined #ruby
<Grantlyk> Ahh okay, when you had it though, what was it?
gr33n7007h has quit [Quit: WeeChat 1.1.1]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has quit [Quit: Leaving...]
RegulationD has joined #ruby
adriancb has quit [Remote host closed the connection]
gluten_hell_ has joined #ruby
adriancb has joined #ruby
<wasamasa> I think it was one for origin, github and bitbucket
<wasamasa> and origin pointed to the github and bitbucket urls
<Grantlyk> Alright, thanks
<Grantlyk> and if you had to do that again in future
<Grantlyk> would you ever use something that done it all in one command?
_maes_ has joined #ruby
hpoydar has quit [Ping timeout: 264 seconds]
<wasamasa> something along these lines
gluten_hell has quit [Ping timeout: 256 seconds]
xenokiller has joined #ruby
ujjain has joined #ruby
quimrstorres has joined #ruby
zenith_ has quit [Ping timeout: 250 seconds]
C1ph3r_ has joined #ruby
bradleyprice has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<shevy> guys look at this title
<shevy> you can learn to enjoy C++
<shevy> you can MANAGE its complexity!
<certainty> preach brother
<shevy> no longer do we have to strife for simplicity
<shevy> why make things simple when you can make them complicated
zenith_ has joined #ruby
<shevy> certainty is lisp complicated?
<certainty> shevy: no!
<wasamasa> common lisp maybe
sevvie has quit [Ping timeout: 252 seconds]
<certainty> it's not even complex
<wasamasa> its standard is as long as C++
<workmad3> shevy: lisp is super-easy... everything is a list
<certainty> well wasamasa is right, there might be complex/complicated dialects
<shevy> hehehe
<shevy> that reminds me of everything is an object
quimrstorres has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
<certainty> until it isn't
<certainty> unityped languages and all that
<workmad3> shevy: lisp makes it a reality though... the entire program is a list, which you can manipulate through lisp macros (which are also lists)...
<wasamasa> clojure tries catching up with common lisp
<workmad3> (I'm being somewhat facetious here, it's been a long time since I did any lisp and my grasp was always a bit sketchy :) )
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
C1ph3r_ has quit [Ping timeout: 244 seconds]
<certainty> workmad3: you're basically right though
<wasamasa> lisp code is pretty close to the generated AST
<workmad3> certainty: yeah... but there are symbols and some other things too, which are what you have lists *of* :)
<certainty> that said i havened hacked any scheme for some time now :(
<certainty> workmad3: atoms
<workmad3> that's the word!
<certainty> have not, even
jheg has quit [Quit: jheg]
lordkryss has quit [Quit: Connection closed for inactivity]
Takle has quit [Remote host closed the connection]
macoecho has joined #ruby
mac__ has joined #ruby
Takle has joined #ruby
<certainty> workmad3: really it's not all about cons-cells or lists anymore. we have all kinds of datastructures, like vectors and maps
bogeyd6 has quit [Ping timeout: 250 seconds]
<certainty> but lists are still the working horse in lisps, except clojure which uses vectors and maps heavily
<shevy> find . -iname '*.jp*g' | xargs -L 1 -I @ identify -format '%[EXIF:DateTime] %d/%f\n' @ | egrep '^[[:digit:]]{4}:12' | cut -d' ' -f3- | tar -cf december.tar -T -
<shevy> pipes are so ... elegant
<certainty> until they aren't
<shevy> I think ruby spoiled me :(
krz has joined #ruby
<shevy> certainty are you actually still writing code these days or are you just idling?
<arup_r> is it?
<arup_r> how shevy?
<certainty> shevy: mostly idling and trolling people in #ruby
lavros has joined #ruby
sparch has quit [Ping timeout: 250 seconds]
<shevy> arup_r yeah; for instance, I use lots of aliases, and even aliases that end with ?
<workmad3> wasamasa: never realised the common-lisp spec was so large... I'm gonna guess that there's a lot less about the language and a lot more in the standard library though (C++ spec seems to have almost 450 pages just on the language spec, the rest is the stdlib)
<shevy> like: "cpu?" tells me what cpu the machine has I am on
<certainty> shevy: that's so wrong
<shevy> and when I look complicated examples like the above, I just can not be bothered to want to decompose it until I understand it
<certainty> cpu? should return a boolean
Megtastique has joined #ruby
pwattste has joined #ruby
<certainty> my aliases usually start with ,
<shevy> certainty oh yeah I know that convention :)
<shevy> hmm why , ?
<certainty> dunno
<certainty> i started it some day
<shevy> easier to type?
<shevy> aha... weird
<certainty> probably
<shevy> you scare me certainty
<certainty> ,hgfe
<shevy> good thing that I am not you!
<wasamasa> workmad3: sounds about right
<shevy> huh... what is "hgfe" short for
<wasamasa> workmad3: my impression was that even experienced people keep finding useful standard functionality in the standard
<shevy> high game, fun enemy
<shevy> hot girl, free energy
<shevy> nope, I can't figure it out
<workmad3> wasamasa: in CL?
<wasamasa> workmad3: despite it not looking as large these days compared to the standard libraries of something like ruby
TheKruex has joined #ruby
<wasamasa> workmad3: yes
<certainty> shevy: that's an alias for a function that creates a mercurial feature branch with the given issue-id.
<shevy> ack
blackmesa has joined #ruby
<workmad3> wasamasa: sounds about right... I keep on finding useful stuff in the ruby stdlib that I hadn't realised was there :)
<shevy> come to git man!
<certainty> nah
<shevy> :)
<certainty> i like mercurial
bruno- has joined #ruby
jimms has quit [Remote host closed the connection]
<workmad3> wasamasa: my experience with C++ indicates that even experienced people keep on finding new and interesting edge-cases and compiler bugs when they read through the language spec :)
havenwood has joined #ruby
bruno- is now known as Guest42038
<certainty> workmad3: as a matter of fact the upcoming scheme standard is devided into a small and a large language.
mitchellhenke has joined #ruby
<wasamasa> fun
<wasamasa> they still aren't ready with the large one, right?
<certainty> nope
marr has quit [Ping timeout: 244 seconds]
davidhq has joined #ruby
<workmad3> certainty: the small language is 'everything is a list' and the large one is 'almost everything is a list, but sometimes we like hashes'?
cacocola has joined #ruby
quimrstorres has joined #ruby
nateberkopec has joined #ruby
antgel_ has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
<wasamasa> workmad3: well, no, the larger one is all about nice-to-haves
<wasamasa> workmad3: like, a networking library
<wasamasa> workmad3: or unicode support
RegulationD has quit [Remote host closed the connection]
<workmad3> wasamasa: :P
<wasamasa> workmad3: or FFI
RegulationD has joined #ruby
sevenseacat has joined #ruby
JDiPierro has quit [Remote host closed the connection]
amystephen has joined #ruby
cacocola has quit [Ping timeout: 246 seconds]
<certainty> workmad3: nope not really but it aims somewhat in that direction. Scheme always emphasized that a language needs not be large to be useful/powerful instead it should focus on removing the limitations that make more features appear to be needed. That's even the forword to r5rs. So after r6rs we voted for a standard that is again more true to those roots
razieliyo has joined #ruby
razieliyo has joined #ruby
<certainty> but also we acknowledged that there are other needs in the real programming world these days
<certainty> so the plan emerged to split the two things
Grantlyk has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dorei has joined #ruby
<certainty> the pure/tiny small language and the rest that builds on that and provides all the bells and whistles
rankine has joined #ruby
zenith__ has joined #ruby
rankine has quit [Client Quit]
krisquigley has quit [Remote host closed the connection]
paulcsmith has joined #ruby
evanfreeman has joined #ruby
O_the_Del has joined #ruby
bartj3 has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<Timgauthier> so almost like a framework?
zenith_ has quit [Ping timeout: 244 seconds]
<shevy> certainty do you know the game/world nazghul/haxima? I think I already showed you... it's written in scheme
patrick99e99 has quit [Ping timeout: 244 seconds]
<arup_r> ok shevy: bye for now..
<shevy> arup_r yca
bim has joined #ruby
hpoydar has joined #ruby
govg has quit [Ping timeout: 252 seconds]
joe_meade has joined #ruby
evanfreeman has quit [Client Quit]
sgambino has joined #ruby
O_the_Del has left #ruby [#ruby]
patrick99e99 has joined #ruby
chinmay_dd has joined #ruby
JDiPierro has joined #ruby
<shevy> the scheme code for the world is cool
<certainty> Timgauthier: kind of. yeah
annkr_ has joined #ruby
<certainty> shevy: yepp you showed me
<shevy> (put (mk-ladder-down 'p_eastpass 14 9) 4 14)
<shevy> even has embedded ascii maps hehe http://pastie.org/pastes/10064771/text
<certainty> today i have a greater tendency to statically typed functional languages, but scheme remains my first love
<shevy> it's better to read than C code
<certainty> yepp
last_staff has quit [Quit: last_staff]
<shevy> I still don't like the ((((
AlexRussia has quit [Ping timeout: 256 seconds]
<ddv> yep don't like it either
<shevy> in the game wesnoth, they brought the ( to another level
DeBot has quit [Quit: Crystal]
<shevy> they use XML (WML) like a programming language
DeBot has joined #ruby
<shevy> though a few years ago, they also started to use lua, so now I am confused
<ddv> what is it noth
<certainty> ah parens are ignorable
<shevy> but XML-languages as a programming language, now that sucked the most
<shevy> certainty yes.. in ruby!!!
<workmad3> shevy: do you mean you don't love and adore XSLT?
<shevy> workmad3 I guess it had its peak some years ago
maasha has joined #ruby
codecop has quit [Remote host closed the connection]
annkr has quit [Ping timeout: 248 seconds]
<shevy> I read a while ago, in HTML5, they don't conform to some std or dtd anymore whereas in html4 I think that was still necessary? at least in html4 strict
gr33n7007h has joined #ruby
<shevy> so that shows... nobody really loves XSLT anymore! nor XML! save for java ant
jconnolly has joined #ruby
<workmad3> well, html4 wasn't XML anyway
<certainty> shevy: hehe, i mean you shouldn't put your focus on the parens. That's just a tiny bit of syntax. Maybe you can focus on the uniformity sexpressions introduce
<maasha> hey, is there a method in Enumerable or such that shows the number of iterations performed?
drawingthesun has joined #ruby
<maasha> apart from each_with_index
<shevy> maasha what kind of iterations?
<ddv> maasha: use a counter variable?
<shevy> well each_with_index has that right
<workmad3> maasha: hehe "is there any method for an enumerable that will tell me what iteration I'm on... apart from the method that does exactly that?"
davidhq has quit [Ping timeout: 264 seconds]
<workmad3> maasha: if you want it for an arbitrary enumerator, there's .with_index... e.g. '.map.with_index {|item, index| ...}'
<havenwood> maasha: `each.with_index(1)` if you want to start with 1
fryguy9 has joined #ruby
<maasha> I expressed myself pretty badly I think. So lets say I have an enumerable object, and I yielded from it a couple of times. Now I would like to check how many times it has yielded. Does that make sense?
rodfersou has quit [Quit: leaving]
gr33n7007h has quit [Quit: WeeChat 1.1.1]
govg has joined #ruby
ponga has quit [Quit: Leaving...]
AlexRussia has joined #ruby
rodfersou has joined #ruby
hs366 has quit [Remote host closed the connection]
davidhq has joined #ruby
axisys has quit [Read error: Connection reset by peer]
axisys has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
<romking> question, let's say I have a strange log file with various type of ip addresses logged in it, let's say I wanted to match on a string that was something like "WAF-Ip-Address: 10.0.2.100" to get the ip address, what's the best way?
krisquigley has joined #ruby
Timgauthier is now known as timgauthier_away
<shevy> romking many ways
<shevy> regex would probably be most reliable
<shevy> if your string is like that though, you can do .split(' ').last
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> for regex... string = "WAF-Ip-Address: 10.0.2.100"; string =~ /Address: (\s+)/
<shevy> moment
meschi has joined #ruby
<shevy> string =~ /Address: (\d+.\d+.\d+.\d+)/
<shevy> $1 # => "10.0.2.100"
joe_meade has quit [Remote host closed the connection]
<shevy> you can use http://rubular.com/ actually to test live
<jhass> romking: the best way depends on the possible false positives really
<jhass> how different the formats are that you want to match and how similar it is to data you don't want to match
govg has quit [Quit: leaving]
<romking> ok thanks
<romking> will check in a bit
vtunka has quit [Quit: Leaving]
beneggett has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
arup_r has quit []
mitchellhenke has joined #ruby
<jhass> oh, github switched back to a green status https://status.github.com/messages
maasha has quit [Ping timeout: 246 seconds]
<workmad3> woo!
davejlong has joined #ruby
<havenwood> April fools!
<havenwood> No wait, wrong day. :P
startupality has quit [Quit: startupality]
<havenwood> They did a good job of mostly staying up. Github going down for days would have been no fun at all.
Kricir has joined #ruby
annkr_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
agarie has joined #ruby
AlexRussia has joined #ruby
senayar has quit [Remote host closed the connection]
merqlove has quit [Quit: Connection closed for inactivity]
<ddv> I guess github spends thousands of dollars a day
<ddv> to mitigate that attack
SouL has quit [Ping timeout: 252 seconds]
<kstuart> Would
<kstuart> oops!
<DaniG2k> jeez
<shevy> man
<shevy> I hate the first april
<DaniG2k> how do you DDoS github
<kstuart> Could make an interesting read if they do a write-up on the experience, once the dust settles
sevvie has quit [Ping timeout: 252 seconds]
<shevy> especially when jokes happen TWO DAYS before 1. april
rbennacer has joined #ruby
<shevy> DaniG2k dunno, I am sure China can do
<DaniG2k> shevy: probably
<DaniG2k> need some massive amount of servers for that
<DaniG2k> and a pretty bad inferiority complex
<ddv> DaniG2k: they redirect western traffic going to baidu to github
<ddv> or other chineze sites
<ddv> chinese*
<DaniG2k> hahahaha
<DaniG2k> what a bunch of jokers
jenrzzz has quit [Ping timeout: 256 seconds]
Aswebb_ has joined #ruby
Timgauthier has joined #ruby
jenrzzz has joined #ruby
chrissonar has quit [Remote host closed the connection]
Zamyatin has joined #ruby
rajeshchawla has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
orionstein has joined #ruby
rbennacer has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
Timgauthier has quit [Ping timeout: 252 seconds]
bigmac has joined #ruby
snath has quit [Ping timeout: 272 seconds]
Aswebb_ has quit []
fgo has quit [Quit: WeeChat 1.1.1]
nii2361 has quit [Ping timeout: 248 seconds]
vim_shimm has joined #ruby
Guest42038 has quit [Ping timeout: 245 seconds]
joonty has quit [Quit: joonty]
Channel6 has joined #ruby
joonty has joined #ruby
OrbitalKitten has joined #ruby
jottr has joined #ruby
ducklobster has joined #ruby
stevechiagozie has joined #ruby
<adaedra> <DaniG2k> how do you DDoS github
<adaedra> By using china’s great firewall, apparently
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
senayar has joined #ruby
cacocola has joined #ruby
bim has quit [Remote host closed the connection]
nii2361 has joined #ruby
OrbitalKitten has quit [Ping timeout: 246 seconds]
<gregf_> heh
tlarevo has joined #ruby
tagrudev has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
norc has quit [Ping timeout: 246 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
hmsimha has joined #ruby
sigurding has joined #ruby
<jhass> I still doubt that was the only component though
ahmetkapikiran has quit [Quit: ahmetkapikiran]
lennae has quit [Ping timeout: 272 seconds]
Hirzu has quit [Quit: Leaving...]
blankspace has joined #ruby
b0t00 has joined #ruby
davejlong has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
lennae has joined #ruby
bim has joined #ruby
emptyspace has joined #ruby
decoponio has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
someonespace has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 244 seconds]
crueber has joined #ruby
jottr_ has joined #ruby
jottr has quit [Read error: Connection reset by peer]
cacocola has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
blankspace has quit [Ping timeout: 255 seconds]
Filete has joined #ruby
<hectortrope> Hi any ruby book for linux system administrators?
govg has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Excess Flood]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
dorei has quit []
joe_meade has joined #ruby
rocknrollmarc has joined #ruby
<agarie> hectortrope: I've heard good things about this book http://www.amazon.com/Practical-System-Administration-Experts-Source/dp/1590598210 but I never read it, so take that with a grain of salt :P
<pl1ght> hectortrope: there are a couple decent, "Build Awesome Command-Line Applications in Ruby 2" and "Practical Ruby for System Administrators"
bruno- has joined #ruby
<hectortrope> Thank you Guys agarie pl1ght
B1n4r10 has joined #ruby
totimkopf has joined #ruby
ndrei has joined #ruby
duracrisis has joined #ruby
chridal has quit [Ping timeout: 252 seconds]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
zhan__ has joined #ruby
<zhan__> sdf
<zhan__> hi
zhan__ has left #ruby [#ruby]
polysics_ has quit []
gsd has joined #ruby
blankspace has joined #ruby
christiandsg has joined #ruby
OtterCoder has joined #ruby
nii2361 has quit [Ping timeout: 255 seconds]
cpt_yossarian has joined #ruby
emptyspace has quit [Ping timeout: 255 seconds]
tjohnson has joined #ruby
hiyosi has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sigurding has quit [Ping timeout: 256 seconds]
annkr has joined #ruby
pwattste has quit [Ping timeout: 245 seconds]
bal has quit [Quit: bal]
hmsimha has quit [Ping timeout: 252 seconds]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
DaniG2k has quit [Quit: leaving]
macoecho has joined #ruby
stef204 has joined #ruby
mac__ has joined #ruby
blankspace has quit [Ping timeout: 264 seconds]
vim_shimm has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
AlphaTech|AWAY has quit [Quit: Connection closed for inactivity]
annkr has quit [Remote host closed the connection]
universa1 is now known as universaL
Darryl___ has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
zenith__ has quit [Remote host closed the connection]
annkr has joined #ruby
spyderman4g63 has joined #ruby
bMalum has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
drawingthesun has quit [Quit: Leaving]
Pharaoh2 has joined #ruby
annkr is now known as kimegede
wohlert has joined #ruby
JDiPierro has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
hobodave has joined #ruby
Soda has joined #ruby
JDiPierro has joined #ruby
kimegede is now known as livathinos
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaxxstorm has quit [Quit: ZNC - http://znc.in]
vim_shimm has joined #ruby
jaxxstorm has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
zenith_ has joined #ruby
chridal has joined #ruby
OtterCoder has quit [Read error: Connection reset by peer]
christiandsg has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
OtterCoder has joined #ruby
icebourg has joined #ruby
jenrzzz has joined #ruby
RegulationD has quit [Remote host closed the connection]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
christiandsg has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
willharrison has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mac__ has joined #ruby
macoecho has joined #ruby
GnuYawk has joined #ruby
tcrypt has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
bradleyprice has quit []
lennae has quit [Ping timeout: 255 seconds]
wicope has joined #ruby
kalusn has joined #ruby
snath has joined #ruby
_maes_ has joined #ruby
joonty has quit [Quit: joonty]
livathin_ has joined #ruby
joonty has joined #ruby
vim_shimm has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
kblake has joined #ruby
Takle has joined #ruby
livingstn has quit []
tlarevo has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 244 seconds]
pglombardo has joined #ruby
livathin_ has quit [Ping timeout: 255 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
beneggett has joined #ruby
davejlong has joined #ruby
fibbel has joined #ruby
gsd has joined #ruby
rhllor has joined #ruby
allenn has joined #ruby
sanguisdex has joined #ruby
nettoweb has joined #ruby
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
macoecho has joined #ruby
mac__ has joined #ruby
cacocola has joined #ruby
vim_shimm has joined #ruby
meschi has quit [Read error: No route to host]
meschi has joined #ruby
riotjones has joined #ruby
agarie has quit [Remote host closed the connection]
bricker has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
ghostpl_ has quit [Remote host closed the connection]
msgodf has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
ghostpl_ has joined #ruby
bradleyprice has joined #ruby
mistermocha has joined #ruby
rippa has joined #ruby
cacocola has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
tier_ has joined #ruby
Zimsky_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
milesmatthias has joined #ruby
albedoa has joined #ruby
davejlong has quit [Remote host closed the connection]
izzol has joined #ruby
mistermocha has joined #ruby
<izzol> Hi
davejlong has joined #ruby
<izzol> Can someone please explain me what is for and when I should use Singleton Class? I'm trying to understand it but so far it's a mess :(
mistermo_ has joined #ruby
Volsus has joined #ruby
TheKruex has quit []
b0t00 has quit [Ping timeout: 250 seconds]
<izzol> I already tried google but cannot find any nice explanation :(
<GaryOak_> I'm sure you've heard, only use a singleton when you need one and only one instance of a class
bruno- has quit [Ping timeout: 256 seconds]
tier has quit [Ping timeout: 256 seconds]
<izzol> GaryOak_: yes
djbkd has quit [Ping timeout: 250 seconds]
<shevy> izzol perhaps if you make a game, and have one class GameEngine
<shevy> and in that class you have lots of player objects
<GaryOak_> something like logging in your code as well
Flowrhent has joined #ruby
momomomomo has quit [Quit: momomomomo]
<GaryOak_> You only need a single instance to write to a log file
<izzol> GaryOak_: but every self.something is a singleton class ?
julian-delphiki has quit [Ping timeout: 246 seconds]
aspiers has quit [Ping timeout: 244 seconds]
<workmad3> shevy: which is great... right up until you actually end up allowing > 1 GameEngine because you're wanting to allow a server mode that runs several headless game engines for server-side multiplayer stuff :P
<GaryOak_> Well Ruby has another concept of a singleton
milesmatthias has quit [Ping timeout: 264 seconds]
<shevy> workmad3 we don't allow that
<workmad3> izzol: in ruby, 'singleton class' is not a Singleton pattern (well, it kinda is a singleton, in that each object has one, and only one, singleton class)
mistermocha has quit [Ping timeout: 255 seconds]
allenn has quit [Remote host closed the connection]
<shevy> you guys need to keep things really simple
znst has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<workmad3> shevy: I was more pointing out that for most singleton cases I've encountered, it doesn't take much thought to come up with a situation where it's not actually desirable to have a Singleton ;)
<colorisco> i created channel with amazing AI http://s4.postimg.org/p4hdfa4zh/Screenshot_2015_03_31_18_24_22.png
cacocola has joined #ruby
<shevy> I actually think I never needed a singleton so far
aspiers has joined #ruby
<GaryOak_> they are pretty rare
<workmad3> shevy: most of the time I've encountered them, they've been a crappy wrapper around global variables
<shevy> hehe
<GaryOak_> what workmad3 said
<shevy> I actually added "include Singleton" in mud objects... where there were unique items... I thought they should be singletons... for no particular reason
<workmad3> people seem to go "Oh crap, global variables are bad? Well then, it's a good thing this isn't a global variable, it's a Singleton class!"
<shevy> Thor's hammer!
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> can you actually use global variables in a semi-global variant? like you could... use a module, and an @ivar on that module, and access a method that returns that @ivar right?
<workmad3> shevy: sure
<GaryOak_> it's just a module level var
nux443_ has quit [Quit: leaving]
<workmad3> shevy: you could do the same with a class ivar and access it through a class-method :P
paulcsmith has quit [Quit: Be back later ...]
<havenwood> izzol: A Module if you're not instanciating. A Class if you are instanciating. Mixin Singleton if it's important it only be instanciated once.
Deele has quit [Ping timeout: 256 seconds]
<shevy> havenwood sounds like a lord of the rings priest there
<shevy> or like Gandalf
<GaryOak_> WHAT
<shevy> Gandalfwood!
<shevy> izzol so as you can see... nobody uses them :D
Cache_Money has joined #ruby
_honning_ has quit [Ping timeout: 250 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<izzol> shevy: :)
aclearman037 has joined #ruby
dfinninger has joined #ruby
<havenwood> shevy: This is your realm, and the heart of the greater realm that shall be. The Third Age of C is ended, and the new age is begun; and it is your task to order its beginning and to preserve what must be preserved.
wohlert has left #ruby [#ruby]
<banister> havenwood you messed with rust at all?
<havenwood> banister: just poked at it, but no not really
senayar has quit [Remote host closed the connection]
<izzol> but someone told me that I'm using singleton here: http://pastebin.com/zV7eFEHj when I'm calling this by Monit::Check.ping(host)
<helpa> Hi izzol. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<havenwood> banister: have you?
<banister> havenwood no, but i'm looking for a new language to get my teeth into
stef204 has quit [Ping timeout: 256 seconds]
<c-c> had a look at go?
<shevy> izzol why? that is just a class method there
<GaryOak_> Rust Rust Rust!
<shevy> you can add lots more class methods to class Ping
rbennacer has quit [Remote host closed the connection]
<izzol> hmm ok
joonty has quit [Quit: joonty]
<shevy> the reason people like class methods is because it can do a lot for readable code. Like: Monster.create :goblin
<shevy> though you could do Goblin.new too I guess :P
quimrstorres has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
banister has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
RegulationD has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<havenwood> banister: i've been enjoying crystal-lang. it's different enough from Ruby to be exciting but familiar enough i feel productive.
<shevy> things may be easier to remember though... Ftp.connect to: 'www.ruby.com'
banister has joined #ruby
<totimkopf> hehe
nicolastarzia has quit [Read error: Connection reset by peer]
<totimkopf> what itch does crystal scratch? a ruby-like language that can be compiled?
nicolastarzia has joined #ruby
<shevy> I guess so. It promises to be FAST
<izzol> My problem is that I want to send "hosts" to the class method or instance method (not sure which one yet). Then that method will check if host is Up or Down by Ping module. In that case it's better to have instance or class?
<shevy> they may well obsolete mruby!
<totimkopf> Crystal On Rails
<totimkopf> \o/
lemur has joined #ruby
<totimkopf> sounds almost like a drug
<izzol> As I understand instance will create new object for each host?
<izzol> and class?
jaequery has joined #ruby
christiandsg has quit [Remote host closed the connection]
<havenwood> totimkopf: a really nice stdlib is forming up. macros. no vm startup time. some neat syntax. etc.
<totimkopf> nice
<wasamasa> macros?
anarang has quit [Quit: Leaving]
<wasamasa> must surely have byzantine syntax
aryaching has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
<GaryOak_> izzol: the code you have won't make multiple classes for each host
deol has joined #ruby
krisquigley has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 248 seconds]
<havenwood> wasamasa: i dunno why i said macros, just blathering. that wasn't a well thought-out list of why crystal is interesting. :P
krisquigley has joined #ruby
agarie has joined #ruby
rbennacer has joined #ruby
<banister> havenwood i'm looking for a new language, and it looks ok
Hobogrammer has joined #ruby
<havenwood> banister: I find Clojure and Pixie-lang alluring.
andikr has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 245 seconds]
<GaryOak_> banister: I've been learning rust and I like it a lot
<havenwood> banister: fowl hasn't talk you into Nim? :)
<banister> havenwood nim looks cool
speakingcode has joined #ruby
<banister> GaryOak_ nice, can you some me how to interpolate text into a string in rust?
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b0t00 has joined #ruby
<havenwood> banister: Now if Crystal could just figure out how to do a proper REPL...
<GaryOak_> banister: you mean like string formatting?
milesmatthias has joined #ruby
<banister> GaryOak_ i mean someting like this; "hello #{name}, how are oyu?"
<wasamasa> havenwood: well, the syntax looks okayish, pretty template-like
<GaryOak_> format!("hello {}, how are you?", my_string)
<wasamasa> havenwood: guess you can do cute things with it
senayar has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
huddy has joined #ruby
<banister> GaryOak_ dat nasty
<havenwood> banister: i thought these were fun to look at: https://github.com/kostya/benchmarks
<GaryOak_> compared to ruby sure
<banister> GaryOak_ doesn't look any better than the #c printf formatting
<banister> GaryOak_ well, compared to any modern language :)
<GaryOak_> If you were only going to be printing strings I'm sure they would change the syntax
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
Sirupsen has joined #ruby
bMalum has quit [Quit: bMalum]
hpoydar has quit [Remote host closed the connection]
nicolastarzia has quit [Remote host closed the connection]
<havenwood> ^ i'm not sure how idiomatic the code is for all langs, but interesting to compare
lkba has joined #ruby
macoecho has joined #ruby
mac__ has joined #ruby
<GaryOak_> It's also because all characters are UTF8 and strings live on the stack
<colorisco> hey, how delete "[2]" in string "[2] foo bar $200 foo foo"
cacocola has quit [Remote host closed the connection]
<colorisco> with regex
codecop has joined #ruby
Cust0sL1men has quit [Ping timeout: 252 seconds]
nicolastarzia has joined #ruby
<izzol> ok I think I understand now :P
jottr_ has joined #ruby
<max96at> certainty: https://regex101.com/
gr33n7007h has joined #ruby
<gregf_> colorisco: str = "[2] foo bar $200 foo foo"; str.gsub!(/\[\d+\]/, ""); str
paulcsmith has joined #ruby
<colorisco> thanks
marr has joined #ruby
<gregf_> colorisco: you need to escape [,] as those are special chars in a regex
quimrstorres has quit [Remote host closed the connection]
tcrypt has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
Deele has joined #ruby
joonty has joined #ruby
vim_shimm has quit [Quit: WeeChat 1.1.1]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
pglombardo has quit []
existensil has joined #ruby
graft has joined #ruby
einarj has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
bMalum has joined #ruby
Takle has joined #ruby
quimrstorres has joined #ruby
chridal has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
paulcsmith has quit [Quit: Be back later ...]
gaussblurinc1 has joined #ruby
yqt has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
davidhq has joined #ruby
paulcsmith has joined #ruby
lemur has quit [Remote host closed the connection]
<gaussblurinc1> hi! could guard run commands every hour?
paulcsmith_ has joined #ruby
paulcsmith has quit [Read error: Connection reset by peer]
jerius has quit [Quit: /quit]
jmhmccr has quit [Quit: Connection closed for inactivity]
quimrsto_ has joined #ruby
<havenwood> gaussblurinc1: if you modify the filesystem hourly :P
<jhass> sounds like job for whenever rather than guard
chthon has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Read error: Connection reset by peer]
<gaussblurinc1> jhass: yes
AlexRussia has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
yqt has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
<adaedra> or cron, depending on the task.
withnale_ has quit [Ping timeout: 250 seconds]
senayar has quit []
<havenwood> adaedra: whenever is just a cron wrapper
hpoydar has joined #ruby
freerobby has joined #ruby
b0t00 has quit [Ping timeout: 252 seconds]
FF_ has joined #ruby
Flowrhent has quit [Ping timeout: 252 seconds]
davejlong has quit []
parduse has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
maletor has joined #ruby
beneggett has quit [Ping timeout: 264 seconds]
kotk has joined #ruby
<gr33n7007h> just installed rvm with ruby 2.2.1 do I now switch global gemset?
iamninja has quit [Read error: Connection reset by peer]
jefus__ is now known as jefus
iliketurtles has joined #ruby
iamninja has joined #ruby
beneggett has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
DerisiveLogic has joined #ruby
leafybas_ has joined #ruby
jimms has joined #ruby
lxsameer has quit [Quit: Leaving]
Cust0sL1men has joined #ruby
leafybas_ has quit [Remote host closed the connection]
ndrei has joined #ruby
pengin has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
izzol has quit [Quit: leaving]
triple_b has joined #ruby
<gr33n7007h> cheers miah :)
tgunr has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
graydot has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
paulcsmith_ has quit [Quit: Be back later ...]
paulcsmith_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
zorak8 has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
b0t00 has joined #ruby
djbkd has joined #ruby
gfawcettpq has quit [Ping timeout: 256 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
wallerdev has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
yh__ has joined #ruby
hectortrope has joined #ruby
jayeshsolanki has quit [Quit: bye!]
hectortrope has quit [Client Quit]
AlexRussia has joined #ruby
lennae has joined #ruby
jerius has joined #ruby
triple_b has quit [Ping timeout: 252 seconds]
yh has quit [Ping timeout: 250 seconds]
b0t00 has quit [Read error: Connection reset by peer]
Deele has joined #ruby
chinmay_dd has quit [Quit: Leaving]
triple_b has joined #ruby
kalusn has quit []
yh__ has quit [Ping timeout: 248 seconds]
lanemeyer has quit []
towski_ has joined #ruby
delianides has joined #ruby
lanemeyer has joined #ruby
rdark has quit [Quit: leaving]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colorisco is now known as colorados
RegulationD has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
agarie_ has joined #ruby
<colorados> amazin AI bot on #citipoly channel
GaryOak_ has joined #ruby
agarie has quit [Read error: Connection reset by peer]
ki0 has quit [Ping timeout: 246 seconds]
claw has quit [Ping timeout: 250 seconds]
path[l] has quit [Ping timeout: 255 seconds]
zenith_ has quit [Read error: Connection reset by peer]
mjuszcza_ has joined #ruby
zenith_ has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
claw has joined #ruby
mjuszczak has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit []
krz has quit [Quit: WeeChat 1.0.1]
workmad3 has quit [Ping timeout: 256 seconds]
qmotion has joined #ruby
gfawcettpq has joined #ruby
chridal has joined #ruby
agrinb has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
agrinb has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
chinmay_dd has joined #ruby
centrx has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
Cache_Money has joined #ruby
Pupeno has quit [Quit: Leaving...]
kblake_ has joined #ruby
hpoydar has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
lodgenbd has joined #ruby
kblake has quit [Read error: Connection reset by peer]
rajeshchawla has joined #ruby
hpoydar has joined #ruby
sevvie has joined #ruby
spyderma_ has joined #ruby
lennae has quit [Ping timeout: 252 seconds]
<shevy> someone perma-ban colorados pls
<jhass> pls is not enough of a reason I'm afraid
agrinb has quit [Ping timeout: 256 seconds]
<GaryOak_> what is going on!
rhllor has quit [Quit: rhllor]
Rayford has joined #ruby
krisquigley has joined #ruby
<jhass> nothing!
<jhass> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass> DeBot: _
<DeBot> ␣␣␣␣␣␣␣␣␣ [_] 1/12
<jhass> DeBot: -
<DeBot> ␣␣␣␣␣␣␣␣␣ [_-] 2/12
Volsus has quit [Ping timeout: 256 seconds]
c0m0 has quit [Ping timeout: 256 seconds]
<jhass> :)
<wasamasa> DeBot: earnest
<DeBot> ␣e␣s␣␣␣␣␣ [_-arnt] 6/12
<GaryOak_> DeBot: S
<DeBot> ␣e␣s␣␣␣␣␣ [_-arnt] 6/12
<jhass> DeBot: io
<DeBot> ␣e␣s␣␣oo␣ [_-arnti] 7/12
<GaryOak_> DeBot: f
<DeBot> ␣e␣s␣␣oo␣ [_-arntif] 8/12
<wasamasa> DeBot: p
<DeBot> ␣e␣s␣␣oo␣ [_-arntifp] 9/12
lodgenbd has quit [Client Quit]
<GaryOak_> DeBot: r
<DeBot> ␣e␣s␣␣oo␣ [_-arntifp] 9/12
spyderman4g63 has quit [Ping timeout: 272 seconds]
<wasamasa> DeBot: k
<DeBot> ␣e␣s␣␣oo␣ [_-arntifpk] 10/12
<GaryOak_> k really?
<GaryOak_> DeBot: h
<DeBot> ␣e␣s␣hoo␣ [_-arntifpk] 10/12
freerobby has quit [Quit: Leaving.]
Pharaoh2 has joined #ruby
<jhass> DeBot: p
<DeBot> ␣e␣s␣hoo␣ [_-arntifpk] 10/12
<centrx> DeBot, hooey
<DeBot> ␣e␣s␣hoo␣ [_-arntifpky] 11/12
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> DeBot, potato
<DeBot> ␣e␣s␣hoo␣ [_-arntifpky] 11/12
<jhass> DeBot: l
<DeBot> ␣e␣s␣hool [_-arntifpky] 11/12
<jhass> DeBot: c
<DeBot> ␣e␣school [_-arntifpky] 11/12
<GaryOak_> DeBot: c
<DeBot> ␣e␣school [_-arntifpky] 11/12
<centrx> wtf
Rayford is now known as StephenOTT
<centrx> DeBot, wtf
<DeBot> medschool [_-arntifpkyw] 12/12 You lost!
<centrx> that's not a word
<GaryOak_> haha
freerobby has joined #ruby
kyrylo_ has joined #ruby
piotrj has joined #ruby
<jhass> "Medschool makes your API Docs smarter"
rajeshchawla has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 250 seconds]
fryguy9 has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
StephenOTT has quit [Client Quit]
StephenOTT has joined #ruby
cacocola has joined #ruby
rajeshchawla has joined #ruby
zenith_ has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 248 seconds]
ghostpl_ has quit [Remote host closed the connection]
lavros has quit [Quit: leaving]
mistermocha has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lordkryss has joined #ruby
symbol_ has joined #ruby
b0t00 has joined #ruby
Takle has joined #ruby
RegulationD has joined #ruby
pietr0 has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
nateberkopec has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenith_ has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 256 seconds]
rajeshchawla has joined #ruby
momomomomo has joined #ruby
<miah> wow thats really annoying
relix has joined #ruby
<GaryOak_> ahhahaha
Zai00 has quit [Quit: Zai00]
albedoa has quit [Read error: Connection reset by peer]
<jhass> set it on ignore, the moment somebody interrupts regular channel traffic with it it's gone
albedoa has joined #ruby
<miah> who owns the bot? they should just remove it.
iliketurtles has quit [Quit: zzzzz…..]
Crazy_Atheist has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
<jhass> me does
iliketurtles has joined #ruby
<miah> can you take it elsewhere?
<jhass> it already is elsewhere, can you ignore it?
<miah> no
beneggett has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
<jhass> why not?
<miah> because i shouldnt have to?
arturhoo has quit [Ping timeout: 265 seconds]
<miah> i've seen people mention in this channel previously that the only bot permitted was eval-in_
bMalum_ has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
sevvie has joined #ruby
<jhass> things change, we got helpa here too now
<jhass> it's proven to be fun to quite some people so far the ratio is about 14/2
<jhass> with you being one and the other person being fine to put it onto their ignore list
nii2361 has joined #ruby
miah has left #ruby [#ruby]
<jhass> kay, bye
milesmatthias has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
x1337807x has joined #ruby
arturhoo has joined #ruby
zzing has joined #ruby
bMalum has quit [Ping timeout: 246 seconds]
bMalum_ is now known as bMalum
iamjarvo has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
<shevy> you scared miah away!
<jhass> one unreasonable person less, what a pity
xcombelle has joined #ruby
mac__ has joined #ruby
macoecho has joined #ruby
nii2361 has quit [Ping timeout: 245 seconds]
dfinninger has quit [Remote host closed the connection]
quimrsto_ has quit [Remote host closed the connection]
Notte has joined #ruby
Takle has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<banister> jhass what does helpa do
quimrstorres has quit [Remote host closed the connection]
pdoherty has joined #ruby
Channel6 has quit [Quit: Leaving]
<centrx> Someone insulting Hangman Bot?
<helpa> Hi jhass. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<jhass> this for example
<jhass> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<jhass> or this
quimrstorres has joined #ruby
<jhass> and so on
bim has quit [Remote host closed the connection]
doodlehaus has joined #ruby
cacocola has quit [Remote host closed the connection]
Megtastique has quit []
jottr_ has joined #ruby
ninjs has joined #ruby
sephilix has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
kyrylo_ has quit [Ping timeout: 256 seconds]
C1ph3r has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
bean has joined #ruby
KrzaQ has joined #ruby
beneggett has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
djbkd has quit [Remote host closed the connection]
droidburgundy has joined #ruby
AlphaTech|AWAY has joined #ruby
<KrzaQ> let's say I have a string '#a#b#', I want to split it by '#', do replacements, and join back, but it removes the last '#'. How can I fix that?
<jhass> try without abstractions
<jhass> usually yields better answers
AlphaTech|AWAY is now known as AlphaTech
C1ph3r has quit [Ping timeout: 246 seconds]
<jhass> fine then not
<jhass> >> "#a#b#".split("#", -1).join("#")
<eval-in_> jhass => "#a#b#" (https://eval.in/307100)
<KrzaQ> >> "#a#b#c".split("#", -1).join("#")
<eval-in_> KrzaQ => "#a#b#c" (https://eval.in/307101)
leafybasil has joined #ruby
<KrzaQ> cool
<KrzaQ> thanks!
<KrzaQ> I guess I should've read the docs more carefully
<jhass> split is one of the methods with one too many special cases ;)
felltir has joined #ruby
<jhass> I still suspect there's a better way for your real problem, but since you don't want to share it...
<KrzaQ> well, the limit argument didn't seem like what I'd want
chrisja has joined #ruby
silkfox has joined #ruby
<KrzaQ> I have a map of rules (name->rule), some of which are recursive. I want to flatten them
pothibo has joined #ruby
symbol_ has quit [Quit: WeeChat 1.1]
rajeshchawla has joined #ruby
bim has joined #ruby
pengin has quit [Remote host closed the connection]
<KrzaQ> so it's something like { 'foo' => '#foo# == true && #bar# == 42', 'qux' => '#foo# && #baz# == 1' }
pengin has joined #ruby
<KrzaQ> well, foo uses itself, darn
shadoi1 has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 264 seconds]
<KrzaQ> in any case, I wanted to take '#foo#' from qux and replace it with the whole rule
<jhass> until no variable is left I guess?
<KrzaQ> yeah
Crazy_Atheist has quit [Remote host closed the connection]
<jhass> sounds like a simple gsub
leafybasil has quit [Ping timeout: 246 seconds]
<jhass> in a recursive method with "no variable left" as exit condition
ndrei has quit [Ping timeout: 250 seconds]
pengin_ has joined #ruby
cacocola has joined #ruby
hobodave has joined #ruby
hobodave has quit [Changing host]
hobodave has joined #ruby
pengin has quit [Read error: Connection reset by peer]
hobodave has quit [Remote host closed the connection]
<jhass> >> replacements = {"a" => "b", "c" => "d"}; "ab".gsub(Regexp.union(replacements.keys), replacements)
<eval-in_> jhass => "bb" (https://eval.in/307102)
hobodave has joined #ruby
<jhass> er
<jhass> >> replacements = {"a" => "b", "c" => "d"}; "ac".gsub(Regexp.union(replacements.keys), replacements)
<eval-in_> jhass => "bd" (https://eval.in/307103)
djbkd has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
mleung has joined #ruby
<jhass> gotta iterate over the values and map the keys into "#x" in your case, but like that
<KrzaQ> heh
felltir has quit [Ping timeout: 248 seconds]
lolmaus_ has joined #ruby
<KrzaQ> I googled for gsub over hash like half an hour the other day
<jhass> the power of #ruby! :P
lolmaus has quit [Read error: Connection reset by peer]
kirun has joined #ruby
<baweaver> Just found out #index_by is a thing in Rails
<baweaver> that's handy
<KrzaQ> I'm not sure how to extract ## from the variable (they're not present in rule names)
Cache_Money has quit [Quit: Cache_Money]
<jhass> you just map the hash
<KrzaQ> though I guess I can make a copy of the map with changed key names
<jhass> yeah
Flowrhent has joined #ruby
FF_ has quit [Ping timeout: 248 seconds]
<KrzaQ> yay, thanks. You're really helpful
lolmaus_ has quit [Client Quit]
cacocola has quit [Ping timeout: 265 seconds]
<jhass> >> {"a" => "b", "c" => "d"}.map {|k, v| ["##{k}#", v] }.to_h
<eval-in_> jhass => {"#a#"=>"b", "#c#"=>"d"} (https://eval.in/307104)
<KrzaQ> How do I detect if gsub made any changes? String comparison?
gfawcettpq has quit [Ping timeout: 256 seconds]
<jhass> cant you just abort on .values.any? {|rule| rule.include? "#" } ?
<baweaver> User.first(2).index_by(&:first_name) # => { 'foo' => User, 'bar' => User }
* baweaver is talking about something unrelated
<KrzaQ> nope, because #var# is also used for runtime variables of the program I'm prepping the config for
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
<bradland> man, i literally just saw something the other day about a gsub replacement that reports changes in addition to the string
__main__ has quit [Ping timeout: 245 seconds]
<jhass> mh, you can make a copy and use .gsub!
<jhass> which will return nil when no changes were made
<jhass> so make a deep copy of the hash maybe
<baweaver> then
<KrzaQ> mhm
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
sevvie has joined #ruby
kadoppe has quit [Ping timeout: 256 seconds]
mac__ has joined #ruby
macoecho has joined #ruby
<baweaver> >> {a: '1', b: '2'}.map { |k,v| [k, v.gsub!(/1/, '3')] }.to_h.select { |k,v| v.nil? }
<eval-in_> baweaver => {:b=>nil} (https://eval.in/307105)
ghr has joined #ruby
mleung has quit [Ping timeout: 265 seconds]
stef204 has joined #ruby
<shevy> beaver!
<shevy> you are back
kadoppe has joined #ruby
<romking> say I have a log file, say an access log file, and I want to count all of the occurances of ip addresses in it, what's an easy ruby way to do that?
<baweaver> A beaver is never early, and never late. He appears precisely when he means to.
<baweaver> psuedo code
smcquaid has joined #ruby
<jhass> more like replacements = rules.map {|var, rule| ["##{var}#", rule.dup] }; replacements while replacements.values.any? {|rule| rule.gsub!(...) } I guess
<baweaver> ip_file.lines.select { |line| line =~ /\d{3}\.\d{3}\.\d{3}\.\d{3}\/ }
bMalum has quit [Quit: bMalum]
mleung has joined #ruby
MatthewsFace has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
<KrzaQ> It doesn't *have* to be a one-liner :P
<baweaver> a more proper ip regex can be used
<jhass> KrzaQ: in IRC ; are newlines :P
chinmay_dd has quit [Quit: Leaving]
<KrzaQ> good point
yqt has joined #ruby
<baweaver> buuuut I don't want to look that RFC nightmare thing up.
<jhass> that problem would be a good coding challenge actually
sevvie has quit [Ping timeout: 264 seconds]
<romking> well I am asking if the log file has 2 thousand entries, and there's 20-0 uniq ips in there, but all randomly accessed, I want to get a count of each
doodlehaus has quit []
rubie has joined #ruby
<KrzaQ> is .dup the same as .clone?
ghr has quit [Ping timeout: 256 seconds]
<baweaver> romking: then put a #length on the end of there
<rubie> no they are not the same
<rubie> but they do similar things
triple_b has joined #ruby
DEA7TH has joined #ruby
<baweaver> you're selecting all lines with an ip in there, which gives an array of all matches.
__main__ has joined #ruby
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<romking> actually baweaver I am doing
<baweaver> Now if you want to rip out the IPs on the other hand, use capture groups
<romking> chunk.each_line do |line|
<romking> if line =~ /CF-Connecting-IP: (\d+.\d+.\d+.\d+)/
<romking> cfConntingIp = line.split("CF-Connecting-IP: ", 2)
<romking> puts cfConntingIp
<jhass> KrzaQ: iirc .clone is supposed to make a deep copy and .dup a shallow one, the default implementations from Object both make a shallow one though
<romking> end
<romking> end
<baweaver> stio
<baweaver> stop
<baweaver> gist it
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
cacocola has joined #ruby
<jhass> KrzaQ: there were some differences in how .frozen? is transferred but I can never remember those
<baweaver> romking: gist.github.com
<rubie> is there a method to call .each but start at index 1 instead of 0
<jhass> and I think even Array#clone and Hash#clone are still shallow
<KrzaQ> That's above my level right now
<baweaver> otherwise it ends up fogging up the channel fast
<KrzaQ> rubie: foo[1..-1].each{...}
<jhass> KrzaQ: so for the most part you need to care about there's no difference ;)
willharrison has joined #ruby
<baweaver> (1..10).group_by(&:even?)
<baweaver> >> (1..10).group_by(&:even?)
<eval-in_> baweaver => {false=>[1, 3, 5, 7, 9], true=>[2, 4, 6, 8, 10]} (https://eval.in/307109)
<baweaver> you can use that
<rubie> KrzaQ: ok thanks
<baweaver> just pass in the IP address
<jhass> rubie: or foo.drop(1).each
<rubie> nice
<KrzaQ> drop
<KrzaQ> I was looking for that the other day and came up with this slicing solution
<baweaver> then map that: grouped_vals.map { |ip, matches| [ip, matches.length] }
<KrzaQ> it really should be referenced by .take
<jhass> KrzaQ: you just need to idle here more :P
<KrzaQ> I will from now on
last_staff has joined #ruby
f3lp has joined #ruby
<baweaver> so something like
bruno- has joined #ruby
<baweaver> >> (1..10).group_by(&:even?).map { |is_even, matches| [is_even, matches.length] }.to_h
<eval-in_> baweaver => {false=>5, true=>5} (https://eval.in/307110)
JoshGlzBrk has joined #ruby
gfawcettpq has joined #ruby
Takle has joined #ruby
dorei has joined #ruby
<baweaver> romking: except pass a block to group_by to return the ip you want to group by and you're set.
mac__ has joined #ruby
macoecho has joined #ruby
b0t00 has quit [Ping timeout: 244 seconds]
last_staff has quit [Client Quit]
xcombelle has quit [Remote host closed the connection]
rclements has joined #ruby
startupality has joined #ruby
fryguy9 has joined #ruby
<KrzaQ> okay, so while I'm at it, is there a better way to write foo[bar[:baz]]?
<jhass> no
bruno- has quit [Ping timeout: 245 seconds]
centrx has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
ghr has joined #ruby
sevvie has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
graydot has quit [Quit: graydot]
<romking> Ok another question: is there a way to auto-sort & count the items inside an array?
Crazy_Atheist has quit [Read error: Connection reset by peer]
<GaryOak_> >> [2, 4, 3].sort.length
<eval-in_> GaryOak_ => 3 (https://eval.in/307112)
<jhass> "auto-sort"?
<GaryOak_> insert in order
<GaryOak_> ?
smcquaid has quit [Quit: Textual IRC Client: www.textualapp.com]
<crowell> I think you want .sort!.length
<baweaver> crowell: don't
<jhass> was my first intuition but then asking whether there's .size/.length...
<jhass> >> [1, 2, 3].sort!
<eval-in_> jhass => [1, 2, 3] (https://eval.in/307114)
<jhass> oh, sneaky sort!
<romking> meaning iparray = ["2", "2", "3", "2", "1"], which will give me all 2s =3, all 3s = 1, and all 1s = 1
<baweaver> >> ["2", "2", "3", "2", "1"].group_by { |v| v }
<eval-in_> baweaver => {"2"=>["2", "2", "2"], "3"=>["3"], "1"=>["1"]} (https://eval.in/307115)
Soda has quit [Remote host closed the connection]
<baweaver> >> ["2", "2", "3", "2", "1"].group_by { |v| v }.map { |k,v| [k, v.length] }.to_h
<eval-in_> baweaver => {"2"=>3, "3"=>1, "1"=>1} (https://eval.in/307116)
<GaryOak_> BOOM! ^
lxsameer has joined #ruby
shazaum has joined #ruby
<jhass> ah, a pesky .length'er
<jhass> .size'rs unite!
<crowell> irb(main):008:0> a = [1,3,3,2]
<crowell> => [1, 3, 3, 2]
<crowell> irb(main):009:0> a.uniq.each{|i| p a.count(i)}
<crowell> 1
<crowell> 2
<crowell> 1
<crowell> => [1, 3, 2]
<baweaver> avoid bang methods unless you really need to use them, makes a mess
reset has joined #ruby
<jhass> crowell: /topic
<crowell> sry
noname1 has quit [Ping timeout: 255 seconds]
<baweaver> jhass: any reason on it or just an alias?
<jhass> just an alias and shorter to type
<baweaver> fair enough
cacocola has quit [Remote host closed the connection]
<romking> nice
<romking> thanks!
<jhass> .map over .collect for much the same reason really
reset has quit [Client Quit]
<baweaver> map over collect and reduce over inject because I've used too much JS / OCaml
<baweaver> or foldL from too much Haskell :D
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
spiderbyte has quit [Ping timeout: 245 seconds]
<shevy> well you save more in map vs. collect, than reduce vs. inject
The_Phoenix has quit [Read error: Connection reset by peer]
<baweaver> I still think F# and Scala are effectively OCaml / SML anyways.
ndrei has joined #ruby
<jhass> I actually .inject over .reduce. Mostly because used that way, if I had to argue I'd make something up about not all inject usecases reducing a set of values to a single one
varunwachaspati has joined #ruby
<baweaver> fair enough
<baweaver> I normally use it for reduction
<baweaver> So use whatever name is your intent
<baweaver> because
_blizzy_ has quit [Ping timeout: 244 seconds]
<baweaver> >> (1..10).inject(:+)
<eval-in_> baweaver => 55 (https://eval.in/307117)
<jhass> yeah it's mostly preference really, most of these inject usecases are better with .each_with_object anyway
<baweaver> is less clear than reduce to me
<jhass> and I don't like to mix
<baweaver> fair enough
<baweaver> most of programming is a preference.
<jhass> sure
<baweaver> just as long as there's a source of truth to prevent bikeshedding for days at a time
<baweaver> Left bracket vs Right bracket.... Ah I hate that nonsense
<baweaver> just pick one and be done with it, put it in a style guide and enforce it with hooks.
<baweaver> saves hours of useless debate over semantics.
piotrj has quit [Remote host closed the connection]
<baweaver> Anyways, lunch time
piotrj has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
yh has joined #ruby
baweaver has quit [Remote host closed the connection]
<jhass> hehe
Hounddog has quit [Read error: Connection reset by peer]
zzing has quit [Read error: Connection reset by peer]
zzing has joined #ruby
Zai00 has joined #ruby
bim has quit [Remote host closed the connection]
zenith__ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
DerisiveLogic has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
zenith_ has quit [Ping timeout: 256 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
DerisiveLogic has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
zenith__ has quit [Ping timeout: 244 seconds]
pothibo has quit [Quit: pothibo]
nb_bez___ has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
macoecho has joined #ruby
mac__ has joined #ruby
jenrzzz has joined #ruby
GnuYawk has quit [Ping timeout: 255 seconds]
RegulationD has quit [Remote host closed the connection]
totimkopf has quit [Quit: leaving]
dfinninger has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
bim has joined #ruby
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
blizzy has joined #ruby
centrx has joined #ruby
dfinninger has joined #ruby
redondos has left #ruby [#ruby]
iliketurtles has quit [Ping timeout: 264 seconds]
mhib has quit [Quit: Leaving]
<KrzaQ> jhass: this took ~10 seconds on a file with ~7k lines, but I only needed it once. Thanks.
<KrzaQ> I wonder how many silly mistakes there are: https://gist.github.com/KrzaQ/4df81f54483bc9b2fc2e
yfeldblum has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
<jhass> KrzaQ: you can extract rx out of the loop
<KrzaQ> hm, true
StephenOTT has quit [Read error: No route to host]
musashi1 has joined #ruby
iliketurtles has joined #ruby
<KrzaQ> I try not to litter the scope with useless variables
<jhass> you can do str = v.gsub directly
<jhass> I'd also refrain from k,v in actual code, variable, rule seems better
huddy has quit [Quit: Connection closed for inactivity]
nicolastarzia has joined #ruby
Dreamer3 has joined #ruby
<jhass> and you don't actually need to recreate rule_changes all the time, after all we cloned the rule in order to own it and thus can reasonably call .gsub! on it
<jhass> which means you can turn your map into a values.each do |rule|
Pharaoh2 has quit [Ping timeout: 246 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hobodave has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<KrzaQ> mhm
yqt has joined #ruby
quimrstorres has joined #ruby
<KrzaQ> will do that in the future
<KrzaQ> thasnk
<KrzaQ> ... thanks
StephenOTT has joined #ruby
<jhass> and I think by using the fact that .gsub! returns nil when no changes were made, you could do changes &&= rule.gsub!(...)
<KrzaQ> &&?
<KrzaQ> not ||?
<jhass> &&=
<jhass> mh, no nvm
<a5i> whats the equivalent of for (var i = 0; i < array.length; ++i) { in Ruby ?
<jhass> we don't want the short circuiting here I think
nettoweb has joined #ruby
<KrzaQ> I want to repeat as long as there was at least one change done
<jhass> a5i: depends on the loop body
<a5i> oh?
<jhass> a5i: yeah
<jhass> depending on what you use i for there's an idiomatic variant
StephenOTT has quit [Client Quit]
macoecho has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
stef204 has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
<a5i> jhass, i'm just rewriting that
rrichardsr3_away has quit [Quit: Textual IRC Client: www.textualapp.com]
mac__ has joined #ruby
macoecho has joined #ruby
<jhass> in that case I'd go with .each_index
<yxhuvud> I'd go with .sort
<jhass> yxhuvud: nope, that's quicksort not bubblesort :P
<yxhuvud> jhass: that is almost always a feature.
<jhass> .size.times do |i| is also a common idiom
Mia has joined #ruby
Mia has joined #ruby
<jhass> yxhuvud: the only implementations of bubble sort are educational, at least that's what I want to believe
milesmatthias has joined #ruby
<yxhuvud> jhass: you are not cynical enough :P
maciejczyzewski has joined #ruby
<jhass> I'm still young
bim has quit [Remote host closed the connection]
<jhass> gotta use that time
hpoydar has quit [Remote host closed the connection]
<crowell> why would you want bubble sort over qsort/
<jhass> because you came up with it yourself and feel smart that you invented a sorting algorithm
<crowell> you can make ruby do a stable sort with something like "sort_by.with_index { |x, idx| [x, idx] }"
maciejczyzewski has quit [Client Quit]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yxhuvud> crowell: well, maybe you want to heat your building or something.
gfawcettpq has quit [Ping timeout: 244 seconds]
mjuszcza_ has quit []
krisquigley has joined #ruby
startupality has quit [Quit: startupality]
Zai00 has quit [Quit: Zai00]
startupality has joined #ruby
bim has joined #ruby
wallerdev has quit [Quit: wallerdev]
hpoydar has joined #ruby
cacocola has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
<rubie> hi all: im a little confused about the difference between integers and arrays. If i create a variable set to an array and modify the original array the variable i set to that array changes too, however thats not the case with integers, here is an example....https://gist.github.com/anonymous/161f2b3aec88c548fc91
agarie_ has quit [Remote host closed the connection]
joe_meade has quit [Remote host closed the connection]
cacocola has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
<Sou|cutter> what if you did array += [5] instead of <<
<Sou|cutter> = is an assignment of a variable, << is an operator that modifies the existing variable
<rubie> ahh
Zai00 has joined #ruby
zorak8 has quit [Quit: Leaving]
mistermocha has joined #ruby
<Sou|cutter> also if you really want a dupe, there's a dup method
symbol_ has joined #ruby
<rubie> ya i used that yesterday
robbyoconnor has quit [Ping timeout: 250 seconds]
<rubie> still messing learning about this tho
momomomomo has quit [Quit: momomomomo]
<rubie> thanks
<Sou|cutter> no problem
zenith_ has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
<jhass> rubie: it helps to make the differences between variables and objects clear
<jhass> variables are references to objects
<rubie> what do you mean by that
mistermocha has quit [Ping timeout: 256 seconds]
<jhass> the only way to change a variable is the equal sign =
greenbagels has joined #ruby
<rubie> ok
quimrstorres has quit [Remote host closed the connection]
<jhass> a = 1; a is a reference to the object 1 of class Fixnum; a = "foo"; now a is a reference to the object "foo" of type String. The variable a was changed, the referenced objects were not
quimrstorres has joined #ruby
nettoweb_ has joined #ruby
aswen has joined #ruby
StephenOTT has joined #ruby
<jhass> things like +=, -=, /=, *=, ||=, &&= are syntax sugar, for the first part they expand to a = a + b, a = a * b etc, a ||= b expands to a || a = b, a &&= b expands to a && a = b
zenith_ has quit [Ping timeout: 252 seconds]
chridal has quit [Ping timeout: 272 seconds]
<jhass> so it's really just a = b again, the only way to change a variable is the assignment
<jhass> everything else changes the referenced object
<jhass> (or returns a new one)
quimrstorres has quit [Read error: Connection reset by peer]
<weaksauce> a5i look at upto and downto as well
quimrstorres has joined #ruby
<Sou|cutter> good explanation
chrishough has joined #ruby
nettoweb has quit [Ping timeout: 265 seconds]
fakam has joined #ruby
pdoherty has joined #ruby
O_the_Del has joined #ruby
Lewix has quit [Remote host closed the connection]
storagedragon has joined #ruby
<fakam> Hello, http://repl.it/gZr/6 <-- i have a ruby script but it prints out nil when trying to case a array. Can I get some help?
<Sou|cutter> I feel like it takes experience before object/reference becomes intuitive, though. It'll come
<jhass> yeah, sure
<fakam> Thanks
<apeiros> fakam: that's not how case/when works
O_the_Del has left #ruby [#ruby]
DEA7TH has quit [Ping timeout: 244 seconds]
<apeiros> fakam: your code causes ruby to evaluate the following in e.g. your first when: `users.include?("admin") === choice`
<fakam> How does it work?
<apeiros> fakam: use if/elsif for this kind of construct
<fakam> okay
<apeiros> though your conditions don't seem to make much sense anyway…
timonv has quit [Ping timeout: 250 seconds]
<apeiros> users.include?("admin") is a tautology. you set users to ["admin", "moderator", "builder"]. it's already defined that it will include "admin"
<fakam> hmm we will use a if
<fakam> thx guys
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
B1n4r10 has joined #ruby
pdoherty has quit [Client Quit]
B1n4r10 has quit [Client Quit]
<rubie> jhass: thanks i need to explore this more
B1n4r10 has joined #ruby
startupality has quit [Quit: startupality]
momomomomo has joined #ruby
lolmaus has joined #ruby
<rubie> jhass: is a reference and a pointer the same thing?
<jhass> conceptually pretty much
Cache_Money has joined #ruby
<jhass> though I'm not sure if it really helps to think about them like that
<jhass> where do you know pointers from?
<rubie> but a=1 and b=1 .... 1 would be different objects for a and b
<rubie> just from the videos i watch
<jhass> ah, tricky case
<rubie> but a=1 and b=a would reference the same object
<jhass> let's start with a = "foo"; b = "foo"; there you are right
<jhass> and if we swap 1 with "foo" again you're still right
<willharrison> does ruby have pointer variables?
<jhass> willharrison: not really, no
<willharrison> oh ok
<willharrison> I didn't think so
<Elite6809> most scripting languages don't
<jhass> willharrison: that doesn't mean assignment copies though
MatthewsFace has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 256 seconds]
pdoherty has joined #ruby
<willharrison> I see
<jhass> rubie: in the case of numbers the literals are always the same objects, though in the general case you're right
<rubie> what is a literal?
<jhass> I'm not sure I follow why that conflicts with anything I said though :)
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> a literal is a value that exists in your code
phutchins has quit [Ping timeout: 264 seconds]
agarie has joined #ruby
<jhass> 1, 1.0, "foo", ["foo", 1], {"a" => "b"} are all literals
<fakam> Back, http://repl.it/ the results are not as they correspond to the if?
<jhass> fakam: forgot the share link? ;)
<rubie> can a literal be anything other than a number (int, float)
B1n4r10 has joined #ruby
<jhass> rubie: yes, see above
B1n4r10 has quit [Client Quit]
B1n4r10 has joined #ruby
<rubie> ahh
<jhass> in Ruby we have Fixnum, Bignum, Float, String, Symbol, Array, Hash and Proc literals (and I probably missed something)
Jackneill has quit [Remote host closed the connection]
<jhass> I guess one could argue that we have Class and Module literals, but meh
aswen has quit [Ping timeout: 248 seconds]
elaptics is now known as elaptics_away
<rubie> so a = [2]; b = a; a << 4; b changes because its still referencing the object is 4 is being appended to
varunwachaspati has quit [Quit: Leaving]
quimrstorres has quit [Remote host closed the connection]
B1n4r10 has quit [Client Quit]
<jhass> more importantly << is a method call, Array#<<, you could write it as a.<<(4)
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
quimrstorres has joined #ruby
<fakam> jhass you look at the code
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
Sawbones_ has joined #ruby
romking has quit [Quit: Konversation terminated!]
<jhass> fakam: you still only shared the site, no code
kirun has quit [Quit: Client exiting]
<fakam> I did twice
<fakam> URL: http://repl.it/
<jhass> yes, twice the same mistake
<rubie> but a += [4] assigns a to an entirely new array ( the old a + [4] )
<jhass> no thrice
<jhass> *now
<fakam> It's an if now
<rubie> you might want to save it fakam
<jhass> rubie: yup, it's a = a + [4] or a = a.+([4]) in method call syntax
<fakam> i will make a new one
kaspernj has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chridal has joined #ruby
<rubie> ahh, thats a really good thing to know
<jhass> fakam: notice how the URL is different? ;)
<fakam> yea thats odd
<fakam> everything == builder
<jhass> yeah
<fakam> why?
<jhass> since a string never equals true or false
<jhass> fakam: reduce your code, try to understand what users.include?("admin") actually does
<fakam> make it a bool?
yfeldblum has quit [Remote host closed the connection]
<bradland> fakam: a lot of this doesn't make much sense
<fakam> it checks if it includes that value
<bradland> on line 12, what is the result of the method call users.include?("admin")
<jhass> fakam: say that again without using "it"
<fakam> its the value of the array
<bradland> nope
quimrstorres has quit [Ping timeout: 245 seconds]
<bradland> check the docs for Array#include?
<bradland> it returns true or false
<jhass> >> users = %w(admin foobar); users.include?("admin")
<eval-in_> jhass => true (https://eval.in/307120)
<fakam> oh no wonder
Sawbones_ has quit [Ping timeout: 264 seconds]
<fakam> thanks
<bradland> if your usernames are a static list, there's no point in looking up against an array
wallerdev has joined #ruby
<bradland> even if Array#include? did return the result
djbkd has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
dstarh has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 250 seconds]
<fakam> Ahh
<fakam> noobs
symbol__ has joined #ruby
Volsus has joined #ruby
stevechiagozie has joined #ruby
rocknrollmarc has quit [Ping timeout: 255 seconds]
arturhoo has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
arturhoo has joined #ruby
symbol_ has quit [Ping timeout: 265 seconds]
Aswebb_ has joined #ruby
sevvie has joined #ruby
<shevy> boobs?
quimrstorres has joined #ruby
DerisiveLogic has joined #ruby
asterite has joined #ruby
Sirupsen has quit [Ping timeout: 250 seconds]
asterite has left #ruby [#ruby]
<centrx> roobs
deol has joined #ruby
aswen has joined #ruby
cfengineers has joined #ruby
baweaver has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
<ddv> troops
<bradland> hoops!
<ddv> i'm out of words
<storagedragon> roots the noobs boobs troops in hoops?
Filete has joined #ruby
d10n-work has joined #ruby
baweaver has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 256 seconds]
<atmosx> aloha
ndrei has quit [Ping timeout: 272 seconds]
<atmosx> shevy: what are you up to now, work or study?
deol has quit [Read error: Connection reset by peer]
lorn has quit [Ping timeout: 252 seconds]
niftylettuce has joined #ruby
<shevy> atmosx right now we have easter holidays for 2 weeks, then I have 3 exams ("advanced immunology and allergy", "basic technical chemistry" and "sustainable ecology")
<atmosx> I'm gonna crash to bed. later all
<atmosx> sustainable ecology hahaha
<atmosx> awesome :-P
<shevy> hehe
yh has quit [Ping timeout: 256 seconds]
mistermo_ is now known as mistermocha
nfk|laptop has joined #ruby
<atmosx> night and have fun in your vacations! :-)
<shevy> eh just 3.0 ECTS but what I memorize there will be useful for other exams lateron in agritechn/biotech
<shevy> cya
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<GaryOak_> I sucked at chemistry
lorn has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<GaryOak_> Good luck shevy
CpuID has joined #ruby
Volsus has quit [Quit: Leaving]
<shevy> I do too, I also hate it but there isn't quite a good way around it. My biggest gripe with technical chemistry is that it is based on math, so the questions will involve a lot of math
<GaryOak_> that sounds gross
baweaver has joined #ruby
<shevy> yeah
<GaryOak_> Chemistry just doesn't make any sense to me!
<GaryOak_> and 3 sig fig
Volsus has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
sevvie has joined #ruby
<shevy> well basic chemistry is ok
mac__ has joined #ruby
macoecho has joined #ruby
nicolastarzia has joined #ruby
<shevy> but the examples are like, you need to finish some part, get some data out of that, then continue with that for the other part of the same questions about 2 times. so if you make a mistake early on, or can not solve, you have 0 points there
<GaryOak_> :(
yh has joined #ruby
<shevy> what I don't quite understand is why we can't use computers
<baweaver> or notes, or books, or resources in general
chridal has quit [Ping timeout: 265 seconds]
<baweaver> considering every sane job lets you in the real world.
Cache_Money has joined #ruby
<bradland> considering every sane job benefits from use of computers in the real world
<GaryOak_> only on an exam is speed valued more than correctness
<shevy> for instance, on the commandline for Glucose, I just do "molmass C6H12O6" and it yields me 180.155 u (g / mol) in like for a total of 4 seconds that it takes me to type the command + formula
<baweaver> GaryOak_: I don't know about that
<baweaver> Have you SEEN most large software projects?
<shevy> but with a classical calculator, man... it takes me like ... half a minute. and I can typo
<GaryOak_> they want speed and correctness
<rubie> shevy what is your end goal with your education?
<baweaver> speed is definitely above correctness far more often than you dare think possible.
Kricir has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<shevy> rubie oh man, that's like lightyears off
<GaryOak_> well yeah, not for mixing chemicals though
Elite6809 has quit [Quit: WeeChat 1.1.1]
<GaryOak_> or fabricating medicine
quimrstorres has joined #ruby
<baweaver> want to know a horrifying little secret?
ndrei has joined #ruby
<baweaver> Every job cuts corners somewhere.
<shevy> rubie what I myself want to do does not really exist in this form - it would be a mixture of gene therapy, biotechnology and synthetic biology
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
stef204 has joined #ruby
triple_b has quit [Ping timeout: 264 seconds]
<rubie> nice, you studying systems biology?
lanemeyer has quit [Ping timeout: 256 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
<shevy> nah not really... as long as the simulations aren't precisely how things would be how a real cell works, it's not really that useful
<baweaver> Go the SF way, if the job you want doesn't exist then make it.
<shevy> take bioinformatics - it's essentially math and big data crunching. I have no interest to pour years into statistics, I care about the end result
Jiyuhen has quit [Ping timeout: 250 seconds]
Jiyuhen has joined #ruby
MatthewsFace has joined #ruby
<baweaver> I'm in the nice little niche that just happens to grok statistics naturally. Really I don't think it'd take years though
centrx has quit [Remote host closed the connection]
fakam has quit [Quit: Leaving]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
graydot has joined #ruby
roolo has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
JDiPierro has quit [Remote host closed the connection]
Zamyatin has joined #ruby
<eam> I have a passion for serving ads
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<frem> I have a stupid bash-related question. Why does ruby not see my env variable unless I put it on the same line as the ruby command? https://gist.github.com/jamesgecko/1ac246457220d16879de
<agarie> when you run a Ruby program, it creates a new process
<agarie> if you put the env var in that line, the spawned process will be able to access it
<frem> Is there a way to access env vars from ruby without putting them in the same line as the command?
<eam> frem: FOO=bar isn't an environment variable
djbkd has joined #ruby
<eam> export FOO puts the bash variable foo into the environment
<eam> export FOO=bar # env var FOO
Zamyatin has quit [Client Quit]
<eam> otherwise FOO=bar is just a bash language variable
<eam> bash overlaps environment and local interpreter variables in the same namespace without clearly distinguishing between them
elaptics_away is now known as elaptics
<frem> Ah, like `set -x` in fish.
n_blownapart has joined #ruby
<frem> That makes sense. Thanks!
<eam> FOO=bar some_command doesn't set a local bash variable OR set an environment variable in the current process -- rather it sets it in the environment of the child only
martinbmadsen has joined #ruby
wottam has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
macoecho has joined #ruby
mac__ has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
wottam has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
bline79 has joined #ruby
yfeldblum has joined #ruby
havenwood has quit []
<bline79> let's say I have a list of names, how do I repeatedly put that list of names infinitely? names = [ "Fred", "Bob", "Jim" ] for example.
psy_ has quit [Ping timeout: 250 seconds]
<Radar> bline79: while true
<Radar> bline79: I think you might be able to figure out the rest :)
<Radar> You could also use loop do
<bradland> this reminds me of fizzbuzz
<canton7> bline79, #cycle
<bradland> use the modulus, luke!
<ytti> loop { puts names.rotate![0] }
<canton7> >> [1, 2, 3].cycle.take(10)
<eval-in_> canton7 => [1, 2, 3, 1, 2, 3, 1, 2, 3, 1] (https://eval.in/307126)
ghostpl_ has quit [Ping timeout: 256 seconds]
<ytti> rotate probably will be quite expensive for non-trivial size
<jhass> names.cycle(&method(:puts))
jottr_ has joined #ruby
baweaver has joined #ruby
jhass is now known as apeiros
apeiros is now known as jhass
jottr_ has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
lolmaus has quit [Quit: Konversation terminated!]
zarubin has joined #ruby
A205B064 has joined #ruby
havenwood has joined #ruby
phex has joined #ruby
Morkel has quit [Quit: Morkel]
zarubin has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
quimrstorres has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
quimrstorres has joined #ruby
wildroman2 has quit [Remote host closed the connection]
havenwood has quit [Client Quit]
Sembei has quit [Ping timeout: 250 seconds]
<bline79> thank you guys :)
mjuszczak has quit []
rclements has left #ruby [#ruby]
meth has joined #ruby
quimrsto_ has joined #ruby
psy_ has joined #ruby
cazrin has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
Rapier- has quit [Quit: (null)]
agarie has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 246 seconds]
quimrsto_ has quit [Remote host closed the connection]
CorpusCallosum has quit [Client Quit]
mjuszczak has joined #ruby
zenith_ has joined #ruby
thumpba has joined #ruby
duncannz has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
davidhq has joined #ruby
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
rodfersou has quit [Quit: leaving]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
symbol__ has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
codecop has quit [Remote host closed the connection]
<bline79> so, let's say I want to print 10 total names?
iliketurtles has quit [Quit: zzzzz…..]
<Radar> bline79: look at canton7's eaxmple
iliketurtles has joined #ruby
n_blownapart is now known as crucify_me
CorpusCallosum has joined #ruby
DerisiveLogic has joined #ruby
agarie has joined #ruby
albedoa_ has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
albedoa has quit [Read error: Connection reset by peer]
ValicekB has quit [Ping timeout: 256 seconds]
zenith_ has quit [Ping timeout: 264 seconds]
GaryOak_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
tier_ has quit [Ping timeout: 252 seconds]
Pharaoh2_ has joined #ruby
Pharaoh2_ is now known as Pharaoh2
checkit has joined #ruby
Renich has joined #ruby
<colorados> is big difference between [1,2,3]*4 and cycle? in perfomance
<colorados> which is fast and efficient
jimms has quit [Remote host closed the connection]
teddyp1cker has quit []
<wallerdev> cycle creates an enumerator
<wallerdev> so it wont calculate it all out immediately
<wallerdev> *4 will immediately create an array 4 times as big
cazrin has quit [Quit: Textual IRC Client: www.textualapp.com]
reinaldob has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 272 seconds]
arescorpio has joined #ruby
reinaldob has joined #ruby
phexydelic has joined #ruby
tvw has joined #ruby
jimms has joined #ruby
ValicekB has joined #ruby
Flowrhent has quit [Ping timeout: 264 seconds]
palms has joined #ruby
ldnunes has quit [Quit: Leaving]
Flowrhent has joined #ruby
reinaldob has quit [Ping timeout: 246 seconds]
delianides has quit [Remote host closed the connection]
phex has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ndrei has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby
ndrei has joined #ruby
<gr33n7007h> cycle time: 0.000300 *5: 0.000266
pengin_ has quit [Remote host closed the connection]
xenokiller has quit [Ping timeout: 252 seconds]
jefus_ has joined #ruby
storagedragon has quit [Quit: Leaving]
beneggett has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
aryaching has quit [Ping timeout: 265 seconds]
thebastl has joined #ruby
Lewix has quit [Remote host closed the connection]
xenokiller has joined #ruby
jefus has quit [Ping timeout: 246 seconds]
macoecho has joined #ruby
mac__ has joined #ruby
angelixd has joined #ruby
thebastl has quit [Client Quit]
nateberkopec has joined #ruby
brb3 has quit [Quit: <.<]
lxsameer has quit [Quit: Leaving]
<colorados> 1.448100374545902e-05
<colorados> 2.9480012017302215e-05
djbkd has quit [Remote host closed the connection]
<colorados> Benchmark.realtime { ([1,2,3,4]*100).take(200)}
<colorados> Benchmark.realtime { [1,2,3,4].cycle.take(200)}
olekenneth has quit [Ping timeout: 264 seconds]
shadoi1 has quit [Quit: Leaving.]
djbkd has joined #ruby
digitalextremist has quit [Remote host closed the connection]
shazaum has quit [Quit: This computer has gone to sleep]
<apeiros> realtime is a bad measure
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros> your computer does a lot more than execute your ruby code
baweaver has quit [Remote host closed the connection]
<apeiros> and that all ends up in realtime too
meth has quit [Ping timeout: 246 seconds]
arturhoo has quit [Quit: arturhoo]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<colorados> and measure?
<apeiros> measure gives you multiple times, one of them being CPU time, which for this measure is relevant
yfeldblum has quit [Remote host closed the connection]
<colorados> what is best method to measure
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
ValicekB has quit [Read error: No route to host]
pengin has joined #ruby
<apeiros> for CPU bound stuff, probably benchmark/ips
<colorados> 0.000039
<colorados> 0.000172
<colorados> for [1,2,3,4].cycle.take(2000)
kyrylo has joined #ruby
<colorados> 4 times faster mul array
Megtastique has quit []
thumpba_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
thumpba has quit [Ping timeout: 244 seconds]
thumpba has joined #ruby
SouL_ has joined #ruby
Notte has quit [Remote host closed the connection]
paulcsmith_ has quit [Quit: Be back later ...]
jottr_ has joined #ruby
_1_jordan has joined #ruby
jerius has quit [Quit: /quit]
<_1_jordan> hola ruby
_1_jordan has quit [Remote host closed the connection]
martinbm1dsen has joined #ruby
GaryOak_ has joined #ruby
blizzy is now known as _blizzy_
Pro|_ has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 252 seconds]
ValicekB has joined #ruby
thumpba_ has quit [Ping timeout: 248 seconds]
Pro| has joined #ruby
mjuszczak has quit []
sevvie has quit [Ping timeout: 245 seconds]
claw has quit [Read error: No route to host]
jonr22 has joined #ruby
coventry` has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
<coventry`> Is there a way to tell a ruby script to fail if it hits an unrecognized variable, like $xmplath when I mean $xmlpath?
<GaryOak_> coventry`: you can raise an error
<apeiros> coventry`: don't use globals. local variables raise automatically.
momomomomo has quit [Quit: momomomomo]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<coventry`> Ah, thanks.
kyrylo_ has joined #ruby
crucify_me has quit []
n_blownapart has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
<GaryOak_> My answers are always a little too vague
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Deele has quit [Ping timeout: 256 seconds]
milesmatthias has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
dcarper has joined #ruby
palms has quit [Ping timeout: 250 seconds]
kiri has joined #ruby
ArchRogem has joined #ruby
Takle has joined #ruby
baweaver has quit [Remote host closed the connection]
arturhoo has joined #ruby
kyrylo_ is now known as kyrylo
Vivex has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
Takle_ has joined #ruby
iamninja has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 264 seconds]
adriancb has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 256 seconds]
arturhoo has quit [Client Quit]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
qmotion has quit [Remote host closed the connection]
decoponyo has joined #ruby
baweaver has joined #ruby
Sirupsen has joined #ruby
max96at is now known as max96at|off
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
yh has quit [Ping timeout: 256 seconds]
ebbflowgo has joined #ruby
decoponio has quit [Ping timeout: 245 seconds]
digitalextremist has joined #ruby
nettoweb has joined #ruby
spyderma_ has quit [Ping timeout: 265 seconds]
KrzaQ has quit [Read error: Connection reset by peer]
yh has joined #ruby
jottr_ has joined #ruby
KrzaQ has joined #ruby
Stichoza has joined #ruby
iamninja has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
rocknrollmarc has joined #ruby
bim has quit [Remote host closed the connection]
tmoor has joined #ruby
Crazy_Atheist has quit [Remote host closed the connection]
ToApolytoXaos has left #ruby ["Leaving the channel."]
jonr22 has quit [Ping timeout: 265 seconds]
Affix has quit [Max SendQ exceeded]
fryguy9 has quit [Quit: Leaving.]
agarie has quit [Remote host closed the connection]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
agarie has joined #ruby
Affix has joined #ruby
senayar has joined #ruby
mjuszczak has joined #ruby
Affix is now known as Guest85735
agrinb has joined #ruby
Guest85735 is now known as Affix
tus has quit [Ping timeout: 272 seconds]
Affix has quit [Changing host]
Affix has joined #ruby
Volsus has quit [Quit: Leaving]
felltir has joined #ruby
crueber has quit [Quit: Leaving.]
palms has joined #ruby
Stalkr has joined #ruby
martinbm1dsen has quit [Ping timeout: 252 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
thumpba has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Client Quit]
<bradland> any comments on the maturity/preparedness of shoes4 for simple apps?
RegulationD has quit [Remote host closed the connection]
<bradland> i want/need to wrap a command line tool or two for some new users who are _compeltely_ lost on the command line
albedoa_ has quit [Ping timeout: 272 seconds]
avril14th has quit [Ping timeout: 255 seconds]
palms has quit [Ping timeout: 264 seconds]
Delsol has joined #ruby
<jhass> the actual UI from what I've seen looks too unpolished for me, which is why I never really investigated it
dling has quit []
<bradland> yeah, it's pretty soft there.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> i'm going to end up with a file browser and a few checkboxes with a "run" button
<bradland> bleh
<jhass> I yet have to play with them, but the ruby-gir bindings look pretty solid
felltir has quit []
<bradland> may just go with a curses app! ha
<jhass> and actually recent tk stuff doesn't look too bad either if you apply the right tricks
<Delsol> Stupid question. Activerecord is repeating the same exact sql queries dozens of times sometimes. Any way to make it less retarded? Or is it most likely retarded code?
olekenneth has joined #ruby
<jhass> Delsol: the later tbh
Stalkr has quit [Changing host]
Stalkr has joined #ruby
<jhass> missing .includes or so
nobitanobi has joined #ruby
<bradland> Delsol: AR referrs to this as eager loading associations.
<nobitanobi> Can group_by be used with two fields?
<nobitanobi> two attributes.
<Delsol> So if Im loading like sale.employee.fullname for each sale..... It does a select * from employees where ID = 7 for example, for each sale in a list....
<bradland> look for the assignment to sale
<bradland> it should be some kind of Sale.where(foo)
<bradland> or something
<bradland> have a look at the link I posted for eager loading associations
Aswebb_ has quit []
Flowrhent has quit [Quit: Flowrhent]
<bradland> nobitanobi: you'll have to be more specific. are you referring to Enumerable#group_by?
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
macoecho has joined #ruby
pdoherty has joined #ruby
mac_ has joined #ruby
aclearman037 has quit [Quit: I'm out!]
spider-mario has quit [Ping timeout: 244 seconds]
<bradland> Enumerable#group_by groups by the result of the block passed to it, so if you are passing in an object, you can assemble a string key, as if you were building a cache key.
<Delsol> one possible solution I had was to load all the employees, shove all that crap in an array.... Then look it up in memory from the array... But that's extra code to write, etc.... Multiply by a zillion different things equals project never gets finished....
spider-mario has joined #ruby
<bradland> nobitanobi: foo.group_by { |i| "#{i.bar}-#{i.baz}" }
<Delsol> But your saying I can just include all the stuff I need, grab it once, no major extra code?
<bradland> Delsol: dude
<bradland> have you even looked at the link I posted?
hpoydar has quit [Remote host closed the connection]
<bradland> eager
<bradland> loading
<bradland> associations
blackmesa has quit [Ping timeout: 256 seconds]
<bradland> it's less than two pages of docs
hpoydar has joined #ruby
<Delsol> Yeah... I looked at it... Just confirming, that's going to solve my issues?
<bradland> Yes. It will solve your issue.
<bradland> The queries you're seeing are called N + 1 queries
<Delsol> Badass.
<bradland> understanding why is important though
sgambino has quit [Remote host closed the connection]
<bradland> there must be a relationship between sales and employees
<bradland> when you call sale.employee, you're telling activerecord to follow that association
<bradland> so it triggers a query
pengin has quit [Remote host closed the connection]
<bradland> your idea with the array where you stuff the data from before?
leafybasil has joined #ruby
<bradland> that's kind of what includes does, only smarter
<bradland> it tells activerecord to query the relation at the time the main query is executed
sevvie has quit [Ping timeout: 265 seconds]
pengin has joined #ruby
codeFiend has joined #ruby
<bradland> that way it any time it encounters sale.employee.fullname (or whatever), the employee data is *eager loaded*
DerisiveLogic has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
hpoydar has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<jhass> was *already* eagerly loaded
hpoydar has joined #ruby
<bradland> those who do not understand ActiveRecord are doomed to abuse it
beneggett has joined #ruby
tus has joined #ruby
<jhass> you mean the average rails user :P
<bradland> haha
<wallerdev> what do you guys think of python
pengin_ has joined #ruby
<jhass> wallerdev: we think you want to troll
<jhass> :P
<wallerdev> i'm no troll :p
<wallerdev> might end up having to use it soon
<bradland> python is great
dcarper has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
<bradland> get used to callbacks in many cases instead of blocks
<wallerdev> i've dabbed a bit in it and it seems like ruby but worse
<bradland> lol
<wallerdev> does it have anonymous callback methods?
<Delsol> im not the main developer, I'm a php guy normally... Write my own sql, etc.... In this instance, I'm finding bugs, usability issues, etc... And trying to make it usable on less than 3.2ghz hardware....
bim has joined #ruby
jonr22 has joined #ruby
Ove_ has quit [Ping timeout: 244 seconds]
<agarie> that's ok Delsol
<agarie> the link bradland sent you (RailsGuides) is a wonderful way to gain familiarity with the various parts of Rails
bim has quit [Remote host closed the connection]
<bradland> wallerdev: it has lambda functions
<bradland> i've not used it enough to compare it to blocks though
<bradland> i'm kind of head over heels for ruby
<Delsol> In my opinion, gtk drawing an array of text boxes and checkboxes should be the slow part... Not mysql and activerecord.... Five hundred rows shouldn't take 90 bloody freaking seconds, heh.
<bradland> agree 100%
<bradland> sounds like someone really screwed the pooch on that app
bim has joined #ruby
<agarie> there are lambdas, but most pythonists I know (my last job was in a Python shop) hate them and prefer to write a method and simply use its name
<wallerdev> yeah
Sawbones_ has joined #ruby
<wallerdev> thats kind of what ive heard too
<agarie> There are two things that I *really* like in Python: its module system and the list comprehension syntax
zenith_ has joined #ruby
<wallerdev> i find list comprehensions hard to read :|
<bradland> Delsol: if you're familiar with SQL, you'll find ActiveRecord's .to_sql method useful
phexydelic has quit [Quit: Textual IRC Client: www.textualapp.com]
noname1 has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
<bradland> anywhere you see an assignment from an ActiveRecord model, you can drop that code in to a Rails console and add .to_sql to the end
bim has quit [Remote host closed the connection]
<bradland> and see what kind of SQL it would generate
Notte has joined #ruby
<agarie> you'd be in trouble reading my last job's codebase, wallerdev
<wallerdev> haha
<wallerdev> i might end up doing php to python conversion :|
<agarie> oh god
jonr22 has joined #ruby
<wallerdev> moving to a lesser evil lol
mac_ has quit [Quit: This computer has gone to sleep]
<bradland> Delsol: most ActiveRecord performance issues are related to failure to generate indexes, and poorly formed ActiveRecord queries
macoecho has quit [Quit: This computer has gone to sleep]
<jhass> wallerdev: my experience with list comprehensions is that if you're new to python they're hard to read, then they become easy and if you stop doing python for a while they become hard again
<jhass> super useful comment, I know
bim has joined #ruby
icebourg has quit []
jconnolly has quit [Ping timeout: 256 seconds]
<wallerdev> haha :)
Ove_ has joined #ruby
<agarie> I started reading comprehensions like a mix of #map and #select :P
<jhass> what I wanted to say there's a click moment to them, like with rubys blocks perhaps
zenith_ has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
<agarie> yeah, I felt the same, jhass
<agarie> it gets really natural after you've done it for a while
<wallerdev> gotcha
<wallerdev> well
<wallerdev> i'll keep you guys updated
<wallerdev> :p
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
kyrylo_ has joined #ruby
agarie has quit []
adriancb has joined #ruby
kyrylo has quit [Ping timeout: 265 seconds]
iliketur_ has joined #ruby
zarubin has joined #ruby
<bradland> oh man, this guy
<bradland> hilarious
baweaver has quit [Remote host closed the connection]
kaleido has joined #ruby
<bradland> says overclocking his server made performance tolerable
<rager> lol
<rager> I'll believe it
<bradland> scary part is, someone is paying for this
<rager> and by that... I mean that now that he thinks his server is faster due to overclocking, he can tolerate it melting itself into a pool of slag by next tuesday
<wallerdev> o.o
<wallerdev> if your server is under enough load to necessitate overclocking you probably need another server lol
iliketurtles has quit [Ping timeout: 264 seconds]
<rager> if your server is under enough load that you think that overclocking could help, you're probably not going to own that server for very long after you overclock it
<wallerdev> :p
kyrylo_ is now known as kyrylo
JimmyNeutron has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
phexydelic has joined #ruby
adriancb has quit [Remote host closed the connection]
Chris- is now known as Soliah
rajeshchawla has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 265 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
gluten_hell_ has joined #ruby
jimms has quit [Remote host closed the connection]
baweaver has joined #ruby
michael_mbp has quit [Excess Flood]
iamjarvo has joined #ruby
quimrstorres has quit [Remote host closed the connection]
riotjones has joined #ruby
x1337807x has joined #ruby
michael_mbp has joined #ruby
Notte has quit [Remote host closed the connection]
basiclaser has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
OtterCoder has quit [Remote host closed the connection]
macoecho has joined #ruby
rim-k has joined #ruby
<rim-k> hello*
baweaver has joined #ruby
Ove_ has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<jhass> hi
gluten_hell_ has quit [Ping timeout: 244 seconds]
pengin_ has quit [Remote host closed the connection]
<rim-k> I have a quick question
riotjones has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
Zai00 has quit [Quit: Zai00]
<rim-k> say I ran "bundle install --without xxxx yyyy zzzz"
Spami has quit [Quit: This computer has gone to sleep]
<rim-k> and I want to start from scratch
<rim-k> i.e. regenerate my GemFile
<jhass> rm .bundle/config
<rim-k> oh ok
<jhass> you don't generate the Gemfile, you write it
<rim-k> that easy? :)
c355E3B has joined #ruby
<rim-k> I mean the GemFile.lock
<rim-k> is that the same?
<jhass> well, that you could just delete too, but what's your actual issue?
macoecho has quit [Ping timeout: 248 seconds]
Delsol has quit [Quit: Page closed]
adriancb has quit [Remote host closed the connection]
iceden has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
sevvie has joined #ruby
pengin has joined #ruby
tvw has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
OtterCoder has joined #ruby
snath has left #ruby ["Leaving"]
<Radar> rim-k: Gemfile.lock is generated by Bundler.
dfinninger has quit [Remote host closed the connection]
RegulationD has joined #ruby
dcarper has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jeramy_s has joined #ruby
zorak8 has joined #ruby
bim has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
iceden has joined #ruby
bim has joined #ruby
albedoa has joined #ruby
adriancb has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
<a5i> What do you Rubyists think of Crystal?
<Lewix> a5i: what's Crystal?
<a5i> Basically Compiled Ruby
x1337807x has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807_ has joined #ruby
<a5i> Ruby syntax with the efficiency of C
x1337807x has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lewix> no freaking way a5i
<Lewix> I'll check it out now
centrx has joined #ruby
<a5i> Lewix: yes freaking way, if you have any questions, feel free to ask @ #crystal-lang
MrSamuel has quit [Quit: MrSamuel]
marr has quit []
Soda has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcarper has quit []
crueber has joined #ruby
senayar has quit []
sparch has joined #ruby
MrSamuel has joined #ruby
crueber has quit [Client Quit]
BTRE has quit [Quit: Leaving]
Channel6 has joined #ruby
djbkd has quit [Remote host closed the connection]
baweaver has joined #ruby
BTRE has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Megtastique has joined #ruby
mleung has quit [Quit: mleung]
MatthewsFace has quit [Remote host closed the connection]
havenwood has joined #ruby
wicope has quit [Read error: Connection reset by peer]
rubie has quit [Ping timeout: 246 seconds]
Dude007 has joined #ruby
phexydelic has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]