revath has quit [Read error: Connection reset by peer]
CynosureKuruma has quit [Read error: Connection reset by peer]
CynosureKuruma has joined #ruby-lang
fedexo has joined #ruby-lang
fedexo_ has joined #ruby-lang
gjaldon has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
kfpratt has quit [Remote host closed the connection]
kshah has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
badeball has quit [Quit: leaving]
badeball has joined #ruby-lang
gjaldon_ has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
gjaldon has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
loincloth has joined #ruby-lang
revath has joined #ruby-lang
AKASkip has joined #ruby-lang
badeball has quit [Client Quit]
badeball has joined #ruby-lang
revath has quit [Read error: Connection reset by peer]
revath has joined #ruby-lang
<kshah>
in situations where due to say live reloading a library’s constants will be attempted to be re-initialized (thereby throwing warning) is it the responsibility of the caller to wrap their require statements, or the gem maintainer to append unless const_defined?(:CONST)
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
<kshah>
generally that is...
loincloth has quit [Ping timeout: 256 seconds]
iamninja has joined #ruby-lang
CynosureKuruma has quit [Read error: Connection reset by peer]
<badeball>
kshah: imo, a library should never actually be loaded more than once. a common pattern is to load libraries, fork the process, do some thing. whenever you need to do that thing again, you create another fork. that way, no library is actually initialized more than once
<badeball>
I'm certain that a bunch of stuff don't even remotely support being loaded twice
<kshah>
I think this only really comes into place for dev environment stuff where modules get reloaded
<kshah>
s/place/play
<kshah>
in which case, I don’t really feel like the onus is on the the library developer, but the people who are “abusing” the loader so to speak
<kshah>
since live reloading, if I understand correctly, has always been more of a hack in Ruby land then a feature
<kshah>
(I could have just pulled that statement outta my butt)
<badeball>
why would you reload libraries in the first place? the purpose of e.g. raills' reloading of application specific code between requests is specifically to NOT initialize libraries again.
<badeball>
kshah: what do you mean with live reloading anyway?
<kshah>
badeball: not having to cycle a server when make changes to back end code
<badeball>
then create an initializer that loads all libraries and wait for incoming request. to answer the request, fork the process, load the rest of the application code and then answer the request from the fork.
mattyohe has quit [Quit: Connection closed for inactivity]
apeiros has quit [Read error: Connection reset by peer]
<badeball>
kshah: I remember seeing a short youtube video about exactly this. let me see if I can find it..
apeiros has joined #ruby-lang
gjaldon_ has quit [Remote host closed the connection]
<kshah>
I think we’re talking about two separate things
<kshah>
I understand the process you’re describing, one step short of having a pre-spun worker pool, etc
AKASkip has quit [Ping timeout: 255 seconds]
<badeball>
kshah: okey, how am I misunderstanding?
<kshah>
badeball: you’re not really, I have to open up the specific gem I’m referring to, middleman, to see how the reload process works under development. But considering Rails wraps constants with unless defined calls as well, if they didn’t solve it, there must be a trade off somewhere
revath has quit [Remote host closed the connection]
<kshah>
which I’m guessing is, if you fork too early, then what’s the point of having the dev environment, you’re going to have to load so much stuff every time to handle a request, or fork too late and you run the risk of the user (developer) having changed some code that was prior to the fork and doesn’t get updated for their request
<badeball>
right
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<kshah>
badeball: thanks, I’m playing that in the background, I’ve actually wanted to know how this works for a while
<kshah>
*it
<kshah>
i have to say it’s kind of an unsung hero.. I worked on a scalatra project recently… what an unholy nightmare… couldn’t even properly queue requests until the app was ready to serve again.. would just crash out
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Musashi007 has joined #ruby-lang
loincloth has joined #ruby-lang
apeiros has quit [Ping timeout: 252 seconds]
rbowlby has joined #ruby-lang
loincloth has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fedexo has quit [Ping timeout: 244 seconds]
fedexo_ has quit [Ping timeout: 264 seconds]
AKASkip has joined #ruby-lang
apeiros has joined #ruby-lang
gjaldon has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
yfeldblum has quit [Remote host closed the connection]
bears_ has quit [Quit: Leaving...]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bears_ has joined #ruby-lang
Musashi007 has joined #ruby-lang
bears_ has quit [Ping timeout: 244 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalzz has quit [Ping timeout: 265 seconds]
iamninja has quit [Quit: ZZZzzz…]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
charliesome has quit [Quit: zzz]
maso has quit [Remote host closed the connection]
kalzz has joined #ruby-lang
|jemc| has joined #ruby-lang
apeiros has quit [Ping timeout: 265 seconds]
vinc has quit [Ping timeout: 245 seconds]
jxie has joined #ruby-lang
|jemc|_ has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
[spoiler] has joined #ruby-lang
vinc has joined #ruby-lang
rahul_j has quit [Ping timeout: 264 seconds]
rahul_j has joined #ruby-lang
|jemc|_ is now known as |jemc|
gjaldon has quit [Read error: Connection reset by peer]
gjaldon has joined #ruby-lang
<ljarvis>
moin
charliesome has joined #ruby-lang
dabradley has quit [Ping timeout: 256 seconds]
gjaldon has quit [Ping timeout: 252 seconds]
<[spoiler]>
morning
Xzanron has joined #ruby-lang
rbrs has joined #ruby-lang
dabradley has joined #ruby-lang
loincloth has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 264 seconds]
solars has joined #ruby-lang
vondruch has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
tenderlove has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
tenderlove has joined #ruby-lang
rahul_j has joined #ruby-lang
mistym has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
ledestin has joined #ruby-lang
kfpratt has joined #ruby-lang
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
kfpratt has quit [Ping timeout: 244 seconds]
rahul_j has quit [Ping timeout: 256 seconds]
kshah has quit [Quit: kshah]
rahul_j has joined #ruby-lang
arBmind has joined #ruby-lang
rahul_j has quit [Client Quit]
JohnBat26 has joined #ruby-lang
tmi1 has joined #ruby-lang
elia has joined #ruby-lang
|jemc| has quit [Ping timeout: 264 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 244 seconds]
hanachin has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
futilegames has joined #ruby-lang
Nixsos has joined #ruby-lang
nofxx has joined #ruby-lang
tobiasvl has quit [Quit: reboot]
yusuf has quit [Quit: Leaving.]
qba73 has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
banister has joined #ruby-lang
loincloth has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
oak1 has joined #ruby-lang
tvl has joined #ruby-lang
tvl is now known as tobiasvl
loincloth has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby-lang
mikecmpbll has joined #ruby-lang
futilegames has quit [Ping timeout: 264 seconds]
marr has joined #ruby-lang
gwendall has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
JohnBat26 has quit [Ping timeout: 252 seconds]
<yorickpeterse>
morning
<tobiasvl>
top o' the mornin' to you
bradmin has joined #ruby-lang
hendranata_ has quit [Ping timeout: 265 seconds]
<tbuehlmann>
moin
Torrieri has quit [Quit: Be back later ...]
vinc has quit []
havenwood has quit [Remote host closed the connection]
zucaritas has joined #ruby-lang
rikkipitt has joined #ruby-lang
c0m0 has joined #ruby-lang
iamninja has joined #ruby-lang
ldnunes has joined #ruby-lang
jxie has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
chouhoulis has quit [Read error: Connection reset by peer]
<yorickpeterse>
oh, that one is old
<yorickpeterse>
happened with some other movies before
chouhoulis has joined #ruby-lang
<[spoiler]>
Really?
<[spoiler]>
LOL but why
ruby-lang401 has joined #ruby-lang
<yorickpeterse>
because Youtube
<[spoiler]>
I find it so bizarre, it's the most messy way of communicating, isn't it? I don't even think the youtube comments are chronologically ordered, or are they?
<yorickpeterse>
Either the comments are a shitstorm, or it's this
benlovell has joined #ruby-lang
Torrieri has quit [Ping timeout: 256 seconds]
dfranciosi has joined #ruby-lang
<[spoiler]>
LOL
<[spoiler]>
Staci: Jordan are you still having your Christmas party tonight?
<[spoiler]>
└ abdi19832: Come party with me I'll show you my Christmas tree.
<[spoiler]>
I have no idea why this amused me so much
ruby-lang401 has quit [Ping timeout: 246 seconds]
oleo has joined #ruby-lang
AKASkip has quit [Ping timeout: 244 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
rbrs has quit [Quit: rbrs]
pawel_ has joined #ruby-lang
pawel_ has quit [Client Quit]
gwendall has joined #ruby-lang
<yorickpeterse>
lol ActiveRecord
<yorickpeterse>
by default assumes that every "type" column can be used for STI
<yorickpeterse>
because heavens forbid storing a record type in there, and not a class
<ljarvis>
heh
* yorickpeterse
goes to disable STI
<ljarvis>
i end up using table_type column
sankaber has joined #ruby-lang
kiyote23 has joined #ruby-lang
<yorickpeterse>
fuck having to migrate my table again, I'll just tell rails to use "table_type" as well
<yorickpeterse>
we don't use STI anyway
<ljarvis>
fuck sti
<ljarvis>
it's a misfeature
<yorickpeterse>
yup
tkuchiki has joined #ruby-lang
<whitequark>
should've called them STDs
<ljarvis>
heuheuheu
kiyote23 has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
<[spoiler]>
Lmao
kiyote23 has joined #ruby-lang
<yorickpeterse>
Single Table Derp
ledestin has quit [Quit: ledestin]
rahul_j has quit [Client Quit]
kapil__ has quit [Quit: Connection closed for inactivity]
skade has quit [Remote host closed the connection]
<[spoiler]>
I never needed STI, but idk I suppose it can be useful
Prex has quit [Ping timeout: 265 seconds]
skade has joined #ruby-lang
Mau has joined #ruby-lang
Lewix has joined #ruby-lang
skade has quit [Remote host closed the connection]
lapide_viridi has joined #ruby-lang
slawrence00 has joined #ruby-lang
miqui_ has quit [Ping timeout: 252 seconds]
sudoubuntu has joined #ruby-lang
[spoiler] is now known as [_spoiler_]
[_spoiler_] is now known as [spoiler]
kiyote23 has quit [Remote host closed the connection]
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
skade has joined #ruby-lang
malconis has joined #ruby-lang
Torrieri has quit [Ping timeout: 244 seconds]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sudoubuntu has joined #ruby-lang
chills42 has joined #ruby-lang
jgpawletko has joined #ruby-lang
gjaldon has joined #ruby-lang
Mau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
BubonicPestile-1 has joined #ruby-lang
Missphoenix has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
tmi1 has quit [Quit: Leaving.]
BubonicPestilenc has quit [Ping timeout: 256 seconds]
Miphix has quit [Ping timeout: 264 seconds]
tmi1 has joined #ruby-lang
tmi1 has quit [Client Quit]
chills42 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
jo__ has joined #ruby-lang
yatish27 has quit [Ping timeout: 244 seconds]
leonshalimov has joined #ruby-lang
enebo has joined #ruby-lang
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
Xzanron has quit [Quit: Leaving]
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
whippythellama has joined #ruby-lang
ledestin has joined #ruby-lang
ruby-lang693 has joined #ruby-lang
klmlfl has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
koderok has joined #ruby-lang
|jemc| has joined #ruby-lang
loincloth has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
ledestin has quit [Quit: ledestin]
JohnBat26 has joined #ruby-lang
Torrieri has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
wm3|away is now known as workmad3
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
rahul_j has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
rahul_j has quit [Client Quit]
rahul_j has joined #ruby-lang
mattyohe has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
GBrawl_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
GBrawl has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
dfranciosi has quit []
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Torrieri has quit [Quit: Be back later ...]
yatish27 has joined #ruby-lang
nertzy has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
mattwildig has joined #ruby-lang
chills42 has joined #ruby-lang
yatish27 has quit [Ping timeout: 252 seconds]
|jemc| has quit [Ping timeout: 244 seconds]
sush24 has joined #ruby-lang
skade has joined #ruby-lang
diegoviola has quit [Ping timeout: 255 seconds]
fsvehla has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby-lang
GBrawl_ has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
nertzy has quit [Quit: This computer has gone to sleep]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
kshah has joined #ruby-lang
shinnya_ has joined #ruby-lang
[H]unt3r has joined #ruby-lang
nertzy has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
kiyote23 has joined #ruby-lang
setanta_ has joined #ruby-lang
mattwildig has quit []
elia has quit [Quit: Computer has gone to sleep.]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsou has joined #ruby-lang
Luwe has joined #ruby-lang
Luwe has quit [Client Quit]
Lewix_ has joined #ruby-lang
__butch__ has joined #ruby-lang
iamninja has quit [Ping timeout: 250 seconds]
Lewix has quit [Ping timeout: 245 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
dangerousdave has joined #ruby-lang
ledestin has joined #ruby-lang
oak1 has quit [Ping timeout: 265 seconds]
gjaldon has joined #ruby-lang
iamninja has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
kfpratt has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
t0rrieri has joined #ruby-lang
Torrieri has quit [Read error: No route to host]
brooks has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
kiyote23 has quit [Ping timeout: 256 seconds]
shubhamgoyal has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros__ has joined #ruby-lang
bradmin has joined #ruby-lang
apeiros has quit [Ping timeout: 255 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
bradmin has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
skade has joined #ruby-lang
skade has quit [Client Quit]
nertzy has joined #ruby-lang
havenwood has joined #ruby-lang
charliesome has joined #ruby-lang
chills42 has joined #ruby-lang
mistym has joined #ruby-lang
brocktimus has quit [Ping timeout: 272 seconds]
amsi has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
chills42 has quit [Remote host closed the connection]
apeiros__ has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
Nixsos has quit [Quit: I'm out!]
michaeldeol has joined #ruby-lang
ldnunes has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby-lang
nofxx has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
Asher has quit [Client Quit]
Asher has joined #ruby-lang
qba73 has quit []
dangerousdave has joined #ruby-lang
brooks has quit [Quit: brooks]
palar has joined #ruby-lang
oleo is now known as Guest76643
oleo__ has joined #ruby-lang
brooks has joined #ruby-lang
Guest76643 has quit [Ping timeout: 264 seconds]
benlovell has quit [Ping timeout: 244 seconds]
brooks has quit [Client Quit]
raptop has joined #ruby-lang
brooks has joined #ruby-lang
elabs-developer has quit [Quit: elabs-developer]
Mau has joined #ruby-lang
brooks has quit [Read error: Connection reset by peer]
brooks has joined #ruby-lang
Mau has quit [Client Quit]
meschi has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
charliesome has quit [Quit: zzz]
RobertBirnie has joined #ruby-lang
raptop has quit [Ping timeout: 265 seconds]
zucaritas has quit [Quit: Leaving.]
slthlrd has joined #ruby-lang
ddd has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0rrieri has quit [Ping timeout: 244 seconds]
t0rrieri has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
c0m0 has quit [Ping timeout: 252 seconds]
shubhamgoyal has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
AKASkip has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 245 seconds]
seank__ has joined #ruby-lang
seank_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
brooks has quit [Quit: brooks]
matp has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
matp has joined #ruby-lang
dik_dak has joined #ruby-lang
leonshalimov has quit [Ping timeout: 265 seconds]
shubhamgoyal has joined #ruby-lang
wallerdev has joined #ruby-lang
gwendall has joined #ruby-lang
dik_dak has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby-lang
slthlrd has quit [Quit: leaving]
dik_dak has joined #ruby-lang
dik_dak has quit [Client Quit]
symm- has joined #ruby-lang
dik_dak has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
fusillicode has joined #ruby-lang
djbkd has joined #ruby-lang
dik_dak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
dangerousdave has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
dik_dak has joined #ruby-lang
sarkyniin has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnz0r has joined #ruby-lang
Lewix_ has quit [Remote host closed the connection]
gix has quit [Ping timeout: 256 seconds]
gwendall has joined #ruby-lang
gix has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
djbkd has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
Lewix has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
sross07 has joined #ruby-lang
shubhamg_ has joined #ruby-lang
leandrosnunes has joined #ruby-lang
drbrain has quit [Ping timeout: 255 seconds]
seank_ has joined #ruby-lang
leonshalimov has joined #ruby-lang
seank__ has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
yatish27 has joined #ruby-lang
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
gwendall has quit [Remote host closed the connection]
kfpratt has quit []
leonshalimov has quit [Ping timeout: 245 seconds]
cored has quit [Read error: Connection reset by peer]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Fretta has joined #ruby-lang
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chills42 has joined #ruby-lang
nofxx has quit [Ping timeout: 252 seconds]
gwendall has joined #ruby-lang
leonshalimov has joined #ruby-lang
spuk has quit [Ping timeout: 256 seconds]
gjaldon has joined #ruby-lang
spuk has joined #ruby-lang
stamina has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
pwnz0r has joined #ruby-lang
djbkd has joined #ruby-lang
yfeldblum has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
pwnz0r has quit [Ping timeout: 264 seconds]
drbrain has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
drbrain has joined #ruby-lang
klmlfl has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
dik_dak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 244 seconds]
palar has quit []
wallerdev has joined #ruby-lang
gwendall_ has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
gwendall has quit [Ping timeout: 265 seconds]
oleo has joined #ruby-lang
leandrosnunes has quit [Quit: WeeChat 0.4.3]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl_ has joined #ruby-lang
klmlfl has quit [Ping timeout: 265 seconds]
donove has joined #ruby-lang
michaeldeol has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
krankin has quit [Quit: Connection closed for inactivity]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
ddd has quit [Quit: leaving]
skade has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
djbkd has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
stamina has joined #ruby-lang
nertzy has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apt-get_ has joined #ruby-lang
benlovell has joined #ruby-lang
hal_9000_ has quit [Quit: hal_9000_]
scottschecter has joined #ruby-lang
hal_9000_ has joined #ruby-lang
sarkyniin has quit [Ping timeout: 244 seconds]
malconis has joined #ruby-lang
elia has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
donove has quit [Quit: Leaving]
_fritchie has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
shazaum has quit [Quit: This computer has gone to sleep]
pwnz0r has joined #ruby-lang
leonshalimov has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby-lang
gwendall has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
dik_dak has joined #ruby-lang
dagda1 has joined #ruby-lang
gwendall has quit [Ping timeout: 265 seconds]
_fritchie has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby-lang
sideshowcoder has quit [Read error: No route to host]
dagda1 has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
leonshalimov has joined #ruby-lang
yatish27 has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
<levifig>
anyone using rbenv? what's the recommend shebang to use rbenv's assigned ruby version?
<pipework>
The usual. /usr/bin/env ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_fritchie has joined #ruby-lang
<levifig>
ah
<levifig>
that makes sense
<levifig>
pipework, thanks :)
<levifig>
anyone done some log parsing on nginx access logs in Ruby?
ruby-lang693 has quit [Quit: Page closed]
bb010g has joined #ruby-lang
tmi1 has joined #ruby-lang
<whippythellama>
levifig: if you use any other *envs besides just rbenv, or use other languages and want the same kind of setup, i'd recommend anyenv (https://github.com/riywo/anyenv), fwiw
<whippythellama>
it's a thin management layer on top of all the various "fooenv"s out there
<bradland>
levifig: yeah, i just looooooove log diving (half-serious)
<bradland>
i've not worked much with nginx logs, but logs are logs, if you know what i mean
<bradland>
what are you trying to do?
<levifig>
whippythellama, nice… I just use rbenv :)
<levifig>
bradland, need to parse 11GB of access.log into SQL
<bradland>
barf
<bradland>
mkay :)
<levifig>
haha
<bradland>
i'm standing up again, what's the question :)
<levifig>
trying to figure out the best way to go at, both from a performance standpoint and output (actually, ideally, I'd write directly to Amazon RDS)
<bradland>
well, you're going to want to process the file as a stream, rather than reading it in all at once
<bradland>
use regex sparingly, and look for options to avoid it altogether
michaeldeol has joined #ruby-lang
<levifig>
ya
<levifig>
I don't need to stream it
<levifig>
it's fixed data
<bradland>
yeah, sorry, i shouldn't say stream
<bradland>
just be sure to use the block form of File.open, rather than IO.read
<levifig>
another guy is writing some small rails app to analyze the data for whatever endpoints they need, but my job is to actually get it in a form he can process
<bradland>
have you looked at request-log-analyzer at all?
<levifig>
I'm having issues bringing up the config (on OS X; installed with homebrew)
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<levifig>
and even specifying the config on a file and calling it with -p, it still fails half-way through with no debug output, stack trace, anything… :X
jgpawletko has quit [Quit: jgpawletko]
tcopeland has quit [Quit: Leaving.]
elia has joined #ruby-lang
setanta_ has quit [Quit: Leaving]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
<bradland>
levifig: are you feeding it the whole 11GB file?
<bradland>
wonder if it's worth a shot with an excerpt `head -n10000 logfile.log`
<levifig>
nah
<levifig>
got a sample to test
<levifig>
about 45Mb
<bradland>
heh, that's not good then :)
<levifig>
lol
<levifig>
just reinstalled it from HEAD (brew install goaccess --HEAD)
gwendall has joined #ruby-lang
<levifig>
and it works
<levifig>
same command
<bradland>
bug fixes baby!
<levifig>
haha
dagda1 has joined #ruby-lang
<levifig>
this doesn't seem to be what I need ATM though… love the concept but I need something to just parse my logs into a log JSON or even ruby hash
<weaksauce>
I think you can output in json
<bradland>
levifig: what are you going to put in to the DB?
<bradland>
more specifically, are you putting the JSON/serialized hash in to the DB? or are you putting field values from the log entry in to the DB?
<bradland>
11 GB isn't a huge amount of data, but i'd try to skip any intermediate serialization if you're going to be handling field values
<bradland>
i'd keep the pipeline short
<bradland>
also, do yourself a favor and memoize the filename and line number of all parsed line entries in the db entry with the data
<bradland>
that way if your import fails, you're not stuck starting from the beginning
<weaksauce>
levifig btw you can change the output format of your log files.