rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IrishGringo has quit [Ping timeout: 244 seconds]
<Ox0dea>
shevy: Could've been an accident, might've been a habit instilled by JavaScript use. That there's another === a few lines down makes the latter seem likely enough.
<Ox0dea>
#=== is the same as #== on most native classes, so no real harm done.
juanpablo____ has quit [Ping timeout: 240 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
techsethi has quit [Quit: techsethi]
leat has quit [Remote host closed the connection]
leat has joined #ruby
Guest39097 has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
benlovell has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
jesterfraud has joined #ruby
wldcordeiro__ has joined #ruby
freerobby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
benlovell has quit [Ping timeout: 240 seconds]
mamercad has joined #ruby
lxsameer has quit [Quit: Leaving]
scripore has joined #ruby
dvabr has quit [Ping timeout: 246 seconds]
dvabr has joined #ruby
opensource_ninja has quit [Remote host closed the connection]
Queeniebee has quit [Ping timeout: 244 seconds]
_lexjm has joined #ruby
apeiros has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
opensource_ninja has joined #ruby
oo_ has quit [Remote host closed the connection]
meatherly has quit []
zack6849 has quit [Remote host closed the connection]
Lucky__ has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
riotjones has joined #ruby
apeiros has joined #ruby
Musashi007 has joined #ruby
tmtwd has joined #ruby
wldcordeiro__ has joined #ruby
veduardo has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
Aswebb__ has joined #ruby
northfurr has quit [Quit: northfurr]
jenrzzz has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
dgarstang has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
wldcordeiro__ has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
dbussink has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
vinegar_strokes has joined #ruby
dbussink has joined #ruby
northfurr has joined #ruby
JoshGlzB_ has joined #ruby
JoshGlzB_ has quit [Remote host closed the connection]
wldcordeiro__ has quit [Remote host closed the connection]
damoncasale has quit [Ping timeout: 252 seconds]
techsethi has joined #ruby
oo_ has joined #ruby
bronson has joined #ruby
meatherly has joined #ruby
theery has joined #ruby
JoshGlzBrk has quit [Ping timeout: 272 seconds]
Guest39097 has joined #ruby
diego_ar has joined #ruby
northfurr has quit [Quit: northfurr]
DoctorMonocular has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
grenierm has joined #ruby
_lexjm has quit [Quit: zzz...]
meatherly has quit [Client Quit]
RegulationD has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
jcutrell has quit [Quit: jcutrell]
RegulationD has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
holmser has joined #ruby
holmser has quit [Client Quit]
grotewold has joined #ruby
wldcordeiro__ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
wldcordeiro__ has quit [Remote host closed the connection]
sysanthrope has quit [Quit: No Ping reply in 180 seconds.]
JoshGlzB_ has joined #ruby
JoshGlzBrk has quit [Ping timeout: 268 seconds]
<holmser>
I've got 2 arrays. ips[] contains ips, networks[] contains networks. I am wondering if there is a way to use a select statement to iterate through the networks to see if the ip is included in the range.
juanpablo____ has quit [Ping timeout: 252 seconds]
grotewold has quit [Client Quit]
mbff has joined #ruby
sysanthrope has joined #ruby
<Yzguy>
.has_key
<Yzguy>
networks.has_key(ip)
<Yzguy>
something like that
<Yzguy>
oh wait thats for hashes, my bad. but same idea
<holmser>
So I'm using IPAddr objects for both arrays
ghr has joined #ruby
dfinninger has joined #ruby
<Yzguy>
ok
<holmser>
and I can test using network.include?(ip)
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<holmser>
I guess I'm just wondering if there is a more rubyish way to do what I'm trying to accomplish
<Yzguy>
right
SenpaiSilver has quit [Quit: Leaving]
<holmser>
right now I'm doing a nested .each loop
SenpaiSilver has joined #ruby
<Yzguy>
can you share the code? in pastebin or something
<holmser>
yeah, one sec
duoi has quit [Max SendQ exceeded]
<Yzguy>
you know what, let me just open work laptop because I got code that does basically what you want
<Yzguy>
because we were using it for puppet, take an array of all the IP addresses a server has, check if they are in the subnets
<Yzguy>
to define location
duoi has joined #ruby
<mbff>
Question: I am trying to locally install a gem i am working on. Any ideas on why this isn't work? ERROR: While executing gem ... (ArgumentError)
<mbff>
string contains null byte
theery has quit [Remote host closed the connection]
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
barhum2013 has joined #ruby
<Yzguy>
well then
<Yzguy>
lmfao
<havenwood>
Yzguy: Made a nice Gist for ya though. :)
theery has joined #ruby
<Yzguy>
could have been like "Well...eff you, we don't use that */kick*"
<havenwood>
Yzguy: Even added syntax highlighting. \o/
<pontiki>
hi
<havenwood>
pontiki: yo
<havenwood>
gambl0re: Your Ruby install working out?
<Yzguy>
Yeah the way I did it was because we have multiple blocks of subnets, and we needed to selectively choose what location a server was in based on their IP address
<Yzguy>
so each if network.include was to assign a different name
<havenwood>
mm
mamercad has quit [Ping timeout: 246 seconds]
<havenwood>
mbff: when you gem install it?
<gambl0re>
yes its still working...
<havenwood>
gambl0re: good!
<havenwood>
mbff: downloaded it manually or through RubyGems?
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gambl0re>
do you think i should upgrde
<gambl0re>
upgrade?
<havenwood>
Use Ruby 2.2.3
<gambl0re>
im using 4.2.2
<Yzguy>
this is basically the code I was talking about
<mbff>
I went offline for a minute there. Hopefully I didn't miss anything.
<havenwood>
oops, i linked wrong thing, but yeah escape it
<cscheib>
havenwood: thanks!!!
<havenwood>
mbff: i just suggested trying with latest RubyGems (rvm rubygems latest) and then mused about how I don't know what's happening but have seen it before with a corrupted gem download
sfr^ has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
<havenwood>
mbff: i dunno, but i'd be curious when you figure it out!
ghr has joined #ruby
nahtnam has quit [Ping timeout: 246 seconds]
<havenwood>
cscheib: you're welcome!
linc01n has quit [Ping timeout: 246 seconds]
universa1 has quit [Ping timeout: 246 seconds]
nahtnam has joined #ruby
grenierm has quit [Quit: grenierm]
[k- has joined #ruby
dgarstang has quit [Ping timeout: 250 seconds]
<mbff>
havenwood, alright thanks as always.
<havenwood>
mbff: de nada, sorry no help!
<havenwood>
it's a curious one
sanguisdex has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 244 seconds]
sanguisdex has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisarcand has quit [Ping timeout: 244 seconds]
gsingh93 has quit [Ping timeout: 244 seconds]
musl has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 244 seconds]
theery has joined #ruby
musl has joined #ruby
darkxploit has quit [Ping timeout: 268 seconds]
dgarstang has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
segmond has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
Shidash has joined #ruby
<shevy>
I see that havenwood has had coffee already, based on the amount of '!' he uses :)
chrisarcand has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
shmilan has quit [Ping timeout: 246 seconds]
gsingh93 has joined #ruby
fedexo has joined #ruby
shmilan has joined #ruby
<sevenseacat>
haha
baweaver has joined #ruby
universa1 has joined #ruby
sfr^ has joined #ruby
linc01n has joined #ruby
<[k->
!!!!
weemsledeux has joined #ruby
tmtwd has joined #ruby
segmond has joined #ruby
<sevenseacat>
good thing helpa doesnt talk here
riotjones has joined #ruby
meatherly has quit []
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
a recordacao vai estar pre sempre aonde for
northfurr has quit [Quit: northfurr]
grassdog has joined #ruby
mithrandeer has joined #ruby
darkxploit has joined #ruby
<havenwood>
nofxx: splanglish
mithrandeer has quit [Max SendQ exceeded]
mithrandeer has joined #ruby
mithrandeer has quit [Client Quit]
<havenwood>
nofxx: i need to work on langs ;)
chipotle has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
<nofxx>
shevy, recordação... hard w/o the keyb layout. You guys don't know it (US/UK) but for us with accents mac keyb layout is a godsend. No dead keys, and keeps the layout ibm-102
mistermocha has joined #ruby
<nofxx>
havenwood, wish to learn italian or german. Speak spanish and english badly and pt is my mother tongue.
<shevy>
nofxx I can't do these characters!
renodice has quit [Ping timeout: 252 seconds]
<nofxx>
mac ? alt + c , alt + n a
holmser has quit [Read error: Connection reset by peer]
<shevy>
if only I had a mac
<nofxx>
or mac layout on linux =D
dfinninger has quit [Remote host closed the connection]
<nofxx>
English (Macintosh)
Yzguy has quit [Quit: Zzz...]
Guest43268 has quit [Ping timeout: 250 seconds]
bascht has quit [Ping timeout: 250 seconds]
<shevy>
hmm newbie question
Musashi007 has joined #ruby
<pontiki>
on linux, you define a compose key and you get nearly the same result
<shevy>
Foo.new(ARGV.first) versus Foo.new(ARGV) - which variant would be better? In the past I would have used the first variant (actually, I did use ARGV[0]), but nowadays it seems to just make more sense to have the class itself handle that?
bascht has joined #ruby
mistermo_ has joined #ruby
<nofxx>
shevy, later , no doubt
<shevy>
The ARGV handling usually came after the "if __FILE__ == etc" part
mistermocha has quit [Read error: Connection reset by peer]
<shevy>
yeah that's what I was thinking too
_vision has joined #ruby
<shevy>
I have like hundred old scripts that handle ARGV after that if check
<baweaver>
Ruby looks like a Java dev got a hold of it.
<shevy>
well, you need to be able to store data; and then you need to be able to somehow associate that data, so that you can query only sub-parts from it quickly
RegulationD has quit [Ping timeout: 244 seconds]
<baweaver>
storing would be easy enough with some form of marshalling / compression
<baweaver>
indexing would be interesting, effectively storing multiple copies of data
<baweaver>
could probably treat a column as a separate data structure
<baweaver>
encapsulating various meta-information about its contents
<baweaver>
well, I say I have no idea, but that's more from 10-15 minutes of thinking really.
<baweaver>
Might make a tutorial of designing a database in ruby for jollies
<baweaver>
with the explicit warning that it should never touch prod.
<moeabdol>
in rspec 3, is it correct to assert that a class raises an exception this way:
<shevy>
now you have become a real beaver - you aim to build the big things
<baweaver>
but more as an application of database than creating one.
Guest39097 has quit [Ping timeout: 265 seconds]
inty has joined #ruby
jcdesimp has quit [Quit: Leaving...]
shmilan has quit [Ping timeout: 246 seconds]
darkf has joined #ruby
<inty>
Hello. Why ˆ(From|Subject|Date): doesn't find me all "From:", "Subject:" and "Date:" from file?
<pontiki>
you're more looking to creating a dbms for this tutorial, not just creating a database, right?
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<baweaver>
kinda all of the above really, just experimenting about
renodice has joined #ruby
<baweaver>
inty: rubular.com
<inty>
baweaver: Thanks
<pontiki>
learning good SQL programming is a more immediately applicable skill for people, methinks. learning how to create a dbms is good for learning indirectly applicable programming, ds, and so on
<nofxx>
inty, all as in it's finding one? are you using #scan ?
<baweaver>
The prior I'm toying with.
<baweaver>
This is more of a curiosity than a serious application
<baweaver>
I just thought how would I create a DBMS and came up annoyingly empty
<pontiki>
sure
<baweaver>
I like to at least know where I can find out how to do something
<pontiki>
of course
<baweaver>
That, and it might be a fun Scala exercise later for kicks if I really get bored.
<pontiki>
that's it, really, isn't it? i learn so much when i just goof around with stuff cos i'm bored
Swappticon has joined #ruby
<pontiki>
when i'm working too hard, i feel like i stop learning
<baweaver>
heh, more than I'd like to admit to
<baweaver>
which is why I choose something so out there I cannot possibly tie it to work.
<pontiki>
i don't know, i think it's worthy of celebrating that; this is what making shit is all about
<pontiki>
my friend just built herself *another* laser
konsolebox has joined #ruby
<pontiki>
solid state, visible beam
<baweaver>
fair, that's what got me into: painting, guitar, piano, writing, singing, drawing, cartooning, et al
<pontiki>
yep yep
<baweaver>
literally just a reaction of "that sounds fun!"
<pontiki>
i feel i need to make *something* every day just to stay sane
<pontiki>
so it's survival for me as well
<baweaver>
probably more fun being a contractor or short-term project type then.
<baweaver>
hard to get stale like that.
<pontiki>
yep. that's what i told your boss finally, today
<baweaver>
figured
<shevy>
please stay sane pontiki
<pontiki>
baweaver: PM?
<shevy>
don't give in to monads!
<baweaver>
shoot
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 260 seconds]
eones has joined #ruby
<inty>
nofxx: I'm curious, because egrep (command line tool) and Rubular shows correct answer, while http://www.regexr.com/ shows only "From:"
deg__ has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
mutuma has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mistermocha has joined #ruby
JohnBat26 has joined #ruby
fschuindt has quit [Quit: WeeChat 1.2]
mleung has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
mrityunjay has joined #ruby
deg_ has joined #ruby
majjoha has joined #ruby
Guest39097 has joined #ruby
sevenseacat has joined #ruby
<inty>
nofxx: I'll stick with egrep, because those on-line tools act different
ranchodev has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
skade has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dagda1 has quit [Ping timeout: 260 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
altivection has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
dagda1 has joined #ruby
iateadonut has joined #ruby
<nofxx>
inty, most of those are JS regex, rubular.com is ruby regex. Should behave exactly as ruby
skade has quit [Client Quit]
<nofxx>
also ot, check out `ag` the silver searcher. way faster than grep
chipotle_ has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
ap4y has quit [Remote host closed the connection]
<eam>
iateadonut: you need /m
<eam>
er, inty ^^
meatherly has quit []
al2o3-cr1 has joined #ruby
_djbkd has quit [Quit: My people need me...]
<eam>
inty: my guess is you're matching on a string with newlines, like "From: abc\nSubject: xyz\n"
<inty>
eam: Thanks
<eam>
the ^ only matches after the \n with that modifier
superrorc has quit [Ping timeout: 256 seconds]
<eam>
regexer will show it to you in "flags" if you click on that
<eam>
inty: btw, grep -P will test syntax closest to ruby (PCRE)
<eam>
egrep or grep -E isn't quite the same language -- it's extended posix
<eam>
parens do the same thing, but some other features differ
arescorpio has joined #ruby
<eam>
grep is inherently line-based, the first thing it does is split input lines, so the behavior here is implicitly different
al2o3-cr has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
bronson has joined #ruby
theta88 has quit [Quit: leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mrityunjay>
join #memcached
<pontiki>
no
<mrityunjay>
join #memcached
<baweaver>
!mute mrityunjay
<baweaver>
bye
hololeap has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
wookiehangover has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
renodice has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 265 seconds]
<shevy>
hehe
<eam>
shevy: what's up
mistermocha has joined #ruby
arescorpio has quit [Quit: Leaving.]
meatherly has quit []
pawnbox has joined #ruby
Aswebb__ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
Guest39097 has quit [Ping timeout: 265 seconds]
dgarstang has quit [Ping timeout: 264 seconds]
Aswebb_ has joined #ruby
war_pigs has joined #ruby
meatherly has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
techsethi has joined #ruby
Musashi007 has joined #ruby
<Aeyrix>
who even cares
<Aeyrix>
about memcached
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<Aeyrix>
baweaver: it just occurred to me
<Aeyrix>
that the user was trying to /join
<Aeyrix>
lmao
<baweaver>
...hmm
konsolebox has quit [Ping timeout: 250 seconds]
<baweaver>
well then
<baweaver>
!unmute mrityunjay
<baweaver>
mrityunjay: it's /join #channel
inty has quit [Quit: Leaving]
<baweaver>
that explains a bit
riotjones has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
hashtag memcached, hashtag cached, hashtag only two hard problems in computer science, hashtag one is joining irc chatrooms
<[k->
off by slash error
<eam>
^^ that's how the kids do the internet these days right
Aswebb_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
* baweaver
might be a tinge tired.
mistermo_ has quit [Read error: Connection reset by peer]
<baweaver>
don't tired and op folks
psy_ has quit [Read error: Connection reset by peer]
<sevenseacat>
:P
dhjondoh has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 244 seconds]
techsethi has quit [Ping timeout: 268 seconds]
speakingcode has quit [Ping timeout: 244 seconds]
Guest39097 has joined #ruby
bluOxigen has joined #ruby
sigurding has joined #ruby
mistermocha has joined #ruby
jacksonmills has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
mbff has quit [Quit: Leaving]
blueOxigen has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 265 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 252 seconds]
bubbys has joined #ruby
armyriad has joined #ruby
ruby-lang636 has joined #ruby
<ruby-lang636>
anyone there/
<ruby-lang636>
?
nisstyre has quit [Read error: Connection reset by peer]
<sevenseacat>
no.
<[k->
In a land of mysteries, the first thing you do is to look around, not ask if someone is there
chussenot has joined #ruby
oo_ has joined #ruby
<ruby-lang636>
haha
mleung has joined #ruby
ruby-lang636 has left #ruby [#ruby]
skade has joined #ruby
freerobby has quit [Quit: Leaving.]
dopie has quit [Ping timeout: 265 seconds]
meatherly has quit []
dcarmich has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
lampshades has joined #ruby
mistermocha has joined #ruby
dopie has joined #ruby
swgillespie has joined #ruby
mleung has quit [Quit: mleung]
pietr0 has quit [Quit: pietr0]
Macaveli has joined #ruby
mleung has joined #ruby
deg_ has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
Lucky__ has joined #ruby
superrorc has joined #ruby
tagrudev has joined #ruby
chussenot has joined #ruby
dgutierrez1287 has joined #ruby
unsymbol has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
rubie has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
superrorc has quit [Max SendQ exceeded]
jackjackdripper has quit [Client Quit]
DoubleMalt has joined #ruby
superrorc has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
speakingcode has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
Aswebb_ has joined #ruby
dionysus69 has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
swgillespie has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
bigredboots has joined #ruby
mistermocha has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
bruno- has joined #ruby
ksteck has quit [Ping timeout: 256 seconds]
claw has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
claw has joined #ruby
lkba has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 244 seconds]
tokik_ has quit [Quit: leaving]
mistermocha has quit [Read error: Connection reset by peer]
tokik has joined #ruby
deg_ has joined #ruby
mistermocha has joined #ruby
juanpablo____ has joined #ruby
minimuffins has joined #ruby
TvL2386 has joined #ruby
riotjones has joined #ruby
bigredboots has quit [Remote host closed the connection]
bazbing80 has quit [Ping timeout: 244 seconds]
scepticulous is now known as X-ray-D
X-ray-D is now known as XrayD
juanpablo____ has quit [Ping timeout: 268 seconds]
michael_mbp has quit [Excess Flood]
Musashi007 has quit [Quit: Musashi007]
tvw has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
jordanloky has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
Blaguvest has quit []
michael_mbp has joined #ruby
tabakhase has quit [Ping timeout: 250 seconds]
mac_ has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Excess Flood]
mistermocha has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
weemsledeux has joined #ruby
startupality has quit [Quit: startupality]
michael_mbp has joined #ruby
chussenot has quit [Quit: chussenot]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
michael_mbp has quit [Excess Flood]
charliesome has joined #ruby
michael_mbp has joined #ruby
ghr has joined #ruby
amclain has quit [Quit: Leaving]
eGGsha has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jesterfraud has joined #ruby
pawnbox has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
ghr has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
emilkarl has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
timonv has joined #ruby
arup_r has joined #ruby
Cust0sLim3n has quit [Ping timeout: 246 seconds]
minimuffins has quit [Ping timeout: 255 seconds]
claw has quit [Ping timeout: 272 seconds]
mordocai has quit [Remote host closed the connection]
claw has joined #ruby
astrobun_ has joined #ruby
<[spoiler]>
morning
bronson has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
mistermocha has quit [Read error: Connection reset by peer]
mrityunjay has quit [Ping timeout: 250 seconds]
jgt3 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
yfeldblum has joined #ruby
khebbie has joined #ruby
leat has joined #ruby
mistermocha has joined #ruby
<nofxx>
Anyone using fabricator? need an attribute from a relative, looks like relatives are build after... is there some way to force em? on_init {} ?
majjoha has quit [Ping timeout: 240 seconds]
PlasmaStar has quit [Ping timeout: 244 seconds]
JoshuaPaling has joined #ruby
yfeldblu_ has joined #ruby
Meeh has quit [Read error: Connection reset by peer]
Meeh has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
jesterfraud has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Macaveli has quit [Client Quit]
solars has joined #ruby
dc_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc_ has quit [Remote host closed the connection]
dc_ has joined #ruby
mrityunjay has joined #ruby
Pathfinder has quit [Ping timeout: 264 seconds]
davedev24 has quit []
mistermocha has joined #ruby
rushed has joined #ruby
ruby-lang857 has joined #ruby
Macaveli has joined #ruby
<ruby-lang857>
hy
ruby-lang857 has quit [Client Quit]
<nofxx>
ops, nevermind. Typo. It works.
mago0 has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Remote host closed the connection]
richo has joined #ruby
greenarrow has joined #ruby
<richo>
hi, is this a reasonable place to ask about the C api?
yfeldblu_ has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
yfeldblum has joined #ruby
<Radar>
richo: Sure, fire awway
Musashi007 has joined #ruby
<richo>
I'm trying to interact with a toplevel class, I know about rb_const_get and friends but they seem to insist on taking an object to explore from
<richo>
tl;dr how do I get a VALUE without resorting to something awful like rb_eval_string("::Whatever")
<jhass>
cloudbud: since you don't answer my question I have to assume you have none, thus I'd advise you to start reading https://pine.fm/LearnToProgram/
Mendenhall has quit [Ping timeout: 264 seconds]
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby
<janno>
cloudbud: this is basically what you have: { "ohai": { "plugins": { "ohai": "plugins" } } }
<cloudbud>
janno : can you explain this a lil bit
<jhass>
chef is the new rails, tons of people thrown into it/starting out with it are confronted with Ruby code without knowing a bit about Ruby
mistermocha has quit [Read error: Connection reset by peer]
<janno>
hash is collection, where you can define keys, which has values. You are setting value 'plugins' inside nested hash
Mendenhall has joined #ruby
eGGshke is now known as eGGsha
monoprotic has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bronson has joined #ruby
lampshades has quit [Remote host closed the connection]
chussenot has joined #ruby
darkxploit has joined #ruby
moeabdol has joined #ruby
emilkarl has quit [Quit: emilkarl]
moeabdol has quit [Client Quit]
bronson has quit [Ping timeout: 246 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
_djbkd has joined #ruby
krisquigley has joined #ruby
Spami has joined #ruby
<apeiros>
mbuf: why should %r{^/assets/} match "/health"?
RegulationD has quit [Ping timeout: 272 seconds]
<jhass>
heh, I already poked the fun, you come too late
<jhass>
mbuf: they both contain /, a, e & t!
<jhass>
er apeiros ^
<apeiros>
jhass: yeah, reading top to bottom, only just now seen yours
mistermocha has joined #ruby
rakm has joined #ruby
<jhass>
that's 4/7 > 50%, should be good enough!
<apeiros>
jhass: right. =~ means "something somewhat like this"
<[spoiler]>
equalish
<[spoiler]>
can we call it equalish, please? :D
<apeiros>
in today's wtf: 6 iteration of "send the same SOAP request example" to our partner after they told me to "please test again, it should work now"
<apeiros>
what. the. fuck. do they do to verify that it should be working? it's an identical request every time?!?
<jhass>
just while true; do; ./test.sh; mail partner@example.com "No"; sleep 1800; done ?
<[spoiler]>
lmao
<nofxx>
someone is not writing their home work tests
<apeiros>
jhass: we're about to do that with the same partner for a different problem
<[spoiler]>
I keep reading "partner" as "parent"
<apeiros>
one of the soap services is to reset passwords, and we have to send a new temp password with it. we've got a whitelist of characters which are allowed. just that it's not correct.
<apeiros>
some of the whitelisted chars don't work
<apeiros>
and they're at this for now well over a year.
<[spoiler]>
Kinda sounds funny when you read it with partner
iamninja has joined #ruby
<[spoiler]>
It looks like apeiros is a child raising his parents
<apeiros>
the level of incompetence is stupefying
mistermocha has quit [Read error: Connection reset by peer]
<apeiros>
I'm looking forward to the conf-call we'll have in an hour. I wonder how they'll answer my questions…
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
will probably be a lesson in how to be evasive and vague
<apeiros>
maybe also an expert lesson in how to shift blame
jstodberg has quit [Quit: Leaving]
<shevy>
grab cookies and stuff them with them before you do the interrogation
_djbkd has quit [Quit: My people need me...]
iamninja has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
<mbuf>
jhass: apeiros the code uses assets, I used health
<apeiros>
mbuf: so?
<mbuf>
jhass: apeiros just saying
<[spoiler]>
mbuf: I don't understand
<apeiros>
mbuf: we can't help you if you show code which is unrelated to your problem
lkba has quit [Ping timeout: 244 seconds]
iamninja has joined #ruby
mistermocha has joined #ruby
emilkarl has joined #ruby
<mbuf>
apeiros: okay
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]>
[on phone] Me: "What's your email?"; Client: "#{@firstname} ... "; Me: "... Okay, next?" Client: "It's just #{@firstname}."
<apeiros>
mbuf: and honestly it's quite annoying if you do such a bad job at presenting your problem. you're burning goodwill that way.
moeabdol has quit [Quit: WeeChat 1.3]
<mbuf>
apeiros: have a nice day
<apeiros>
you too
Iskarlar has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<[spoiler]>
mbuf: apeiros is old and grumpy so don't mind the attitude, but he does have a point. You should present your problem with more information
ghr has joined #ruby
<mbuf>
[spoiler]: later
<apeiros>
accurate information also helps
dcarmich has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
lxsameer has joined #ruby
mengu has joined #ruby
araujo has quit [Quit: Leaving]
k3asd` has joined #ruby
mrityunjay has joined #ruby
zacts has quit [Read error: Connection reset by peer]
Aswebb_ has quit [Remote host closed the connection]
senayar has joined #ruby
mistermocha has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chthon has joined #ruby
Musashi007 has joined #ruby
mengu has quit [Remote host closed the connection]
moeabdol has joined #ruby
einarj has joined #ruby
jimms has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
oo_ has quit [Remote host closed the connection]
Iskarlar has joined #ruby
chussenot has quit [Client Quit]
Pathfinder has joined #ruby
skade has joined #ruby
chussenot has joined #ruby
oo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dopie has quit [Quit: This computer has gone to sleep]
benlovell has joined #ruby
quazimodo has quit [Remote host closed the connection]
mistermocha has joined #ruby
diego_ar has joined #ruby
mkosaki has quit [Quit: Leaving...]
gabord has joined #ruby
gabord has left #ruby ["WeeChat 1.1.1"]
mistermocha has quit [Read error: Connection reset by peer]
diego_ar has quit [Ping timeout: 246 seconds]
vmatiyko has joined #ruby
mprelude has joined #ruby
Voker57 has joined #ruby
ERIK_ has quit [Read error: Connection reset by peer]
code1o6 has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
mistermocha has joined #ruby
mengu has joined #ruby
DLSteve has joined #ruby
stardiviner has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
pabs has quit [Ping timeout: 240 seconds]
sdfgsdfg has joined #ruby
DLSteve has joined #ruby
jgt3 has quit [Quit: WeeChat 1.2]
Cust0sLim3n has joined #ruby
jgt has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
mistermocha has quit [Read error: Connection reset by peer]
jgt has quit [Client Quit]
eGGsha is now known as eGGshke
Musashi007 has quit [Quit: Musashi007]
devoldmx has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 244 seconds]
jgt has joined #ruby
DLSteve has joined #ruby
ndrei has joined #ruby
pabs has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sirhcjw has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
jds has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
lxsameer has quit [Quit: Leaving]
eGGshke is now known as eGGsha
bruno- has joined #ruby
<jds>
I've been trying to profile some slow rspec/rails specs to see where all the time is being spent, but the resulting call graph is pretty incomprehensible - I'm basically just seeing a lot of cyclic calls to instance_exec & Proc.call. Any tips?
arup_r has quit [Remote host closed the connection]
marr has joined #ruby
psteyn has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
<psteyn>
Hi guys, I'm trying to get the current timezone as a number range
<psteyn>
As in:
<psteyn>
2.2.2 :010 > Time.now.to_s.split('+')[1]
<psteyn>
=> "0200"
<psteyn>
Is there a better way to do so?
<psteyn>
Time.now.zone gives me 'SAST'..which is '+0200', but I need it in that format
<ruboto>
psteyn, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
stardiviner has joined #ruby
DLSteve has joined #ruby
[k- has joined #ruby
leat has quit [Remote host closed the connection]
<psteyn>
lol kk
leat has joined #ruby
<yorickpeterse>
morning
DLSteve has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 252 seconds]
momo-reina has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
psteyn: btw if it's for getting something to compare to, it's probably easier to just .utc both
psteyn has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: Connection reset by peer]
JoshuaPaling has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
DexterLB has quit [Read error: Connection reset by peer]
anisha has joined #ruby
chussenot has joined #ruby
Timba-as has joined #ruby
psteyn has joined #ruby
<psteyn>
Hi again y'all
__main__ has joined #ruby
jgt has quit [Read error: Connection reset by peer]
<jhass>
hey
<jhass>
repeating since I doubt you got it last time:
<psteyn>
2.2.2 :004 > Time.now.strftime("%z")
<psteyn>
=> "+0200"
<jhass>
psteyn: btw if it's for getting something to compare to, it's probably easier to just .utc both
jgt has joined #ruby
<psteyn>
But tolocal expects "+02:00"
<psteyn>
note the colon
<psteyn>
whats a clean way to convert "+0200" into "+02:00"
<jhass>
uh, did you overlook my last example which you replied ":)" to?
<psteyn>
(it's not for comparing)
<psteyn>
ahhhhh
<psteyn>
Time.now.strftime("%:z")
<psteyn>
:)
JoshuaPaling has joined #ruby
<psteyn>
thank you jhass
oo_ has quit [Remote host closed the connection]
<jhass>
yw
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DexterLB has joined #ruby
<Timba-as>
This is probably a simple question; When I inspect an object I see a variable like so: #<Object @data={:foo => 'bar'}>>, I need to get the value of data but when using '.data' on the variable it says it's an undefined method..
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<jhass>
Timba-as: then the author of Object (is it literally Object? I hope not!) didn't mean you to get it directly
<canton7>
heh, looks like ruby...
<canton7>
Timba-as, do you have the source of this object?
<jhass>
Timba-as: so first, is it really Object? or some other class we can look at the docs of?
DLSteve has joined #ruby
<Timba-as>
@canton7 It is actually #<RubyPushNotifications::APNS::APNSNotification:0x00000106f2da58>
<jhass>
next, up, why do you need to access @data directly? What do you need to do?
khebbie has quit [Ping timeout: 268 seconds]
solocshaw has joined #ruby
toomanytims has joined #ruby
juanpablo____ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<Timba-as>
@jhass As you can see it's for sending push notifications, so in this data variable I stored the Notification id equal to the one in my db, so that after sending I can update the status to failed/success
startupality has joined #ruby
sgambino has joined #ruby
<jhass>
I see there's an attribute reader for results in the docs, what does it return?
<jhass>
it says "The corresponding object with the results from sending this notification that also will respond to #success, #failed and #individual_results" in the docs, so also dive into .individual_results
DLSteve has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 256 seconds]
dhjondoh has joined #ruby
arup_r has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
<canton7>
Timba-as, wait... rails via console. So you're reading the standard output of the 'rails console' command?
bruno- has joined #ruby
<canton7>
aah, I'm in a different channel th what I thought I was. that explains the language mixup ><
<Timba-as>
@jhass I already find the status of the push by reading the success/failed counters. Now I just need to update the connected notification-record by tracing back the id.
husanu has quit [Remote host closed the connection]
emilkarl has quit [Quit: emilkarl]
wildlander has quit [Quit: Saliendo]
husanu has joined #ruby
<jhass>
so answer my questions, what does individual_results return?
pawnbox has quit [Remote host closed the connection]
<jhass>
I never worked with the gem and I doubt you're lucky to find somebody that did, so I can only guide you through digging through it
oo_ has joined #ruby
dorei has joined #ruby
leafybasil has quit [Ping timeout: 272 seconds]
solocshaw has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
chussenot has quit [Quit: chussenot]
<Timba-as>
@jhass I understand, I have an expectation of what individual_results will return. The gem is setup like this, create a bunch of notifications (APNSNotification) and send them all with the APNSPusher. Each APNSNotification can be send to multiple devices (hence individual_results). The way I implement it, is I always send an APNSNotification to one device only. I will check to
<Timba-as>
see what individual_results will return, one moment..
psteyn has quit []
UtkarshRay has quit [Remote host closed the connection]
<Timba-as>
@jhass You are right, it's actually [8]
<jhass>
I guess that's one of the error codes then, meh
<Timba-as>
puts logs it as 8, but when using inspect I get this: #<RubyPushNotifications::APNS::APNSNotification:0x000001033e7e08 @tokens=["fake-token"], @data={:aps=>{:alert=>nil, :badge=>10, :sound=>"true", :id=>36}}, @encoded_payload="\x02\x008{\"aps\":{\"alert\":null,\"badge\":10,\"sound\":\"true\",\"id\":36}}", @results=#<RubyPushNotifications::APNS::APNSResults:0x000001093707a8
<jhass>
Timba-as: okay, I would suggest you change self.push_new_notifications to return [n.id, n.push_notification] in the collect call, then pass pusher.push notifications.map(&:last) and do notifications.each do |id, notification| to evaluate the results
damoncasale has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 265 seconds]
<jhass>
Or maybe even defer mapping out .push_notification to pusher.push notifications.map(&:push_notification) and keep it memorized so you can collect the result by calling it again
darkxploit has quit [Ping timeout: 265 seconds]
<jhass>
to sum up I wouldn't hack into the gems internals to recover the id, I'd change the code to explicitly pass it around in an accessible way
<Timba-as>
@jhass I see, you're right, that's way better! Thanks!
<Timba-as>
@jhass It's not even that much different
<Timba-as>
@jhass Momorizing the PushNotification would be something like @apn ||= APNSNotification.new right?
<jhass>
yes, I'd go for the verbose name there @apns_notification
khebbie has joined #ruby
ndrei has joined #ruby
<Timba-as>
@jhass instead of push_notification?
<jhass>
for the variable name to memorize it
Guest39097 has quit [Quit: WeeChat 1.2]
pusewicz_ has joined #ruby
<jhass>
the three idioms for multiline memorization are @foo = build_foo; @foo = Foo.new(...).tap do |foo|; foo.bar(...) end; and @foo = begin; foo = Foo.new(...); foo.bar(...); foo; end;
krisquigley has quit [Remote host closed the connection]
<jhass>
er well, ||= in each case of course
leafybasil has joined #ruby
<[k->
memoize*
pusewicz has quit [Disconnected by services]
Averna has joined #ruby
pusewicz_ is now known as pusewicz
<Timba-as>
@jhass Funny, never used the tap method before, it seems pretty neat.. The first (with 'build_foo') would have my preference I think..
<Timba-as>
@jhass I've implemented the latter, it seems more rubyish, feels better to me anyway
andikr has joined #ruby
<jhass>
Timba-as: iirc in Rails you could also do def self.push; notifications = scoped; ....; end; and Notifications.queued.push
<jhass>
or something into that direction
Rickmasta has joined #ruby
<jhass>
or maybe it wasn't scoped but simply relying on implicit self and it would take the current scope into account or something, I don't quite remember
voxxit has joined #ruby
<cloudbud>
what is a gem
<jhass>
a Ruby library
<jhass>
distributed via https://rubygems.org, installable via the shipped package manager rubygems which exposes the gem command
<Timba-as>
@jhass It seems scoped is deprecated in Rails 4, or am I looking at the wrong scoped method?
stamina has joined #ruby
<jhass>
another thing which should be covered by every basic Ruby tutorial btw
<jhass>
Timba-as: no it might be, as said I don't quite be the specifics, might be that implicit all or self take it into account
<jhass>
er, don't quite remember
f4cl3y has joined #ruby
<jhass>
but it's not that important I guess, explicit passing is fine too
leat has quit [Remote host closed the connection]
<Timba-as>
@jhass I see, I'll look it up, I like to know about the different options to choose of, really need to get in the naming of all this stuff
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabun_ has joined #ruby
leat has joined #ruby
<Timba-as>
@jhass I'm Dutch so it's a bit harder to remember it all ;-)
<Timba-as>
Anyway, I think this feature is ready to be tested! Thanks for your help!
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<workmad3>
Timba-as: regarding 'deprecated'... are you by any chance looking @ apidock?
<workmad3>
Timba-as: and that blue box which says "This method is deprecated or *moved* in a later version"?
Rollabunna has quit [Ping timeout: 255 seconds]
<workmad3>
(emphasis added to a very important part of the message given)
Meow-J has quit [Quit: Connection closed for inactivity]
bayed has joined #ruby
charliesome has joined #ruby
Iskarlar has joined #ruby
PlasmaStar has joined #ruby
krisquigley has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
<jhass>
nah, scoped raising an actual deprecation warning rings a bell
voxxit has joined #ruby
<Timba-as>
@workmad3 I was indeed looking at that message, but I also found a stackoverflow question about it..
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 268 seconds]
Papabear has quit [Ping timeout: 272 seconds]
<yorickpeterse>
I find it interesting how being Dutch apparently makes things harder to remember
Rollabun_ has quit [Read error: Connection reset by peer]
<yorickpeterse>
I was under the impression the Dutch are superiour human beings
diego_ar has quit [Remote host closed the connection]
<adaedra>
Because your head is full of cheese
<adaedra>
Cheese don't remember easily
<yorickpeterse>
says the one with a baguette for a head
<shevy>
lol
<adaedra>
Baguette goes well with cheese
Rollabunna has joined #ruby
marr has quit [Ping timeout: 264 seconds]
<jhass>
I see we turned into #international_understanding again
<adaedra>
don't invade the discussion
chills42 has joined #ruby
<yorickpeterse>
jhass: Yeah, move that to #ruby-offtopic please
<yorickpeterse>
ᕕ(ᐛ)ᕗ
startupality has quit [Quit: startupality]
xrlabs has joined #ruby
<shevy>
hmm
moeabdol has quit [Ping timeout: 255 seconds]
<shevy>
what is creating o-rdoc/ directories?
<shevy>
I seem to have this automatically created in some weird dir... probably because of some ENV var
Rollabunna has quit [Read error: Connection reset by peer]
<jhass>
shevy: grep -R "o-rdoc" /
<shevy>
nah
meph has joined #ruby
rodfersou has joined #ruby
chussenot has joined #ruby
chussenot has quit [Client Quit]
Pupeno has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
chussenot has joined #ruby
mengu has quit []
charliesome has joined #ruby
anandubajith has joined #ruby
chris2 has quit [Ping timeout: 250 seconds]
anandubajith has left #ruby [#ruby]
chussenot has quit [Client Quit]
Meow-J has joined #ruby
jhass has quit [Ping timeout: 252 seconds]
<schfkt>
Hi there. Can someone show me an example of how to call a mysql stored procedure from sequel gem?
<schfkt>
I've tried that:
<schfkt>
[22] pry(main)> DB.call_sproc(:pr_test)
<schfkt>
=> nil
<schfkt>
But that just returns nil.
astrobun_ has quit [Remote host closed the connection]
<dorei>
schfkt: you could try asking at #sequel too if noone could help here
chussenot has joined #ruby
chussenot has quit [Client Quit]
jgt has quit [Ping timeout: 246 seconds]
chris2 has joined #ruby
<schfkt>
dorei: thanks, going to ask there too
<Timba-as>
@adaedra It's the pot, not the cheese ;)
<adaedra>
ᕕ(ᐛ)ᕗ
<shevy>
who of you has some clever video-backup archive thingy written in ruby
ndrei has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
stardiviner has joined #ruby
<[k->
the internet
iamninja has quit [Ping timeout: 264 seconds]
<shevy>
hmm... in ruby?
krisquigley has joined #ruby
<shevy>
on that note, is there an equivalent to youtube-dl in ruby?
<[k->
`youtube-dl [args]`
<shevy>
yeah I am using that python script a lot
diego_ar has joined #ruby
greenarrow has quit [Quit: 500]
<workmad3>
[k-: I prefer system("youtube-dl", *args)
norc has joined #ruby
<workmad3>
(if I'm doing a full wrapper script, that can by system("youtub-dl", *ARGV)
<norc>
Can I rename methods on the fly?
<norc>
Or instance/class variables?
<shevy>
norc should be possible, you can always alias, then remove the old instance
tkuchiki has joined #ruby
<workmad3>
norc: can you? probably. should you? probably not
<norc>
shevy: That makes me wonder what alias_method does under the hood now.
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
<norc>
workmad3: Oh this is purely educational.
<[k->
stop invalidating the global method cache!
<[k->
method calling is expensive enough as it is!
tkuchiki has quit [Remote host closed the connection]
eGGsha is now known as eGGshke
DoubleMalt has joined #ruby
<norc>
workmad3: Although I can see how this can be useful for monkey patching some libraries..
<shevy>
norc I think alias would also work
<norc>
shevy: It should, alias_method just calls alias based from looking at the source code.
<[k->
alias, alias_method, delete_method, blah
<shevy>
really? I remember there was one big difference between these two... but I forgot which one it was
<norc>
shevy: the comma. ;-)
chussenot has joined #ruby
<adaedra>
mh, I remember something else about alias vs alias_method
<shevy>
hmm no...
<shevy>
let me try to find it
juanpablo____ has joined #ruby
<norc>
shevy: It just seems like alias is an actual keyword while alias_method is just a built-in method that wraps alias.
<shevy>
ok scope is one difference
sarkyniin has joined #ruby
<shevy>
copy paste for the rescue
<shevy>
"This is because alias is a keyword and it is lexically scoped. It means it treats self as the value of self at the time the source code was read. In contrast alias_method treats self as the value determined at the run time."
<norc>
Cloning ruby git feels like downloading and unpacking some Java Enterprise platform....
oo_ has quit [Remote host closed the connection]
Anthony__ is now known as _blizzy_
altivection has joined #ruby
<[k->
you can use comma in alias now too iirc
<norc>
And here I am, thinking with a 1gb link to the internet this should be fast....
<shevy>
lol
<shevy>
look at the part "On Brain Compatibility"
<shevy>
that's a hilarious read up :)
greenarrow has joined #ruby
lxsameer has quit [Quit: Leaving]
ndrei has joined #ruby
<dorei>
norc: i always thought that git was a hard disk manufacturers conspiracy untill i discover the --depth=0 option :p not sure if that's what you want though
<shevy>
norc I'd wish ruby would move issue tracker to github
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chussenot has quit [Client Quit]
altivection has quit [Client Quit]
juanpablo____ has quit [Ping timeout: 252 seconds]
yeticry has joined #ruby
eGGshke is now known as eGGsha
giuseppesolinas has joined #ruby
<norc>
dorei: Nah I want the full repo. It is just that github can be very slow at times.
bronson has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
jgt has joined #ruby
oo_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
syath has joined #ruby
ndrei has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
yeticry has joined #ruby
<atmosx>
open-uri doesn't user-info (username/password). Do have any other library that can fetch some JSON data?
<atmosx>
with user/pass?
phutchins has joined #ruby
d10n-work has joined #ruby
<xrlabs>
atmosx, can't you just use the inbuilt net/http gem and set username and password as parameters or in the header?
codenapper has joined #ruby
anisha has joined #ruby
revoohc has joined #ruby
<atmosx>
xrlabs: I could... more lines.
<atmosx>
okay
dkam has joined #ruby
yeticry has quit [Remote host closed the connection]
<xrlabs>
you can still get json that way, just set the response type
yeticry has joined #ruby
<xrlabs>
I mean it's not that tragic. the average ruby program is so slim in lines lol
pawnbox has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
CloCkWeRX has joined #ruby
DLSteve has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
mrityunjay has quit [Ping timeout: 256 seconds]
livathinos has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: joonty]
hackeron_ is now known as hackeron
arup_r has quit [Remote host closed the connection]
hackeron has quit [Changing host]
hackeron has joined #ruby
chussenot has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
arup_r has joined #ruby
emilkarl has joined #ruby
sevenseacat has joined #ruby
tkuchiki has joined #ruby
meatherly has quit []
joonty has joined #ruby
grenierm has joined #ruby
fschuindt has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
rushed has quit [Quit: rushed]
dfhg has joined #ruby
crazydiamond has joined #ruby
<fschuindt>
Supose I have an class named Contact. How can I do Contact.new(hash) passing the class name as a string? Like: CreateObject('Contact', hash) Is that possible?
<apeiros>
fschuindt: you can even pass the class itself
scripore has quit [Quit: This computer has gone to sleep]
arup_r has quit [Remote host closed the connection]
scripore has joined #ruby
sigurding has quit [Quit: sigurding]
bigredboots has joined #ruby
antoni2 has joined #ruby
chills42 has quit [Remote host closed the connection]
sanguisdex has joined #ruby
dzejms has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sagittarian has joined #ruby
Iskarlar has joined #ruby
mary5030 has joined #ruby
<sagittarian>
hey everyone, i am fairly new to ruby (coming from python), in python i can interpolate variables into a string using a hash, and the keys that appear in the string will be replaced by their mapped value in the hash
<sagittarian>
is there something like that that i can do in ruby?
<jhass>
sagittarian: yes, several in fact
<sagittarian>
jhass: I figured there was, can you give me a pointer as to where to look?
antoni1 has quit [Ping timeout: 252 seconds]
<jhass>
>> "Hello %{foo}" % {foo: "world"} # Is the way you're most used to, see String#% and Kernel#%sprintf
<atmosx>
I don't even know if that would count as a diff, I think not.
lampshades has quit [Ping timeout: 272 seconds]
Coldblackice has quit [Ping timeout: 246 seconds]
<greenbigfrog>
hi
<greenbigfrog>
Why shouldn't I use global variables with a easy script? and if it doesn't matter, can I disable some warnings on atom with setup of linter and linter-rubocop?
<jhass>
greenbigfrog: what usecase for globals do you have that no other concept can replace?
dagda1 has joined #ruby
<greenbigfrog>
I'm pretty new to ruby so...
<bougyman>
in a simple script global variables would generally not be necessary.
chills42 has quit [Remote host closed the connection]
sdfgsdfg has quit [Read error: Connection reset by peer]
<jhass>
it's just a bad habit you shouldn't even get used to
<workmad3>
greenbigfrog: chances are in a simple, single-file script, your 'globals' could be local variables
<greenbigfrog>
and it's just a 26 line long script... and it won't get any longer...
<atmosx>
greenbigfrog: you appear to be someone who cares to much about design (e.g. using rubocop) while at the same time doesn't wanna follow best practices (use global vars)
<jhass>
you rather should get familiar with ways to replace them
<atmosx>
greenbigfrog: why are you using rubocop anyway?
<greenbigfrog>
ok....
<greenbigfrog>
atmosx: to improve my coding style...
<atmosx>
I hate the '' vs "" warnings
tonios57 has joined #ruby
<Papierkorb>
atmosx: disable them
<bougyman>
I never have those anymore
<atmosx>
greenbigfrog: well, then improve it :-) ... don't use globals
Swappticon has joined #ruby
<bougyman>
cause I always use ' unless interpolation is necessary.
<atmosx>
Papierkorb: I disabled rubocop :-P
rbennacer has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
juanpablo____ has joined #ruby
shmilan has joined #ruby
kies has joined #ruby
dopamean_ has joined #ruby
vyorkin has quit [Read error: Connection reset by peer]
jonnie has joined #ruby
bronson has joined #ruby
<Sou|cutter>
rubocop will fix those automatically if you want
poli has joined #ruby
<Sou|cutter>
but yeah, disable cops you don't care about
<[k-_>
dont allow linters to touch your code! they hardly know anything!
<bougyman>
the only change I make is longer line length and dot-on-end-of-line for continuation of lines (instad of dot-on-beinning-of-next-line)
<bougyman>
*changes
<[k-_>
dot should be on the beginning of the lines, no one notices the dots at the end when they skim
codecop has quit [Remote host closed the connection]
startupality has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
sevenseacat has quit [Quit: .]
bronson has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
bottom has joined #ruby
_0xd has joined #ruby
reapersknight77 has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
theery has joined #ruby
<havenwood>
So what's the best way to find the null byte?
xrlabs has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<jhass>
.include? "\x00" ?
northfurr has quit [Quit: northfurr]
CloCkWeRX has joined #ruby
bottom has quit [Client Quit]
<jhass>
I guess, "find?"
<emba>
Any expert in Inheritance in Ruby, I need to understand how to override the initialize method, but I dont' fully understand super/yielder functions in the child class: https://gist.github.com/embasbm/2764f8140bdb275d9f97
chussenot has quit [Quit: chussenot]
CloCkWeRX has left #ruby [#ruby]
reapersknight77 has quit [Client Quit]
<jhass>
emba: whatcha writing an Enumerator subclass for?
franckverrot has quit [Quit: WeeChat 0.4.1]
<jhass>
the yielder wants the values, yielder << compute_next
reapersknight77 has joined #ruby
<emba>
to create a customized one
<jhass>
yeah, but why a subclass?
<emba>
to use the methods from enumerator
|\|370 has quit [Remote host closed the connection]
<mbff>
so can I search for a null byte in my text editor?
<emba>
yielder is the mindblown for me
<jhass>
do you need multiple instances or parameterize it?
<havenwood>
mbff: On a GNU or BSD system?
theery has quit [Remote host closed the connection]
<mbff>
Arch?
<mbff>
so GNU?
riotjones has quit [Remote host closed the connection]
<jhass>
emba: if you only need a single instance consider MyEnumerator = Enumerator.new { }, else consider def foos; Enumerator.new { }
<jhass>
emba: and then iirc Enumerator's docs has a pretty decent example or two
<scpike>
Ox0dea: you recommended kiba to me a while back, just want to say it's turning out to be an awesome tool. If anyone is doing ETL via ruby scripts, definitely check it out
<emba>
jhass thanks, I'll keep trying
<mbff>
havenwood, no dice.
<havenwood>
mbff: no match? :O
<emba>
where can I find examples about yield or yielder?
<apeiros>
scpike: is it suitable for continuous etl?
<emba>
what's the diff between yield and yielder?
<apeiros>
i.e. we don't have etl "runs", we more or less stream data from system to system
<mbff>
havenwood, correct. No match. No results back. I ran the command in every directory on my project.
<mbff>
maybe I will start blaming rvm
<scpike>
apeiros: it'd work, but it's not what we're using it for and I don't have production experience with that kind of thing
<havenwood>
mbff: it's recursive so root dir should do, but i'm probably missing something
<apeiros>
scpike: ok
reapersknight77 has quit [Client Quit]
<havenwood>
mbff: already confirmed you're using latest RubyGems?
<mbff>
havenwood, yes I did the command you suggested last night.
<havenwood>
hmm
<mbff>
I also updated rvm
<mbff>
and updated all my gems
northfurr has joined #ruby
mary5030 has joined #ruby
Mon_Ouie has joined #ruby
<havenwood>
mbff: Public gem? I'd be curious if we run into same error?
tkuchiki has quit [Remote host closed the connection]
diego_ar has quit [Remote host closed the connection]
<eam>
not v? has all kinds of crazy parsing issues
shmilan has joined #ruby
<sagittarian>
are || and && likewise generally prefered to or and and (barring a need to do fancy things with precedence)?
reapersknight77 has left #ruby [#ruby]
<Ox0dea>
Yep.
<eam>
>> v = false; [not v]
<ruboto>
eam # => /tmp/execpad-1e2bfa696019/source-1e2bfa696019:2: syntax error, unexpected tIDENTIFIER, expecting '(' ...check link for more (https://eval.in/427582)
<atmosx>
I'm using backtics to connect a psql server and get hte timzone like: `psql #{db_url} -c 'show timezone'`. What is the best way to handle connection failure?
<havenwood>
mbff: Does `gem build strike_api` fail or just the gem install?
<eam>
sagittarian: which is an oddity of ruby, due to the parser -- they're generally NOT prefered in languages with a working parser
Rollabunna has quit [Remote host closed the connection]
<greenbigfrog>
so I can succesfully install curb (it's a gem) with sudo but not without... if I install the gem with sudo I can't access it wothout sudo... How do I fix this?
<greenbigfrog>
Btw I'm running ubuntu with jruby 9.0
Meow-J has quit [Quit: Connection closed for inactivity]
<[k->
--user-install
<headius>
curb is a native extension and won't run on JRuby
<havenwood>
mbff: the -a would also check in binary files
<ruboto>
eam # => /tmp/execpad-83e573483c49/source-83e573483c49:2: syntax error, unexpected keyword_true, expecting '( ...check link for more (https://eval.in/427586)
Soda has joined #ruby
<havenwood>
mbff: That is if `gem build strike_api.gemspec` works.
<havenwood>
mbff: Otherwise maybe push the repo somewhere others can test?
millerti has joined #ruby
<eam>
ruby's method parens aren't real precedence parens
livathinos has quit []
dionysus69 has joined #ruby
<mbff>
havenwood, it does not. Same error as rake build.
<havenwood>
mbff: yeah, i figured
<mbff>
havenwood, I could git commit the broken code to a git branch?
rushed has joined #ruby
tkuchiki has joined #ruby
<havenwood>
mbff: sure, git checkout -b broken
sigurding has joined #ruby
<havenwood>
mbff: then we could at least reproduce or if we can't it'd show something
<greenbigfrog>
[k-: ok... let me check that
<greenbigfrog>
it says installed but I still can't access it... still saying missing gems
<[spoiler]>
eam just sat down, looked at your message and read it as "ruby's parents aren't real presidential parrots"
<havenwood>
mbff: I can reproduce.
<eam>
[spoiler]: can you smell toast right now
<[spoiler]>
eam no, but I smell fudge
emba has quit [Read error: Connection reset by peer]
<eam>
superfudge?
<[spoiler]>
Yes
<havenwood>
mbff: tried in a few VMs and consistently null byte
ksteck has joined #ruby
<[spoiler]>
OK let me find my glasses before another incident
chadwtaylor has joined #ruby
Trynemjoel has joined #ruby
darthsidious__ has quit [Ping timeout: 246 seconds]
vyorkin has quit [Read error: Connection reset by peer]
husanu has quit [Remote host closed the connection]
<mbff>
so "works on my machine" means I too got the error?
husanu has joined #ruby
atomical has joined #ruby
grenierm has quit [Quit: grenierm]
devoldmx has joined #ruby
<havenwood>
mbff: found it
<greenbigfrog>
ok... just installed ruby via rvm... now it should work...
arturaz has quit [Remote host closed the connection]
prestorium has joined #ruby
<havenwood>
mbff: line 16 of your gemspec, double quotes around the null byte
<havenwood>
mbff: success!
dfhg has joined #ruby
<mbff>
havenwood, yes! Thank you
<mbff>
I wonder why the greps didn't catch that?
<havenwood>
mbff: you're welcome
aganov has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<havenwood>
mbff: i found with grep, dunno!
<[spoiler]>
The greps are rebelling
<[spoiler]>
mbff: you mistreat them
<mbff>
havenwood, well back to normal work. Thanks again man.
<havenwood>
mbff: yw
<[spoiler]>
?guys mbff
<ruboto>
mbff, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<havenwood>
[spoiler]: I relate to all things
cschneid_ has joined #ruby
<havenwood>
[spoiler]: :)
NeverDie has joined #ruby
dfinninger has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
umgrosscol has joined #ruby
<havenwood>
Well not *all* that's a bit overly broad.
xrlabs has quit [Quit: This computer has gone to sleep]
Trynemjoel has quit [Ping timeout: 250 seconds]
majjoha has quit [Ping timeout: 250 seconds]
TheNet has joined #ruby
husanu has quit [Remote host closed the connection]
AllNamesTaken99 has joined #ruby
husanu has joined #ruby
IrishGringo has joined #ruby
<AllNamesTaken99>
How do i convert this so it always gives 2 in the decimal place return_string += " amt:" + sprintf("%#12.2f",sub_hash[:sum_of_loans].to_f)
Trynemjoel has joined #ruby
ruby-lang691 has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
rehat has joined #ruby
<AllNamesTaken99>
Does anyone know? Even if it ends up 2 0's I'm trying to make sure it always has 2 in the decimal place
<bougyman>
it already does that.
jdawgaz has joined #ruby
Motoservo has quit [Read error: Connection reset by peer]
<bougyman>
num = 1234; sprintf("%#12.2f", num)
<bougyman>
=> " 1234.00"
<AllNamesTaken99>
I must be leaving some info out or something cause it doesn't do that
dstarh has joined #ruby
<AllNamesTaken99>
it can go up to 2 in the decimal but most of my numbers are coming out with 1
rushed has quit [Quit: rushed]
<bougyman>
what happens when you type what I just typed in an irb or pry?
startupality has quit [Read error: Connection reset by peer]
<AllNamesTaken99>
exactly as you wrote 1234.00
<AllNamesTaken99>
so I don't know what information I'm leaving out
<bougyman>
that's what the .2f does.
dionysus69 has quit [Read error: Connection reset by peer]
dionysus70 has joined #ruby
<darix>
moin bougyman
<AllNamesTaken99>
yea but I must be missing some information for you, because it's not doing it
<bougyman>
you just said it did it.
<bougyman>
now i'm confused.
siaw has joined #ruby
<AllNamesTaken99>
No it worked in IRB, but I mean along with the rest of my code
<AllNamesTaken99>
everything is displaying a single 0 in decimals
startupality has joined #ruby
Azure has joined #ruby
chadwtaylor has quit [Quit: Leaving...]
dionysus70 is now known as dionysus69
allcentury has quit [Quit: WeeChat 1.2]
dgutierrez1287 has joined #ruby
Motoservo has joined #ruby
startupality has quit [Client Quit]
Azure|dc has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
<[spoiler]>
AllNamesTaken99: post a gist with your code? Maybe something else is manipulating the value?
<AllNamesTaken99>
thanks I have no clue, I typed it wrong but I'm not using it right I think
<AllNamesTaken99>
I mean I typed it right*
rubie has joined #ruby
bronson has joined #ruby
nanoz has joined #ruby
lele has joined #ruby
poli has quit [Ping timeout: 246 seconds]
AllNamesTaken99 has quit [Ping timeout: 246 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sagittarian has quit [Ping timeout: 250 seconds]
poli has joined #ruby
emba_ has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 264 seconds]
majjoha has joined #ruby
emba has joined #ruby
bootstrappm has joined #ruby
riotjones has joined #ruby
cdrage has joined #ruby
Kallis has joined #ruby
<bootstrappm>
morning all
Kallis has quit [Max SendQ exceeded]
<bootstrappm>
is ri exiting on certain "Nothing known about..." expected behavior?
theta8 has joined #ruby
leat has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has joined #ruby
cdrage has left #ruby ["WeeChat 1.3-dev"]
Trynemjoel has quit [Ping timeout: 264 seconds]
mbff has quit [Quit: Leaving]
icarus has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 244 seconds]
Iskarlar has joined #ruby
The_Phoenix has joined #ruby
Trynemjoel has joined #ruby
freerobby has joined #ruby
hinbody has joined #ruby
rehat has quit [Read error: Connection reset by peer]
xet7_ has quit [Ping timeout: 246 seconds]
gguggi has joined #ruby
<theta8>
What's a pleasent to use XML parsing gem? the standard rexml is alright but im sure there is something better to use, any favorites?
<jhass>
nokogiri, probably outranked by oga in the future though
xet7_ has joined #ruby
diego_ar has joined #ruby
Kallis has joined #ruby
<theta8>
jhass, i don't know why I didn't think of nokogiri. Never heard of oga though
bubbys has quit [Ping timeout: 250 seconds]
Kallis has quit [Max SendQ exceeded]
war_pigs has joined #ruby
chills42 has quit [Remote host closed the connection]
ivanskie has joined #ruby
<Sou|cutter>
ox is ok too. I try to avoid nokogiri as much as possible
diego_ar has quit [Ping timeout: 246 seconds]
<bootstrappm>
why's that Sou|cutter?
<[spoiler]>
theta8: oga is amazeballs
jgt has quit [Ping timeout: 244 seconds]
<Papierkorb>
is it a good writer too? nokogiri is quite pleasant to use for that IMO
freerobby has quit [Quit: Leaving.]
emba_ has joined #ruby
<theta8>
im looking at it now, it looks similar to what i imagined i would want to use
theery has joined #ruby
<[spoiler]>
only advantage nokogiri has is that is backed by libxml, which isn't really an advantage all things considered.
ofdtrinity has joined #ruby
theery has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
psy_ has joined #ruby
<Papierkorb>
[spoiler]: why?
theery has joined #ruby
<[spoiler]>
Papierkorb: yes you can emit/serialise xml too
psy_ has quit [Max SendQ exceeded]
<Sou|cutter>
bootstrappm: it's hard to express. I've run into all sorts of problems with it over the years. libxml2 issues sometimes, encoding issues
psy_ has joined #ruby
emba has quit [Read error: Connection reset by peer]
<Sou|cutter>
after burning myself so many times I just look to alternatives, even if issues have been mitigated since
<[spoiler]>
Papierkorb: because it's a bit... I'm not sure what the word is that I'm looking for, but it's a cousin of "overkill" lol
meatherly has joined #ruby
<bootstrappm>
got it, that general 'this sucks' feeling
AlxAltea has quit [Ping timeout: 246 seconds]
<bootstrappm>
I've used it a lot and run into a bunch of issues at the beginning but mostly dependency issues and not know what i was doing. Its my goto now
<bootstrappm>
not knowing*
chussenot has joined #ruby
<theta8>
I've got lists of cameras in xml format i need to muck through, someone in the company is in love with spreadsheets and gave me a "tool" that is making my life worse
<Sou|cutter>
I think nokogiri has some funky interfaces also, but that's mainly aesthetic
<[spoiler]>
Sou|cutter: oh yes that too lol
|\|370 has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
<[spoiler]>
There should just be a decent libxml2 wrapper (maybe there is?) instead of nokogiri. Not to mention there's some custom libxml patches in nokogiri
towski_ has joined #ruby
allcentury has joined #ruby
<bootstrappm>
theta8: if its already a spreadsheet why not CSV -> whatever format you wish?
Ox0dea has left #ruby ["WeeChat 1.3"]
<allcentury>
umm, is an attr_reader on a class inherently immutable once the class is initialized?
rushed has quit [Quit: rushed]
<theta8>
bootstrappm: the data isn't in the spreadsheet, the spreadsheet is a bunch of formulas to generate data from the xml
<[spoiler]>
allcentury: what do yo mean by immutable?
<Papierkorb>
allcentury: it's a reader, you can never set the value through it. The @value behind it is still a free for all though
<bootstrappm>
allcentury it's just a shortcut to create a method of the same name as the instance variable
<bootstrappm>
to read
<[spoiler]>
allcentury: it just creates a method called the same name as the symbol/s
Ox0dea has joined #ruby
gizmore has joined #ruby
<allcentury>
I understand that, but let's see I set the value of that variable in the initializer. No one will be able to mutate it thereafter right?
<allcentury>
I'll get no method for var_name=
<jhass>
the class will
<[spoiler]>
(bootstrappm: there's some more magic behind it technically)
<jhass>
and well instance_variable_set but that doesn't count
<[spoiler]>
all any ruby code evaluated outside of the instance won't be able to modify it
paulcsmith has joined #ruby
<bootstrappm>
yeah if you do object.instance_variable_set(:@var_name, 'new value') you can pretty much modify anything
<[spoiler]>
(except for what jhass said), and also instance_eval
<Ox0dea>
And also Fiddle.
<[spoiler]>
lol
<Ox0dea>
Nothing is really off-limits in Ruby.
<Ox0dea>
Except FrozenCore's singleton class in 2.1+.
rubie has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenarrow has quit [Quit: 500]
rubie has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Quit: Quitting]
howdoi has quit [Quit: Connection closed for inactivity]
andikr has quit [Remote host closed the connection]
amclain has joined #ruby
maletor has joined #ruby
rushed has joined #ruby
Trynemjoel has joined #ruby
eGGsha has joined #ruby
<allcentury>
can I freeze it?
<Ox0dea>
allcentury: Go for it.
<allcentury>
def initialize(something); @something = something; @something.freeze; end -- like that?
DexterLB has quit [Read error: Connection reset by peer]
<jhass>
no, .freeze freezes the object, not the variable
<allcentury>
right
baroquebobcat has joined #ruby
<jhass>
so you want to free self if anything
<jhass>
*freeze
<allcentury>
free thyself
<Ox0dea>
>> require 'fiddle'; class Object; def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8 end end; s = 'foo'.freeze; s.thaw; s.frozen?
dfinninger has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
poguez_ has joined #ruby
pietr0 has joined #ruby
prosody has quit [Quit: Updating details, brb]
prosody has joined #ruby
dfockler has joined #ruby
DexterLB has joined #ruby
umgrosscol has quit [Quit: End of Line]
joonty has quit [Quit: joonty]
Timba-as has quit [Quit: Be back later ...]
rushed has quit [Quit: rushed]
fgo has quit [Ping timeout: 268 seconds]
war_pigs has quit [Quit: laters.. I'm out.]
startupality has joined #ruby
Pupeno_ has joined #ruby
atzorvas has quit [Read error: Connection reset by peer]
allomov_ has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
<Queeniebee>
Hello, I'm using readlines() on a .txt file that includes prices. I get a TypeError no implicit conversion of File into Integer. Does readlnes() only work on txt files without any numeric characters?
<jhass>
target.readlines(target) ? why would you pass it to it again? Anyway, don't use ^, Use File.readlines(filename)
leat has quit [Remote host closed the connection]
<Ox0dea>
Queeniebee: The argument to #readlines specifies the size of chunks to read, not the file to read from.
ruby-lang955 has quit [Ping timeout: 246 seconds]
<Queeniebee>
0x0dea okay
leat has joined #ruby
<Ox0dea>
Queeniebee: Do you want to perform some action for each line in the file, or are you just trying to get all the lines as an array of strings?
xrlabs has joined #ruby
|\|370 has quit []
michael_mbp has joined #ruby
<Queeniebee>
Ox0dea: My intention is to perform an action on each line. Reading through the documentation, readlines() seemed best because it reads each line into an array
thomas has quit [Quit: leaving]
pawnbox has joined #ruby
<dzejms>
Can someone walk me through installing RCM toughtbot file manager ? I've tryed to figure it out but just keep failing felling a bit frustrated atm.. :|
<jhass>
File.foreach(filename) do |line|
<Ox0dea>
Queeniebee: Aye, that's what it does, but that's not really what you want. You don't need to collect them all into an Array first if your intention is to act on them one-by-one.
tjohnson has joined #ruby
<Queeniebee>
Ox0dea: so a foreach loop is best then?
<Ox0dea>
Queeniebee: jhass's suggestion is quite good.
senayar has quit []
MVPhelp_ has quit [Ping timeout: 246 seconds]
Swappticon has joined #ruby
<Queeniebee>
Ox0dea: jhass thank you and back to the original question, I am curious as to why the TypeError is thrown
<Ox0dea>
Queeniebee: Because you passed in a File where a number was expected.
<Ox0dea>
Observe the output of target.readlines(3), for example.
<Queeniebee>
Ox0dea: understood!
xrlabs has quit [Read error: Connection reset by peer]
<Queeniebee>
Ox0dea: jhass: thank you
<Ox0dea>
Happy to help.
xrlabs has joined #ruby
pawnbox has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
wldcordeiro__ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
krisquigley has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
darthsidious_ has quit [Remote host closed the connection]
patrick_star has quit [Ping timeout: 264 seconds]
leat has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
siaw_ has joined #ruby
leat has joined #ruby
siaw has quit [Ping timeout: 240 seconds]
siaw_ is now known as siaw
krisquigley has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
altivection has joined #ruby
dgutierrez1287 has joined #ruby
crazydiamond has quit [Ping timeout: 244 seconds]
yqt has quit [Ping timeout: 268 seconds]
eightfold has joined #ruby
freerobby has joined #ruby
<failshell>
i want to stream logs into a file. I feel File.write isnt the way to go, as it will open, write entry, close the file on each loop. how should i do it?
<radens>
Will an erb file escape arbitrary inputs such that they will be safe for json files?
Aswebb_ has joined #ruby
majjoha has joined #ruby
<Ox0dea>
radens: Define "JSON-safe"?
<Ox0dea>
failshell: Call #write on an actual File object.
<jhass>
failshell: how about logger stdlib? possibly with a custom formatter?
benlovell has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
<radens>
Ox0dea: yeah. I want to take arbitrary strings and stick them in a json file with a certain structure.
Musashi007 has quit [Quit: Musashi007]
revoohc has joined #ruby
leat has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
jdawgaz has joined #ruby
sarkyniin has joined #ruby
<radens>
I want to make sure the string (which is interpolated with erb) won't change the structure of the json.
leat has joined #ruby
patrick_star has joined #ruby
BecomingCoder has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
<radens>
Like { "prop": "<%= some_string %> } and if some_string is 'a","some_other_prop": "value",'
<jhass>
you're doing it wrong
<jhass>
build a hash and .to_json it
majjoha has quit [Ping timeout: 244 seconds]
segmond has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
xrlabs has quit [Read error: Connection reset by peer]
<radens>
jhass: I was thinking of trying to reuse as much yard infrastructure as possible.
<jhass>
wat
<radens>
But maybe you're right.
rbennacer has quit [Remote host closed the connection]
leat has quit [Ping timeout: 250 seconds]
<radens>
well yard typically outputs html, but I want it to output json to feed to another system.
baweaver has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
_djbkd has joined #ruby
<radens>
I basically want to create a custom json theme.
robbyoconnor has quit [Ping timeout: 260 seconds]
<jhass>
well, you *could* "prop": <%= whatever.to_json %> but... it just feels wrong
<radens>
I know
<allcentury>
Ok, help. I am trying to send a token from a user to an external API. This API will only accept tokens that are alphanumeric. I have many tokens that already have underscores so I can't change them at this point. Can I somehow "hex" these non-alphanumeric characters or is there some kind of 2-way hash/hexencode thing I can do?
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
grotewold has joined #ruby
<Ox0dea>
allcentury: Well, there's CGI.escape, but it doesn't treat underscores specially.
<Ox0dea>
Is underscore the only non-alphanumeric character in your tokens?
juanpablo____ has quit [Ping timeout: 250 seconds]
juanpablo____ has joined #ruby
meatherly has quit []
segmond has joined #ruby
umgrosscol has joined #ruby
TheNet has quit [Remote host closed the connection]
dionysus69 has joined #ruby
xrlabs has quit [Ping timeout: 264 seconds]
xrlabs has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has joined #ruby
rbennacer has joined #ruby
bb010g has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mleung has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chrisbolton>
Anyone aware of a fluentd plugin that will read one json log file and write each line to a specific log file based on a json field per line, json log -> {stuff: ‘things’, application_id: 123} -> 123.json ?
baweaver has joined #ruby
Valeness is now known as omfgtora
omfgtora is now known as valeness
fgo has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
dfinninger has joined #ruby
AlxAltea has joined #ruby
chills42 has quit [Ping timeout: 246 seconds]
evilthomas is now known as homas
leat has joined #ruby
RegulationD has joined #ruby
leafybasil has quit [Remote host closed the connection]
xrlabs has quit [Quit: This computer has gone to sleep]
axilla has joined #ruby
<Ox0dea>
Sorry, I misinterpreted. You'll just have to use #map on the resultant values.
lampd1 has quit [Remote host closed the connection]
<axilla>
hi all i have some database values(link.access_level_id = 1, 2, or 3) I want to label the links based on wether they have access level 1, 2, or 3.. without a bunch of different if then statements, whats the easiest way to do this? link to some good reading material would be great, thanks.
<axilla>
not easiest, cleanest.
<istrasci>
Ox0dea: Yeah, that's what I thought. Thanks.
<Ox0dea>
Sure thing.
Narzew has joined #ruby
<[spoiler]>
axilla: hash or array?
mleung has quit [Quit: mleung]
lampd1 has joined #ruby
<[spoiler]>
access_label[link.access_level_id]
<Ox0dea>
-1
<[spoiler]>
where access_label is a hash
<Ox0dea>
Oh.
<Ox0dea>
Hashes with sequential numeric keys are silly.
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanloky has joined #ruby
<axilla>
i like that.
<jhass>
should go into a view helper or so
<axilla>
yep
<[spoiler]>
Ox0dea: 0 idex could be nil tho
<[spoiler]>
index
<Ox0dea>
Hm?
<[spoiler]>
if that's why you meant by -1
tomaz_b has joined #ruby
<Ox0dea>
Yes.
<[spoiler]>
aye
nucatus has joined #ruby
Mendenhall has joined #ruby
<Ox0dea>
But that value would never be accessed?
<[spoiler]>
assuming the ids are enumerated
grotewold has joined #ruby
mleung has joined #ruby
<[spoiler]>
Ox0dea: true, but dunno doesn't seem like a big waste, although I prefer hash
<Ox0dea>
Oh, sorry. I misinterpreted again.
Vile` has quit [Ping timeout: 240 seconds]
<[spoiler]>
it's clearer
<[spoiler]>
Ox0dea: your interpreter has a bug!
<axilla>
i like the helper idea, thx! that'll do me
<Ox0dea>
[spoiler]: Right?
<[spoiler]>
go patch it
<[spoiler]>
:D
thejamespinto has quit []
<Ox0dea>
Eh, Array is basically Hash for when your keys are numeric and (even roughly) sequential, in my opinion.
<Ox0dea>
Except faster and smaller.
<toretore>
axilla: it would be helpful to know more details of what exactly this is to be used for
rushed has quit [Client Quit]
TheNet_ has joined #ruby
<axilla>
toretore: i'm just trying to display some links that get genreated in our app when a user shares a collection.. the access_level is a freaking horrible name for it(dates back before my time with the company) and is actually just links to different resolutions of images.
<axilla>
the links are based off the resolution of the images inside the collection "low, medium, high" access_level_id is the name they give the id's of each of those, which is either 1, 2, or 3
TheNet has quit [Ping timeout: 252 seconds]
<axilla>
so, i'm gonna create a helper as suggested, i like it.. and feed it the id and pull the data i need.
<Ox0dea>
axilla: So why not just %w[low medium high][access_level_id - 1]?
tubuliferous has joined #ruby
emba_ has quit [Remote host closed the connection]
Pumukel has joined #ruby
negev has joined #ruby
IrishGringo has joined #ruby
Narzew_ has joined #ruby
meatherly has quit []
JoshL has quit []
Igorshp has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
Igorshp has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kies has quit [Ping timeout: 244 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
jonnie has joined #ruby
dagda1 has joined #ruby
khebbie has joined #ruby
istrasci has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
revoohc has quit [Quit: revoohc]
freerobby has joined #ruby
bl4ckpajamas has joined #ruby
Guest50 has joined #ruby
devoldmx has joined #ruby
<negev>
hi, i'm writing a simple webapp using rack. why is it that when i stream a file back to the browser, the browser hangs for a long time before downloading anything? i'm using Rack::File which i understand is an enumerate object that should chunk the file to the browser bit by bit
<negev>
but somehow it still hangs for a long time before the browser starts downloading the file
<negev>
s/enumerate/enumerable sorry
<negev>
been a long day :)
crazydiamond has joined #ruby
dfhg has joined #ruby
majjoha has joined #ruby
sarkyniin has quit [Quit: Quit]
phutchins has quit [Ping timeout: 272 seconds]
sarkyniin has joined #ruby
dagda1 has quit [Ping timeout: 240 seconds]
sphex has quit [Ping timeout: 250 seconds]
renodice has joined #ruby
nucatus has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 260 seconds]
dfhg has quit [Ping timeout: 250 seconds]
dagda1 has joined #ruby
Narzew_ has quit [Quit: Leaving]
balazs has joined #ruby
aswen has joined #ruby
sphex has joined #ruby
<balazs>
hi, can I run a shell command in the background and have it return immediately ? something like `foo &`
majjoha has quit [Ping timeout: 265 seconds]
eightfold has quit [Quit: eightfold]
<arup_r>
bundle install is saying "Could not fetch specs from a <url>.." How can I see the details of such error in the terminal. Does bundle has any such options for long stack trace ?
<atmosx>
arup_r: I just removed purecss from my project and went with boostrap just to use read-made themes. I'm not capable of producing anything good looking (or I'm doing it wrong).
<atmosx>
arup_r: why not?
<arup_r>
If I write CSS then the page works in my browser only.. and rest browsers better not to mention.. :/
weemsledeux has quit [Remote host closed the connection]
<arup_r>
because the project using some gems that hosted in their prvt network and it seems some files are deleted.
<arup_r>
so bundler is failing.. and telling - "referring
<arup_r>
page</a> seems to be wrong or outdated. Please inform the author of"
DCameronMauch has joined #ruby
rbennacer has quit [Remote host closed the connection]
grotewold has joined #ruby
fschuindt has joined #ruby
yfeldblu_ has joined #ruby
benlovell has joined #ruby
<the_odin_project>
I have it written so far that the server creates a TCPServer object and used in a loop that it accepts the connections to the client and then gets the request from the client.
khebbie_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
weemsledeux has joined #ruby
schfkt has joined #ruby
<the_odin_project>
Then it parses the request so that it sees if it is a POST or GET. Similarly the Client is written so far so when it runs it can either do a POST or GET.
yfeldblum has quit [Ping timeout: 256 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Mendenhall has quit [Ping timeout: 255 seconds]
<the_odin_project>
If I do the GET as I write it, it send the request to the server and then is supposed to receive and then print the file from the server.
dmmoody has quit [Remote host closed the connection]
<dfockler>
the_odin_project: can you post code on gist.github.com
DCameronMauch has quit [Quit: Leaving...]
rehat__ has joined #ruby
<the_odin_project>
ok that is good idea
dmmoody has joined #ruby
Coldblackice has joined #ruby
dmmoody has quit [Remote host closed the connection]
ascarter has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
husanu has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
chills42 has quit [Ping timeout: 246 seconds]
vyorkin has quit [Client Quit]
northfurr has quit [Quit: northfurr]
baweaver has quit [Remote host closed the connection]
solars has quit [Ping timeout: 244 seconds]
majjoha has joined #ruby
icarus has quit [Quit: leaving]
jgpawletko has joined #ruby
baweaver has joined #ruby
fschuindt has quit [Ping timeout: 246 seconds]
<the_odin_project>
EM looks pretty great, I feel like I am making some elementary error and only need to fix a small part but I will used it if need be
michael_mbp has quit [Excess Flood]
fschuindt has joined #ruby
majjoha has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
garethrees has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
michael_mbp has joined #ruby
tomaz_b has quit [Quit: Leaving]
sgambino has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
sgambino has quit [Client Quit]
krisquigley has joined #ruby
rushed has joined #ruby
sdwrage has joined #ruby
David27 has joined #ruby
garethrees has quit [Ping timeout: 240 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
craysiii has joined #ruby
leafybasil has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Remote host closed the connection]
ipstatic has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
dudedudeman_ has joined #ruby
toretore has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jardayn has joined #ruby
ipstatic has joined #ruby
razrunelord has joined #ruby
BTRE has joined #ruby
aaeron has quit [Quit: Leaving.]
<dudedudeman_>
but of course
michael_mbp has joined #ruby
jdawgaz has joined #ruby
<baweaver>
meta, probably, but what's ruby-pro?
dblessing has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Yalcolo has joined #ruby
<Yalcolo>
wow
<baweaver>
joined either way, voice only?
<Yalcolo>
I can talk in roobee again
<Yalcolo>
before it was +R or registered talk only
Narzew has quit [Read error: Connection reset by peer]
<apeiros>
Yalcolo: it's troll season, so we sometimes require registration
blackmesa has joined #ruby
<apeiros>
it's usually announced in the topic
nofxx has joined #ruby
nofxx has joined #ruby
Narzew has joined #ruby
<baweaver>
read: HS and College students don't have enough homework yet to keep them busy.
<apeiros>
baweaver: yes, #ruby-pro is permanently moderated. you need somebody to vouch for you to get voice. it's currently a dead channel and as you know I'm *slightly* occupied with more pressing issues before I can get to revive it again :)
prestorium has quit [Ping timeout: 250 seconds]
<baweaver>
though more offtopic than anything (#ruby-offtopic if you want to)
<the_odin_project>
Excellent, that was bugging me to no end because I had it working before. The problem now is that I can't access the data after the top line in the POST request. I used the "gets(' ')" to grab everything. Any ideas?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<the_odin_project>
Thank you in any case dfockler
rushed has quit [Quit: rushed]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 240 seconds]
neanderslob has joined #ruby
dudedudeman_ is now known as dudedudeman
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<dfockler>
the_odin_project: Sure thing, IO stuff is weird to wrap your head around at first
dzejms has quit [Quit: Leaving]
<apeiros>
btw., if anybody has ambitions and wants to revive #ruby-pro - feel free to approach me :)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<dfockler>
What do they do in #ruby-pro?
<dudedudeman>
isn't that where the uber advanced ruby users talk?
<dudedudeman>
and discuss issues?
benlovell has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
TheNet_ has joined #ruby
<apeiros>
dudedudeman: the idea was more to have a channel where you can more or less be certain that if somebody asks a question, they'll not drive you mad when you try to help them
tobiasvl has quit [Ping timeout: 246 seconds]
<craysiii>
i want that
ipstatic has quit [Ping timeout: 264 seconds]
<dudedudeman>
apeiros: that makes a lot of sense
tvl has joined #ruby
CanTonic has joined #ruby
tvl is now known as tobiasvl
<baweaver>
most of the people in there are heavy OSS contributors
naftilos76 has quit [Remote host closed the connection]
TheNet has quit [Read error: Connection reset by peer]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
ap4y has joined #ruby
iateadonut has quit [Quit: Leaving.]
benlovell has quit [Ping timeout: 272 seconds]
aaeron has joined #ruby
codenapper has quit []
anisha has joined #ruby
ipstatic has joined #ruby
HAL2328 has quit [Quit: Leaving]
failshell has quit [Remote host closed the connection]
dblessing has joined #ruby
Narzew has quit [Quit: Leaving]
schfkt has left #ruby [#ruby]
rubie has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
benlovell has joined #ruby
anisha has quit [Client Quit]
Narzew has joined #ruby
baweaver has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<dfockler>
they're probably too busy to answer your questions
TheNet has joined #ruby
dotix has quit [Quit: Leaving]
TheNet_ has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
_gautam_ has joined #ruby
grotewold has joined #ruby
<bootstrappm>
I asked this earlier but hopefully with new people there's an answer. When I use ri in interactive mode and enter a capitalized word that doesn't exist as a class / module (e.g. Blah) it says "nothing is known about Blah" and exists. Is that intended behavior? if I put a lowercase string it says nothing is known about it and stays alive
swgillespie has left #ruby [#ruby]
grenierm has quit [Quit: grenierm]
Pathfinder has quit [Ping timeout: 264 seconds]
neanderslob has quit [Remote host closed the connection]
Pathfinder has joined #ruby
grenierm has joined #ruby
_gautam_ has quit [Client Quit]
rehat__ has quit [Remote host closed the connection]
finisherr has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
dzejms has joined #ruby
dzejms_ has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
dnewkerk_ has joined #ruby
dnewkerk has quit [Ping timeout: 246 seconds]
dnewkerk_ is now known as dnewkerk
crazydiamond has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
neanderslob has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
grenierm has quit [Quit: grenierm]
Aswebb_ has joined #ruby
lacriment has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
weemsledeux has joined #ruby
nertzy has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
northfurr has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
bigredboots has quit [Remote host closed the connection]
<drbrain>
bootstrappm: it's a bug
theery has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
axilla has quit [Quit: Lost terminal]
s00pcan has quit [Remote host closed the connection]
leat has quit [Ping timeout: 272 seconds]
umgrosscol has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
cschneid_ has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
pandaant has quit [Remote host closed the connection]
northfurr has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
glenn_ has joined #ruby
michael_mbp has joined #ruby
BTRE has quit [Quit: Leaving]
Musashi007 has joined #ruby
rushed has joined #ruby
<bootstrappm>
thanks drbrain, noted
dfhg has joined #ruby
neanderslob has quit [Remote host closed the connection]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has quit []
jgt has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
fschuindt1 has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
paulcsmith has joined #ruby
nzst has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
jobewan has quit [Quit: Leaving]
jdawgaz has joined #ruby
jonnie has quit [Ping timeout: 272 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
fschuindt1 has joined #ruby
meatherly has quit [Client Quit]
maletor has quit [Read error: Connection reset by peer]
nihilistic_kant has quit [Quit: Page closed]
majjoha has joined #ruby
meatherly has joined #ruby
michael_mbp has quit [Excess Flood]
failshell has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
michael_mbp has joined #ruby
tuxero has joined #ruby
existensil has joined #ruby
<radens>
How do I call the method of my superclass's parent?
nzst has quit [Ping timeout: 246 seconds]
millerti has quit [Ping timeout: 246 seconds]
theery has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<radens>
I have JsonSerializer which descends from YardocSerializer from FileSystemSerializer. I want to call FileSystemSerializer#serialize from JsonSerializer#serialize
existensil has quit [Client Quit]
meatherly has quit [Client Quit]
chipotle has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
jesterfraud has joined #ruby
existensil has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
SCHAAP137 has quit [Quit: Leaving]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
majjoha has quit [Ping timeout: 246 seconds]
sdfgsdfg has joined #ruby
bronson has quit [Remote host closed the connection]
patrick_star has quit [Ping timeout: 244 seconds]
paulcsmith has quit [Quit: Be back later ...]
swills has quit [Quit: leaving]
paulcsmith has joined #ruby
aaeron has quit [Quit: Leaving.]
<drbrain>
super
<radens>
drbrain: how about super's super?
<drbrain>
that one doesn't super?
sdfgsdfg has quit [Read error: Connection reset by peer]
<radens>
it does, but I don't want to call it.
sdfgsdfg has joined #ruby
<drbrain>
you might be able to do something fancy with method binding
theery has joined #ruby
<drbrain>
otherwise you cut and paste
<bricker>
radens: maybe add a parameter the method and check that parameter in each method override
<Ox0dea>
radens: Save a reference to the super method, temporarily undefine it, invoke super, put the method back in place?
Pathfinder has quit [Ping timeout: 264 seconds]
<drbrain>
Ox0dea: not thread-safe
<radens>
bricker: Ox0dea those sound like good ideas but I don't own suoer or super's super. They live in library code.
robbyoconnor has joined #ruby
<Ox0dea>
radens: That doesn't mean you can't get access to them?
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
<Ox0dea>
drbrain: Could he store the reference in one of the "thread-global" variables?
<bricker>
you'd need to synchronize to make sure nothing tries to call that method while it's undefined
<radens>
Ox0dea: monkeypatch super's super to add an alias?
<drbrain>
Ox0dea: if you have A < B < C, and you remove a method from B it disappears from everyone's B
<Ox0dea>
drbrain: Oh, right.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
<drbrain>
that might not be a consideration here, but I think method rebinding is less perilous and more robust
<Ox0dea>
radens: #instance_method, #undef_method, and #define_method.
<Ox0dea>
It's certainly a little crazy, mind, but it should work.
* radens
sighs
ngscheur1 has quit [Quit: WeeChat 1.2]
<radens>
I was hoping I could just run super.super or something