cajone has quit [Remote host closed the connection]
<bradland>
as in, will it make people hate me later if i use it now?
<bradland>
like hashie
bogdanteleaga has quit [Ping timeout: 245 seconds]
Yzguy has joined #ruby
serivich has joined #ruby
<jhass>
as far as questions in #ruby goes, it's my new rails
ponga has quit [Read error: No route to host]
serivich has quit [Read error: Connection reset by peer]
ponga has joined #ruby
cajone has joined #ruby
<jhass>
people drop in, claim it's plain ruby and then you slowly figure out why it's behaving so strangely
freerobby has joined #ruby
chipotle has joined #ruby
<jhass>
same for chef and a bit for puppet, though puppet users usually give away that they're using puppet right in the question
Megtastique has quit []
<jhass>
or maybe I mistake facets for that facter stuff
<jhass>
it all confuses me
Musashi007 has joined #ruby
freerobby has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
nii236|irssi has quit [Remote host closed the connection]
bwilson has joined #ruby
<bradland>
i'm in the same boat. i hardly understand ruby. more extensions just make me more confused.
<Nilium>
I just don't try to figure out Rails-related problems.
jottr has quit [Ping timeout: 240 seconds]
<jhass>
but for that you have to figure out it's Rails(or Chef or Puppet)-related first!
iceden has quit [Read error: Connection reset by peer]
iMe has quit [Ping timeout: 255 seconds]
<Nilium>
It's usually obvious when you see active record mentioned anywhere, which it usually is
tier has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
jlast has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
iMe has joined #ruby
sudog has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
<shevy>
anyone knows if there are any major changes in ruby upcoming?
sudog has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
lioninawhat has joined #ruby
<zenspider>
facets?!?! that isn't dead/banned/murdered&buried yet?
jlast has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ciao.]
<bradland>
shevy: depends on your definition of major
jlast has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
multi_io has joined #ruby
ixti has quit [Quit: WeeChat 1.1.1]
<shevy>
bradland hmm. I kinda want to see like just an overview of what is going on
<shevy>
like the status of refinements
ismaelga has joined #ruby
zorak8 has joined #ruby
raphaelss has quit [Quit: leaving]
multi_io_ has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 265 seconds]
phoo1234567 has quit [Quit: Leaving]
freerobby has joined #ruby
startupality has quit [Quit: startupality]
CpuID2 has joined #ruby
iceden has joined #ruby
inteq has joined #ruby
oo_ has joined #ruby
dfinninger has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
oleo is now known as Guest75895
oleo__ has joined #ruby
iMe has joined #ruby
oo_ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
dorei has quit []
sent1nel has quit [Remote host closed the connection]
oo_ has joined #ruby
Guest75895 has quit [Ping timeout: 264 seconds]
boombadaroomba has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nii236|irssi has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
roolo has quit [Quit: Leaving...]
gwillickers has left #ruby ["spoop!"]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
tier has joined #ruby
ishikawa91 has joined #ruby
Fire-Dragon-DoL has quit []
sevenseacat has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
CpuID2 has joined #ruby
iMe has joined #ruby
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
last_staff has quit [Quit: last_staff]
bruno- has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
jbw__ has joined #ruby
Takle has joined #ruby
iamninja has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
charliesome has joined #ruby
jbw_ has quit [Ping timeout: 255 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
tier has quit [Remote host closed the connection]
bruno- has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
bruno- is now known as Guest97322
Megtastique has quit []
kaspertidemann has quit []
CpuID2 has joined #ruby
ptrrr has joined #ruby
<starless>
How can I spawn a bunch of threads that run a long method that returns some data such that (1) I can access that data from the spawning thread and (2) I can efficiently process the data from each thread as they finish?
<starless>
I'm assuming continuously checking if each thread is alive is not the best way to accomplish (2).
speakingcode has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<waxjar>
google for symbol to proc in ruby for a detailed explanation, there are plenty of articles on it :)
zorak8 has quit [Ping timeout: 246 seconds]
<starless>
waxjar: but this will block on the threads sequentially, won't it?
CpuID2 has quit [Quit: This computer has gone to sleep]
bruno-_ has joined #ruby
<waxjar>
yeah, but they'll all finish close to each other, since they're running in the background :)
zorak8 has joined #ruby
jlast has joined #ruby
jaequery has joined #ruby
<Scient>
ruby keeps on segfaulting for me when installing from source... with /usr/local/lib/ruby/2.2.0/psych.rb:370: [BUG] Segmentation fault at 0x00000014333fe0
<Scient>
basically no matter WHAT I do
<Scient>
same for 2.1.5
iwishiwerearobot has quit [Ping timeout: 256 seconds]
<starless>
waxjar: well, they're doing networking operations, so I expect some stagger. but thank you anyway!
blizzy is now known as _blizzy
iMe has quit [Ping timeout: 245 seconds]
_blizzy is now known as _blizzy_
zorak_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<Scient>
anyone got any clue a bout this?
<waxjar>
just to clarify, it'll stall the main thread until all threads are done, but they're executing concurrently :)
CustosL1men has quit [Ping timeout: 240 seconds]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
iMe has joined #ruby
<starless>
waxjar: yep, but the thing is the main thread then does work with their data, and it's relevant to the performance of my program that the data is processed as soon as it's ready (as opposed to perhaps waiting for the first thread when the last is done)
Deele has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
<jhass>
starless: sounds like it's independent of the other results, why not do that processing inside the thread then?
<jhass>
why do you have to pass it back to the main thread
ponga has joined #ruby
<jhass>
or in other worker threads for that matter
<starless>
the main thread is writing to a stream, and that stream can't be shared between threads for obvious reasons
shaquile has quit [Ping timeout: 255 seconds]
agrinb_ has quit [Read error: Connection reset by peer]
<jhass>
it can, you just need to lock it with a mutex
<Scient>
cant really find anything on this segfault either
<Scient>
great...
agrinb has joined #ruby
<jhass>
starless: check the monitor mixin in stdlib, very useful to write a thread safe wrapper around things
<starless>
jhass: I suppose I could do that. And I'll look into monitor as well. Thanks.
shaquile has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
lucianosousa has joined #ruby
Sawbones has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
apeiros_ has quit [Remote host closed the connection]
Deele has joined #ruby
<waxjar>
i think i remember reading IO#write is safe to use from threads, but i might be wrong
CustosL1men has joined #ruby
<Scient>
anyone got a clue about the segfault? has maybe seen it before?
FooMunki_ has quit [Quit: FooMunki_]
apeiros_ has joined #ruby
speakingcode has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<jhass>
waxjar: per call safe maybe, but then you need to make sure to only do a single call
yfeldblum has quit [Ping timeout: 264 seconds]
<jhass>
often you want to synchronize over multiple calls when it comes to IO
nobitanobi has joined #ruby
<jhass>
Scient: you should tell when you crosspost ;)
<Scient>
not really if im not getting any response here :)
arescorpio has joined #ruby
<jhass>
no response in IRC terms means 12-24 hours ;)
systemd0wn_ has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<jhass>
also you probably should make a gist with the full output
nii236|irssi is now known as nii236
systemd0wn has quit [Read error: Connection reset by peer]
<Scient>
well.. it segfaults in psych, what else is there to see really :P
systemd0wn has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<jhass>
things you may overlook, libyaml versions, silly loaded libraries, stuff like that
<jhass>
there must be something unusual in your system when it comes to a release like that and works on thousands of machines flawlessly
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<sevenseacat>
no problem with ruby 2.1.5 or 2.2.0 here :)
<Scient>
i cant really see why it would fail there specifically
systemd0wn has quit [Read error: Connection reset by peer]
<sevenseacat>
even knowing your OS might be a good start
systemd0wn has joined #ruby
<Scient>
i mean it installs fine.. and then when it starts installing gems, specifically bundler, it shits the bed
bMalum has quit [Quit: bMalum]
tunaCanBruh has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
Scient: you can never provide too many details, so that argument is void anyways
iMe has quit [Ping timeout: 256 seconds]
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<Scient>
fell back to 2.1.5 from scratch, after a blanked package update and disabling ffi
<Scient>
seems to work, idk
<Scient>
fuck .20
<Scient>
2.2.0 that is
<Scient>
jhass: sure, but if there is zero response, im not really going to scramble for extra info
Sawbones has quit [Remote host closed the connection]
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<jhass>
or maybe there's zero response because of the lack of that extra info
<Scient>
i guess thats too bad then
<jhass>
and as said, it's not unusual to take up to 12 hours until somebody pops in that has the response
<sevenseacat>
too bad for you :P
tkuchiki has joined #ruby
iMe has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
<Scient>
yeah im not up for waiting 12 hours
jerius has quit []
<Scient>
thats just not reasonable
<Scient>
thats my point
Sawbones has joined #ruby
<Scient>
no response at all = fuck it
systemd0wn has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
versatiletech has joined #ruby
techietrash has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
<Scient>
its not like im not going to get it work, it might save some time if its an issue that someone has encountered before - especially if its somewhat of a corner case (based on going thru bug reports)
systemd0wn has joined #ruby
* sevenseacat
gets popcorn
<Scient>
:9
<jhass>
sevenseacat: you have to thrive it forward for that, I'm having enough of the whining
<Scient>
im not whining
<Scient>
you are
systemd0wn has quit [Read error: Connection reset by peer]
<Scient>
pretty annoying to be honest
systemd0wn has joined #ruby
speakingcode has quit [Remote host closed the connection]
<Scient>
you respond with nothing. at. all. then you start something about "cross posting" and having to wait 12-24 hours and whatnot
systemd0wn has quit [Read error: Connection reset by peer]
<Scient>
so why not just keep ignoring me, obviously im not going to wait and you are not being of any help for me
<Scient>
plus, i have it solved now
systemd0wn has joined #ruby
<jhass>
yes you're right. I'm annoying and you know everything better than me. Sorry for responding to your request of help.
systemd0wn has quit [Read error: Connection reset by peer]
<sevenseacat>
so you should be! bad jhass!
<Scient>
if only you would responded to the request of help
<Scient>
jesus
jaequery has joined #ruby
* sevenseacat
bops jhass on the nose with a newspaper
systemd0wn has joined #ruby
jaequery has quit [Client Quit]
<jhass>
you still have a newspaper?
<Scient>
this is why i avoid asking anything on irc besides on a couple of specific channels
jaequery has joined #ruby
<Scient>
there is always someone who will treat you like a 5 year old and act all self righteous in the process
jaequery has quit [Client Quit]
<Scient>
fuck that. for real.
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<Scient>
if you dont know the answer, say so. if you want more info, say so.
<Scient>
just dont start shit about nothing
systemd0wn has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
systemd0wn has joined #ruby
<jhass>
mh, yeah, IRC is really nothing I can recommend if you're offended that easily
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<zenspider>
Scient: I dunno about whiny as I only have so much backlog, but you sure are coming off as entitled to me. You didn't seem to provide enough details and now you're upset that you're not getting a solution on a silver platter.
* Scient
facepalms
<zenspider>
yup. keep up the righteous indignation. I'm sure it'll work for you... somewhere.
Sawbones has quit [Remote host closed the connection]
<zenspider>
starless: may I see?
dixie__ has quit [Quit: later guys!]
<Scient>
funny how everyone is suddenly here and "ready to give advice" now
<starless>
zenspider: yeah, lemme just try one more fix.
<starless>
zenspider: I had a multiprocess implementation and I'm trying to make it multithreaded and now it's megafucked
zachrab has quit [Ping timeout: 252 seconds]
<zenspider>
Scient: ok. I can confirm the whiny part now. I'll stop with you, so you can have the last word since you seem that type.
<zenspider>
starless: why go from multiprocess to multithreaded? need more sharing?
<Scient>
smart move
<zenspider>
multiprocess is beautiful from a thread safety perspective. :)
<starless>
zenspider: yeah, I know. I'm just gonna roll back, actually.
<zenspider>
well... let's take a look first
swgillespie has quit [Max SendQ exceeded]
<starless>
alright...but be warned; I know there's a better way to do this
<zenspider>
haha. fair warning
swgillespie has joined #ruby
speakingcode has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<shevy>
sevenseacat don't eat popcorn, it's not good for a cat!
<sevenseacat>
but so tasty
<zenspider>
really? I had a cat that would eat popcorn periodically... tho he preferred tortilla chips
<shevy>
really??
<shevy>
hmm I am a bit scared to try
<sevenseacat>
i had a cat once that liked vegemite. true story.
<shevy>
she is like 14 years or so soon, can't scare an old cat like that
<zenspider>
vegemite? damn... sodium deficiency ?
<sevenseacat>
dunno, but she loved it
<eam>
cat food is mostly corn anyway right
<shevy>
ah that sounds ok, vegemite is bread-like or? I've seen some cats eat parts of bread sometimes, depends on what type
<shevy>
eam beef!
robustus|Off has joined #ruby
robustus|Off is now known as robustus
<sevenseacat>
it was one of those things where the cat always hangs around trying to eat human food so we were all like 'you think so, cat? try this'
<sevenseacat>
<cat> omnomnom
<eam>
shevy: not sure I call those parts of the animal "beef"
diegoviola has quit [Read error: Connection reset by peer]
juancaman has quit [Quit: ThrashIRC v2.9 sic populo comunicated]
CpuID2 has quit [Client Quit]
<eam>
based on "vegemite" I'm pretty sure sevenseacat isn't from the USA in which case food might actually not be corn-based
<eam>
but that's all we eat here, humans, cats or otherwise
<sevenseacat>
correct, we dont live on a diet of corn here in australia :P
systemd0wn has quit [Read error: Connection reset by peer]
<bufferloss>
I like corn
<eam>
just dingos and drop-bears
<sevenseacat>
they taste like chicken.
systemd0wn has joined #ruby
<starless>
zenspider: is my code at least readable?
<eam>
I've never eaten a dingo :(
kt2 has quit [Quit: ...]
iMe has quit [Ping timeout: 245 seconds]
systemd0wn has quit [Read error: Connection reset by peer]
<zenspider>
starless: yup. reading through it now. what's the original problem?
VBlizzard has joined #ruby
systemd0wn has joined #ruby
VBlizzard is now known as blizzy
systemd0wn has quit [Read error: Connection reset by peer]
<starless>
zenspider: well I had a pretty stable build that worked fine. I wanted to optimize so I wanted to go from multiprocess to multithreading
systemd0wn has joined #ruby
iMe has joined #ruby
<zenspider>
hard to beat multiprocess on a good OS.
riceandbeans has joined #ruby
<zenspider>
unless you're spawning a shit-tonne
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<starless>
zenspider: Guess I'll be rolling back, then
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
systemd0wn has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Disconnected by services]
blizzy is now known as _blizzy_
systemd0wn has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<zenspider>
starless: don't think you _need_ to, but I see nothing wrong with a multiprocess design for this type of tool as long as you're not trying to exhaust system resources.
<zenspider>
at that point, you'd need the spawner to maintain a pool of active processes
<zenspider>
same with threads at that point tho
systemd0wn has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<starless>
zenspider: well, I'd really only be rolling back because I had a stable build
vasuvi has quit [Quit: Konversation terminated!]
systemd0wn has joined #ruby
<starless>
it was damn reliable
<zenspider>
*nod* what were you trying to optimize?
systemd0wn has quit [Read error: Connection reset by peer]
<bufferloss>
starless, you know that MRI ruby has a global thread lock right?
systemd0wn has joined #ruby
<starless>
bufferloss: so? I have race conditions up the butt right now
<bufferloss>
starless, threads vs forking won't solve that
mikepack has quit [Read error: Connection reset by peer]
<jhass>
bufferloss: not around most of the IO stuff
mikepack has joined #ruby
<starless>
zenspider: I just got it in my head that threads would be faster than processes; I originally did processes so I could have a different PWD for each repository, but then I realized you could tell git which dir to work in
<starless>
bufferloss: yes it will. watch.
* starless
rolls back.
<starless>
bang, it works
<zenspider>
haha
<bufferloss>
starless, that doesn't fix your inability to program concurrency correctly
<zenspider>
throwing around "global thread lock" without specific context means roughly nothing
<bufferloss>
starless, all it does is basically make your system non concurrent
<starless>
says the guy who suggested the global thread lock
<jhass>
bufferloss, I'm not following what you're getting at either
jefus has quit [Ping timeout: 250 seconds]
blackthor has quit [Ping timeout: 256 seconds]
<starless>
he just wanted to take this opportunity to insinuate that I can't write multithreaded programs
<bufferloss>
which you can't, obviously
wallerdev has joined #ruby
<jhass>
bufferloss: seriously, shut up
<starless>
well thanks, you've been very helpful
<bufferloss>
any time
<boombadaroomba>
jhass, i still like you
<starless>
I can't resist saying that I fucking implemented sync primitives last semester
<starless>
implemented.
<bufferloss>
semester... I see, you're in school, that explains a lot
<zenspider>
starless: don't take the bait. he's a cock. simple as that
<bufferloss>
but apparently you already know all the things about concurrent programming, which is why your system works so well
<jhass>
time for everybody to learn their clients ignore feature
<starless>
my system /does/ work. but the strain of refactoring from two totally different designs was too much
<zenspider>
apeiros/apeiros_ : oi
<starless>
anyways, you're right, zenspider
<starless>
sorry for feeding the troll
<jhass>
zenspider: 3am here, doubt it
Megtastique has joined #ruby
geefolk has joined #ruby
jlast has joined #ruby
<bufferloss>
starless, yeah, that's not uncommon, better you learn these things the hard way when you're in school so that you program it right when you get in to the real world
* sevenseacat
hands around popcorn for the rest of the class
<shevy>
starless haha I even have difficulties unifying two different classes... one is called "Mounted", the other "Mountpoints"... both essentially just show mounted devices, though slightly differently
<bufferloss>
mmmm, popcorn
<zenspider>
bufferloss: where "the hard way" means dealing with dickheads like you? I'm pretty sure he has better resources availabel
<zenspider>
available...
<bufferloss>
zenspider, nope
<shevy>
so refactoring two different designs sounds like having to tweak a lot of files - at least I only have two .rb files here
<bufferloss>
hard way means race conditions, which he already has
Megtastique has quit [Client Quit]
wldcordeiro has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
PanzerModern has joined #ruby
jlast has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
kt2 has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TgMts has quit [Ping timeout: 246 seconds]
iMe has joined #ruby
TgMts has joined #ruby
jefus has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 250 seconds]
sent1nel has joined #ruby
nonnatus has joined #ruby
fabrice31 has joined #ruby
pontiki has joined #ruby
kt2 has quit [Quit: ...]
kt2 has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
starless has quit [Quit: Leaving]
bufferloss has quit [Quit: Leaving]
raphaelss has joined #ruby
Sawbones has joined #ruby
boombadaroomba has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
kr1shnak has quit [Quit: bye bye]
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
awerush has quit [Ping timeout: 250 seconds]
versatiletech has quit [Quit: versatiletech]
pu22l3r has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
Lewix has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
geefolk has quit [Read error: Connection timed out]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geefolk has joined #ruby
geefolk has quit [Max SendQ exceeded]
geefolk has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
crazymykl has joined #ruby
iwishiwerearobot has joined #ruby
iMe has joined #ruby
gwillickers has joined #ruby
skj3gg has joined #ruby
starless has joined #ruby
ChoiKyuSang has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
gwillickers has quit [Quit: spoop!]
iwishiwerearobot has quit [Ping timeout: 265 seconds]
aef has quit [Remote host closed the connection]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
jonr22 has joined #ruby
zorak_ has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
turtil has quit [Quit: WeeChat 1.1.1]
jonr22 has quit [Ping timeout: 250 seconds]
<zenspider>
well THAT shut down the dialog in here...
karmatr0n has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
Lewix has joined #ruby
icbm has quit [Quit: Leaving]
iMe has joined #ruby
TgMts has quit [Ping timeout: 244 seconds]
jlast has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
paolooo has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
magic__ has joined #ruby
paolooo has quit [Client Quit]
jlast has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
luriv_ has quit [Ping timeout: 252 seconds]
iMe has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
nobitanobi has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<eam>
just in case it wasn't incredibly obvious, the GIL isn't relevant between *processes*
<eam>
only between threads (and then, only sometimes)
tus has quit []
* sevenseacat
has no opinion or comment on multithreading and related issues
wallerdev has quit [Quit: wallerdev]
<eam>
sevenseacat: none?
<sevenseacat>
none.
<eam>
well what can we talk about then
zachrab has joined #ruby
<shevy>
about cats
wallerdev has joined #ruby
<eam>
shevy: if you run cat it's a separate process
<shevy>
my cats are always running
decreasedsales has joined #ruby
ajaiswal has joined #ruby
ponga has quit [Remote host closed the connection]
nobitanobi has joined #ruby
decreasedsales has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 250 seconds]
skj3gg has joined #ruby
oo_ has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
joshbamboo1 has quit [Quit: Leaving]
iMe has quit [Ping timeout: 240 seconds]
shum has quit [Quit: WeeChat 1.1.1]
oo_ has joined #ruby
gwillickers has joined #ruby
iMe has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Megtastique has joined #ruby
amystephen has quit [Quit: amystephen]
vdamewood has joined #ruby
pu22l3r has joined #ruby
ptrrr has joined #ruby
yfeldblum has joined #ruby
tkuchiki_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
ptrrr has quit [Ping timeout: 256 seconds]
<weaksauce>
aww man I missed the concurrency debate... shucks
iMe has quit [Ping timeout: 245 seconds]
hesco has quit [Ping timeout: 256 seconds]
Megtastique has quit []
iMe has joined #ruby
braincrash has quit [Quit: bye bye]
ssidelnikov has joined #ruby
gokul has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
Xiti has quit [Ping timeout: 244 seconds]
braincrash has joined #ruby
razieliyo has quit [Ping timeout: 264 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
ssidelnikov has left #ruby [#ruby]
Lewix has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
jlast has joined #ruby
ssidelnikov has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
fabrice31 has joined #ruby
jhebden has quit [Read error: No route to host]
piotrj has joined #ruby
<shevy>
hmm
iMe has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 265 seconds]
hesco has joined #ruby
karmatr0n has quit [Remote host closed the connection]
jlast has joined #ruby
SpikeMaster has joined #ruby
iMe has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
karmatr0n has joined #ruby
Salve has quit []
kyb3r_ has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
Soda has quit [Remote host closed the connection]
posixpascal has joined #ruby
piotrj has quit [Remote host closed the connection]
Megtastique has joined #ruby
piotrj has joined #ruby
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
iMe has joined #ruby
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Megtastique has quit []
ponga has joined #ruby
skj3gg has joined #ruby
speakingcode has joined #ruby
nobitanobi has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
nobitanobi has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
nobitanobi has quit [Ping timeout: 250 seconds]
cpt_yossarian has quit [Ping timeout: 245 seconds]
goodenough has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
iwishiwerearobot has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
hmsimha has joined #ruby
zachrab has joined #ruby
work_op has joined #ruby
yfeldblum has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
<odigity>
yeah, I found it. pretty disappointing. I was expecting some kind of fancy duration object that I could call methods on to get the year component...
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djellemah has quit [Quit: Leaving]
<odigity>
ruby and activesupport have spoiled me. I assume I can find exactly what I need most of the time :)
bal has quit [Quit: bal]
djellemah has joined #ruby
sent1nel has quit [Remote host closed the connection]
Lemur has quit [Remote host closed the connection]
Lemur has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
goodenough has quit []
iMe has quit [Ping timeout: 245 seconds]
Lemur has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
lucyinthesky has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
iMe has joined #ruby
Soda has quit [Remote host closed the connection]
olivier_bK has joined #ruby
lucyinthesky has joined #ruby
garethrees has joined #ruby
wottam has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
wottam has quit [Client Quit]
betacz has quit [Remote host closed the connection]
mkaesz has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 250 seconds]
mxrguspxrt has quit [Remote host closed the connection]
lucyinthesky has left #ruby ["Leaving"]
OrbitalKitten has joined #ruby
ptrrr has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
Timgauthier has joined #ruby
WhereIsMySpoon has quit [Disconnected by services]
mkaesz has joined #ruby
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
WhereIsMySpoon_ has joined #ruby
i3lifee has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Ping timeout: 245 seconds]
ptrrr has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
aganov has quit [Quit: Leaving]
aganov has joined #ruby
arup_r has quit [Remote host closed the connection]
msgodf has joined #ruby
Mon_Ouie has joined #ruby
agrinb has joined #ruby
mxrguspxrt has joined #ruby
arup_r has joined #ruby
mxrguspxrt has quit [Read error: Connection reset by peer]
mxrguspxrt has joined #ruby
agrinb has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
timonv has joined #ruby
i3lifee_ has joined #ruby
mxrguspx_ has joined #ruby
mxrguspxrt has quit [Read error: Connection reset by peer]
rdark has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
Tamae has joined #ruby
mxrguspx_ has quit [Remote host closed the connection]
thebastl has joined #ruby
jimms has quit [Remote host closed the connection]
i3lifee has quit [Ping timeout: 255 seconds]
lioninawhat has joined #ruby
n008f4g_ has joined #ruby
Sembei has quit [Read error: No route to host]
josephcs has quit [Remote host closed the connection]
josephcs has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
iMe has quit [Ping timeout: 246 seconds]
antgel has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
antgel has joined #ruby
aapole has joined #ruby
ismaelga has joined #ruby
jespada has joined #ruby
leafybasil has joined #ruby
sieve has joined #ruby
withnale_ has joined #ruby
i3lifee_ has quit [Read error: Connection reset by peer]
<withnale_>
Is there a way to get the name of the class of the current method? When subclassing, object.class gives you the name of base class, but if I run a method in the superclass, I want to know the superclass name programatically...
<zenspider>
withnale_: why?
ismaelga has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
<withnale_>
I need to merge some class objects from the superclass into the subclass.
<zenspider>
"if I run a method in the superclass, I want to know the superclass name" ... specifically that... why?
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<zenspider>
"merge some class objects"? that means what?
<withnale_>
There are some objects assocaited with @options in the superclass.
jimms has joined #ruby
<withnale_>
i.e. associated with the class not the instance.
<zenspider>
really sounds like you're doing some hinkey shit. or you're just doing a shitty job describing your problem
<withnale_>
I'm using someone elses framework so I don't want to change the underlying methods that access/work with it
<zenspider>
what do you have so far?
mxrguspxrt has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<withnale_>
At the moment in the superclass initialiser I am doing self.class.options = MySuperClass.options.merge(self.class.options)
<withnale_>
I'd prefer not to have to specify MySuperClass by name.
m8 has joined #ruby
rap has joined #ruby
hmsimha has quit [Quit: Leaving]
starfox_sf has quit [Ping timeout: 252 seconds]
<ponga>
n
luriv has joined #ruby
<zenspider>
withnale_: there's nothing wrong with specifying it by name, but self.class.superclass is always the superclass
Gate has quit [Ping timeout: 250 seconds]
<withnale_>
but that's not quite the same. If there was another level of subclassing in between, it would use that. Is there no way to get the classname of the current method?
jlast has joined #ruby
last_staff has joined #ruby
Pupeno has joined #ruby
iwishiwerearobot has joined #ruby
<zenspider>
withnale_: you're going about this the wrong way
TgMts has joined #ruby
<zenspider>
also: you suck at describing problems... which usually means you're not clear on what you need
mathie has joined #ruby
bweston92 has joined #ruby
tens0r has joined #ruby
aapole has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
gfawcettpq has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
<withnale_>
As I said, I'm using an existing framework, which is why I'm describing the 'tiny' problem I'm trying to solve. The superclass I mentioned inherits from another class, which itself includes mixins - which are both generated elsewhere. Hence the desire to have a one liner fix in the initialiser rather than reimplement all the associated methods.
jlast has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
<withnale_>
Personally, I think I've described it pretty well. No worries. I can live with the workaround. Just thought there would be an easy method call that gave me the name of the actual class the methods was in rather than the base class.
<withnale_>
nvm!
wallerdev has quit [Quit: wallerdev]
SixiS has quit [Quit: SixiS]
starfox_sf has joined #ruby
iMe has joined #ruby
Jetchisel has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
lolmaus has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
lolmaus has quit [Client Quit]
starfox_sf has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
sevenseacat has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
joufflu has quit [Quit: Peace]
sieve has quit [Quit: Leaving.]
FooMunki_ has joined #ruby
<zenspider>
include Enumerable doesn't seem to define #to_a if there is one in the ancestry? or am I misinterpreting? How do I make this work? https://gist.github.com/839ca494cfbd65bddd20
<arup_r>
withnale_: I just joined.. can you tell me what you are looking for? And avoid people who will demotivate you..
<zenspider>
I'm looking at enum.c and there's nothing special about the method
tkuchiki has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
<arup_r>
>> class A; def meth; 12 ;end;end ; A.new.method(:meth).owner
<shevy>
now I begin to understand why "rescue Exception" may instead be used ;)
<shevy>
also got two more to add to that list!
<shevy>
Zlib::BufError
<shevy>
OpenURI::HTTPError
last_staff has quit [Client Quit]
<Timgauthier>
shevy did you get my ping the other day?
<shevy>
especially that zlib error confuses me, the others at least seem related to network-connection
<shevy>
Timgauthier the php horror link?
<Timgauthier>
ya
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
yeah you make me sad
centrx has joined #ruby
<shevy>
but at least you are married so that makes me happy
<certainty>
shevy: gzip compression in http?
<shevy>
certainty oh that can be, interesting
<shevy>
certainty I don't trust my computer
<certainty>
:)
<certainty>
the question is which exceptions are you willing to handle at the level you're looking at
Soda has joined #ruby
<certainty>
and able to handle
<certainty>
in a meaningful way
<shevy>
hmm. that script checks a remote homepage for activity. as in, which users logged in. This dataset can then be lateron demonstrated to see peak activity per day and such
ArchRogem has quit [Remote host closed the connection]
madhatter has quit [Ping timeout: 246 seconds]
ArchRogem has joined #ruby
<ddv>
shevy: a lot of different exceptions can be thrown with networking errors, I gave up and used StandardError
<shevy>
hehe
<shevy>
hmm. StandardError is better than Exception in this case?
<ddv>
shevy: never use Exception directly
<shevy>
I mean, I now have 5 different exceptions ... I can understand that different errors may require different responses, but yeah... I am tempted to replace those 5 different lines just with one rescue instead
__chris has quit [Quit: This computer has gone to sleep]
<shevy>
I don't think I have used StandardError before
coinrookie has joined #ruby
<waxjar>
rescue from StandardError, if you rescue from exception you'll catch things you can't handle
mxrguspxrt has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
<waxjar>
like signal exceptions, parse errors, etc.
rapind has joined #ruby
Timgauthier has joined #ruby
<djellemah>
shevy: this is a legal rescue clause: rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, Errno::ENETUNREACH, Zlib::BufError, OpenURI::HTTPError
<certainty>
+1 for StandardError
Timgauthier has quit [Max SendQ exceeded]
mxrguspxrt has quit [Remote host closed the connection]
cpt_yossarian has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
Timgauthier has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
mxrguspxrt has joined #ruby
rapind has quit [Client Quit]
rapind has joined #ruby
<ddv>
djellemah: it will throw even more exceptions, trust me
<shevy>
djellemah oh I know that you can stack them; the problem is, what do you report to the user? 5 different reasons in detail?
codecop has joined #ruby
rapind has quit [Client Quit]
KC9YDN has quit [Ping timeout: 245 seconds]
sieve has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
mxrguspxrt has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 246 seconds]
iMe has quit [Ping timeout: 246 seconds]
KC9YDN has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
nolic has joined #ruby
shum has joined #ruby
dblessing has joined #ruby
fantazo has quit [Quit: Verlassend]
sigurding has joined #ruby
crome has quit [Quit: leaving]
iMe has joined #ruby
jimms has joined #ruby
siso has quit [Read error: Connection reset by peer]
tier has joined #ruby
<ddv>
shevy: report 1 reason, networking error/failure bla bla, for you the developer maybe more specific errors
blackmesa has joined #ruby
<ddv>
shevy: service not available, try again later or something like that?
<ddv>
if problem persists contact shevy <3
mxrguspxrt has joined #ruby
BTRE has quit [Remote host closed the connection]
ismaelga has joined #ruby
<certainty>
shevy: generally (if applicable) it's good to distinguish 3 types of consumers for error messages. you have to adjust the content accordingly, those are 1) enduser 2) administrator 3) developer
<certainty>
they all demand different details
m8 has quit [Quit: Sto andando via]
BTRE has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
joonty has joined #ruby
javaserver has joined #ruby
blizzy has joined #ruby
sameerynho has joined #ruby
javaserver has quit [Remote host closed the connection]
bruno- has joined #ruby
ismaelga has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 264 seconds]
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
tier_ has joined #ruby
tier has quit [Ping timeout: 245 seconds]
arup_r has quit []
chthon has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<djellemah>
shevy: Hash of exception class to user-friendly error message, or a case inside the rescue. And then re-raise.
mxrguspxrt has joined #ruby
jlast has joined #ruby
bunbury has joined #ruby
bruno- has joined #ruby
Takle has joined #ruby
tier_ has quit [Remote host closed the connection]
tier has joined #ruby
startupality has quit [Read error: No route to host]
brb3 has joined #ruby
mostlybadfly has joined #ruby
joonty has quit [Quit: joonty]
jlast has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
oleo has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
jlast has joined #ruby
craigp has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sieve>
jhass: Im struggling to find an example of this on the google
bruno- has joined #ruby
mathie has joined #ruby
<jhass>
sieve: my example was not enough?
ghostlines has quit [Ping timeout: 246 seconds]
epochwolf has quit [Excess Flood]
<jhass>
try docs for Kernel#system, Kernel#` and Processs::Status then
artgoeshere has joined #ruby
epochwolf has joined #ruby
<bradland>
sieve: are you talking about docs for the global $? or just examples in general?
pandaant has joined #ruby
<bradland>
i'm not sure if this is the definitive name, but when i'm looking for info on Ruby's $ variables, I google "ruby special globals" (sans quotes)
terlar has joined #ruby
<sieve>
bradland: Examples of how I can capture the exitcode of a command that is being run in the script and then make that the exitcode of the script.
<sieve>
bradland: so we can make a curl wrapper script for monitoring applications
DaniG2k has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
<sieve>
bradland: exit $?.exitstatus
<jhass>
exit $?.exitcode
<jhass>
oh status :P
FooMunki_ has quit [Quit: FooMunki_]
mitchellhenke has joined #ruby
<jhass>
I can never remember
mitchellhenke has quit [Client Quit]
<sieve>
jhass: both exitstatus and exitcode give me : metrics-curl.rb:74: syntax error, unexpected tIDENTIFIER, expecting end-of-input
DouweM has joined #ruby
<jhass>
yeah
bruno- has quit [Ping timeout: 246 seconds]
<bradland>
damn, yeah
<jhass>
you're probably still doing $.
<jhass>
the variable is called $?, not $
<bradland>
one of the easiest ways to find this kind of thing out is to fire up a pry session
<bradland>
ls $?
ych4k3r has joined #ruby
startupality has joined #ruby
<sieve>
jhass: you are wise
connor_goodwolf has quit [Ping timeout: 255 seconds]
<sieve>
jhass: I was missing the question mark
<sieve>
jhass: but now I have "metrics-curl.rb:74:in `<main>': undefined method `exitstatus' for "$":String (NoMethodError)"
<jhass>
was it exitcode then?
<jhass>
check Process::Status for a more reliable resource on the names there ;P
<sieve>
and see error: metrics-curl.rb:74:in `<main>': undefined method `exitstatus' for nil:NilClass (NoMethodError)
<jhass>
well, reading $? and then writing $. still doing it after being pointed out it's $? not $ and then after being pointed out again writing ?$ instead, not sure how that's unique to ruby tbh
terlar has joined #ruby
<sieve>
jhass, sorry, I was flustered
<strixd>
lol
* sieve
takes a cup of camomile tea
AlexRussia has joined #ruby
<jhass>
so, nil means it was reset in the mean time
<jhass>
or the command wasn't called yet when it reaches your code
<jhass>
since that's in a class I guess the later
<jhass>
(I don't know sensu)
bruno- has quit [Ping timeout: 246 seconds]
<sieve>
Ah, so this should be in the class then with the output bit. ok, that makes sense
serivich has joined #ruby
senayar_ has joined #ruby
<bradland>
sieve: fwiw, if i'm writing full blown classes as wrappers for shell utilities, i tend to use open3
paulfm has joined #ruby
piotrj has quit [Remote host closed the connection]
<bradland>
globals are fine for scripts, but open3 (and friends) provide a lot more fine grained control over what is captured and where it is stored
piotrj has joined #ruby
<sieve>
bradland. Ill keep an eye
yeticry has quit [Ping timeout: 252 seconds]
<sieve>
jhass: thanks for your patience!
pierre1_ has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
jerius has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
yeticry has joined #ruby
<alex88>
joast: inspect worked, however it also adds double quotes around the string, another solution? use a regex and replace \n with \\n?
arez has joined #ruby
zachrab has joined #ruby
<Timgauthier>
why /n ?
apurcell has joined #ruby
<alex88>
Timgauthier: /n?
<arez>
is there a way to replace multiple characters and not do gsub().gsub().gsub()
<Timgauthier>
\n
<Timgauthier>
i suck at keyboard
gr33n7007h has joined #ruby
<alex88>
Timgauthier: since I want the string to be in one line and with \n escaped instead of actual newlines
<Timgauthier>
i gud wit maus
<Timgauthier>
why not add the \n programattically?
<Timgauthier>
i didn't read everything
iwishiwerearobot has quit [Ping timeout: 255 seconds]
<jhass>
arez: if it's single characters, check String#tr
<alex88>
since dotenv parses VAR: "\n" in some way and VAR: \n in another
<shevy>
arez you could perhaps use an array
<shevy>
%w( all patterns to get rid if ).each
<shevy>
or a hash, with key -> value connotation to apply the pattern you desire
starfox_sf has joined #ruby
artgoeshere has quit [Ping timeout: 250 seconds]
<jhass>
arez: if it's not single characters, there are other methods and ways to call gsub, but you would need to be a bit more detailed
epochwolf has quit [Excess Flood]
<arez>
jhass: no thx it worked
hostess has quit [Quit: No Ping reply in 180 seconds.]
epochwolf has joined #ruby
mjulian has quit [Ping timeout: 244 seconds]
tunaCanBruh has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
DouweM has quit [Quit: Leaving...]
joonty has quit [Quit: joonty]
fantazo has joined #ruby
artgoeshere has joined #ruby
jimms has quit [Remote host closed the connection]
hostess has joined #ruby
jen__ has joined #ruby
<jhass>
alex88: curious, how does it parse it differently?
timonv has joined #ruby
<jen__>
Can anyone point to reference on how to install Ruby on my server? I need to do bundle exec ruby
<jhass>
jen__: there are a myriad of ways
starfox_sf has quit [Ping timeout: 252 seconds]
<jhass>
what's your distribution?
<roolo>
jen__: Tell us something about your server
<jhass>
and what do you need it for?
Morkel has quit [Quit: Morkel]
<alex88>
jhass: seems that without quotes, it replaces \n with \\n
apurcell has quit [Ping timeout: 246 seconds]
<jhass>
and yo want that?
<alex88>
in the ENV variable, and so settingslogic gem picks it up with the \n correctly
pierre1_ has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
<alex88>
jhass: the dotenv file is generated with the erb thing that I was talking it before
<roolo>
jen__: Check file Gemfile if there is something about some particular Ruby version
<alex88>
so doing <%= @var.inspect %> doesn't work as it outputs \n as char, but it also wrap things around quotes
tunaCanBruh has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
sameerynho has quit [Quit: Leaving]
piotrj has quit [Remote host closed the connection]
ismaelga has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
jimms has joined #ruby
Timgauthier has joined #ruby
<alex88>
jhass: ended up using value.split("\n").join('\n')
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
<jhass>
avril14th: that does a lot more than just that though
marr has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
ta has quit [Remote host closed the connection]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
Guest67070 has quit [Changing host]
Guest67070 has joined #ruby
Guest67070 is now known as daynaskully
mathie has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
blackmesa has joined #ruby
<jhass>
jen__: that's no problem, just answer the questions when you have time
yfeldblum has joined #ruby
Takle has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
crazydiamond has quit [Ping timeout: 250 seconds]
Timgauthier has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
vjt has joined #ruby
<jen__>
jhass: we’re trying to install a bundler and it’s going to take a bit more than IRC. I’m afraid I’ll need to hire someone to get this ruby script running. Anyone interested in doing this for me, please PM me.
<jhass>
jen__: it's no open source app you're installing?
Jinxed- has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<jen__>
it’s a Google Adwords API used for offline tracking
<Jinxed->
Does ruby have an easy way to communicate with a serial ASCII device?
<jhass>
jen__: doesn't answer the question though
fabrice31 has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
<jhass>
Jinxed-: nothing in stdlib I'm aware of, but there should be several gems iirc
ponga has joined #ruby
ponga has quit [Remote host closed the connection]
avril14th has quit [Remote host closed the connection]
fryguy9 has joined #ruby
senayar_ has quit [Remote host closed the connection]
vt102 has joined #ruby
devdazed has joined #ruby
hamakn_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 256 seconds]
rubytor has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mathie has joined #ruby
mathie has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 264 seconds]
yokel_ has quit [Quit: leaving]
Megtastique has joined #ruby
iMe has joined #ruby
<shevy>
Jinxed- I guess there is ports-related where you can grab or send raw characters
<shevy>
I also think there is something in stdlib but I don't remember the name. I remember reading it in the old pickaxe book
jefus has quit [Ping timeout: 252 seconds]
<arez>
can I use interfaces or abstract classes in ruby or other kinds to force methods on classes?
it0a has joined #ruby
<apeiros_>
arez: you can use respond_to?, but it's generally not done.
tunaCanBruh has joined #ruby
startupality has quit [Quit: startupality]
ArchRogem has quit [Read error: Connection reset by peer]
senayar has joined #ruby
triple_b has joined #ruby
fryguy91 has joined #ruby
aapole has joined #ruby
skj3gg has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
zyxelthrone has joined #ruby
karmatr0n has joined #ruby
fryguy9 has quit [Ping timeout: 250 seconds]
mitchellhenke has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty>
arez: you mean like template methods?
<arez>
certainty: hmm, like interfaces in java
<arez>
I wanna type check if some object is an abstract from e.g. a Car Class
<certainty>
arez: well you can not force it at the type level or something but you can create a base-class that implements the methods that define your interface with raise NotImplementedError
n008f4g_ has joined #ruby
<certainty>
not exactly pretty
mitchellhenke has quit [Client Quit]
craigp has quit [Remote host closed the connection]
oo_ has joined #ruby
<certainty>
but as apeiros_ said, in ruby we're not so much concerned about types. we just care about how a a thing quacks (which methods it responds to)
<arez>
certainty: yes, I saw that on stackoverlow, but it's really not pretty
jonr22 has quit [Remote host closed the connection]
<arez>
certainty: kay, so I think I will use respond_to
<jhass>
arez: try not doing it at all for a while
livathinos has quit [Read error: Connection reset by peer]
<jhass>
just assume whatever you have responds to the method
livathin_ has joined #ruby
mitchellhenke has joined #ruby
<jhass>
let it run into the NoMethodError's
speakingcode has joined #ruby
<certainty>
the rationale being that you most likely will raise an error that says the same if you implement it in the case of respond_to? returning false
apurcell has joined #ruby
<certainty>
(i suspect)
agrinb has joined #ruby
Jinxed- has quit [Ping timeout: 246 seconds]
ismaelga has joined #ruby
<arez>
certainty: I think I go with the respond_to so I can make sure it's implemented, thx guys
bruno- has joined #ruby
jonr22 has joined #ruby
mitchell_ has joined #ruby
bMalum has quit [Quit: bMalum]
lioninawhat has quit [Remote host closed the connection]
__chris has joined #ruby
adriancb has joined #ruby
davzie has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
<jhass>
arez: really, just try it for a while without
<certainty>
chicken typing ftw :D
phutchins has joined #ruby
<jhass>
you only save effort for now and if you really don't like that can just spend that effort later then
<jhass>
' is too in \W and no reason to list it twice
apurcell has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
kallisti5 has quit [Read error: Connection reset by peer]
hollywood has joined #ruby
<jheg>
great stuff thanks
agrinb has quit [Remote host closed the connection]
claw has joined #ruby
senayar has quit [Remote host closed the connection]
banister has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
qba73 has quit [Remote host closed the connection]
swgillespie has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
senayar has joined #ruby
Timgauthier has joined #ruby
<ghormoon>
hi, is it normal, that webrick server doesn't react to sigterm? am I doing something wrong or should I just always sigkill it?
craigp has joined #ruby
senayar has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
chrishough has joined #ruby
psy_ has joined #ruby
kirun has joined #ruby
Lewix has joined #ruby
senayar has joined #ruby
craigp has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
craigp has joined #ruby
senayar has quit [Remote host closed the connection]
swgillespie has quit [Client Quit]
apurcell has quit [Ping timeout: 252 seconds]
Timgauthier has quit [Max SendQ exceeded]
<shevy>
ghormoon it reacts to sigterm here just fine I think
<shevy>
sigterm is ctrl-c?
senayar_ has joined #ruby
aclearman037 has joined #ruby
Timgauthier has joined #ruby
joonty has quit [Quit: joonty]
<shevy>
oh wait
<shevy>
I use sigint
<shevy>
Signal.trap('SIGINT') { exit }
<shevy>
how do you trigger sigterm?
senayar_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<jhass>
plain kill / killall / pkill
senayar_ has joined #ruby
<ghormoon>
yup
bMalum has joined #ruby
<jhass>
for example Ctrl+Z, kill %1
<ghormoon>
neither kill or stopping the service works (well, stopping the service works as after timeout it sigkills, but that's not correct :))
geefolk has quit [Quit: Leaving]
ta has joined #ruby
<jen__>
roolo:
<jen__>
hi
geefolk has joined #ruby
<roolo>
jen__: Hi
nobitanobi has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
Timgauthier is now known as timgauthier_away
DonOtreply has quit [Quit: DonOtreply]
timgauthier_away has quit [Max SendQ exceeded]
<jhass>
ghormoon: maybe just use another appserver :P
jlast has joined #ruby
<jhass>
unicorn and puma can be recommended
zachrab has joined #ruby
aclearman037 has quit [Quit: I'm out!]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 265 seconds]
Kricir_ has joined #ruby
Dopagod has joined #ruby
Akagi201_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
slester has joined #ruby
ta has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Morkel has joined #ruby
dipnlik has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
zachrab has quit [Ping timeout: 245 seconds]
fumk has joined #ruby
Jackneill has joined #ruby
<dipnlik>
hi. i have a gem that has really big fixtures (400mb+ currently). one of the consequences is that when I bundle other projects that include this gem, it takes a long time downloading these unneeded fixtures. any ideas to solve this issue?
<jhass>
dipnlik: include a rake task that downloads them, but don't bundle them into the gem
triple_b has joined #ruby
iwishiwerearobot has joined #ruby
<jhass>
dipnlik: and maybe make it a file task and have your test runner task have that as a requirement
tunaCanBruh has joined #ruby
_blizzy_ has joined #ruby
ych4k3r_ has joined #ruby
perturbation has joined #ruby
last_staff has joined #ruby
chishiki has joined #ruby
Kamilion has joined #ruby
robert_ has joined #ruby
Mia has joined #ruby
karmatr0n has joined #ruby
davedev24_ has joined #ruby
rsavage has joined #ruby
lanemeyer has joined #ruby
SirFunk has joined #ruby
rfi_ has joined #ruby
Silex has joined #ruby
arez has joined #ruby
ahuman has joined #ruby
speaking1ode has joined #ruby
gremax has joined #ruby
odigity has joined #ruby
RTG` has joined #ruby
strsep has joined #ruby
voronika has joined #ruby
amystephen has joined #ruby
sivoais has joined #ruby
FifthWall has joined #ruby
graft has joined #ruby
Beoran_ has joined #ruby
MiracleBlue has joined #ruby
gut has joined #ruby
jayne_ has joined #ruby
sssilver| has joined #ruby
apeiros_ has joined #ruby
nonnatus has joined #ruby
Igneous has joined #ruby
malcolmva has joined #ruby
razieliyo has joined #ruby
ghormoon has joined #ruby
bigkevmcd has joined #ruby
jso has joined #ruby
mahlon has joined #ruby
robustus has joined #ruby
b1nd has joined #ruby
David_Miller has joined #ruby
skinny_much has joined #ruby
irk has joined #ruby
AlyssaDaemon has joined #ruby
jtperreault has joined #ruby
dandrade has joined #ruby
Karunamon has joined #ruby
mclee_ has joined #ruby
pizzaops has joined #ruby
zalmoxes has joined #ruby
dredozubov has joined #ruby
sfiggins has joined #ruby
coco_ has joined #ruby
clocKwize has joined #ruby
phreax_ has joined #ruby
IceDragon has joined #ruby
SHyx0rmZ has joined #ruby
DrShoggoth has joined #ruby
timmow_ has joined #ruby
monsieurp has joined #ruby
xtsee has joined #ruby
yasu has joined #ruby
musl has joined #ruby
mhenrixon has joined #ruby
seanmarcia has joined #ruby
zewelor has joined #ruby
rtl_ has joined #ruby
tommylommykins has joined #ruby
go|dfish has joined #ruby
genpaku has joined #ruby
Jamo has joined #ruby
hasB4K has joined #ruby
marahin has joined #ruby
FooMunki has quit [Remote host closed the connection]
kaspertidemann has quit []
__chris has quit [Ping timeout: 256 seconds]
sivoais has quit [Max SendQ exceeded]
genpaku has quit [Max SendQ exceeded]
<jhass>
honestly, I probably wouldn't have put them into the repository
sivoais has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
genpaku has joined #ruby
<_blizzy_>
well.
devdazed_ has joined #ruby
Akagi201 has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
__chris has joined #ruby
<dipnlik>
jhass: they were put in the repo because they weren’t so big, but now we need to remove them
<jhass>
well, git never forgets, so that part is probably lost
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass>
but for the .gem I'd go the rake task to download it way
psy_ has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 246 seconds]
<theRoUS>
i'm building a gem and all the documentation is in markdown for yard. when i install it, however, 'gem install' does *not* say anything about building the yri docs. is there a step i'm missing somewhere? haven't found clews online yet..
<theRoUS>
thanks!
<dipnlik>
jhass: good idea, definitely. will look into that. thanks!
<dipnlik>
jhass: would you store them in S3?
geefolk has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<jhass>
if you have no other own or rented hardware where it fits, that's a good option, yeah
iMe has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
starfox_sf has joined #ruby
iMe has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
<jhass>
theRoUS: no real need to build yard docs on gem install, just gem install yard and yard server -g
athan has quit [Ping timeout: 246 seconds]
<theRoUS>
jhass: mostly curious because i see *other* gems doing it on install.
mmoretti has quit [Quit: Leaving...]
havenwood has joined #ruby
mikecmpbll has joined #ruby
starfox_sf has quit [Ping timeout: 255 seconds]
mkaesz has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL>
Are there any way to let ruby sleep() sleep forever but terminate cleanly when Ctrl+C is sent?
<Fire-Dragon-DoL>
terminate cleanly: not raise
Pharaoh2 has quit [Max SendQ exceeded]
maximski has quit []
Dopagod has quit [Quit: WeeChat 0.4.1]
<yxhuvud>
jheg: I don't see how downcase could return nil, so I don't see how that is possible unless someone has defined method_missing on nil or some other atrocity. What can return nil however is gsub!, but that would usually emit a stack trace and not a nil.
Alina-malina has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
Dopagod has joined #ruby
bMalum has quit [Quit: bMalum]
<jheg>
hmm thanks yxhuvud i’ll look into it further
ponga has quit [Client Quit]
craigp_ has joined #ruby
adriancb has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 252 seconds]
dopie has quit [Remote host closed the connection]
monod has joined #ruby
jheg has quit [Quit: jheg]
Alina-malina has joined #ruby
mary5030 has joined #ruby
bMalum has joined #ruby
awerush has quit [Ping timeout: 252 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__chris has quit [Ping timeout: 252 seconds]
__chris has joined #ruby
nobitanobi has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
KC9YDN has quit [Ping timeout: 245 seconds]
KC9YDN has joined #ruby
chthon has quit [Ping timeout: 256 seconds]
bMalum has quit [Ping timeout: 252 seconds]
<jhass>
dipnlik: oh, you should tell if you crosspost
__chris has quit [Client Quit]
<dipnlik>
jhass: didn’t know that rule, sorry
iMe has quit [Ping timeout: 245 seconds]
<jhass>
at least inform other channels of provided solutions ;)
crazydiamond has quit [Remote host closed the connection]
__chris has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
iMe has joined #ruby
Dopagod has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
triple_b has quit [Ping timeout: 244 seconds]
vire has joined #ruby
wallerdev has joined #ruby
phutchins has joined #ruby
bootstrappm has joined #ruby
Takle has quit [Remote host closed the connection]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
apurcell has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
n008f4g_ has joined #ruby
fryguy9 has joined #ruby
__chris has quit [Quit: This computer has gone to sleep]
DEA7TH has quit [Ping timeout: 265 seconds]
sigurding has quit [Client Quit]
fryguy91 has quit [Ping timeout: 264 seconds]
paradoja has quit [Ping timeout: 256 seconds]
turtil has joined #ruby
jobewan has joined #ruby
anarang has quit [Quit: Leaving]
psy_ has joined #ruby
Takle has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
blackmesa has joined #ruby
hesco has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
DEA7TH has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
hesco has joined #ruby
iamjarvo has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
starfox_sf has joined #ruby
tesuji_ has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
Eiam has joined #ruby
shadoi has joined #ruby
DrShoggoth has quit [Quit: Leaving]
__chris has joined #ruby
garethrees has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
dys has joined #ruby
rap has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 255 seconds]
iMe has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
svoop has joined #ruby
quazimod1 has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
<shevy>
we want to learn too!
jlast has quit [Ping timeout: 265 seconds]
jack_rabbit has quit [Ping timeout: 250 seconds]
Freelusion has joined #ruby
jlast has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy__ has joined #ruby
psy__ has quit [Max SendQ exceeded]
DonOtreply has joined #ruby
psy__ has joined #ruby
davidhq has joined #ruby
Freelusion has quit [Client Quit]
Freelusion has joined #ruby
jonr22 has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
Freelusion has quit [Client Quit]
roolo has quit [Remote host closed the connection]
Freelusion has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
havenwood has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
roolo has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
havenwood has joined #ruby
dopie has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Freelusion has quit [Client Quit]
dixie` has joined #ruby
dopie has joined #ruby
phoo1234567 has joined #ruby
Freelusion has joined #ruby
m8 has joined #ruby
Crisix has joined #ruby
melmouss has joined #ruby
dixie` has quit [Remote host closed the connection]
nobitanobi has joined #ruby
melmouss has quit [Max SendQ exceeded]
daynaskully has quit [Ping timeout: 256 seconds]
Freelusion has quit [Client Quit]
DonOtreply has quit [Quit: DonOtreply]
dixie__ has joined #ruby
Freelusion has joined #ruby
enebo has quit [Quit: enebo]
Freelusion has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
mathie has joined #ruby
hesco has quit [Read error: Connection reset by peer]
davejacobs has joined #ruby
Azure has joined #ruby
Deithrian has joined #ruby
aphprentice has quit [Remote host closed the connection]
<odigity>
I just called .last on an exclusive date range and got the last date, even though it should have been the day before that, because it's an exclusive range
<odigity>
.max does return the correct date -- the one I expected .last to return
craigp_ has quit [Remote host closed the connection]
<odigity>
havenwood, that's really ugly. but thanks for the tip. I just tested it, and I can achieve the result I want with r.last(1)[0]
<odigity>
havenwood, I'm stuck in a terrible position. I've decided to use the postgres daterange type to represent a membership period, which can be unbounded for a lifetime membership, which I'm representing with the infinity value. however, postgres only supports date ranges with infinity ends if the range is exclusive on the upper bound. which then gets loaded by rails, and then I run into the ruby Range problem in the opposite direction
Synthead has joined #ruby
DouweM has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
aapole has joined #ruby
<havenwood>
odigity: does lifetime membership support immortals? that could get expensive.
mitchellhenke has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
ghr has joined #ruby
jaequery has joined #ruby
mitchellhenke has joined #ruby
<odigity>
havenwood, :)
dmbennett has quit [Remote host closed the connection]
<pipework>
havenwood: What if they heroku'd that shit? Made it like a gym membership, where if you don't use it, it doesn't cause problems for the gym?
<havenwood>
odigity: 120 years is a safe bet for 100% mortality, at least these days
<eam>
it's super odd that postgres would support daterange intervals of that length
<eam>
seeing as how they're unmeasurable
mkaesz has quit [Read error: No route to host]
craigp has joined #ruby
pengin has quit [Remote host closed the connection]
dmbennett has joined #ruby
__chris has quit [Read error: Connection reset by peer]
<odigity>
havenwood, called .last(1) on a range with infinity crashes ruby :)
DouweM has quit [Read error: Connection reset by peer]
<odigity>
so annoying!
mkaesz has joined #ruby
zachrab has joined #ruby
shredding has quit [Quit: shredding]
svoop has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riceandbeans has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
DouweM has joined #ruby
triple_b has joined #ruby
<odigity>
havenwood, I'm going to have to monkey-patch in my own method that checks for infinty
ghr has quit [Ping timeout: 252 seconds]
<pipework>
odigity: Just reverse the range and call .first. :P
<havenwood>
pipework: hehe
<odigity>
pipework, I assume you're joking, so I don't think that can work
workmad3 has joined #ruby
Kricir_ has quit [Remote host closed the connection]
<pipework>
odigity: Yes, I'm joking.
dumdedum has quit [Quit: foo]
alexherbo2 has quit [Ping timeout: 256 seconds]
<odigity>
this is really terrible. I don't understand why no one else is stumbling on this
iMe has quit [Ping timeout: 250 seconds]
ItSANgo_ has quit [Quit: Leaving...]
<pipework>
They usually don't have problems with infinite ranges and trying to get the last item in them?
<odigity>
eam, I think the Range object is supposed to be agnostic to the type of range, and just use the <=> and succ methods. it knows no other way
ghr has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
Crazy_Atheist has quit [Ping timeout: 250 seconds]
<eam>
odigity: interally it constructs an Array when asked for the last element
<weaksauce>
eam it's like writing bubble sort... don't
DouweM has joined #ruby
<odigity>
eam, so basically, Ruby doesn't have what I need yet. I need to moneypatch in my own pair of methods for getting first/last dates of a date range with support for infinity
tunaCanBruh has joined #ruby
Rayford has joined #ruby
CustosL1men has joined #ruby
<pipework>
odigity: Rather than monkeypatch, why not just not monkeypatch and just introduce an object?
<eam>
odigity: or just don't deal with infinite time periods
<eam>
the time related structures will be rendered meaningless even just a few hundred years out due to definition issues
shredding has joined #ruby
<pipework>
Or alternately, don't deal with getting the last of ranges.
<eam>
not to mention, lifetime memberships won't ever last that long :D
<odigity>
I obviously wouldn't be doing this if my application didn't necessitate infinity membership periods and accessing the last date
sinkensabe has joined #ruby
<havenwood>
odigity: 120 years ;)
jlast has joined #ruby
<eam>
120 we can beat
<odigity>
pipework, if I introduced a new object, I'd have to override Rails to use it when loading and storing that field
<eam>
1200 oughta do it though
<odigity>
magic values are bad design. infinity is the correct way to express the data
<pipework>
odigity: Or you'd not have to override anything and provide your own object somewhere without overriding things.
<eam>
odigity: the thing is there's not really any such concept
<pipework>
Most of the time, there's a way to do that.
<eam>
because time itself has a limited definition
dereck has joined #ruby
<pipework>
eam: It's the lifetime of the universe.
<eam>
it's not though
dereck is now known as jefus
<eam>
and there are periods in between which aren't yet defined
<havenwood>
eam: If you have to be 18 to enter into the contract, 120 gives you age 138. Of course not future-proof but nobody is quite that old right now.
<eam>
havenwood: we don't know the time 120 years into the future
<eam>
it's currently undefined
<pipework>
Maybe consider either extending a class, or placing your own object in between what you get from rails and your application code that tries to call #last on infinite ranges.
<eam>
havenwood: 120 years from now UTC may differ by up to 5 minutes :)
<havenwood>
eam: If we achieve biological immortality, I'd expect the courts would modify lifetime warranties to something somewhat shorter.
enebo has joined #ruby
<pipework>
So the customer will be upset that their 120 year membership will be 5 minutes short?
<havenwood>
eam: Good point!
<eam>
pipework: 120 years is probably no big deal, but infinity means an infinite amount of skew :)
<pipework>
eam: Sounds like an infinite amount of rather unnecessary time wasted on discussing a pretty simple problem to fix either way.
DouweM has quit [Read error: Connection reset by peer]
<eam>
not to mention we don't really have any rules for adjusting solar time if either the earth or the sun cease to exist
<eam>
since that's what we sync UTC relative to
iwishiwerearobot has joined #ruby
<shevy>
eam is hyper-active today
<pipework>
I'm not sure anyone will care in that case.
jlast has quit [Ping timeout: 250 seconds]
<eam>
I just ate a huge bowl of ice cream and fudge
<shevy>
we could move to other suns!
siso has joined #ruby
tuxdna has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
<shevy>
don't tell me all the energy is just going to dissipate away
<pipework>
shevy - star snuggler extraordinaire!
<shevy>
yay
<shevy>
let's reboot life
<havenwood>
and when bulge dragging tidally locks the earth to the moon...
<eam>
pipework: ultimately I'm just forming an argument that "a long ways out" is just as valid as "infinity"
<eam>
just add a thousand years
<havenwood>
no more spinny
leafybasil has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
alexherbo2 has joined #ruby
pu22l3r has joined #ruby
jlast has joined #ruby
<pipework>
eam: What if a lifetime doesn't start today, but started infinitely prior to now?
<pipework>
Shouldn't the range be -Infinity..Infinity ?
<shevy>
cells originate from cells!
<shevy>
so there must have always been cells!!!
<pipework>
shevy: Cell phones aren't that old though.
<shevy>
see this part I don't understand
<eam>
pipework: the way we measure time is relative to our current time, so we can't accurately enumerate values after a certain point
Hanmac has quit [Ping timeout: 250 seconds]
<shevy>
what is the difference between normal Infinity and -Infinity
<pipework>
eam: My lifetime started before now.
aclearma_ has joined #ruby
<pipework>
shevy: a sign
<pipework>
One keystroke.
aclearma_ has quit [Client Quit]
<shevy>
yeah
<shevy>
but aside from that
<pipework>
One heads in one direction of a one-dimensional plane infinitely, the other in the other?
siso has quit [Client Quit]
<shevy>
I never understood the difference between 0/0 and 1/0
yellowgh0st has joined #ruby
<eam>
ok uh, while we were talking I left (0..Float::INFINITY).to_a running and damn near crashed my laptop
Rayford has quit [Quit: Rayford]
<shevy>
so now we know
<pipework>
eam: So don't enumerate, silly.
<shevy>
chuck norris > eam's laptop
iwishiwerearobot has quit [Ping timeout: 252 seconds]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
jen__ has left #ruby [#ruby]
jen__ has joined #ruby
<centrx>
SSLv3 disabled
Morkel has quit [Quit: Morkel]
<jen__>
sorry, I just lost connection…did someone say something?
iceden has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
__chris has quit [Quit: Leaving]
<centrx>
jen__, One possibility is that your old version of Ruby (1.8) is trying to connect with SSLv3 but SSLv3 is disabled on the site you are trying to connect to
skj3gg has joined #ruby
<jen__>
ah.. centrx
<jen__>
let me check on this.
<jen__>
would this be in WHM?
<centrx>
Or possibly you need to setup Faraday to handle the site's SSL certificates
fryguy9 has quit [Quit: Leaving.]
<jen__>
is there a way to disable cert checking for this connection?
<jen__>
we have SSLs installed for specific domains
adriancb has joined #ruby
sevvie has joined #ruby
ellisTAA has joined #ruby
<centrx>
I don't know
<jen__>
this is a good start..centrx
<ellisTAA>
can someone take a look at this and tell me why it isn’t working?
<jhass>
ellisTAA: try to find variable names describing what the data represents
WildBamboo-Josh has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass>
jen__: that error says that the certificate of the host your script is connecting to couldn't be verified. That's either because Ruby (or more specifically the library making that http call) can't find your systems CA bundle or because it uses a self-signed or otherwise invalid certificate
Pharaoh2 has quit [Ping timeout: 255 seconds]
MasterPiece has quit [Quit: Bye!]
<jhass>
jen__: side not: Ruby 1.8.7 is EOL, there will be no updates for it, regular nor security wise
<jhass>
*note
User458764 has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<jen__>
we tried installing 2.2 but quite a bit of errors
<shevy>
try 2.1.5 :)
livathin_ has joined #ruby
oetjenj has quit [Client Quit]
livathin_ has quit [Client Quit]
tjohnson has joined #ruby
<jhass>
1.9.3 has no EOL date yet, so might be a compromise if it works there
<centrx>
jen__, You have to get off 1.8 sometimes and update the syntax/fix incompatibilities
<centrx>
jen__, Especially as you are doing networking things, it's a security risk
<jen__>
guys I know nothing of ruby...
<jhass>
oh wait, actually 1.9.3 will EOL this month
<jhass>
I thought I saw a news for it, but couldn't find it, thanks
<waxjar>
good to know :)
<nunayerBeezwax>
hey, have an ActiveRecord validations question... we want to write a custom error message, by writing on the model "validates :name, presence: { :message => 'custom message'}"... the "custom message" does display to the page, but ActiveRecord adds "Payments credit card Name" to the front of it, and i can't figure out how to kill that. i want to fully define the message, and not have ANY default stuff added... anybody?
jonathanwallace has quit [Ping timeout: 250 seconds]
ghostpl_ has joined #ruby
maximski has quit []
jonathanwallace has joined #ruby
CustosLimen has quit [Read error: Connection reset by peer]
blackmesa has quit [Client Quit]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
leafybasil has joined #ruby
blackmesa has joined #ruby
unreal_ is now known as unreal
markfletcher has joined #ruby
maximski has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbw_ has joined #ruby
<jen__>
trying to install ruby v 2.2.0 do I need to manually remove 1.8.7?
zachrab has joined #ruby
wallerdev has joined #ruby
<jen__>
sorry for these rather silly questions
jbw__ has quit [Ping timeout: 246 seconds]
jen__ has quit [Quit: jen__]
hollywood has quit [Quit: Leaving]
jheg has joined #ruby
cocotton has quit [Quit: Leaving...]
chrishough has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
bruno- has joined #ruby
goodenough has joined #ruby
shredding has joined #ruby
duncannz has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
wallerdev has quit [Quit: wallerdev]
raphaelss has quit [Quit: leaving]
shredding has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
wallerdev has joined #ruby
tvw has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
havenwood has quit [Remote host closed the connection]
C0deMaver1ck has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
timanema has joined #ruby
adriancb has quit [Remote host closed the connection]
jlast has joined #ruby
chrishough has joined #ruby
leat1 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
C0deMaver1ck has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 265 seconds]
ta has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
DadoCe has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 265 seconds]
hiyosi has joined #ruby
jlast has joined #ruby
monod has joined #ruby
Soda has joined #ruby
ta has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
timanema has quit [Quit: leaving]
jlast has quit [Ping timeout: 265 seconds]
C0deMaver1ck has quit [Quit: ZNC - 1.6.0 - http://znc.in]
C0deMaver1ck has joined #ruby
longfeet has joined #ruby
rsavage has quit [Remote host closed the connection]
CustosLimen has joined #ruby
kaspertidemann has joined #ruby
bodgix_wrk has left #ruby [#ruby]
lioninawhat has joined #ruby
perturbation has joined #ruby
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
claw has quit [Ping timeout: 245 seconds]
claw_ has joined #ruby
kaspergrubbe has quit [Client Quit]
kaspergrubbe has joined #ruby
li0ninawhat has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
_Andres has joined #ruby
gkra_ has joined #ruby
gkra_ is now known as gkra
markfletcher has left #ruby [#ruby]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
craigp has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 1.1.1]
lioninawhat has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
craigp has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
blackmesa has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
triple_b has joined #ruby
blackmesa has quit [Client Quit]
blackmesa has joined #ruby
vire has quit [Ping timeout: 240 seconds]
aclearman037 has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
craigp has quit [Ping timeout: 256 seconds]
diegoviola has quit [Remote host closed the connection]
spider-mario has joined #ruby
olivier_bK has joined #ruby
binary1985 has quit []
DouweM has joined #ruby
dblessing has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jespada has quit [Quit: Leaving]
perturbation has quit [Ping timeout: 252 seconds]
vire has joined #ruby
Megtastique has quit []
ecksit has joined #ruby
diegoviola has joined #ruby
defrang has joined #ruby
<ecksit>
hey, i am attempting to use an instance variable in order to create a connection and then reuse it - https://gist.github.com/jacobbednarz/6e714cbfc75995587b0b - however i cannot access `@client` from any other methods? can someone tell me why?
davejacobs has joined #ruby
davejacobs has quit [Remote host closed the connection]
davejacobs has joined #ruby
<crome>
ecksit: show some example code where you try to access it
<crome>
and the error you see
lolmaus has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<ecksit>
it doesn't error as such, it's just not returning the value i expect (which is the value from the build_connection method)
skj3gg has quit [Quit: ZZZzzz…]
<ecksit>
it is returning nil instead of that block value.
rvchangu- has quit [Read error: Connection reset by peer]
<crome>
put a debugger in there and see what that faraday block does
<ecksit>
it builds as expected
penguinpowernz has quit [Quit: Lost terminal]
decoponio has quit [Quit: Leaving...]
<crome>
interesting
<crome>
you assign @client twice but that's not the problem
workmad3 has joined #ruby
<ecksit>
oh of course. let me fix that
einarj has joined #ruby
<ecksit>
updated to remove the assignment in the initialise
mkaesz has quit [Ping timeout: 265 seconds]
<crome>
I would keep the assignment there and remove it from the method
<crome>
you pass in options anyway
<ecksit>
ok
zorak_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
Aswebb_ has joined #ruby
<crome>
I don't really see why the accessor would return nil, though
tvw has joined #ruby
starfox_sf has quit [Ping timeout: 246 seconds]
rvchangue has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<crome>
what do you see if you inspect the class instance?
Synthead has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 252 seconds]
<jen_>
I am a front end coder, this backend stuff is not for me!
triple_b has joined #ruby
russt has quit [Client Quit]
marr has joined #ruby
russt has joined #ruby
adriancb has quit [Remote host closed the connection]
<shevy>
this sounds strange
<shevy>
1.8.30
<shevy>
how can this be jen_
<shevy>
oh I see
<shevy>
you did not mean ruby
<shevy>
you meant "rubygems"
<havenwood>
jen_: RubyGems ships with Ruby but has a different version from Ruby. I think you're right though that you want RubyGems 1.8.X for Ruby 1.8, if you really must use Ruby 1.8 which is past End-of-Life.
dopiee has joined #ruby
einarj has quit [Remote host closed the connection]
<havenwood>
jen_: What do you get from the command line for: gem which rubygems
snath has joined #ruby
Rhainur has quit [Read error: Connection reset by peer]
jheg has quit [Ping timeout: 264 seconds]
Evan_ has quit [Ping timeout: 256 seconds]
bunbury has quit [Quit: No Ping reply in 180 seconds.]
kirun has quit [Quit: Client exiting]
bunbury has joined #ruby
Rhainur has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
Evan_ has joined #ruby
aef has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
arez has quit [Remote host closed the connection]
babykosh has joined #ruby
jaequery has joined #ruby
sambao21 has joined #ruby
jlast has joined #ruby
Deithrian_ has joined #ruby
tier has quit [Remote host closed the connection]
devdazed_ has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Client Quit]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedora_newb has joined #ruby
Deithrian has quit [Ping timeout: 244 seconds]
riotjone_ has joined #ruby
<fedora_newb>
http://pastebin.com/txKmXdkA I cant seem to install redis-dump and not sure what to do, new to ruby here :)
riotjones has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 252 seconds]
Deithrian_ has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
phutchins has joined #ruby
kaspertidemann has joined #ruby
kaspertidemann has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
TgMts has joined #ruby
mary5030 has quit [Remote host closed the connection]
zachrab has joined #ruby
versatiletech has quit [Quit: versatiletech]
workmad3 has quit [Quit: leaving]
jlast has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
<jen_>
hi havenwood I was on the phone. Let me check
<jen_>
I need someone to help me with this via TeamViewer.
<jen_>
pls PM me.
<jen_>
this is all over my head.
<jen_>
Never played with Ruby
<havenwood>
jen_: Oh dear. Okay, so the `~/.profile` file doesn't seem to be getting sourced (if you're needing to manually source it). So you can source it from a dotfile that is getting sourced (.bash_profile or .bashrc) or move it to one of those files.
<havenwood>
jen_: I'd suggest also asking in the #rvm channel.
hiyosi has joined #ruby
jottr has joined #ruby
Xiti` has joined #ruby
dmbennet_ has quit [Client Quit]
Tuxero has quit [Quit: Tuxero]
blackmesa has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ciao.]
Alina-malina has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Remote host closed the connection]