tanema has quit [Remote host closed the connection]
Tippler has joined #ruby
Tippler has quit [Max SendQ exceeded]
Tippler has joined #ruby
Tippler has quit [Max SendQ exceeded]
mklappstuhl has quit [Read error: Connection reset by peer]
moses_m has quit [Ping timeout: 276 seconds]
mklappstuhl has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
elaptics is now known as elaptics`away
Tippler has joined #ruby
SHyx0rmZ has joined #ruby
Tippler has quit [Max SendQ exceeded]
Tippler has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
Tippler has quit [Max SendQ exceeded]
Tippler has joined #ruby
ctp_ has joined #ruby
dtcrshr has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
ner0x has joined #ruby
ephemerian has quit [Quit: Leaving.]
Fire-Dragon-DoL has quit [Quit: Leaving.]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
RichardBaker has quit [Quit: RichardBaker]
RichardBaker has joined #ruby
Guest22856 has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
amanmangal has joined #ruby
mansi has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
sml0820 has joined #ruby
tylersmith has joined #ruby
GeissT has joined #ruby
t0dd2 has left #ruby [#ruby]
pranny has joined #ruby
kilophoton has quit [Quit: Changing server]
mansi has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
pranny has quit [Client Quit]
Guest22856 has quit [Quit: Leaving]
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
rbento has quit [Quit: ZZZzzz…]
tylersmith has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
jkline has quit [Quit: jkline]
cj3kim has joined #ruby
aces1up has joined #ruby
brianpWins has joined #ruby
freeayu has joined #ruby
<aces1up>
what is the correct way to get say all .jar files recursively from a certain root directory? i currently have "root/**/*.ext"
<aces1up>
not working.
ryannielson has quit [Remote host closed the connection]
ewnd9 has joined #ruby
Megtastique has joined #ruby
Tippler has quit [Ping timeout: 245 seconds]
ferdev has quit [Quit: ferdev]
hogeo has joined #ruby
ehc has quit [Quit: ehc]
Megtastique has quit [Client Quit]
<heftig>
aces1up: works fine here
<aces1up>
hrmm ok.
Megtastique has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
poga_ has joined #ruby
geometry06 has joined #ruby
b00stfr3ak has quit [Quit: Leaving]
geometry06 has quit [Changing host]
geometry06 has joined #ruby
ctp_ has quit [Ping timeout: 260 seconds]
jjbohn has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
poga has quit [Ping timeout: 240 seconds]
__maes_ has joined #ruby
_maes_ has joined #ruby
reset has quit [Ping timeout: 264 seconds]
iliketur_ has quit [Ping timeout: 240 seconds]
whowantstolivefo has quit [Ping timeout: 245 seconds]
Guest10893 has quit []
deweichen has joined #ruby
<deweichen>
hi
gazarsgo has joined #ruby
gazarsgo has quit [Client Quit]
Voodoofish430 has left #ruby [#ruby]
marr has quit [Ping timeout: 268 seconds]
ctp_ has joined #ruby
havenwood has joined #ruby
poga_ has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
Lewix has quit [Remote host closed the connection]
poga has joined #ruby
Lewix has joined #ruby
i_s has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
jjbohn has joined #ruby
devoldmx has joined #ruby
deweichen has quit [Remote host closed the connection]
nucatus has joined #ruby
Vicmaste_ has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
iliketur_ has joined #ruby
twoism has joined #ruby
mlpinit has quit [Remote host closed the connection]
Lewix has quit [Ping timeout: 268 seconds]
pipework has joined #ruby
jjbohn has quit [Quit: Leaving...]
nucatus has quit [Ping timeout: 245 seconds]
twoism has quit [Ping timeout: 264 seconds]
ctp_ has quit [Ping timeout: 260 seconds]
pyx has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
pyx has quit [Client Quit]
maniacal has quit [Remote host closed the connection]
amanmangal has quit [Ping timeout: 250 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
renderful has quit [Remote host closed the connection]
snovak has joined #ruby
wmoxam has joined #ruby
randomautomator has joined #ruby
mlpinit has joined #ruby
Megtastique has quit [Quit: Megtastique]
Megtastique has joined #ruby
buzzybron has joined #ruby
randomau_ has quit [Ping timeout: 264 seconds]
randomautomator has quit [Ping timeout: 246 seconds]
pitzips has quit [Ping timeout: 245 seconds]
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
brianpWins has quit [Quit: brianpWins]
pothibo has quit [Quit: pothibo]
sparr has quit [Remote host closed the connection]
ssvo has joined #ruby
Lewix has joined #ruby
saarinen has joined #ruby
jonahR has quit [Quit: jonahR]
Solnse has quit [Quit: Leaving.]
centr0 has quit [Quit: centr0]
chrisramon has joined #ruby
chrisramon has quit [Client Quit]
yfeldblum has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Megtastique has quit [Quit: Megtastique]
i_s has joined #ruby
vlad_starkov has joined #ruby
kaldrenon has joined #ruby
c0rn has quit [Ping timeout: 268 seconds]
wesside_ has quit [Quit: Computer has gone to sleep.]
danman has quit [Quit: danman]
geometry06 has quit [Quit: Leaving.]
kaldrenon has quit [Ping timeout: 264 seconds]
tealmage has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
rbento has joined #ruby
renderful has joined #ruby
smathieu_ has joined #ruby
Nisstyre has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
smathieu_ has quit [Remote host closed the connection]
TheComrade has joined #ruby
smathieu_ has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
brain_shim has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
saarinen has quit [Quit: saarinen]
nadirvar_ has quit [Ping timeout: 268 seconds]
Spami has joined #ruby
justsee has quit [Ping timeout: 276 seconds]
ylluminate has joined #ruby
redmenace has quit [Quit: leaving]
justsee has joined #ruby
justsee has joined #ruby
fenicks has quit [Remote host closed the connection]
tanema has joined #ruby
thesheff17 has joined #ruby
justsee has quit [Client Quit]
<jeremyb>
Neener54: back
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<Neener54>
jeremyb yeah I set up my environment to match yours and I couldn't replicate the error… which is odd
<jeremyb>
so i guess i can try running that locally. i was running it on a box where i don't have root
<jeremyb>
locally i have 1.9.x as well as 1.8.x
<Neener54>
jeremyb that being said I'm on my work computer and it's a mac so it could have a different setup
<jeremyb>
ohh
<Neener54>
ah
<jeremyb>
well my laptop should be fairly similar to the server i was using
smathieu_ has quit [Remote host closed the connection]
<jeremyb>
but they're different OS major versions
<jeremyb>
debian wheezy vs. squeeze
<Neener54>
are you using rvm?
<Neener54>
mmm
<jeremyb>
no. OS ruby pkg
<Neener54>
Ah
<jeremyb>
laptop is wheezy
<Neener54>
Okay
<Neener54>
Hmmm
<Neener54>
I'm wondering if a dependency is missing maybe
<Neener54>
Or is at the wrong version perhaps
justsee has left #ruby [#ruby]
<jeremyb>
maybe is included in your ruby but split out into a separate package in debian's
hamakn has joined #ruby
ner0x has quit [Quit: Leaving]
tabolario has joined #ruby
<jeremyb>
i wish there were better error messages (or maybe i just don't know how to read them). and what's with all that spam on the console before the error?
hamakn has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
<jeremyb>
anyway... i'll test here i guess
hamakn has joined #ruby
mansi has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<Neener54>
try it with rvm, this will grab the libs for you and install 1.8.7: curl -L https://get.rvm.io | bash -s stable --ruby=1.8.7
<Neener54>
Well it's hanging up on reading the yaml it looks like
<Neener54>
Which may be your readline lib is different
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
lyanchih has joined #ruby
mansi_ has joined #ruby
jonahR has joined #ruby
jonahR has quit [Client Quit]
BillCriswell has joined #ruby
Soliah has quit [Quit: Soliah]
sml0820 has quit [Quit: sml0820]
<Neener54>
I'm not sure on that
<jeremyb>
my gut says readline's not relevant
<jeremyb>
especially because the first 2 were run with nohup
<Neener54>
Mmm
mansi has quit [Ping timeout: 240 seconds]
ryandeussing has joined #ruby
Nisstyre has quit [Quit: Leaving]
<Neener54>
It's been a while since I've worked in straight up linux
<Neener54>
Kind of miss it
<bnagy>
the YAML parsers changed quite a bit between 18 and 19
<Neener54>
Yeah
hamakn_ has joined #ruby
havenwood has quit [Remote host closed the connection]
JZTech101 is now known as JZ|Zzz
nucatus has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
Soliah has joined #ruby
obs has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
<Neener54>
Oh man, I never looked at the source on those but the yaml parsers in those two versions are nothing alike
alvaro_o has quit [Quit: Ex-Chat]
hamakn has joined #ruby
jkline has joined #ruby
nucatus has quit [Ping timeout: 240 seconds]
<Neener54>
jeremyb what version is your libyaml at?
scarolan has quit [Ping timeout: 264 seconds]
<Neener54>
And yeah readline has 0 to do with yaml lol I was way off
iliketur_ has joined #ruby
zorg24 has quit [Ping timeout: 276 seconds]
Lewix has quit [Remote host closed the connection]
Kricir has joined #ruby
frotto has quit [Ping timeout: 240 seconds]
iliketur_ has quit [Client Quit]
Lewix has joined #ruby
iliketur_ has joined #ruby
scarolan has joined #ruby
amacgregor_ has joined #ruby
kobain has quit [Ping timeout: 245 seconds]
bzitzow has quit [Ping timeout: 240 seconds]
Lewix has quit [Ping timeout: 276 seconds]
amacgregor has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
<fbernier>
whats the best way to memoize data which needs to be persisted across requests in rails and are very rarely updated?
<jeremyb>
fbernier: sounds like you want an interned string? (idk if ruby has such a concept)
havenwood has quit [Remote host closed the connection]
kobain has joined #ruby
kobain has quit [Excess Flood]
<Neener54>
jeremyb I'm not 100% sure this will work but sudo aptitude show libyaml
kobain has joined #ruby
kobain has quit [Excess Flood]
<Neener54>
fbernier are you serving this up on multiple instances?
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
kobain has quit [Excess Flood]
<fbernier>
yes
kobain has joined #ruby
<jeremyb>
Neener54: that would just show the same version in the paste i just linked. and no it won't work, i hasn't sudo. but that's a command you can run as any user
kobain has quit [Excess Flood]
snovak has quit [Ping timeout: 268 seconds]
<jeremyb>
well, and also the package name's wrong
<jeremyb>
ii libyaml-0-2 0.1.3-1 Fast YAML 1.1 parser and emitter library
kobain has joined #ruby
snath has joined #ruby
kobain has quit [Excess Flood]
<jeremyb>
so, 0.1.3-1
kobain has joined #ruby
<Neener54>
jeremyb sorry I thought the dpaste had opened but it never did, yeah your libyaml is a different version than mine
kobain has quit [Excess Flood]
<Neener54>
Which isnt' something you can easily resolve without root
<jeremyb>
right
kobain has joined #ruby
kobain has quit [Excess Flood]
<jeremyb>
well... had a debate this evening about whether another guy who wasn't there tonight has root on the box or not
<Neener54>
Well here's the deal, you don't really need factory_girl_rails unless you're doing development
kobain has joined #ruby
<Neener54>
Are you going to be running tests on it?
<jeremyb>
question not yet answered...
kobain has quit [Excess Flood]
<jeremyb>
no, this is for prod
<Neener54>
Okay so go to your Gemfile and comment out factor_girl_rails
kobain has joined #ruby
Lewix has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
<Neener54>
Then we're going to have to do something about that rails_themes gem
etman has quit [Quit: etman]
kobain has quit [Excess Flood]
<jeremyb>
grrrrr, teh latency
kobain has joined #ruby
smathieu has joined #ruby
randomautomator has joined #ruby
dankest has quit [Quit: dankest]
Kricir has quit [Remote host closed the connection]
robscomputer has quit [Remote host closed the connection]
lq has joined #ruby
robscomputer has joined #ruby
ilyam has quit [Quit: ilyam]
smathieu has joined #ruby
_veer has quit [Ping timeout: 246 seconds]
ntus1017 has joined #ruby
stuartrexking has joined #ruby
ezotrank has joined #ruby
wallerdev has quit [Quit: wallerdev]
butblack has quit [Quit: butblack]
smathieu has quit [Ping timeout: 276 seconds]
JohnBat26 has joined #ruby
Notte has quit [Remote host closed the connection]
wesside has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
_Andres has joined #ruby
lq has quit [Quit: client quit]
apeiros has quit [Remote host closed the connection]
dankest has quit [Quit: dankest]
saarinen has quit [Quit: saarinen]
freerobby has joined #ruby
threesome has joined #ruby
nucatus has joined #ruby
jds has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
obs has joined #ruby
zombiebit has joined #ruby
jds has joined #ruby
mbytes has quit [Ping timeout: 268 seconds]
lethjakman has joined #ruby
aganov has joined #ruby
boblu has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
persand has joined #ruby
nucatus has quit [Ping timeout: 240 seconds]
Cyrus_ has joined #ruby
<lethjakman>
hey, I'm trying to use lolcommits and it seems to be using the wrong version of ruby (I'm on 2.0 but it seems to be using the 1.8 framework?) when I commit
<lethjakman>
anyone have an idea what I could be doing wrong?
<sevenseacat>
its using your system ruby
<lethjakman>
sevenseacat: why would it be doing that?
<sevenseacat>
nfi.
<lethjakman>
huh
<lethjakman>
that's what I thought...figured my path should take care of that
<lethjakman>
wonder if it's hard coded or something
<sevenseacat>
no, its not.
lyanchih has quit [Quit: lyanchih]
brennanMKE has quit [Remote host closed the connection]
anay has joined #ruby
<lethjakman>
hrm...that's not in my path in any way.
Dysruption has quit [Quit: Dysruption]
<lethjakman>
ahhh it uses /bin/sh instead of bash
Gooder has joined #ruby
saarinen has quit [Quit: saarinen]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
ebanoid has joined #ruby
filipe has joined #ruby
huevon has joined #ruby
tvw has joined #ruby
brunoro_ has quit [Ping timeout: 240 seconds]
eka has quit [Ping timeout: 246 seconds]
jkline has quit [Quit: jkline]
tatsuya_o has joined #ruby
snovak has joined #ruby
<zendeavor>
ahm
<zendeavor>
what's lolcommits
eka has joined #ruby
ephemerian has joined #ruby
<zendeavor>
oh i see
amacgregor__ has joined #ruby
<atno>
morning
snovak has quit [Ping timeout: 240 seconds]
ryandeussing has joined #ruby
amacgregor_ has quit [Ping timeout: 256 seconds]
amacgregor has quit [Ping timeout: 264 seconds]
tatsuya_o has quit [Remote host closed the connection]
amacgregor has joined #ruby
<zets>
lolcommits takes a screenshot and pastes your commit hash and comment onto it, when you make a commit
mneorr has joined #ruby
<zets>
it's pretty excellent
amacgregor__ has quit [Ping timeout: 264 seconds]
scarolan has joined #ruby
havenwood has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 256 seconds]
ryandeussing has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
dash_ has joined #ruby
kaspergrubbe has joined #ruby
dangerousdave has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
ezotrank has quit [Ping timeout: 256 seconds]
ssvo has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
scarolan has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
nikolajsen has quit [Remote host closed the connection]
<sevenseacat>
its funny
stef_204 has joined #ruby
poga has joined #ruby
<zendeavor>
lethjakman: i don't get what your epiphany relates to; using sh or bash is not meaningful since either one will inherit PATH the same way through the env
<lethjakman>
zendeavor: my understanding is that sh uses ~/.path and bash uses ~/.bash_profile
vince_prignano has joined #ruby
stef_204 has quit [Client Quit]
<zendeavor>
~/.profile
JohnBat26 has quit [Remote host closed the connection]
<zendeavor>
and that's only relevant for login shells, which doesn't matter in this case.
freerobby has quit [Ping timeout: 276 seconds]
<lethjakman>
how is it not relevant?
anay has quit [Remote host closed the connection]
<zendeavor>
this is launching a non-interactive non-login /bin/sh
stef_204 has joined #ruby
mneorr has quit [Remote host closed the connection]
lyanchih has joined #ruby
pwh has joined #ruby
intuxicated has quit [Quit: Leaving]
<zendeavor>
that means it inherits PATH from the caller
BizarreCake has quit [Read error: Connection reset by peer]
rshetty has quit [Quit: Sleeping]
Heero has joined #ruby
<lethjakman>
hrm maybe I'm wrong, I'll have to keep messing with it.
<zendeavor>
tell me a few things
<zendeavor>
what is your user shell in /etc/passed
brennanMKE has joined #ruby
<zendeavor>
/etc/passwd
<zendeavor>
sorry
<lethjakman>
vim /etc/passed
taion809 has joined #ruby
Heero has quit [Client Quit]
<lethjakman>
whoops
<lethjakman>
I'm on OSX
<lethjakman>
there isnt' an /etc/passwd
devoldmx3 has joined #ruby
<zendeavor>
i see
<zendeavor>
i'm not sure what osx uses for this stuff
robscomputer has quit [Ping timeout: 264 seconds]
jds has quit [Remote host closed the connection]
anay has joined #ruby
maxmanders has joined #ruby
<zendeavor>
what is the value of $PATH in the shell from which you run git commit
JohnBat26 has joined #ruby
ilyam has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
<zendeavor>
lethjakman: ?
tmi has joined #ruby
bluenemo has joined #ruby
ahawkins has joined #ruby
<lethjakman>
zendeavor: sorry I'm messing with this
<lethjakman>
lemme check one sec
<zendeavor>
i'm trying to speed up the process for you
<zendeavor>
git is piddling with PATH or something
<lethjakman>
the path seemed the same though.
<zendeavor>
"or something"
marr has joined #ruby
<zendeavor>
the post-commit hook is running the system's ruby, not the one in your PATH
<lethjakman>
hrm...alright, thank you for your help
gokul has joined #ruby
snovak has joined #ruby
gokul has quit [Client Quit]
<zendeavor>
where did git come from lethjakman
<zendeavor>
homebrew, i guess?
gokul has joined #ruby
<lethjakman>
zendeavor: ports
<zendeavor>
noted
gokul has quit [Client Quit]
<zendeavor>
your two culprits, then, are git and macports
gokul has joined #ruby
<zendeavor>
either this is something git does, or macports patches it do do so
<lethjakman>
alright
<zendeavor>
to do so*
<zendeavor>
i'd start with #git
ssvo has quit [Ping timeout: 246 seconds]
<lethjakman>
zendeavor: sure think, thank you zendeavor :)
<zendeavor>
okay #ruby can i go back to the pseudo-trolling now
platzhirsch has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
<platzhirsch>
Module Metrics, base class Metric, many Metric subclasses. How would you name a method, that returns a list of symbols representing these subclasses?
<platzhirsch>
I think Metrics.metrics() is a bit low :)
<zendeavor>
and misleading, as you're not returning a measure of anything
<platzhirsch>
yep
<zendeavor>
.subclasses() sounds good to me
<zendeavor>
straight to the point.
marius has joined #ruby
<platzhirsch>
well, but it reflects more the implementation detail. I am using this method among other places to generate the view, just list the metrics which are available
gadgetoid_ has joined #ruby
vlad_starkov has joined #ruby
<zendeavor>
okay, what is a "high-level" synonym for 'subclass'
havenwood has joined #ruby
troessner has joined #ruby
<zendeavor>
.childrenses()
<zendeavor>
.subordinates()
<platzhirsch>
I thought about Metrics.identifier(): give me the list of Metric identifiers
<zendeavor>
.hierarchy()
<zendeavor>
.taxonomy()
<zendeavor>
.family() ?
<platzhirsch>
family is nice ^^
<platzhirsch>
thanks for the input ;)
Astralum has joined #ruby
<zendeavor>
i like .childrenses()
Al_ has joined #ruby
<zendeavor>
Nilium: you'll back me up on this rite
Astral_ has quit [Ping timeout: 240 seconds]
<Nilium>
what yeah sure huh
amacgregor has quit [Ping timeout: 256 seconds]
<bnagy>
what's wrong with Metrics.list?
<Nilium>
High-level synonym for subclass? Parent? Ancestor?
<Nilium>
Oh wait, subclass, not superclass.
<Nilium>
Child/descendant/kitten
<apeiros>
turtle
<apeiros>
because it's all turtles all the way down
<zendeavor>
turtles vs cattens go
kaspergrubbe has quit [Ping timeout: 240 seconds]
sarbull has joined #ruby
<apeiros>
defwin by turtle as the cat walks away bored when the turtle hides in its shell.
barratt has joined #ruby
niceguyjames has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<bnagy>
I have so seen that gof
<bnagy>
*gif
<sarbull>
Hello, i have a HomeController(with a simple index view), how do i make the route so that it should render to the application index with yield? Thanks
freerobby has joined #ruby
pranny1 has joined #ruby
<bnagy>
#rubyonrails
<apeiros>
sarbull: you wanted #rubyonrails
<zendeavor>
don't forget to ask #rubyonrails
<sarbull>
apeiros, \i guess so
tvw has quit []
julweber has quit [Remote host closed the connection]
pranny has quit [Ping timeout: 240 seconds]
gokul_ has joined #ruby
anay has quit [Remote host closed the connection]
Xeago has joined #ruby
<platzhirsch>
bnagy: list() i salso very nice, have thought about this, too
<platzhirsch>
wat, Ruby and Rails are different things?
<platzhirsch>
go into #Java and ask an Android-related Java question, they will try to put you to the torch
<sam113101>
are you serious
freerobby has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
<sevenseacat>
they shouldnt help with android-things in Java. but they should help with java things in android
<bnagy>
platzhirsch: I just try and name stuff as naturally as possible, like if I want a list of things in the Metrics module ...
tatsuya_o has joined #ruby
pranny1 has quit [Quit: Leaving.]
tatsuya__ has joined #ruby
<platzhirsch>
sevenseacat: yes, I guess it's too hard to separate, maybe it's a Java problem, but they use Android SDK libraries, guess they cannot stand it, but what matters #android-dev is well populated
jim0thy_ has joined #ruby
persand has quit [Quit: persand]
gyre007 has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 264 seconds]
DanBoy has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
razi has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
gokul_ is now known as gokulnath
smathieu has joined #ruby
jds has joined #ruby
gokulnath has quit [Quit: Leaving]
gokul has quit [Remote host closed the connection]
gokul has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
Al_ has quit [Quit: Al_]
dodosan has joined #ruby
noname001 has joined #ruby
elaptics`away is now known as elaptics
smathieu has quit [Ping timeout: 240 seconds]
jds has quit [Ping timeout: 240 seconds]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Neener54 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dodosan has quit [Ping timeout: 240 seconds]
anay has joined #ruby
wolcanus has joined #ruby
Bry8Star{T2 has quit [Quit:]
fixl has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dangerousdave has quit [Read error: Connection reset by peer]
<bnagy>
jlebrech: it's a filehandle
<bnagy>
writing advances the cursor
mneorr has joined #ruby
pallavi has quit [Ping timeout: 246 seconds]
<jlebrech>
bnagy: ah awesome thank you
<bnagy>
np
niceguyjames has quit [Quit: Computer has gone to sleep.]
foo_ has quit []
foo_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
foo_ has left #ruby [#ruby]
foo_ has joined #ruby
foo_ has left #ruby [#ruby]
tvw has quit []
arietis has joined #ruby
girija has joined #ruby
gyzmodo has joined #ruby
foo_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
ehc has joined #ruby
anay has quit [Remote host closed the connection]
niceguyjames has joined #ruby
buzzybron has quit [Quit: Leaving.]
amacgregor_ has joined #ruby
anay has joined #ruby
kevinykc_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 268 seconds]
tesuji has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
tesuji has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
dangerousdave has joined #ruby
dodosan has joined #ruby
obs has quit [Remote host closed the connection]
foo_ has left #ruby [#ruby]
hogeo_ has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
aces1up has left #ruby [#ruby]
hogeo has quit [Ping timeout: 256 seconds]
dodosan has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
nucatus has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
girija has joined #ruby
nucatus has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 264 seconds]
ezotrank has joined #ruby
amacgregor_ has quit [Ping timeout: 264 seconds]
robonerd has joined #ruby
<robonerd>
hey what's the most groovy way lately to write web services? not web sites as much as services web sites and mobile apps will communicate? in 2005 i would have used ruby on rails, in 2008 i would have used ruby directly, and now?
anay has quit [Remote host closed the connection]
<Quadlex>
robonerd: You're trying to optimize for HackerNews coverage?
<banister`sleep>
robonerd: use go or haskell or something :)
mneorr_ has joined #ruby
<robonerd>
this tough to find real answers?
browndawg has joined #ruby
<bnagy>
embed clojure in Rust
<robonerd>
i hear good things about rust
<banister`sleep>
robonerd: well i know a number of people who are using go to write their webservices
<Kelet>
Groovy is clearly the most groovy way to write web services.
<robonerd>
banister`sleep yea?
<robonerd>
how is the job market for ruby coders?
<robonerd>
still very strong or?
sjltaylor has joined #ruby
<Xeago>
robonerd: strong
<Xeago>
for anyone that is looking for a job, revibe.fm we accept remote applicants
gyzmodo has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
<banister`sleep>
Xeago: your name is twan wolthof? my gosh, you need to do something about that ;)
mneorr has quit [Ping timeout: 264 seconds]
mneorr_ has quit [Remote host closed the connection]
Xiti` has joined #ruby
mneorr has joined #ruby
BRMatt has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
snovak has joined #ruby
julweber has joined #ruby
nkts_ has joined #ruby
Pixi__ has quit [Ping timeout: 246 seconds]
cek has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
<shevy>
robonerd I would have always used ruby ;)
<robonerd>
shevy even now? instead of rust/go?
lyanchih has joined #ruby
gokul has quit [Quit: Leaving]
<shevy>
I dont use rust nor go, I dont see the big step forward in either of these two
marius has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
<bnagy>
go is pretty nice
snovak has quit [Ping timeout: 245 seconds]
JDHankle has joined #ruby
fantazo has joined #ruby
<Xeago>
banister`sleep: what is wrong with it?
mansi has joined #ruby
julweber has quit [Ping timeout: 268 seconds]
lyanchih has quit [Quit: lyanchih]
Lewix has quit [Ping timeout: 264 seconds]
JDHankle has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
camilasan has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
mikecmpbll has joined #ruby
camilasan has joined #ruby
hogeo_ has quit [Remote host closed the connection]
<zendeavor>
rust is pretty cool too
hogeo has joined #ruby
anay has joined #ruby
freerobby has joined #ruby
<sjltaylor>
(re Go) if you're doing network programming having a channels as a language primitive is a big step forward
freerobby has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
* Xeago
slaps banister`sleep with a shiny ruby. ***SMACK***
<sjltaylor>
your code starts to look like what you're doing
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
geometry06 has quit [Quit: Leaving.]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<robonerd>
sjltaylor url to page talking about this channels feature?
<apeiros>
IMO singleton -> never. use multiton instead. singleton paints you in a corner.
<sarbull>
butblack, _br_ or gays, sorry for my bad englis
moura has joined #ruby
<apeiros>
sarbull: then let me tell you that 'gays' are homosexual people. you probably meant 'guys' :-p
butblack has left #ruby [#ruby]
moura has quit [Max SendQ exceeded]
<sarbull>
apeiros, oh sorry for saying "guys", ^^
<_br_>
lol
<sarbull>
:))
<sarbull>
joking
robonerd has quit [Quit: zzz]
Fire-Dragon-DoL has quit [Ping timeout: 276 seconds]
moura has joined #ruby
moura has quit [Max SendQ exceeded]
mansi has quit [Ping timeout: 264 seconds]
moura has joined #ruby
moura has quit [Max SendQ exceeded]
moura has joined #ruby
moura has quit [Max SendQ exceeded]
niklasb has joined #ruby
xcv has quit [Remote host closed the connection]
freerobby has joined #ruby
zeromodulus has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
zeromodulus has quit [Read error: Connection reset by peer]
foo_ has joined #ruby
daxroc has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 264 seconds]
moura has joined #ruby
gsvolt has joined #ruby
Al_ has joined #ruby
persand has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jleishman has joined #ruby
banister`sleep has joined #ruby
<banister`sleep>
sarbull: are oyu sure you're not confusing Singleton pattern with singleton classes?
<banister`sleep>
sarbull: i often confused them when i started out in ruby too...singleton classes are a much more important concept
<sarbull>
banister`sleep, i think you are right, please tell me more
zoee has joined #ruby
<banister`sleep>
sarbull: after lunch, but really there's a lot of content about them online
fgo has joined #ruby
<sarbull>
banister`sleep, gimme a link, ma nigga
Evixion has joined #ruby
<banister`sleep>
dont wanna
nfk has quit [Quit: yawn]
jtgiri_ has joined #ruby
sevenseacat has joined #ruby
snovak has joined #ruby
<jtgiri_>
hey guys, I have a file which has variables like ip_address='10.0.0.1' , I included that file in different file but these variables are not available, any idea why ?
<bnagy>
singleton pattern is basically a code smell
<banister`sleep>
jtgiri_: those are local variables, locals typically don't extend across file boundaries
<bnagy>
singleton classes, aka eigenclasses, aka metaclasses are pretty crucial to understanding how ruby works
<banister`sleep>
jtgiri_: call it IP_ADDRESS or $ip_address instead, and it'll be available
rdxc has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
<jtgiri_>
okay thanks!
anay has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
staafl has quit [Read error: Connection reset by peer]
tealmage has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 276 seconds]
staafl has joined #ruby
anay has joined #ruby
foo_ has quit [Remote host closed the connection]
csiong has joined #ruby
snath has quit [Ping timeout: 268 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
csiong has quit [Client Quit]
mansi has joined #ruby
ldnunes has joined #ruby
mansi has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
persand has quit [Quit: persand]
freerobby has joined #ruby
persand has joined #ruby
<platzhirsch>
banister`sleep: wake up
ArchBeOS has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
pothibo has joined #ruby
mlpinit has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
osvico has joined #ruby
mmitchell has joined #ruby
noopq has quit [Ping timeout: 240 seconds]
taion809 has joined #ruby
IceyEC has joined #ruby
foo_ has joined #ruby
<platzhirsch>
fa
noopq has joined #ruby
kjellski has joined #ruby
vlad_starkov has joined #ruby
Criztian has quit [Remote host closed the connection]
niceguyjames has joined #ruby
mansi has joined #ruby
rshetty has quit [Quit: Sleeping]
hamakn has quit [Remote host closed the connection]
moura has quit [Quit: Computer has gone to sleep.]
fenicks has joined #ruby
fgo has joined #ruby
ryandeussing has quit [Ping timeout: 256 seconds]
jlebrech has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
kaldrenon has joined #ruby
snovak has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dangerousdave>
Can i get a review please, just finished script to send a html email with a customisable plain text component. http://pastie.org/8242036
fgo has quit [Ping timeout: 256 seconds]
Fire-Dragon-DoL has joined #ruby
popcornlover has joined #ruby
kiri has quit [Quit: Leaving]
anonymuse has joined #ruby
carlyle has joined #ruby
<dangerousdave>
have i included everything i need to create a well formed email header? This is not an area of expertise for me, and I have just been hacking, although it seems to work fine.
snovak has quit [Ping timeout: 264 seconds]
soc42 has joined #ruby
sambao21 has joined #ruby
tanema has joined #ruby
freerobby has quit [Quit: Leaving.]
Zolo has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Kabaka has quit [Ping timeout: 240 seconds]
Zolo has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Kabaka has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
julweber has joined #ruby
kiri has joined #ruby
fgo has joined #ruby
asobrasil has quit [Ping timeout: 240 seconds]
ferdev has quit [Quit: ferdev]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
coderhut has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
julweber has quit [Ping timeout: 246 seconds]
tanema has quit [Remote host closed the connection]
asobrasil has joined #ruby
jonkri has quit [Quit: jonkri]
asobrasil has quit [Max SendQ exceeded]
ferdev has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
theRoUS has quit [Ping timeout: 276 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
sjltaylor has joined #ruby
jlebrech has joined #ruby
pipework has quit [Remote host closed the connection]
devoldmx has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
wallerdev has joined #ruby
asobrasil has quit [Max SendQ exceeded]
devoldmx3 has quit [Ping timeout: 264 seconds]
scarolan has joined #ruby
julweber has joined #ruby
horofox has joined #ruby
DeanH has joined #ruby
krawchyk has joined #ruby
DeanH has quit [Max SendQ exceeded]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
zarubin has joined #ruby
zarubin has quit [Remote host closed the connection]
hogeo_ has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
_maes_ has joined #ruby
__maes_ has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
fgo has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kpshek has joined #ruby
hogeo_ has quit [Ping timeout: 256 seconds]
hogeo has quit [Ping timeout: 268 seconds]
cha1tanya has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
Ry0_ has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
asobrasil has quit [Max SendQ exceeded]
JZ|Zzz is now known as JZTech101
wolcanus has joined #ruby
asobrasil has joined #ruby
mwmnj has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mwmnj has quit [Remote host closed the connection]
foo_ has quit [Remote host closed the connection]
jp- has joined #ruby
sarbull has quit [Quit: Leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
snovak has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
khushildep has quit [Quit: khushildep]
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mml>
sooo... i have 2M rows of serialized, zipped, b64 encoded ruby objects stored in a db (don't ask). since upgrading to ruby 2.0, i'm seeng random "null byte in string" errors on 3-4 objects in the data set
<mml>
have there been any reports of such shenanigans from elsewhere?
tanema has joined #ruby
Lewix has joined #ruby
<mml>
the inflate step indicates the strings are identical to what was produced by marshal
St_Marx has quit [Remote host closed the connection]
lyanchih has joined #ruby
obs has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
wmoxam has joined #ruby
io_syl has joined #ruby
colonolGron has joined #ruby
clooth has joined #ruby
ffranz has joined #ruby
clooth has quit [Client Quit]
xargoon has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
clooth has joined #ruby
girija has quit [Ping timeout: 276 seconds]
Lewix has quit [Ping timeout: 256 seconds]
ffranz is now known as ffranz|brb
Kabaka has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Kabaka has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
coderhut has quit [Quit: Page closed]
fgo has joined #ruby
aryaching has joined #ruby
Shirakawasuna has joined #ruby
sambao21 has joined #ruby
moses_m has joined #ruby
Beoran_ has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
sjltaylor has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
Shirakawasuna has quit [Client Quit]
Bry8Star{T2 has joined #ruby
freerobby has quit [Quit: Leaving.]
tealmage has joined #ruby
Beoran__ has quit [Ping timeout: 240 seconds]
khushildep has quit [Quit: khushildep]
fgo has quit [Ping timeout: 240 seconds]
neektza1 has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
dodosan has joined #ruby
fixl has quit [Remote host closed the connection]
khushildep has joined #ruby
fgo has joined #ruby
DrCode has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
DrCode has joined #ruby
workmad3 has joined #ruby
tabolario has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
dodosan has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
endash has joined #ruby
cody-- has joined #ruby
MrZYX is now known as MrZYX|off
tealmage has joined #ruby
sambao21 has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
neektza1 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 256 seconds]
pipework has joined #ruby
frotto has quit [Ping timeout: 268 seconds]
cha1tanya has joined #ruby
nucatus has quit [Read error: Connection reset by peer]
nucatus has joined #ruby
noopq has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 245 seconds]
plotter has joined #ruby
RubNoob has joined #ruby
huoxito has joined #ruby
<RubNoob>
does anyone have a good method to rate-limit a Net::HTTP get request?
nucatus_ has joined #ruby
brbcoding has joined #ruby
nucatus has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
taion809 has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
freerobby has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
<_br_>
RubNoob: Rate limit? Can you put rack inbetween there? If yes there is rack::throttle
<RubNoob>
_br_ we don't have Rack/can't have Rack for this setup
Kricir has joined #ruby
<_br_>
RubNoob: Use haproxy between your proxy and your app server
nucatus has joined #ruby
<_br_>
RubNoob: HAProxy can throttle things as well
jerius has quit [Ping timeout: 256 seconds]
jerius_ has joined #ruby
<_br_>
RubNoob: Hm, wait. Maybe I got this wrong here. You are serving content and want the outside requests to your service be throttled or you are requesting stuff?
lyanchih has quit [Quit: lyanchih]
<RubNoob>
_br_ no, I am making a Net::HTTP GET request to download a file from a remote location
khushildep has quit [Quit: khushildep]
<_br_>
Oh, I see. Never mind haproxy etc. then.
MrZYX|off is now known as MrZYX
<RubNoob>
_br_ I want to set a bandwidth limit on the transfer to make sure I don't overload the network (i.e. mimicking --bwlimit in an rsync request)
<_br_>
hm, not sure if Net::HTTP even supports that. Maybe a different adapter can do that? Look at Faraday gem maybe
fgo has quit [Remote host closed the connection]
nucatus_ has quit [Ping timeout: 268 seconds]
freeayu has joined #ruby
khushildep has joined #ruby
interactionjaxsn has joined #ruby
<dangerousdave>
I would like to have arr.join("/n") expand inline within my ruby code, how can i do this please?
ayaz has quit [Ping timeout: 268 seconds]
noopq has joined #ruby
snath has joined #ruby
nucatus_ has joined #ruby
nucatus has quit [Ping timeout: 246 seconds]
shunt has joined #ruby
<dangerousdave>
its within a heredoc
<_br_>
dangerousdave: expand inline? Also, do you mean \n ?
polysics has joined #ruby
<dangerousdave>
_br_: yes, i do mean \n
<polysics>
hi! does anybody know how to unbind a socket, please?
<polysics>
I am using an UDP socket to listen to some RTCP traffic, but it looks like it does not get released properlu
BillCriswell has joined #ruby
frotto has joined #ruby
<dangerousdave>
_br_: by inline, i mean the contents gets expanded within the context of the code
<polysics>
@socket.shutdown seems to not unbind it, at least
pen has quit [Remote host closed the connection]
<dangerousdave>
_br_: into a heredoc
<_br_>
RubNoob: Maybe this could help. But its not really doing what you want its just suspending a thread and resuming it. This could cause a GET request to possbily break off. http://rubydoc.info/gems/rate_throttle/frames
jonathanwallace has joined #ruby
<RubNoob>
_br_ yea, not really helpful but thank you
<_br_>
polysics: what lib are you using?
lucazi has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<polysics>
Just UDPSocket from the standard Ruby
anonymuse has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
Coffers has joined #ruby
lucazi has quit [Ping timeout: 268 seconds]
ryandeussing has joined #ruby
asobrasil has joined #ruby
<withnale>
if I want to install a gem from a git repo into my system gem location how do I do it? I thought bundle install would but it only installs the dependencies.
banister`sleep has quit [Read error: Connection reset by peer]
<polysics>
_br_: does that method exist? :)
rhys has joined #ruby
Guest9360 has quit [Read error: Operation timed out]
<dangerousdave>
_br_: I have a string: "hello world #{arr} " and i would like to expand the array within the string while ensuring that each array element is on a new line.
_serial_ has joined #ruby
thepumpkin has joined #ruby
mohits has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 276 seconds]
<wuest>
dangerousdave: the string is a literal "hello world \#{arr} "? Just for clarity. If it's not, then Array#join will help.
pen has joined #ruby
<_br_>
polysics: Hm, true sorry. I thought that method would be there due to BasicSocket. Maybe this works? s.shutdown(Socket::SHUT_RDWR)
carlyle has quit [Remote host closed the connection]
<KneferilisHome>
who is going to use a library called traitor?
<ericwood>
me
xcv has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
sml0820 has joined #ruby
camilasan has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
solussd has joined #ruby
nkts_ has quit [Ping timeout: 268 seconds]
solussd has left #ruby [#ruby]
jerius_ has quit [Read error: Connection reset by peer]
ehaliewicz has quit [Ping timeout: 246 seconds]
Coffers_ has joined #ruby
<polysics>
_br_: it looks like it might be a OS thing
jerius has joined #ruby
k610 has joined #ruby
apeiros has joined #ruby
burlyscudd has joined #ruby
Tippler has joined #ruby
Tippler has quit [Max SendQ exceeded]
burlyscudd has quit [Client Quit]
acrussell has joined #ruby
cha1tanya has quit [Quit: cha1tanya]
<_br_>
polysics: what os are you using?
acrussell has left #ruby [#ruby]
mwmnj has quit [Ping timeout: 276 seconds]
Tippler has joined #ruby
Xeago has quit [Remote host closed the connection]
Tippler has quit [Max SendQ exceeded]
Coffers has quit [Read error: Connection reset by peer]
<polysics>
OSX
Coffers has joined #ruby
snath has quit [Ping timeout: 240 seconds]
Tippler has joined #ruby
marius has joined #ruby
baordog has joined #ruby
<_br_>
hm, polysics, try to use strace or dtrace on a VERY simple program to see if the actual syscalls are made to close the socket. Maybe its a corelib issue on OSX.
Kricir has quit [Remote host closed the connection]
jonathanwallace1 has joined #ruby
pentameter has quit [Ping timeout: 256 seconds]
<_br_>
KneferilisHome: Seems mixins and traits are very similar. Mixins keep state though and are very explicit which is not really the ruby duck typing way. Pretty interesting though.
devoldmx has quit [Ping timeout: 264 seconds]
<polysics>
this sounds like a bitch to debug. Happy times ahead. :)
camilasa_ has joined #ruby
Coffers_ has quit [Ping timeout: 240 seconds]
mneorr_ has joined #ruby
i_s has joined #ruby
<KneferilisHome>
_br_: I see, thank you.
burlyscudd has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
<_br_>
polysics: e.g. strace -o /tmp/blubb.log ruby myprog.rb ; check /tmp/blubb.log starting from the bottom to see if the actual syscall is made.
BrianJ has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
pen has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 268 seconds]
companion is now known as Companion
tealmage has joined #ruby
jarray52 has joined #ruby
marius has quit [Ping timeout: 260 seconds]
dawkirst has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
browndawg1 has joined #ruby
browndawg has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
nucatus_ has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
nucatus has joined #ruby
snath has joined #ruby
devoldmx has joined #ruby
mary5030 has quit [Remote host closed the connection]
Neener54 has joined #ruby
mary5030 has joined #ruby
ItSANgo has joined #ruby
ntus1017 has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
zoee has quit [Quit: zoee]
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
io_syl has quit [Quit: io_syl]
anay has joined #ruby
evenix has joined #ruby
ffio has joined #ruby
alem0lars has joined #ruby
lucazi_ has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
mikemar10 has joined #ruby
mwmnj has joined #ruby
anay has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
lucazi has quit [Ping timeout: 268 seconds]
ItSANgo has quit [Ping timeout: 256 seconds]
zets has quit []
ntus1017 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
anonymuse has quit [Read error: Connection reset by peer]
anonymuse has joined #ruby
apeiros has joined #ruby
sambao21 has joined #ruby
pwh has joined #ruby
<zendeavor>
you can just strace -e trace=...
splittingred has joined #ruby
Zolo has joined #ruby
geggam has joined #ruby
<shevy>
hmmm
<shevy>
is syck available as a standalone gem?
kaspergrubbe has joined #ruby
<aedorn>
This is awesome. I don't get why I can't replicate this problem in a smaller script, but I'm having a big problem with a begin/rescue block where it gets an error, and just continues on without ever going to the rescue portion.
bamdad has quit [Quit: bamdad]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<shevy>
hehe
Zolo has quit [Remote host closed the connection]
linux_noob_666 has joined #ruby
<MrZYX>
tried throwing a debugger into the rescue block?
linux_noob_666 has quit [Max SendQ exceeded]
linux_noob_666 has joined #ruby
<MrZYX>
multiple rescue's in the block?
tesuji has quit [Read error: Connection reset by peer]
<_br_>
aedorn: Is the error of type fatal or systemexit ?
jjbohn has joined #ruby
xcv has joined #ruby
<MrZYX>
exception swallowed somewhere inside the part between begin and rescue?
<_br_>
aedorn: if its of those types the rescue block might not help anymore
<MrZYX>
tried raising the same exception directly in the begin block?
polysics has left #ruby [#ruby]
Kricir has quit [Remote host closed the connection]
<aedorn>
Just one rescue, but I know it's getting an error because it's using net/telnet, trying to telnet to a device that doesn't exist and eventually gets "timed out while waiting for more data". Further, even if it does get past that, there's a nil value that's trying to call .length, so it should raise there also.
amacgregor_ has joined #ruby
amacgregor has joined #ruby
pitzips has joined #ruby
<_br_>
aedorn: are you just doing "rescue" or something like rescue Exception => e ?
nucatus has quit [Remote host closed the connection]
<aedorn>
Better yet, this method should return true or false to the caller, but in the caller we never receive a value back. It just continues on like nothing happened.
sambao21 has quit [Quit: Computer has gone to sleep.]
browndawg1 has quit [Quit: Leaving.]
moses_m has joined #ruby
<aedorn>
_br_: It's just begin/rescue/end. So it should only be trying to get standard errors
allanm has quit [Read error: Connection reset by peer]
persand has quit [Quit: persand]
allanm has joined #ruby
ffranz|brb is now known as ffranz
<_br_>
odd
ffranz has quit [Quit: Leaving]
<aedorn>
It works the majority of the time, and every once in awhile it fails to do what it should do. I just can't seem to track it down.
allanm has quit [Read error: Connection reset by peer]
<MrZYX>
what happens if you list the exceptions you expect?
allanm has joined #ruby
ffranz has joined #ruby
wolcanus has quit [Remote host closed the connection]
Kricir has joined #ruby
<_br_>
aedorn: try to attach pry when that happens to see what is going on maybe
sayan has joined #ruby
wolcanus has joined #ruby
thepumpkin has quit [Remote host closed the connection]
rickruby_ has joined #ruby
kjellski has quit [Quit: Leaving]
<banisterfiend>
aedorn: wrap the code with a Pry.rescue { } block
<banisterfiend>
that'll catch any escaped exceptions and drop you in the context
<banisterfiend>
but you'll need to install pry-rescue gem
k610 is now known as anick
ananthakumaran has joined #ruby
rickruby has quit [Ping timeout: 268 seconds]
<aedorn>
The way these work I wouldn't be able to do that. I need to figure out how to replicate the same issue off a production system on a local test system. I just can't run the same amount of tests the guys in production can so I still haven't seen it in development.
<_br_>
uhuh a heisenbug
anonymus_ has joined #ruby
brennanMKE has joined #ruby
<aedorn>
indeed
Xiti` has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 276 seconds]
anonymuse has quit [Read error: Connection reset by peer]
<banisterfiend>
aedorn: you don't have a backtrace to look at?
wolcanus has quit [Ping timeout: 264 seconds]
<aedorn>
banisterfiend: Nope.
<aedorn>
All errors get logged, all things require returning true, if not they are forced to run again, and everything is logged. We don't get an exception where we should, we don't see a return value, and the retest never occurs.
soc42 has quit [Remote host closed the connection]
rickruby has joined #ruby
niklasb has joined #ruby
filipe has quit [Remote host closed the connection]
cha1tanya has joined #ruby
ryandeussing has joined #ruby
ssvo has joined #ruby
dodosan has quit [Ping timeout: 245 seconds]
Cyrus_ has quit [Quit: Cyrus.close()]
St_Marx has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
Davey has joined #ruby
vince_prignano has quit [Max SendQ exceeded]
brain_shim has joined #ruby
t0rc has quit [Quit: WeeChat 0.4.1]
io_syl has joined #ruby
ColKurtz has joined #ruby
ryandeussing has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
carlyle has joined #ruby
robbyoconnor has quit [Excess Flood]
darrik has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
Matriks has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
dankest has quit [Quit: dankest]
arietis has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
Matriks has joined #ruby
Matriks has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
shaunbaker has quit [Ping timeout: 276 seconds]
zastern_ has joined #ruby
zastern_ has quit [Remote host closed the connection]
bamdad has joined #ruby
saarinen has joined #ruby
brunoro_ has joined #ruby
zeade has joined #ruby
RichardBaker has joined #ruby
ukd1 has joined #ruby
Nisstyre-laptop has joined #ruby
zastern has quit [Ping timeout: 264 seconds]
mneorr_ has quit [Remote host closed the connection]
daxroc has quit [Ping timeout: 246 seconds]
jjbohn is now known as jjbohn|afk
Xeago has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
pel_daniel has joined #ruby
ewnd9 has joined #ruby
Splourian has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bamdad has quit [Client Quit]
efrainolivares has joined #ruby
zastern has joined #ruby
zastern has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Megtastique has quit [Quit: Megtastique]
marcdel has joined #ruby
St_Marx has quit [Remote host closed the connection]
brunoro_ has quit [Ping timeout: 264 seconds]
gadgetoid_ has joined #ruby
ukd1 has quit [Remote host closed the connection]
tgunr has joined #ruby
St_Marx has joined #ruby
chinno998 has quit [Quit: Leaving.]
ukd1 has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
tanema has joined #ruby
zastern has joined #ruby
moses_m has quit [Ping timeout: 246 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
* Donovan
is trying to wrap his head around BDD and failing
axl_ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troessner has quit [Quit: Leaving]
<Donovan>
starting a new project (mostly for learning purposes) but I'm struggling with writing tests for code I don't know how I want to look yet
havenwood has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<spike|spiegel>
no worries, BDD is most hype.
<spike|spiegel>
mostly*
<Donovan>
I know it's because this is new to me, but it's becoming daunting. Normally I would tease out the code in development, then write a test for it.
jjbohn|afk is now known as jjbohn
<Donovan>
putting the test first seems, 'wrong' to me
mansi has quit [Remote host closed the connection]
anirudh24seven has joined #ruby
<spike|spiegel>
it is :) at many levels
<Donovan>
at least, for the way I'm using to thinking
<Donovan>
good, at least I'm not alone then. =)
mansi has joined #ruby
emptyflask has joined #ruby
<spike|spiegel>
don't ride the hype train, do what works best for you
brunoro_ has joined #ruby
<Donovan>
well, the problem with the normal way is that I sometimes don't get the tests written
<Donovan>
that's the habit I'm trying to cure
mary5030 has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
<spike|spiegel>
and the tests you write first won't be far from being any better
anirudh24seven has left #ruby [#ruby]
noname001 has quit [Ping timeout: 264 seconds]
<Donovan>
I suppose that's also true
<Donovan>
I find I spend more type refactoring the test to match the code than on the code itself, sometimes.
<spike|spiegel>
I write automated tests to cover the tricky bits of implementation / the boundaries,edges
workmad3 has joined #ruby
kiri has quit [Quit: Leaving]
gadgetoid_ has quit [Ping timeout: 256 seconds]
<spike|spiegel>
or when manual testing would be tedious, never ever aim for 100% coverage, that makes no sense
<Donovan>
good point
<Donovan>
refactoring code is nice with a working test suite, though
Megtastique has joined #ruby
<theRoUS>
ruby 1.8.7, rubygems 2.0.7, RHEL6. i'm getting this from 'bundle install --standalone': Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/rake-0.9.2.2.gem)
interactionjaxsn has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 240 seconds]
araujo has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
TheComrade has joined #ruby
m8 has quit [Ping timeout: 268 seconds]
goleldar has joined #ruby
<goleldar>
how can I make a ruby gem to connect through a proxy server?
Celelibi has quit [Ping timeout: 264 seconds]
i_s has joined #ruby
_Andres has quit [Ping timeout: 240 seconds]
girija has quit [Quit: Ex-Chat]
<_br_>
Is gem search <name> --both the only way you can search externally for gems? Just curious..
tylersmith has joined #ruby
i_s has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 240 seconds]
tatsuya__ has quit [Remote host closed the connection]
brain_shim has joined #ruby
Neener54 has quit [Quit: Adios muchachos!!!]
_Andres has joined #ruby
brain_shim has quit [Max SendQ exceeded]
lucazi has joined #ruby
Celelibi has joined #ruby
brain_shim has joined #ruby
i_s has joined #ruby
lucazi_ has quit [Ping timeout: 240 seconds]
anay has quit [Remote host closed the connection]
atyz has joined #ruby
brain_shim has quit [Max SendQ exceeded]
brain_shim has joined #ruby
twoism has joined #ruby
Megtastique has quit [Quit: Megtastique]
AlHafoudh has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Dysruption has joined #ruby
<Donovan>
_br_: entertained for sure. =)
Voodoofish430 has joined #ruby
dangerousdave has quit [Quit: Leaving...]
Megtastique has joined #ruby
baroquebobcat has joined #ruby
andrew565 has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
zastern has joined #ruby
freerobby has joined #ruby
<goleldar>
is there a way to start a ruby instance and have that instance connect through a proxy?
zastern has quit [Remote host closed the connection]
Spami has joined #ruby
<_br_>
goleldar: connect through a proxy?
RichardBaker has quit [Quit: RichardBaker]
<_br_>
goleldar: You mean like having several worker instances running remotely and then just sending them work to do or something?
<goleldar>
I am trying to avoid API limits. The API restrictions are per IP so I thought I could start up a few threads using different proxies to avoid the limits
Matriks has joined #ruby
scarolan has joined #ruby
<goleldar>
I am trying to pull down all the API data to a local DB
zeromodulus has quit [Read error: Connection reset by peer]
<_br_>
certainly its possible to write something like that, but seems you are trying to flood and dump some remote service which is rather uncool.
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
zeromodulus has joined #ruby
tazz has joined #ruby
tazz has left #ruby [#ruby]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 240 seconds]
<goleldar>
It is a movie database .. they do not provide a way to download it.. They said themselves that the only way to get a local copy is to use the API
systing has joined #ruby
SHyx0rmZ has joined #ruby
<_br_>
well api limits are normally there for a reason because these guys are apparently providing a free service and trying to avoid paying excessive bills by some people going nuts with scripting.
baroquebobcat has quit [Quit: baroquebobcat]
nucatus has joined #ruby
<waxjar>
maybe cache your responses instead of trying to get around the limit
<goleldar>
Well that is what I am doing.. I am saving it to my local DB and then I will only have to check for updates
c0rn has joined #ruby
<_br_>
can't you just scrape a bit slower? Is it necessary to hammer the service?
artm has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
m8 has joined #ruby
Heskie has quit []
<goleldar>
I am not hammering it.. I am now within the limits.. I am just trying to cut the time in half or a third.. as it stands now it will take 15 days to grab just a portion of what I need
jonathanwallace has joined #ruby
<onewheelskyward>
You could ask them for the bulk of data you need.
ilyam has joined #ruby
efrainolivares has joined #ruby
cads has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
motto has joined #ruby
alem0lars has quit [Ping timeout: 245 seconds]
ebanoid has joined #ruby
reset has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
m8 has quit [Ping timeout: 240 seconds]
stuartrexking has joined #ruby
sml0820 has joined #ruby
jjbohn is now known as jjbohn|afk
Evixion has joined #ruby
RichardBaker has joined #ruby
frotto has quit [Ping timeout: 264 seconds]
nadirvardar has joined #ruby
mansi has joined #ruby
jaynewstrom has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit:]
zastern has joined #ruby
artm has quit [Quit: Ex-Chat]
bricker`LA has quit [Ping timeout: 276 seconds]
Zeeraw has joined #ruby
strgbrew has joined #ruby
amacgregor_ has joined #ruby
amacgregor has joined #ruby
systing has quit [Quit: leaving]
kaspergrubbe has quit [Remote host closed the connection]
elux has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
leeurooi has joined #ruby
freerobby has joined #ruby
Mon_Ouie has joined #ruby
momomomomo has joined #ruby
mansi has joined #ruby
motto has quit [Read error: Connection reset by peer]
stuartrexking has quit [Quit: Leaving...]
barratt has joined #ruby
motto has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
brunoro_ has quit [Ping timeout: 248 seconds]
stuartrexking has joined #ruby
<shevy>
will rails become an OS?
ffio_ has joined #ruby
ffio has quit [Ping timeout: 248 seconds]
<_br_>
oh god please no
<_br_>
how many SLOC does it have? Still around 80k+ ?
elux has quit [Quit: Bye!]
c0rn has joined #ruby
<_br_>
(insane)
diegoviola has joined #ruby
mikepack has joined #ruby
<galdor_>
I wrote a gem (bindings for the gumbo html5 parser); what would be the 'right' way to make it available so that people can just gem install it without any problem ?
barratt has quit [Client Quit]
ryandeussing has joined #ruby
<_br_>
galdor_: Nice!
<_br_>
galdor_: Package it as a proper gem? What kind of deps?
<galdor_>
rubygems.org seems the way to go
<galdor_>
no deps; my Rakefile produces a .gem file
motto has quit [Ping timeout: 246 seconds]
<_br_>
ah, sure, rubygems
zastern has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
rcosta has quit [Remote host closed the connection]
tommyvyo has joined #ruby
browndawg has left #ruby [#ruby]
iliketur_ has quit [Quit: zzzzz…..]
ryandeussing has quit [Ping timeout: 264 seconds]
wald0 has quit [Quit: Lost terminal]
zastern_ has joined #ruby
sporkbomb has quit [Quit: leaving]
Tricon has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
loophole has joined #ruby
zastern_ has quit [Remote host closed the connection]
<shevy>
_br_ cool, only 80k?
zastern has joined #ruby
<shevy>
I think all my ruby projects together reach about 50k
twoism has quit [Remote host closed the connection]
<shevy>
including comments though
<shevy>
an average class I have may have about 80 lines in total, 30 lines of code, 20 lines empty newlines, rest comments
<shevy>
give or take a bit
twoism has joined #ruby
iliketur_ has joined #ruby
ferdev has joined #ruby
moses_m has joined #ruby
<_br_>
shevy: If you are on a *nix env, just do e.g. emerge sloccount ; fun little tool written in perl to measure this stuff.
<_br_>
sinatra is 1k SLOC btw.
tealmage has joined #ruby
<banisterfiend>
shevy: i'm on 8.25 million ;)
scarolan has quit [Ping timeout: 276 seconds]
<banisterfiend>
oh you weren't talking about gem downloads
Megtastique has quit [Quit: Megtastique]
jjbohn|afk is now known as jjbohn
interactionjaxsn has joined #ruby
platzhirsch has left #ruby [#ruby]
twoism_ has joined #ruby
twoism_ has quit [Remote host closed the connection]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
dankest has quit [Quit: dankest]
pooriaazimi has joined #ruby
chrisja has quit [Quit: leaving]
endash has quit [Read error: Connection reset by peer]
endash_ has joined #ruby
robonerd has joined #ruby
dankest has joined #ruby
BSaboia has quit [Ping timeout: 276 seconds]
twoism_ has joined #ruby
raul782_ has joined #ruby
popcornlover has quit []
twoism has quit [Read error: Connection reset by peer]
moses_m_ has joined #ruby
Megtastique has joined #ruby
shevy has quit [Quit: ""]
mrsolo has joined #ruby
dtcrshr has quit [Quit: poff]
tealmage has quit [Ping timeout: 248 seconds]
pentameter has joined #ruby
moses_m has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
mary5030 has joined #ruby
johnmlocklear_ has joined #ruby
jduan1981 has joined #ruby
tommyvyo has quit [Quit:]
cha1tanya has quit [Quit: cha1tanya]
elux has joined #ruby
jduan1981 has quit [Client Quit]
mark_locklear has quit [Read error: Connection reset by peer]
ryannielson has quit [Quit: ryannielson]
<eka>
hi all… what's the default for hashes keys? symbol or string?
<eka>
I mean, what's the most used or convention
havenwood has quit [Remote host closed the connection]
axl__ has joined #ruby
twoism_ is now known as twoism
carlyle has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
<apeiros>
eka: the one which makes sense for your situation
<apeiros>
eka: the point of using different hash keys is exactly because there's no "one size fits all"
<eka>
apeiros: making a gem that returns a hash…
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
<eka>
apeiros: and found a bug… sometimes I use string sometimes symbol :P
workmad3 has joined #ruby
blackmesa has joined #ruby
horofox has quit [Quit: horofox]
<apeiros>
well, that's inconsistent and thus bad
<apeiros>
eka: are the keys always from the same pool of possible keys?
<eka>
apeiros: what do you mean?
Megtastique has quit [Quit: Megtastique]
iliketur_ has quit [Quit: zzzzz…..]
<apeiros>
I mean like your possible keys are 'a', 'b' or 'c', and it can always only be any of them
<apeiros>
so {'a' => 1, 'b' => 2} # <-- possible
<apeiros>
{'x' => 1} # <-- not possible because 'x' is not part of your set of possible keys
forced_request has joined #ruby
<eka>
apeiros: there is a set of key names, fixed
three18ti has quit [Ping timeout: 268 seconds]
<apeiros>
then use symbols
Megtastique has joined #ruby
<apeiros>
now: is it always *all* of those keys? or is it usually only a couple of them?
m8 has joined #ruby
<eka>
all
<apeiros>
then don't use a hash
<apeiros>
write a proper class and return that instead.
<eka>
apeiros: ok… will think about it… will break previous versions though
m8 has quit [Read error: Connection reset by peer]
dash_ has joined #ruby
<apeiros>
you can add a to_h method on that class, to make the transition easier.
m8 has joined #ruby
<apeiros>
changing from mixed symbol/string keys to symbols only will break previous versions too btw.
<eka>
apeiros: yes that can be.. but can't do the class thing cause I'm doing a thin oembed wrapper that returns hash
<apeiros>
so if you make the change, now is a good moment anyway :-p
l33 has joined #ruby
three18ti has joined #ruby
Matriks has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
<eka>
apeiros: my bad was to use symbol… seems that the oembed ruby api returns string keys
<eka>
will see
stkowski has quit [Quit: stkowski]
<apeiros>
that's not really a viable excuse for not doing the class thing :-p
<eka>
apeiros: thanks
julweber has quit [Remote host closed the connection]
dash_ has quit [Max SendQ exceeded]
<eka>
apeiros: mmm ok… could wrap the response from the oembed and return a class
Zolo has quit [Read error: Connection reset by peer]
wolcanus has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
tmi has joined #ruby
<eka>
apeiros: I could always do OpenStruct.new(my_hash) ;)
devoldmx3 has joined #ruby
Dysruption has quit [Quit: Dysruption]
iliketur_ has joined #ruby
devoldmx3 has quit [Client Quit]
<apeiros>
eka: you could, but it'd be stupid
devoldmx3 has joined #ruby
<jeremyb>
gah, remissed neener
devoldmx has quit [Ping timeout: 245 seconds]
<eka>
apeiros: why?
lord1234 has joined #ruby
<_br_>
its a hack and not a proper solution
<apeiros>
because it beats the purpose of creating a class for your response.
<apeiros>
purposes: a) make your response discoverable (you can look up docs on it and discover its members)
Dysruption has joined #ruby
<apeiros>
b) make it easier to spot bugs (NoMethodError instead of just getting nils back)
<apeiros>
c) provide a place to put methods to make dealing with your response easier
<lord1234>
so i am trying to use bundler for the first time...I created a Gemfile...but am getting some errors http://pastie.org/8242969 this might have to do with the fact that I don't have a gemfile.lock file in the same dir as Tester.rb(which is also where the current Gemfile is located)....how do I make a .lock file, and is that my problem? Ruby 1.9.3 in case that matters
c0rn has quit [Quit: Computer has gone to sleep.]
smathieu has joined #ruby
leeurooi has quit [Quit: I'm outta here]
<apeiros>
lord1234: did you run `bundle` first?
<_br_>
apeiros: good writeup
<apeiros>
_br_: thank you
<MrZYX>
lord1234: also it's bundle exec ruby Tester.rb
<lord1234>
Could not find gem 'debugger-ruby_core_source (>= 0) x86-mingw32' in the gems available on this machine.
eldariof has joined #ruby
<lord1234>
just got that when running bundle...wierd
* apeiros
thinks the exception of `bundle exec` could be more self-explaining
Neomex has joined #ruby
robscomputer_ has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
<lord1234>
i had a space lemm see fi that helps
d2dchat has joined #ruby
dodosan has joined #ruby
Authenticator has joined #ruby
robscomputer_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
andrew565 has left #ruby [#ruby]
Criztian has joined #ruby
pooriaazimi has quit [Quit: pooriaazimi]
<apeiros>
lord1234: 'debugger-ruby_core_source (>= 0) x86-mingw32' <-- that's an odd gem name
Nisstyre-laptop is now known as Nisstyre
nomenkun has quit [Ping timeout: 264 seconds]
<apeiros>
I'd bet that 'debugger-ruby_core_source' should be the gem name
<loophole>
how can you suspend/resume a thread, outside of the thread from main
robscomputer has quit [Ping timeout: 240 seconds]
<apeiros>
loophole: I don't think you can
<apeiros>
not really the point of threads anyway
mdpatrick has joined #ruby
<loophole>
well i basically want to monitor the load of the system
evenix has quit [Ping timeout: 260 seconds]
<MrZYX>
since you can't stop a thread in a thread safe manner I'd be very surprised if you could pause it
<loophole>
and if it reachs X threshold, pause the full script until it goes down
<rhys>
what is the << symbol called in ruby so I can google it?
<loophole>
any ideas?
<lord1234>
apeiros: yea it had a space in it somewhere(after the name in the string text), but i fixed that and got the following: http://pastie.org/8242985
<loophole>
(from inside the script)
<apeiros>
rhys: it doesn't have a name. and google is the wrong tool.
<Authenticator>
Is there a way to perform 2way certificate auth for HTTP? (I see people talking about the SMTP version)
<MrZYX>
lord1234: just get rid of debugger and use pry instead
<apeiros>
rhys: << in most cases is a method name. you'd use the docs of the class you call << on.
<lord1234>
MrZYX: pry?
<rhys>
i see it used in what looks like inheritance of classes.
<eka>
apeiros: hi, back… thanks for the explanation, still doubting on a class when there is no behaviour needed for that data… but I will surely consider it.
<lord1234>
apeiros: this is an old project...i've just never used bundler before
<lord1234>
MrZYX: how can I configure RubyMine to use pry instead of IRB?
<lord1234>
some versions weren't matching up with what already working on my machine
<lord1234>
so i just set the version #'s
<eka>
apeiros: ?
<apeiros>
pm = private message. whether it's ok if I send you a private message.
<eka>
apeiros: oh yes np
i_s has quit [Remote host closed the connection]
loophole has left #ruby [#ruby]
braincrash has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
<lord1234>
ok so it seems: http://pastie.org/8243012 bundle completed successfully, but failing when I bundle exec
jerius has quit [Ping timeout: 245 seconds]
bleubeard has joined #ruby
i_s has joined #ruby
predator117 has quit [Ping timeout: 268 seconds]
braincra- has quit [Ping timeout: 276 seconds]
<MrZYX>
lord1234: read what I wrote earlier
ntus1017 has joined #ruby
<lord1234>
which part of that?
<lord1234>
sorry you wrote a bunch earlier...
i_s has quit [Remote host closed the connection]
Monie has joined #ruby
i_s has joined #ruby
<MrZYX>
the very first thing I said to you...
l33 has quit [Disconnected by services]
l33_ has joined #ruby
Neomex has quit [Quit: Neomex]
renderful has joined #ruby
<lord1234>
aaah ok MrZYX i didn't notice when you said that
blackmesa has quit [Ping timeout: 240 seconds]
bleubeard has quit [Remote host closed the connection]
Matriks has joined #ruby
moses_m_ has quit [Ping timeout: 246 seconds]
ry4nn has joined #ruby
ry4nn has quit [Remote host closed the connection]
JDHankle has quit [Remote host closed the connection]
bsaboia_ has joined #ruby
dankest has quit [Quit: dankest]
predator117 has joined #ruby
lebek has joined #ruby
vlad_sta_ has joined #ruby
brunoro_ has quit [Ping timeout: 276 seconds]
dankest has joined #ruby
carlyle has joined #ruby
dankest has quit [Client Quit]
colonolGron has joined #ruby
pjeide has quit [Quit: Leaving.]
iliketur_ has quit [Quit: zzzzz…..]
wolcanus has quit [Remote host closed the connection]
bleubeard has joined #ruby
iliketur_ has joined #ruby
wolcanus has joined #ruby
St_Marx has quit [Quit: Leaving]
shevy has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
lebek has quit [Client Quit]
noopq has quit [Ping timeout: 260 seconds]
lebek has joined #ruby
daxroc has joined #ruby
<lord1234>
so since I did the bundling, and created the lockfile, from now on can another user just DL the repo and run "bundle exec ruby Tester.rb" instead of running bundle by itself first in the folder?
<lord1234>
or do they also have to run bundle as well?
daxroc has quit [Client Quit]
predator117 has quit [Ping timeout: 248 seconds]
peregrine81 has quit [Quit: peregrine81]
<MrZYX>
they have to run it as well
Kricir has quit [Read error: Connection reset by peer]
Kricir_ has joined #ruby
<MrZYX>
bundler primarily ensures he gets the same versions as you
peregrine81 has joined #ruby
<MrZYX>
also that only the right versions get loaded, in case you have multiple versions of a gem installed
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda has quit [Read error: Connection reset by peer]
splittingred has quit [Ping timeout: 260 seconds]
chriskk has joined #ruby
<apeiros>
lord1234: you can package the gems
Megtastique has quit [Quit: Megtastique]
<apeiros>
it's not what you normally do, though
<apeiros>
that's something to do with apps you want to deploy to a server which should not connect to the internet
<apeiros>
anyway, more info via `bundle help package`
breakingthings has joined #ruby
kirun has joined #ruby
Vivekananda has joined #ruby
<MrZYX>
don't you still have to bundle install though? It just doesn't download the gem files anymore but uses the packaged ones, or am I wrong here?
saarinen has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
Monie has joined #ruby
Vivekananda has joined #ruby
<apeiros>
hm, not sure actually
<apeiros>
not having the work laptop here and not having the patience to package another project :-)
<lord1234>
apeiros: here's a question, I have a gem(curb) which doesn't seem to work on windows. How can I get the bundler to use a specific gemfile if it's on a linux system vs a windows system?
<MrZYX>
afaik, what you can do is bundle install --path something and commit something and .bundle/config
horofox has joined #ruby
<MrZYX>
not that I'd recommend that in any way
<apeiros>
lord1234: I only know it's possible, I don't remember how, though
<apeiros>
we had that issue with v8
<apeiros>
used different gems on osx and linux
peregrine81 has quit [Quit: peregrine81]
<lord1234>
--gemfile: Use the specified gemfile instead of Gemfile
<apeiros>
the poor mans solution would probably to use groups
<lord1234>
got it
<lord1234>
have a windows and linux gemfile
<apeiros>
yeah, or just have windows_only and linux_only groups
predator117 has joined #ruby
AlHafoudh has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
tealmage has quit [Ping timeout: 264 seconds]
saarinen has quit [Client Quit]
Megtastique has joined #ruby
devoldmx has joined #ruby
mary5030 has quit [Remote host closed the connection]
saarinen has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Es0teric has joined #ruby
mary5030 has joined #ruby
pwh has quit [Quit: pwh]
RichardBaker has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
peregrine81 has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
altamic has joined #ruby
atno has joined #ruby
altamic has left #ruby [#ruby]
stuartrexking has quit [Quit: Leaving...]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
sambao21 has joined #ruby
JZ|Zzz has joined #ruby
pjeide has quit [Client Quit]
JZ|Zzz is now known as JZTech101
nmabry has joined #ruby
awwaiid has quit [Ping timeout: 248 seconds]
BizarreCake has quit [Ping timeout: 240 seconds]
awarner_ has joined #ruby
brennanMKE has joined #ruby
AndChat| has quit [Ping timeout: 276 seconds]
bleubeard has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 264 seconds]
jjbohn has quit [Quit: Leaving...]
anonymuse has quit [Remote host closed the connection]
alvaro_o has joined #ruby
Banistergalaxy has joined #ruby
MrZYX is now known as MrZYX|off
jjbohn has joined #ruby
awarner has quit [Ping timeout: 256 seconds]
ner0x has joined #ruby
freerobby has quit [Quit: Leaving.]
i_s has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
raul782_ has quit [Remote host closed the connection]
robscomputer_ has quit [Read error: Connection reset by peer]
carlyle has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
atno has joined #ruby
blackmesa has joined #ruby
pwh has joined #ruby
predator117 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ukd1 has quit [Remote host closed the connection]
mdpatrick has quit [Quit: mdpatrick]
pkrnj has joined #ruby
ukd1 has joined #ruby
clooth has quit [Quit: clooth]
sml0820 has quit [Quit: sml0820]
amacgregor_ has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
wolcanus has joined #ruby
phantummm has quit [Quit: phantummm]
lord12341 has joined #ruby
emptyflask has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
shredding has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
johnmlocklear_ has quit [Quit: Leaving]
ukd1 has quit [Ping timeout: 240 seconds]
lord1234 has quit [Ping timeout: 246 seconds]
jleishman has quit [Remote host closed the connection]
ziggles has joined #ruby
freerobby has joined #ruby
robscomputer has joined #ruby
wolcanus_ has joined #ruby
Sid_ has joined #ruby
<ziggles>
I'm using Mechanize and "randomly" getting Zlib::BufError exceptions that look similar to this: http://pastie.org/private/vfs9y5kk6awobogqtd0nw Any tips for where i should start to debug this would be greatly appreciated.
<ziggles>
Specifically, i'm not sure how to investigate if it's my code causing problems or the response from the host I'm doing a GET on
brennanMKE has quit [Remote host closed the connection]
St_Marx has joined #ruby
baroquebobcat has joined #ruby
c0rn has joined #ruby
brennanMKE has joined #ruby
<eka>
ziggles: just asking… which version of mechanize? cause there is an old bug open like that
<ziggles>
eka: thanks for the input. I'm kind of thinking that the proxy I'm running through is screwing with the responses or something
<ziggles>
I'm just not really sure where/how to start
eldariof has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 268 seconds]
<eka>
ziggles: did you try a direct connection with no proxy?
snath has joined #ruby
daniel_hinojosa has joined #ruby
<ziggles>
eka: Yeah i have. And it works fine... It also works fine 99% of the time through the proxy lol... I've just never seen it happen when running locally (non-proxied)
jpinnix has joined #ruby
axl_ has quit [Quit: axl_]
ryandeussing has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
jpinnix has left #ruby [#ruby]
Kruppe has quit [Remote host closed the connection]
a7d7p has quit [Quit: a7d7p]
c0rn has quit [Quit: Computer has gone to sleep.]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
rickmasta has quit [Quit: Leaving...]
robustus has joined #ruby
emptyflask has joined #ruby
emptyflask has quit [Remote host closed the connection]
wolcanus_ has quit [Remote host closed the connection]
ryandeussing has quit [Ping timeout: 240 seconds]
goganchic has quit []
wolcanus has joined #ruby
djmitche has joined #ruby
Zolo has quit [Remote host closed the connection]
awwaiid has joined #ruby
axl_ has joined #ruby
c0rn has joined #ruby
c0rn has quit [Client Quit]
pjeide has joined #ruby
pjeide has joined #ruby
MrZYX is now known as MrZYX|off
ukd1 has joined #ruby
Matriks has quit [Remote host closed the connection]
elepedus has quit [Quit: elepedus]
reset has quit [Quit: Leaving...]
elepedus has joined #ruby
Monie has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
saarinen has quit [Quit: saarinen]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
sml0820 has joined #ruby
pskosinski has quit [Remote host closed the connection]
pskosinski has joined #ruby
pjeide has quit [Ping timeout: 256 seconds]
choobie has left #ruby [#ruby]
mansi has quit [Remote host closed the connection]
i_s has joined #ruby
teddyp1cker has joined #ruby
tjbiddle has joined #ruby
tjad has joined #ruby
mikepack has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
mansi has joined #ruby
smathieu_ has joined #ruby
MrZYX|off is now known as MrZYX
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clocKwize has quit [Quit: clocKwize]
rickmasta has joined #ruby
djmitche has left #ruby [#ruby]
daniel_hinojosa has quit [Quit: Leaving.]
Companion is now known as companion
smathieu has quit [Ping timeout: 276 seconds]
forrest has joined #ruby
dtcrshr has joined #ruby
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
forrest has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 240 seconds]
i_s has quit [Ping timeout: 264 seconds]
redmenace has joined #ruby
brennanMKE has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
iliketur_ has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
dodosan has joined #ruby
tatsuya_o has joined #ruby
stkowski has joined #ruby
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
kaldrenon has quit [Remote host closed the connection]
stkowski has quit [Client Quit]
pwh has quit [Quit: pwh]
devoldmx has quit [Ping timeout: 276 seconds]
Kelet has quit [Read error: Connection reset by peer]
Dysruption has quit [Quit: Dysruption]
MrZYX is now known as MrZYX|off
v0n has quit [Ping timeout: 248 seconds]
sml0820 has quit [Quit: sml0820]
dash_ has quit [Quit: dash_]
babykosh has joined #ruby
redmenace has quit [Quit: leaving]
zombiebit has joined #ruby
ukd1 has quit [Remote host closed the connection]
ukd1 has joined #ruby
altamic has joined #ruby
krawchyk has quit [Remote host closed the connection]
moses_m_ has joined #ruby
zmansiv has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
altamic has left #ruby [#ruby]
sml0820 has joined #ruby
sml0820 has quit [Client Quit]
mansi_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
Kricir_ has quit [Remote host closed the connection]
mansi has joined #ruby
pitzips_alt has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Lewix has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 268 seconds]
reset has joined #ruby
Lewix has joined #ruby
Megtastique has quit [Quit: Megtastique]
mansi has quit [Ping timeout: 248 seconds]
zmansiv has joined #ruby
elaptics is now known as elaptics`away
mikepack has joined #ruby
Zolo has joined #ruby
jkline has joined #ruby
Zolo has quit [Remote host closed the connection]
brbcoding has quit [Ping timeout: 246 seconds]
Lewix has quit [Ping timeout: 240 seconds]
froy has quit [Read error: Connection reset by peer]
iliketur_ has quit [Quit: zzzzz…..]
Kricir has joined #ruby
v0n has joined #ruby
reset has quit [Ping timeout: 276 seconds]
froy has joined #ruby
razi has quit [Quit: Leaving.]
razi has joined #ruby
pskosinski has joined #ruby
Paradigm_ has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
Paradigm_ has quit [Remote host closed the connection]
i_s has joined #ruby
Paradigm_ has joined #ruby
elepedus has quit [Quit: elepedus]
workmad3 has joined #ruby
horofox has quit [Quit: horofox]
Paradigm_ has quit [Remote host closed the connection]
Paradigm_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaynewstrom has joined #ruby
Kricir has quit [Remote host closed the connection]
huevon has quit [Quit: huevon]
moses_m has joined #ruby
smathieu_ has quit [Remote host closed the connection]
jaynewstrom has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
mansi has joined #ruby
Paradigm_ has quit [Remote host closed the connection]
sml0820 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
Paradigm_ has joined #ruby
smathieu has joined #ruby
brennanMKE has joined #ruby
moses_m_ has quit [Ping timeout: 245 seconds]
froy has quit [Quit: kablam!]
<babykosh>
question codeer gods….I want to check if index == either 1,2 or 3…how could I say this?
<eka>
babykosh: you could do this [1] pry(main)> [1,2,3].include? 1
tatsuya_o has quit [Read error: Connection reset by peer]
w3pm has joined #ruby
tatsuya_o has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 268 seconds]
colonolGron has joined #ruby
gadgetoid_ has joined #ruby
cek has quit [Quit: жопа диридай диридиридай]
virtualize has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
mosez has joined #ruby
tgunr has joined #ruby
<eka>
havenwood: that's familiar… from which anime it's?
<shredding>
is it more rubyish to use and then &&?
ilyam has quit [Quit: ilyam]
sml0820 has quit [Quit: sml0820]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
<eka>
ahh princess mononoke
<shredding>
I just found out, they are not equal.
interactionjaxsn has quit [Remote host closed the connection]
<shredding>
These binding strength is interesting.
<Spooner>
shredding, They operate at different operator precedences, so are not quite equivalent. In either case, use one or the other exclusively and make sure you know how they work ;)
elux has quit [Quit: Bye!]
c0rn has joined #ruby
<shredding>
Spooner: Thanks.
<havenwood>
shredding: `&&` is oft recommended over `or` due to 'confusing' precedence.
iliketur_ has quit [Quit: zzzzz…..]
dankest has joined #ruby
<Spooner>
Yeah, but the "confusing precedence" isn't confusing if you know how it works.
<eka>
alvaro_o: yes, but mentioning c++ is a little off
<eka>
alvaro_o: and we have to admit… php would be the last option… you can do a lot better and fast with python, ruby et al
sml0820 has quit [Quit: sml0820]
brennanMKE has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
devoldmx has joined #ruby
<xybre>
Oh, and the best part about the contractor shit is that he said everything is going to be done today - and now he says he's going to work on it over the weekend. So my boss is happy. WAT.
Criztian has quit [Remote host closed the connection]
agr has joined #ruby
<alvaro_o>
eka: I do know Ruby and Python [the languages] , but I haven't learned Rais or Django yet. I've only worked with Sinatra
Megtastique has quit [Quit: Megtastique]
verto has joined #ruby
<onewheelskyward>
sinatra++
<sml0820>
i need to code something for hacker school? does anyone have any interesting ideas, besides tic-tac-toe. I was thinking bingo, but that doesnt seem very promising
<sml0820>
cant be rails related
yacks has joined #ruby
mary5030 has joined #ruby
<alvaro_o>
I didn't know that comparing git with php was a joke :S
jerius has joined #ruby
ryandeussing has joined #ruby
yacks has quit [Read error: Connection reset by peer]
dtcrshr has quit [Quit: poff]
jkline has quit [Quit: jkline]
jerius_ has quit [Ping timeout: 245 seconds]
<eka>
alvaro_o: still… with sinatra you can have a site in no time and add many different things as rack plugins in no time also :)
<Authenticator>
shredding: Thanks, looking at floehopper now
postmodern has joined #ruby
tealmage has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jshakespear has joined #ruby
<jshakespear>
hey all
<apeiros>
what are your favored plain-text markup languages?
<apeiros>
(that's @ all)
yacks has quit [Quit: Leaving]
<apeiros>
e.g. things like markdown
Davey has quit [Ping timeout: 256 seconds]
spider-mario has quit [Remote host closed the connection]
yacks has joined #ruby
axl_ has quit [Quit: axl_]
<xybre>
GitHub-flavored markdown.
<eka>
yea that
<_br_>
seconded
Megtastique has quit [Quit: Megtastique]
shunt has quit [Ping timeout: 268 seconds]
virtualize has joined #ruby
<jshakespear>
any begin/rescue gurus here?
<jshakespear>
i've got a little question
<_br_>
One can become a guru at begin/rescue o.O ?
<jshakespear>
ha
<xybre>
It took me a while to accept Markdown as my lord and savior .. and I can still imagine a better one .. but with GitHub's changes.. its pretty nice and the gains are small.
tommyvyo has quit [Quit:]
<jshakespear>
here's what i'm observing
tgunr has quit [Quit: Nity nite]
<jshakespear>
i have a rails app
<apeiros>
_br_: yes, once you've mastered all parts and understand redo/retry
<jshakespear>
code in begin/rescue/end
<xybre>
Well thats your first problem.
<jshakespear>
works fine locally
<_br_>
Markdown is fun, particularly if you throw it together with Dillinger http://dillinger.io/
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jshakespear>
but for some reason, when deployed to both heroku and ec2, no code within the begin/rescue/end block runs
<eka>
_br_: bookmarking that
brennanMKE has joined #ruby
<jshakespear>
it's as if it is acting like a block comment or something
<jshakespear>
any suggestions?
<_br_>
apeiros: makes sense
<_br_>
jshakespear: pastie?
<jshakespear>
sec
Tricon has quit [Quit: Leaving...]
efrainolivares has quit [Quit: efrainolivares]
<xybre>
_br_: Dillinger looks nice
<apeiros>
_br_: there's also showdown
lushious has quit [Remote host closed the connection]
ziggles has quit [Remote host closed the connection]
<apeiros>
though, might be dillinger does more
tacos1de has quit [Ping timeout: 240 seconds]
<apeiros>
given that it claims to be a "cloud editor" (whatever that means :D)
ukd1_ has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
ukd1 has joined #ruby
motto has quit [Changing host]
motto has joined #ruby
motto is now known as m8
twoism has joined #ruby
twoism has quit [Read error: Connection reset by peer]
kpshek has quit []
twoism_ has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
<banisterfiend>
apeiros: you messed with pry-rescue yet btw?
<apeiros>
nope
c0rn has joined #ruby
pjeide has quit [Quit: Leaving.]
<apeiros>
what's its use-case?
choobie has joined #ruby
crucif0rm has joined #ruby
shredding has quit [Quit: shredding]
vlad_starkov has joined #ruby
c0rn has quit [Client Quit]
<banisterfiend>
apeiros: two use cases: 1. if you're working in the repl and an exception occurs, u can type cd-cause <ex> to drop you into the exception context complete with call-stack to explore. 2. You can wrap arbitrary code in your app with Pry.rescue { } and any unhandled exception will automatically have a pry session started up at the point of the error, complete with call-stack for you to explore (via up/down)
mlpinit has joined #ruby
rodacato has quit [Remote host closed the connection]