skade has quit [Quit: Computer has gone to sleep.]
<zenspider>
I'm about to cut a beta soon
<eam>
I don't even have a linux box with a graphics display right now, unless I count the rpi in my garage
Kyuujitsu has quit [Ping timeout: 260 seconds]
dimasg has joined #ruby
gaboesquivel has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<eam>
(and there's no way I'm doing development on that)
avitzur__ has quit []
dimasg has quit [Client Quit]
Pupeno has joined #ruby
hashrocket has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
dimasg has joined #ruby
<zenspider>
eh. then just go critique the examples by code reading...
pengin has quit [Remote host closed the connection]
<eam>
zenspider: oh, I'll build on osx :)
htmldrum has joined #ruby
<zenspider>
or that.
<zenspider>
if you have homebrew... there's a shell script at the top that'll set up everything you need
tenderlove has quit [Remote host closed the connection]
<zenspider>
and run through a couple sanity tests
<eam>
beauty
pietr0 has quit [Quit: pietr0]
Musashi007 has joined #ruby
<dfockler>
zenspider: this looks cool
<shevy>
wheeee zenspider goes 3D :D
lannonbr has joined #ruby
Aeyrix has quit [Max SendQ exceeded]
rehat has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
<zenspider>
the biggie for me was wanting to be able to use normal maths
Igorshp has quit [Remote host closed the connection]
<dfockler>
instead of weird x/y coords?
<zenspider>
so I fixed it to use right hand rule rotation and to use quadrant 1
bruno- has joined #ruby
<zenspider>
I wanted my trig functions to work normally
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Aeyrix has joined #ruby
nfk has quit [Remote host closed the connection]
marr has quit []
Pupeno has quit [Remote host closed the connection]
<dfockler>
that is pretty nice not having to think of the screen as being at a 45 degree angle upside down
Kyuujitsu has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
rjno has joined #ruby
Kyuujitsu has joined #ruby
ivanskie has joined #ruby
Azure has quit [Ping timeout: 272 seconds]
<zenspider>
it especially bugged me that it wasn't quadrant 4 (negative Y)... but quadrant 1 flipped
johny_ has joined #ruby
<johny_>
Hi everyone
Inside has joined #ruby
Inside has joined #ruby
johny_ has quit [Client Quit]
swgillespie has joined #ruby
<dfockler>
hey I saw a window! It worked!
Ruby_ has joined #ruby
<Ruby_>
hi
<Ruby_>
Hi all
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ruby_>
I have a todo app in rails and I want to edit a todo and delete a todo and not sure how to create the view to do so, Please Help
<zenspider>
dfockler: fantastic
<zenspider>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ruby_>
Yep
rjno has quit [Ping timeout: 246 seconds]
pengin has joined #ruby
<zenspider>
I just got some labs back. I gotta go home and cook a 1 lb ribeye to celebrate.
<zenspider>
laters
<dfockler>
goodbye!
<zenspider>
dfockler: write some examples and throw them at me!
dopie has joined #ruby
<dfockler>
alright :)
<Ruby_>
@ruboto, I cant post in the RubyOnRails chatroom
Ruby_ has quit [Client Quit]
<centrx>
And...it's gone
Kyuujitsu has quit [Ping timeout: 260 seconds]
khebbie has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar>
I see the intelligence test for #rubyonrails is still working wonders.
Kyuujitsu has joined #ruby
Azure has joined #ruby
<Ox0dea>
Which was the first thousand-story building?
auzty has joined #ruby
havenwood has joined #ruby
danzilio has quit [Quit: Baiii!]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
khebbie has quit [Ping timeout: 250 seconds]
j_mcnally has joined #ruby
Musashi007 has quit [Quit: Musashi007]
d10n-work has quit [Quit: Connection closed for inactivity]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: This computer has gone to sleep]
j_mcnally has quit [Client Quit]
mjuszczak has quit []
Pupeno has joined #ruby
hashrocket has joined #ruby
michael_mbp has quit [Excess Flood]
<zenspider>
make that a 25 oz ribeye. holy crap that's big
<zenspider>
already in the oven... but only 41 degrees. it's gonna take aw hile
nfk has quit [Remote host closed the connection]
<zenspider>
...a while.
dimasg has quit [Ping timeout: 244 seconds]
<dfockler>
zenspider: did that graphics library need a gemspec, because I wrote one to install it
leesharma has joined #ruby
oo_ has joined #ruby
<zenspider>
dfockler: not the way I do my gems, no
Kyuujitsu has quit [Ping timeout: 250 seconds]
<dfockler>
oh how do you install them?
bradleyprice has quit [Remote host closed the connection]
<zenspider>
dfockler: for what you're doing, you need not install at all
bradleyprice has joined #ruby
hashrocket has quit [Client Quit]
<zenspider>
rsdl -Ilib example/boids.rb for example
wldcordeiro_ has joined #ruby
<zenspider>
(press d! then press b and s to make the radius bigger and smaller)
<zenspider>
(so cool)
Kyuujitsu has joined #ruby
<zenspider>
rake newb && rake install_gem will suffice locally... I'm about to release a beta versioned gem tho, so just gem install will work after that
<dfockler>
oh! yeah! -I does includes that path huh
Rollabunna has joined #ruby
michael_mbp has joined #ruby
rgs has left #ruby [#ruby]
jackjackdripper has quit [Quit: Leaving.]
sevenseacat has joined #ruby
<eam>
dependencies: reminding me why I like to stay away from the apex of product code and instead do lower level stuff
woobywooby has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
baroquebobcat_ has joined #ruby
<woobywooby>
anyone familiar with twilio here?
Rollabunna has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
<woobywooby>
trying to get the image url from a text but params[MediaUrl0] outputs a link to the image the image address itself
<woobywooby>
link to the image rather than the image address itself*
tkuchiki has joined #ruby
millerti has joined #ruby
dfockler has quit [Remote host closed the connection]
<woobywooby>
normally a link to the image would be fine but i need the image address itself because imagemagick on heroku spits out "ERROR: no decode delegate for this image format"
pdoherty has quit [Quit: Leaving]
Azure has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
baweaver has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 272 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<woobywooby>
this might be a unique problem huh
<centrx>
What's twilio
tkuchiki has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
Azure has joined #ruby
<centrx>
?ruby
<ruboto>
I don't know anything about ruby
<woobywooby>
your name is ruboto
weemsledeux has joined #ruby
<woobywooby>
lol
<centrx>
That's the bot
<woobywooby>
oh
jhack has quit [Ping timeout: 250 seconds]
<woobywooby>
?ruby
<ruboto>
I don't know anything about ruby
phutchins has quit [Ping timeout: 265 seconds]
tuelz has joined #ruby
attamusc has quit [Quit: Connection closed for inactivity]
Kyuujitsu has quit [Ping timeout: 246 seconds]
<woobywooby>
somebody save me
ragingcake has joined #ruby
<woobywooby>
in smallville opening theme music
baweaver has joined #ruby
Kyuujitsu has joined #ruby
ragingcake has quit [Client Quit]
<centrx>
woobywooby, Have you tried #twilio ?
jhack has joined #ruby
jhack has joined #ruby
dorei has quit []
<woobywooby>
i didnt know such a thing existed
Xaitec has quit [Quit: Leaving]
RobertBi_ has joined #ruby
tuelz has quit [Ping timeout: 255 seconds]
<mistym>
raz: The rootless issue you mentioned seems to already be fixed in the latest 10.11 dev beta. Your user should upgrade!
ivanskie has joined #ruby
fractalis has quit [Quit: leaving]
<zenspider>
I just released graphics v1.0.0b1!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
21 more degrees to go... argh I'm humbry
reset has quit [Quit: Leaving...]
Channel6 has joined #ruby
d10n-work has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
ipstatic has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
j3r0 has joined #ruby
mjuszczak has joined #ruby
<ipstatic>
is there a way to operate on the assignment of a variable in a .each block? For example I am reading a file line by line and would love to run .strip on the assignment of line so I don't have to inside the block. file.each |line.strip| vs file.each |line|
Kyuujitsu has joined #ruby
Vile` has joined #ruby
arescorpio has joined #ruby
jpfuentes2 has joined #ruby
<centrx>
ipstatic, use #map ?
cpruitt has joined #ruby
jpfuentes2 has quit [Client Quit]
<ipstatic>
centrx: heh, why didn't I think of that
dgutierrez1287 has quit [Remote host closed the connection]
<woobywooby>
does anyone know how to deal with this
<woobywooby>
ERROR: no decode delegate for this image format `/tmp/magick-wLG2p7Dv' @ error/svg.c/ReadSVGImage/2871
mjuszcza_ has joined #ruby
<woobywooby>
it works fine on my mac but on heroku it throws that error out
<Alayde>
Interesting. I learned something pretty kick ass today
Kyuujitsu has joined #ruby
AlexRussia has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
ElSif: Happy to have assisted your discovery. The semantics make for unpleasantly rigid constructions that don't read very well, in my opinion.
niiamon_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
niiamon_ has joined #ruby
Musashi007 has quit [Client Quit]
yh_ has quit [Ping timeout: 265 seconds]
zacstewart has joined #ruby
postmodern has quit [Quit: Leaving]
sheeny has joined #ruby
htmldrum has quit [Quit: leaving]
<sheeny>
Hi all, I have a rails project which connects to an external database (i dont have control over the column names/data) unfortunately the column names are all upcase, so when i try object.attribute it obviously raises method missing, where object['ATTRIBUTE'] would work. I am considering overriding method missing to handle this but before I do i was wondering if anyone had a better cleaner solution?
lkba has joined #ruby
<adaedra>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
sheeny has left #ruby [#ruby]
shredding has joined #ruby
quimrstorres has joined #ruby
anisha has joined #ruby
andikr has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
isxek has joined #ruby
Ropeney has joined #ruby
yawniek has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
oo_ has quit [Remote host closed the connection]
niemcu has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
hazelux has joined #ruby
andikr has joined #ruby
<yawniek>
Zlib::GzipReader.new(infile).each_line somehow stops at 50 lines (even though the file has around 25k lines. why?
<yorickpeterse>
yawniek: without any code samples in a gist that will be hard to answer
senayar has joined #ruby
senayar has joined #ruby
oo_ has joined #ruby
jenrzzz has joined #ruby
niiamon_ has quit [Read error: Connection timed out]
tkuchiki has quit [Remote host closed the connection]
<yorickpeterse>
My only guess is that ".gz" only has 50 lines
<yorickpeterse>
err t.gz
<yxhuvud>
.map{1}.reduce(&:+) ? how about using .count instead?
<yorickpeterse>
yawniek: `wc -l t.gz`, what does that output?
<yorickpeterse>
minus the backticks
<yawniek>
gzcat t.gz| wc -l => 25001
<Ox0dea>
It's just `zcat`.
<yorickpeterse>
yawniek: no idea in that case
<apeiros>
yxhuvud: better yet, .size. Enumerator optimizes that if possible.
terlar has joined #ruby
<yawniek>
Ox0dea: i might have written my own zcat implementation that automagically inflates the content OR possibly i'm just using the gnu tools on os x. in the later case gzcat is a better version of zcat
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
yxhuvud: good to know
<yawniek>
Ox0dea: afair its faster. at least i was able to see some difference once and ever since i use it. very scientific :P
<yorickpeterse>
#size and #count are very different in Enumerator
<yawniek>
is returning nil in my above example
ta has joined #ruby
<yorickpeterse>
#size in a whole bunch of cases returns a pre-determined size
<yorickpeterse>
which isn't always available
<yawniek>
still major wtf, still 50 lines
Oka has quit [Ping timeout: 256 seconds]
<Ox0dea>
It's a bug that `File.open('/dev/full', ?w).write('foo')` doesn't raise Errno::ENOSPC, right?
<apeiros>
from the docs it sounds like .size is only available if it is known or can be calculated, but it won't go enumerating all values and count to get the size
<yorickpeterse>
Ox0dea: eh, why would it?
<yorickpeterse>
writing to /dev/null is just fine
<yorickpeterse>
oh
<Ox0dea>
yorickpeterse: /dev/null != /dev/full
<Ox0dea>
Heh.
<yorickpeterse>
heh /dev/full
<adaedra>
funny, IO.write does raise
<Ox0dea>
Definitely a bug then, I reckon.
quimrstorres has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
<yawniek>
ok, gzcatting the file and repacking it makes everything work. but this is weird
<adaedra>
bufferization?
<yorickpeterse>
Yeah
[spoiler] has quit [Quit: WeeChat 1.1]
<yorickpeterse>
When you flush it it does raise
<adaedra>
or when you close
withnale____ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
so not sure if bug
<Ox0dea>
Well, it comes late enough to be harmful, but it's also 2015.
Hounddog has joined #ruby
<ebarrett>
chrisseaton: thanks
[spoiler] has joined #ruby
<adaedra>
It does raise if you have a close/flush (so, IO.write, File.open with a block)
niiamon_ has quit [Read error: Connection timed out]
<Ox0dea>
Right, but you could easily lose a write in between.
<adaedra>
It's the problem of the buffered output, errors are delayed
<Ox0dea>
Well, not *easily*, but I'm sure somebody somewhere's been bitten.
niiamon_ has joined #ruby
<Ox0dea>
In any case, #write returns the number of bytes written to /dev/full and is thus a liar.
leat has quit [Remote host closed the connection]
quimrstorres has joined #ruby
leat has joined #ruby
tubuliferous_ has joined #ruby
_joes_ has joined #ruby
Hounddog has quit [Ping timeout: 246 seconds]
<Ox0dea>
What're some special treatments applied to other device files?
Hounddog has joined #ruby
stan has joined #ruby
<adaedra>
The same problem happens if the file is already open (passed by fd from parent), error is not seen without a flust – seems all that IO does at writing is buffered
wldcordeiro__ has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 252 seconds]
jbw__ has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
<adaedra>
I guess it's not a problem if you know about it (and how to bypass the buffer), but can effectively be bitey
niiamon_ has quit [Read error: Connection timed out]
Toska has joined #ruby
astrobun_ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
arup_r has joined #ruby
yeticry has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
niiamon_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
jbw__ has joined #ruby
cheeti has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pengin has joined #ruby
dgutierrez1287 has joined #ruby
pawnbox has joined #ruby
riffraff has joined #ruby
leesharma has joined #ruby
niiamon_ has quit [Remote host closed the connection]
yh has joined #ruby
khebbie has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
codecop has quit [Remote host closed the connection]
Toska is now known as ita-ness
banister has joined #ruby
<ita-ness>
Hello Everyone
leesharma has quit [Ping timeout: 246 seconds]
soc42 has joined #ruby
MatrixBridge has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
MatrixBridge has joined #ruby
platzhirsch has joined #ruby
marr has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby
leafybasil has quit [Remote host closed the connection]
<adaedra>
hi
<yorickpeterse>
oh fuck
<yorickpeterse>
angular 1.0.1 doesn't support PATCH ._________.
<yorickpeterse>
something something that's what you get for not upgrading it
<adaedra>
?ot yorickpeterse
<ruboto>
yorickpeterse, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra>
:>
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yawniek>
the reason for my problem with only 50 lines was that i wrote chunks of 50 lines into the file, apparently each of the chunks had a gzip header which stops GzipReader
* yorickpeterse
dusts off a kitchen towel and slaps it at adaedra
<yorickpeterse>
why does it never pick the fun ones D:
* yorickpeterse
slaps adaedra and starts getting carried away
<yorickpeterse>
oh ffs
<adaedra>
:D
* adaedra
finds the closest large object and gives yorickpeterse a slap with it
* yorickpeterse
dusts off a kitchen towel and slaps it at adaedra
<yorickpeterse>
grrrr
<yorickpeterse>
I have so many funny ones and it picks those
* yorickpeterse
likes slapping people and randomly picks adaedra to slap
<yorickpeterse>
(╯°□°)╯︵ ┻━┻
yfeldblum has joined #ruby
<Ox0dea>
yorickpeterse: Where did you get extras?
<yorickpeterse>
I added them myself
<yorickpeterse>
it's a plugin that just reads them from a text file
<Ox0dea>
That I knew.
<Ox0dea>
WeeChat differentiates between plugins and scripts, for what that's worth.
Philipp__ has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
senayar has joined #ruby
<yorickpeterse>
voiter: well then we can't really help you
<voiter>
shevy, it's not in scrollback history anymore. but i think it was in tins (a dependency of taskjuggler) and it was something about: .. string%s "i"
<voiter>
well ok. taskjuggler is out of question then :P
last_staff has joined #ruby
tuor has joined #ruby
<voiter>
(RDoc::Error) unknown type of %string "i"
<voiter>
there it is
<voiter>
ERROR: While generating documentation for tins-1.5.4
apfeluser has joined #ruby
<yorickpeterse>
gem install XXX --no-ri --no-rdoc
<yorickpeterse>
or update rdoc first
<tuor>
hi, why can't I read the file multiple times in a File.open('myfile') do |f|; puts f.read; puts f.read; end ?
<yorickpeterse>
gem update rdoc # IIRC
<yorickpeterse>
tuor: ...you know how reading files works right?
<shevy>
tuor I think you must reseek to the beginning
<yorickpeterse>
tuor: once you've read a file you've reached the end, you must rewind it first
<voiter>
yorickpeterse, the installation was successful but when i try to run taskjuggler (which is installed in the directory specified with --install-dir) i still get this error: http://pastie.org/10331010
<yorickpeterse>
tuor: you just call `file.rewind`
<tuor>
yorickpeterse, ah ok thx.
<yorickpeterse>
voiter: no idea
<voiter>
do i need to parameterise ruby maybe?
<adaedra>
voiter: what does `gem install taskjuggler --no-ri --no-rdoc` outputs?
zacstewart has joined #ruby
<tuor>
yorickpeterse, when I want to write after reading do I need to rewind first?
<voiter>
adaedra, the installation was successful (note that i also used --install-dir). but running the ruby script is causing the error: http://pastie.org/10331010
<yorickpeterse>
voiter: answer the question
<adaedra>
depends where you want to write, tuor
<yorickpeterse>
You can't get that error if the installation is successful
<yorickpeterse>
because then it's not successful
<yorickpeterse>
tuor: You can't open a file for both reading and writing at once
tkuchiki has quit [Remote host closed the connection]
<tuor>
Do I need to check if the file exists or can i just do file_content = File.read('myfile')
<tuor>
what happens when the file don't exist?
<adaedra>
try it
<tuor>
ok
xfbs has joined #ruby
sunslide2 has joined #ruby
Zai00 has quit [Quit: Zai00]
stamina has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
<yorickpeterse>
If you open it like that you'll get an error
<sunslide2>
hi guys, still haven't solved my stuff from yesterday :( anybody knows if there is a way to evaluate a wildcard? (not a regex) I only need to support asterisks
<tuor>
yorickpeterse, just tested and saw it.
<ita-ness>
sunslide2: How do you mean, evaluate a wildcard? In what context?
Kyuujitsu has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
<yorickpeterse>
sunslide2: you'll need to turn it into a regex
Rickmasta has joined #ruby
<shevy>
tuor always handle the case if the file does not exist, if your code is important
stardiviner has quit [Ping timeout: 260 seconds]
bodgix has joined #ruby
<tuor>
shevy, just doing it now. :)
sevenseacat has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
apfeluser has quit [Ping timeout: 246 seconds]
<sunslide2>
hmm yeah I don't mind turning it into a regex but I have a string that might contain other characters that are regex keywords like dots / question marks / etc and I'm only intrested in evaluating the asterisks in that sense
sevenseacat has joined #ruby
tkuchiki has joined #ruby
bruno- has joined #ruby
Oog has joined #ruby
tkuchiki has quit [Remote host closed the connection]
quimrstorres has joined #ruby
khebbie has joined #ruby
tvw has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<tuor>
shevy, hmm how to do it shorter? I mean i can put it in a local variable and then use it but why?
chipotle has joined #ruby
<ita-ness>
tuor: And you have the exact line twice for writing the file, perhaps you should break that out into a method. Not sure what the unless file.read is for...
yeticry has joined #ruby
michael_mbp has quit [Excess Flood]
<tuor>
ita-ness, the file.read is for only writing to the file if it differs from the new content.
devoldmx has quit [Ping timeout: 264 seconds]
<shevy>
tuor dunno, depends on how important the code is. once you have to change a lot of instances where repetition occurs you will understand
michael_mbp has joined #ruby
<ita-ness>
tuor: Not sure about your file sizes, but it's not going to take much more time generally to write the file in the first place. You can clean up your code there as well.
<tuor>
shevy, ok. So what would you do?
krz has quit [Quit: WeeChat 1.2]
<shevy>
I would simplify the code and probably use methods
quimrstorres has quit [Remote host closed the connection]
safeforge has quit [Remote host closed the connection]
niiamon has joined #ruby
devoldmx has joined #ruby
A124 has joined #ruby
ldnunes has joined #ruby
<ita-ness>
kannan4k: There you go!
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
socrates has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
ebram has joined #ruby
countryHick has joined #ruby
<kannan4k>
ita-ness, if the model class is inherited by another class called "Timesheets", then @@__accessors['Timesheets'] will be created?
<ita-ness>
@@__accessors[Timesheets]
<ita-ness>
kannan4k: Or no, my apologies, you are right
<kannan4k>
oh okay
arup_r has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<ita-ness>
kannan4k: Well, actually I am not sure, it might have the parent class name in there as well, let me check
ferhaty has joined #ruby
<ita-ness>
kannan4k: If the class that is inheriting it inside a module, it will be the module name as well, so "Module::Timesheets", otherwise just "Timesheets"
<[k->
real men don't check, they evaluate
<ita-ness>
[k-: alias_method :check, :evaluate
j4cknewt has quit [Ping timeout: 264 seconds]
stardiviner has quit [Ping timeout: 250 seconds]
<[k->
undefined method evaluate for ita-ness
<ita-ness>
aw
cheeti has quit [Quit: Page closed]
arup_r has joined #ruby
<ita-ness>
class ItaNess < Inferior;end
dgutierrez1287 has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 265 seconds]
<adaedra>
ItaNess = Class.new(Inferior)
* [k-
promotes ita-ness to Superior
arup_r has quit [Read error: Connection reset by peer]
leat has quit [Remote host closed the connection]
leat has joined #ruby
ebram has quit [Quit: Leaving]
arup_r has joined #ruby
sdothum has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
benlovell has joined #ruby
<ita-ness>
haha
Marsupermammal has joined #ruby
sinkensabe has joined #ruby
ndrei has joined #ruby
rodfersou has quit [Ping timeout: 244 seconds]
rideh has joined #ruby
rodfersou has joined #ruby
sepp2k has joined #ruby
omegamike has joined #ruby
vondruch has quit [Quit: Ex-Chat]
benlovell has quit [Ping timeout: 246 seconds]
vondruch has joined #ruby
DoubleMalt has joined #ruby
stardiviner has joined #ruby
ishahnaz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
xfbs has quit []
omegamike has quit [Ping timeout: 260 seconds]
bhorn1|away is now known as bhorn1
rikkipitt has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 244 seconds]
abara has quit [Quit: leaving]
pyrotecnix has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
o/
<pontiki>
it's a good site
hazelux has joined #ruby
<ita-ness>
izabera: Never heard of it, looks interesting.
<sevenseacat>
I haven't read any of it, but I know of it and have some opinions on it.
tkuchiki has quit [Remote host closed the connection]
|n|iggers has joined #ruby
hazelux has quit [Ping timeout: 255 seconds]
chthon has quit [Ping timeout: 244 seconds]
pkh has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
ndrei has quit [Remote host closed the connection]
xfbs has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
<|n|iggers>
hi
<apeiros>
!kick |n|iggers nope
|n|iggers was kicked from #ruby by ruboto [nope]
|n|iggers has joined #ruby
<wasamasa>
lol
<sevenseacat>
good call.
<|n|iggers>
lol
<apeiros>
!ban |n|iggers !T 1d still nope
|n|iggers was banned on #ruby by ChanServ [|n|iggers!*@*]
|n|iggers was kicked from #ruby by ChanServ [Banned: still nope]
ndrei has joined #ruby
quimrstorres has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
<apeiros>
they're trying it every day, no?
<sevenseacat>
you'd think they'd get bored.
yh has quit [Ping timeout: 240 seconds]
<apeiros>
well, 3y old children are endlessly fascinated by the same single sound
<apeiros>
I think this is similar
lannonbr has joined #ruby
<sevenseacat>
lol
pawnbox has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
[k-_ has joined #ruby
rikkipitt has joined #ruby
Xzanron has joined #ruby
codecop has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<adaedra>
lol
xfbs has quit []
banister has joined #ruby
lele|w has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
jonee has quit [Ping timeout: 256 seconds]
arup_r_ has joined #ruby
kp666 has quit [Quit: Leaving]
Igorshp has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
Iskarlar has joined #ruby
segfalt has quit [Quit: segfalt]
Igorshp has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
Igorshp has quit [Remote host closed the connection]
yqt has joined #ruby
Dzejmskrokan has joined #ruby
arup_r_ has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
relix has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
terlar has joined #ruby
millerti has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
davedev24 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
nateberkopec has joined #ruby
omegamike has joined #ruby
Guest50 has joined #ruby
andikr has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 272 seconds]
<[k-_>
shevy: DeBot is still not here, it is definitely safe1
bmurt has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Igorshp has joined #ruby
jenrzzz has joined #ruby
Igorshp has quit [Remote host closed the connection]
hazelux has joined #ruby
devoldmx has joined #ruby
hazelux has quit [Remote host closed the connection]
xfbs has joined #ruby
Dzejmskrokan has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
bhorn1 is now known as bhorn1|away
jeremy04_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
jeremy04 has joined #ruby
juanpaucar has joined #ruby
pawnbox has joined #ruby
OrbitalKitten has joined #ruby
atomical has joined #ruby
avril14th has quit [Remote host closed the connection]
whippythellama has joined #ruby
Cust0sLim3n has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
leat has quit [Remote host closed the connection]
dblessing has joined #ruby
madneroo has joined #ruby
leat has joined #ruby
johnhame_ has joined #ruby
madnero has joined #ruby
johnhame_ is now known as johnhamelink_
johnhamelink_ has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
chills42 has quit [Remote host closed the connection]
madneroo has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
Dzejmskrokan has joined #ruby
chthon has joined #ruby
madnero has left #ruby [#ruby]
pawnbox has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
dimasg has joined #ruby
chills42 has joined #ruby
tmtwd has joined #ruby
tcrypt has quit []
<johnhamelink>
Hey guys, anyone have any experience with Active Model Serializers and Grape? I'm experiencing a strange issue where I'm getting a "not opened for reading" error
<sevenseacat>
johnhamelink: you might need to post some kind of code in your error report.
<sheldonh>
when the Singleton module is included in a class, it wipes out @singleton__instance__ without protecting this operation with a mutex. so if a singleton class definition is reloaded, you lose the instance. sound like a bug?
<johnhamelink>
OK I will add my example in @sevenseacat
MatrixBridge has joined #ruby
platosha has joined #ruby
sanguisdex has joined #ruby
platosha__ has joined #ruby
platosha_ has quit [Ping timeout: 256 seconds]
platosha_ has joined #ruby
stardiviner has quit [Ping timeout: 272 seconds]
Chau has quit [Quit: Leaving]
symm- has joined #ruby
paulcsmith___ has joined #ruby
M-mistake has joined #ruby
devdazed has joined #ruby
M-prosodyContext has joined #ruby
thiagovsk has joined #ruby
Rickmasta has joined #ruby
prestorium has joined #ruby
jerius has joined #ruby
platosha has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
yh has joined #ruby
platosha__ has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gizmore has quit [Remote host closed the connection]
banister has joined #ruby
Zai00 has joined #ruby
railswebdev has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
banister has quit [Read error: Connection reset by peer]
jhack has joined #ruby
quimrstorres has joined #ruby
jhack has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 246 seconds]
codecop has quit [Remote host closed the connection]
<yorickpeterse>
ughghghhgh strong parameters
lele|w has joined #ruby
<yorickpeterse>
dhh y u do dis
AlexRussia has quit [Quit: WeeChat 1.3-dev]
Violentr has joined #ruby
hinbody has joined #ruby
tmtwd has joined #ruby
quimrstorres has quit [Ping timeout: 246 seconds]
<adaedra>
To crush your dreams, yorickpeterse
<apeiros>
s/r dreams//
niiamon has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
dopie has joined #ruby
JoshL has joined #ruby
chills42_ has joined #ruby
Pumukel has joined #ruby
<[k-_>
Correction: <adaedra> To crush you, yorickpeterse
<adaedra>
Ah, we have a bot which applies sed-syntax now?
milesforrest has quit [Ping timeout: 246 seconds]
niiamon has joined #ruby
fdgfdsagfdsag has joined #ruby
dopie has quit [Client Quit]
fdgfdsagfdsag has left #ruby [#ruby]
chills42 has quit [Ping timeout: 246 seconds]
<[k-_>
maybe
havenwood has joined #ruby
<sonOfRa>
s/maybe/yes/
centrx has joined #ruby
yosafbridge has quit [Ping timeout: 240 seconds]
gthank has quit [Ping timeout: 240 seconds]
KC9YDN has quit [Ping timeout: 240 seconds]
gthank has joined #ruby
zz_barkerd427 has quit [Ping timeout: 240 seconds]
zz_barkerd427 has joined #ruby
gthank has quit [Changing host]
gthank has joined #ruby
pwnd_nfsw has quit [Ping timeout: 244 seconds]
yosafbridge has joined #ruby
banister has joined #ruby
relix has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 244 seconds]
juanpaucar has quit [Remote host closed the connection]
devoldmx has joined #ruby
Vile` has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
KC9YDN has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
quimrstorres has joined #ruby
Askilada has quit [Ping timeout: 246 seconds]
safeforge has joined #ruby
janno has quit [Quit: Lost terminal]
danzilio has joined #ruby
Muhannad has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
mister_solo has joined #ruby
mister_solo has quit [Client Quit]
rideh has quit [Quit: zap]
beef-wellington has joined #ruby
Aeyrix has quit [Max SendQ exceeded]
<Darkwater>
Correction: <[k-_> no
bhaak has quit [Ping timeout: 240 seconds]
juanpaucar has joined #ruby
nsuke has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has joined #ruby
Igorshp has joined #ruby
niiamon has quit [Read error: Connection timed out]
tmtwd has joined #ruby
renanoronfle has quit [Ping timeout: 240 seconds]
chills42_ has quit [Remote host closed the connection]
niiamon has joined #ruby
davep3rrett has joined #ruby
dorei has joined #ruby
nzst has joined #ruby
uri_ has joined #ruby
Aeyrix has joined #ruby
Fire-Dragon-DoL has joined #ruby
<Fire-Dragon-DoL>
'morning
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
that sounds like a bad idea. undead are cheaper workforce.
stardiviner has joined #ruby
<Fire-Dragon-DoL>
lol
tjohnson has joined #ruby
<Fire-Dragon-DoL>
I'm a zombie which turns back human only after lunch :P
<apeiros>
so that's why zombies crave brains?
xfbs has quit [Ping timeout: 240 seconds]
<ytti>
when ever is see zombie mobie
<ytti>
movie
Aeyrix has quit [Max SendQ exceeded]
<ytti>
i think 'free energy'
<ytti>
have them turn a turbine
<adaedra>
We should do that with hamsters
<ytti>
hamsters need to eat :(
<ytti>
zombies inexpliably can output energy without needing to input it
<ashleyhindle>
zombies don't need to feed?
<[k-_>
inexplicably*
<ashleyhindle>
Why do they want to say 'brains' and chase people?
Aeyrix has joined #ruby
<yorickpeterse>
because all they can think of are brains
davep3rrett has quit [Quit: davep3rrett]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
<ytti>
ashleyhindle, in movies they can be trapped for years or decades
<ytti>
ashleyhindle, evidently mobile all the time, just jotting around
Aeyrix has quit [Max SendQ exceeded]
<ytti>
also there is no blood, to actually transport energy to muscles
<ytti>
even if they did feed, they couldn't power the muscles
<workmad3>
ytti: depends on the film... plenty of zombie films have zombies that decay over time
<ccooke>
that doesn't mean they are producing free energy
<ytti>
i don't think zombis can explained without breaking laws of thermodynamics
Aeyrix has joined #ruby
<ytti>
in most literature/film
<ccooke>
ytti: sure they can. The nanite-based ones certainly can.
<workmad3>
ytti: I doubt you need to go as far as thermodynamics to find faulty reasoning with zombies
deepu has joined #ruby
prefixed has joined #ruby
<ccooke>
I mean, we don't have the tech for them it *might* be impossible to ever obtain, but the basic concept is sound
Iskarlar has joined #ruby
D-unit has joined #ruby
<ccooke>
(nanites absorb materials around the body to repair damaged tissue, but can't actually restore full brain function)
<workmad3>
anyway...
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
?offtopic ytti ;)
<ruboto>
ytti, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ccooke>
(... also, this is not the channel I expected to find this discussion in)
<ccooke>
(sorry)
<workmad3>
(sorry, I'm also to blame for engaging in the conversation)
bhaak has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<adaedra>
(sorry, not sorry)
axl_ has joined #ruby
jeremy04_ has joined #ruby
niemcu has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
TvL2386 has quit [Remote host closed the connection]
JoshL has quit [Read error: Connection reset by peer]
Dzejmskrokan has quit [Read error: Connection reset by peer]
JoshL has joined #ruby
chills42 has joined #ruby
chouhoulis has joined #ruby
Dzejmskrokan has joined #ruby
kfpratt has joined #ruby
renanoronfle has joined #ruby
jeremy04 has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
<ita-ness>
Im not sure where to ask this, and the github channel is unresponsive. Does anyone here have any idea where I might find a raw markdown file that has examples of all the github flavoured markdown?
<apeiros>
ita-ness: github has a help link where it has markdown editors
kfpratt has quit [Read error: Connection reset by peer]
<ita-ness>
Well, I jsut finished writing a sort of documentation gem for a site to keep everything documented for the business design team. Basically just makes markdown files in the repo available via links etc. We will be writing them all in markdown, so I just wanted a full sheet to style everything and get all the developers here to have a comprehensive set of 'attributes' available
tubuliferous_ has quit [Ping timeout: 256 seconds]
kfpratt has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<adaedra>
Criten: careful, many markdown-derivatives exist and support different things
<workmad3>
adaedra: he did ask for github-flavoured md though
<ita-ness>
adaedra: Yeah, I am focusing on the github markdown as that's the gem I am using to convert to html, and the one most devs here are familiar with
<adaedra>
fair enough
<[k-_>
hello Zarthus
<ita-ness>
Anyway, thanks everyone, I can just build my own raw markdown file with all those examples
<adaedra>
and I misread the person to talk too, I should really learn to read
<Criten>
all good adaedra :)
mleung has joined #ruby
sshuff|gone is now known as sshuff
<Zarthus>
hi
<adaedra>
hi
<sshuff>
hi
rjno has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
<centrx>
gi
maverick08 has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
Guest50 has joined #ruby
radgeRayden has joined #ruby
rideh has joined #ruby
mjuszczak has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
pawnbox has joined #ruby
<Sou|cutter>
hi
segfalt has joined #ruby
leesharma has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
Chau has joined #ruby
hazelux has joined #ruby
Chau has quit [Max SendQ exceeded]
Chau has joined #ruby
ferhaty has quit []
rjno has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
MatrixBridge has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
imperator has joined #ruby
<imperator>
hal_9000, ping
<[k-_>
hal_9000, ping
kfpratt has quit [Read error: Connection reset by peer]
<adaedra>
random_nick, ping
rjno has joined #ruby
<[k-_>
adaedra. ping
<pontiki>
"i can't do that, Dave"
<adaedra>
[k-_: pong
kfpratt has joined #ruby
MatrixBridge has joined #ruby
riotjones has quit [Remote host closed the connection]
<blahwoop>
adaedra: thanks but I wanted to look at it on my own computer
shredding has quit [Remote host closed the connection]
<adaedra>
you can clone the repository, or get an archive from ruby's official website, like rvm does before compiling (not sure it keeps the sources though)
RobertBirnie has joined #ruby
jimms has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
serivich has joined #ruby
<adaedra>
cloning the repository lets you browse the history of versions and see evolution tho
havenwood has quit [Read error: Connection reset by peer]
<platzhirsch>
What was again the method to concat an array?
<platzhirsch>
[1,2,3].foo('+') => '1+2+3
mleung has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
<adaedra>
join
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
saddad has quit [Quit: WeeChat 1.3-dev]
h4ckurate has quit [Quit: h4ckurate]
hanmac has quit [Ping timeout: 244 seconds]
bffff_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
riffraff has quit [Quit: Leaving]
havenwood has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
Marsupermammal has joined #ruby
jschmid has joined #ruby
RegulationD has quit [Remote host closed the connection]
Rickmasta has joined #ruby
A124 has joined #ruby
anisha has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
matchaw has joined #ruby
DANtheBEASTman has left #ruby [#ruby]
pengin has joined #ruby
jschmid has quit [Remote host closed the connection]
<treehug88>
I think to avoid the unary operator, and confusion between ++a and a++, and how b = a++ operates
<shevy>
higuys matz explained it once
<centrx>
higuys, ++ is a special operator in C. It can have confusing behavior between prefix and postfix. It's not in Ruby probably because it's so special and doesn't necessarily fit into the simplicity of Ruby
<treehug88>
also it requires mutation. Others can chime in -- avoiding the unary operator is not a justification
<eam>
it's not just confusing, it's undefined in just about every common implementation
<havenwood>
higuys: incrementing the operand by one is madness
PhantomS_ has quit []
<eam>
though that's a bit of a bad reason since we still have .next
<eam>
which suffers from all the same problems
<treehug88>
eam: what's undefined in every common implementation?
danzilio has quit [Quit: My computer has fallen asleep!]
<higuys>
im used to using x++ to increment
higuys has quit []
gambl0re has joined #ruby
pietr0 has joined #ruby
<centrx>
He is pissed off!!!!
Guest50 has joined #ruby
<eam>
someone should tell him ++x is faster
wldcordeiro__ has joined #ruby
Musashi007 has quit [Ping timeout: 265 seconds]
JoshL_ has quit []
niemcu has joined #ruby
fantazo has joined #ruby
webopsx has joined #ruby
towski_ has joined #ruby
<gambl0re>
i'm right here...
theery has quit []
<gambl0re>
i'm used to x++ becaues i was learning javascript for the past couple months
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gambl0re>
and its commonly used..
<havenwood>
gambl0re: in javascript...
<centrx>
gambl0re, There's also much less use for the increment operator in Ruby, due to e.g. block functions
The_Phoenix has joined #ruby
<centrx>
*blocks
<eam>
gambl0re: oh I meant higuys
<eam>
I really don't miss ++ tbh
danzilio has joined #ruby
<gambl0re>
i am higuys, thats my alter ego
<eam>
oh
<havenwood>
it's not miss-worthy
j4cknewt has joined #ruby
railsraider has quit [Quit: railsraider]
rubytor has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt_ has joined #ruby
Musashi007 has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
soviet_jesus has joined #ruby
casadei has joined #ruby
govg has joined #ruby
marr has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
paulcsmith___ has joined #ruby
juanpaucar has joined #ruby
sshuff is now known as sshuff|gone
frem has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Royalb15 has quit [Quit: Leaving]
JimmyNeutron has joined #ruby
chills42 has quit [Remote host closed the connection]
<soviet_jesus>
So I tested a regular expression a on rubular, and it shows the correct match groups, but when I attempt this: https://gist.github.com/JasonMadeSomething/1b4cbb3c5654fd678d46 All the capture groups return nil. I've double checked that @title holds a value when this gets called, but for some reason I'm just not getting the matches
yfeldblum has joined #ruby
chills42 has joined #ruby
doertedev has quit [Quit: Lost terminal]
renanoronfle has quit [Ping timeout: 260 seconds]
<eam>
soviet_jesus: include sample data for @title?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
tuelz has joined #ruby
<soviet_jesus>
updated it
<dorei>
soviet_jesus: ur nick is awesome :)
<soviet_jesus>
oh I think I made a silly mistake, i was accedentally looking for the folder number prefix too
<soviet_jesus>
@dorei thanks
<eam>
soviet_jesus: happy to rubberduck :)
pwnd_nfsw has joined #ruby
renanoronfle has joined #ruby
stamina has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
<gambl0re>
this line here = >print (redact_words.include? x) ? "REDACTED!": x
<gambl0re>
is ther ternary expression?
<gambl0re>
that?
<eam>
yes
<gambl0re>
so its say "if redact_words includes x then print REDACTED?
<gambl0re>
what does this part do? ? "REDACTED!": x
<gambl0re>
? (if true do this): (false do this)
<gambl0re>
is that right>?
<eam>
gambl0re: it's just like this: print(if redact_words.include? x; "REDACTED!"; else x; end)
<nahtnam>
Would anyone be interested in a irc bot that lets you tip coffee's with bitcoin through https://coffee.foldapp.com/
jeremy04_ has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
BTRE has quit [Quit: Leaving]
<atmosx>
gambl0re: truth to be told, most audit tools will show a big warning on using 'unless' in your code, but it really saves lines of code.
<havenwood>
nahtnam: :D coffee!
wldcordeiro__ has joined #ruby
<miah>
depends on how you're using unless
<miah>
i wouldn't mind just tips with bitcoin
<atmosx>
most of the times, I'm using it: x = 5 unless y = 10
fractalis has joined #ruby
<nahtnam>
miah: Well, gotta promote the business somehow.
<atmosx>
btc for the win
railsraider has joined #ruby
blue_deref has joined #ruby
<miah>
nahtnam: sure =)
tubuliferous_ has quit [Ping timeout: 265 seconds]
<scpike>
Possibly boneheaded question - What's a good way to get string interpolation when reading a file? File.read('foo.txt') # foo.txt = "Foo contains #{bar}"
<atmosx>
miah: I feel you, I have this CSS/HTML book. I have to re-read it everytime I mess with CSS. It's a mess. Are you using boostrap by any chance?
<scpike>
bricker: I have a reporting script running some SQL that's currently inlined in the script, and I want to move it out
bradleyprice has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
spider-mario has quit [Read error: Connection reset by peer]
<miah>
no, we're using out own internal style stuff. so i dont have to do _too_ much
<atmosx>
scpike: maybe, you could use ruby to talk to the sql db directly?
chipotle has joined #ruby
platzhirsch has left #ruby [#ruby]
<atmosx>
using sequel (orm) should be a piece of cake
bradleyprice has joined #ruby
<bricker>
scpike: Oh. What's wrong with the answers on that SO post?
<miah>
but i have been embedding some html in my erb's and i know i'm going to have somebody from frontend help polish this
<atmosx>
miah: I see
<scpike>
bricker: I asked here before finding that :)
<bricker>
scpike: oh :D
<scpike>
using erb or a sql engine seems reasonable
<miah>
(i'm writing a user management interface for our ldap)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<scpike>
atmosx: Idon't want to use a ORM for this - it's a beast of a query with some temp tables
<atmosx>
scpike: you can use raw SQL if you have the query.
<atmosx>
scpike: all I'm saying is... it makes more sense to dig into the DB using ruby, directly. But then again you know better.
<atmosx>
your use case, etc.
<scpike>
atmosx: Ok more precise question - can I give sequel something like "SELECT * from X where id = :id", {id: 5} ?
mleung has quit [Quit: mleung]
<scpike>
Is that waht you mean by talk directly, using a library that knows what SQL is ?
<atmosx>
scpike: of course you can use raw SQL
<atmosx>
scpike: but if that's the only thing you're going to use, then better use the SQL gem (mysql? mssql?)
<havenwood>
gambl0re: In Pry take a look at: ls ""
baweaver has joined #ruby
kidoz has joined #ruby
lannonbr has joined #ruby
<gambl0re>
why are programmers always seeking to create a more efficient sorting algorithm programming languages already have build in sorting functions included
dopie has quit [Quit: This computer has gone to sleep]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
halcyone3 has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
wldcordeiro__ has joined #ruby
banister has quit [Client Quit]
rbennacer has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
rbennacer has joined #ruby
<atmosx>
gambl0re: why are f1 teams try to find a way to go faster :-P
<atmosx>
s/are/do
quimrstorres has quit [Remote host closed the connection]
Zai00 has joined #ruby
quimrstorres has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
jimms has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
tcrypt has joined #ruby
quimrstorres has quit [Ping timeout: 250 seconds]
polpak has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Zai00 has quit [Quit: Zai00]
bradleyprice has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thiagovsk has quit [Quit: Connection closed for inactivity]
davedev2_ has quit [Ping timeout: 244 seconds]
ivanskie has joined #ruby
zacstewart has joined #ruby
maverick08 has joined #ruby
wldcordeiro__ has quit [Ping timeout: 256 seconds]
davedev24 has joined #ruby
maverick08 has quit [Client Quit]
gard has joined #ruby
chipotle has quit [Quit: cheerio]
juanpaucar has joined #ruby
iateadonut has left #ruby [#ruby]
Zai00 has joined #ruby
Zai00 has quit [Remote host closed the connection]
webopsx has joined #ruby
quimrstorres has joined #ruby
leesharma has joined #ruby
railsraider has quit [Quit: railsraider]
baroquebobcat has quit [Quit: baroquebobcat]
webopsx has quit [Client Quit]
dopie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sanguisdex has quit [Remote host closed the connection]
ascarter has joined #ruby
scripore has joined #ruby
sanguisdex has joined #ruby
<shevy>
test
mjuszczak has joined #ruby
baroquebobcat has joined #ruby
Guest50 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
jerius has quit [Quit: /quit]
hoov has quit [Quit: Leaving]
<miah>
....F
TomyLobo has joined #ruby
<shevy>
S...F
<centrx>
SH..F
<eam>
this test failed
gagrio has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
slawrence00 has joined #ruby
gagrio has joined #ruby
skade has joined #ruby
<gambl0re>
whats the difference between if (movies[title.to_sym] == nil) and if (movies[title.to_sym] == nil?)
<centrx>
You mean movies[title.to_sym].nil?
tuelz has quit [Ping timeout: 250 seconds]
<miah>
^
<gambl0re>
no...the way i typed it
jerius has joined #ruby
<centrx>
Then the difference is the second one won't work, or it calls a method defined with the name "nil?" which we don't see
<nahtnam>
Quick question. If users = "", and I do if users, will it return true or false?
<Scriptonaut>
Hey guys, I'm trying to do a post in capybara. I'm getting this: https://gist.github.com/robins35/936e7039b8721c694529 However, when I do a rake routes | grep create_seats, I get: create_seats_users POST /users/create_seats(.:format) users#create_seats
<centrx>
nahtnam, #empty? or #blank? (#blank? is in ActiveSupport/Rails)
jimms has joined #ruby
<centrx>
but
<centrx>
>> nil.empty?
<ruboto>
centrx # => undefined method `empty?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/412752)
<nahtnam>
:(
<centrx>
nahtnam, blank? is in ActiveSupport, ActiveSupport is nice
<nahtnam>
There is no combination?
<nahtnam>
Oh ok
quimrstorres has quit [Remote host closed the connection]
<centrx>
nahtnam, blank? is just: respond_to?(:empty?) ? !!empty? : !self
hazelux has joined #ruby
<centrx>
>> ?: ? ? !! ? : !
<ruboto>
centrx # => /tmp/execpad-cdaba414cf32/source-cdaba414cf32:2: warning: invalid character syntax; use ?\s ...check link for more (https://eval.in/412753)
spider-mario has joined #ruby
<miah>
heh
halcyone3 has quit [Ping timeout: 244 seconds]
<nahtnam>
Lol, thanks centrx
<nahtnam>
What do you guys think of "cinch"? It looks pretty cool
Musashi007 has joined #ruby
bluOxigen has joined #ruby
<gambl0re>
this is confusing.... so you can do it 2 ways =====> 1) statement if(condition) 2) if(condition) do this
<nahtnam>
Is there a bot here that will give a link to a rubygem if you know the name?
<centrx>
gambl0re, postfix conditional is basically to have nice one liners
jeremy04_ has quit [Remote host closed the connection]
shlomo has quit [Quit: WeeChat 1.2]
jeremy04 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
iamjarvo has joined #ruby
mjuszczak has quit []
puppeh_ has joined #ruby
skade has quit [Read error: Connection reset by peer]
<puppeh_>
any1 knows how can I get a unix domain socket with Socket#getaddrinfo ?
<jge>
hi everyone, so I was running a ruby on rails app (redmine) with thin and now I've switched over to Passenger but I'm getting the following: http://pastie.org/private/lcuaxcsuywhytigbkrba
<jge>
anyone could shed some light please?
<jge>
I'm running ubuntu 14.04 LTS
<Ox0dea>
?rails jge
<ruboto>
jge, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<TomyLobo>
nowadays, congress cant even agree on a budget
<Scriptonaut>
According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
<TomyLobo>
of course
<TomyLobo>
over here you can get a beer at 16, i think
<adaedra>
ah didn't see it was the original scope
<Ox0dea>
al2o3-cr: That should be mod-100.
<TomyLobo>
yep and wine too
<adaedra>
drink I don't remember, buy it's 18
<adaedra>
i think
<al2o3-cr>
ah, yeah :(
RandyT has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
failshell has joined #ruby
<adaedra>
ok, no limit for drinking
mjuszcza_ has quit [Read error: No route to host]
<adaedra>
NICE
<TomyLobo>
purchase: 16 (spirits 18), drinking: no prohibition
crimson_penguin has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
Trynemjoel has joined #ruby
<TomyLobo>
seriously, there are countries with laws that forbid drinking alcohol?
Violentr has quit [Ping timeout: 265 seconds]
<Scriptonaut>
most of them do TomyLobo
<shevy>
based on age
<Scriptonaut>
most first world countries do at least
ita-ness has quit [Remote host closed the connection]
<adaedra>
But we're a country of wine drinkers, having a restrictive alcohol law would be strange, I guess
<Scriptonaut>
I think it doesn't make much sense comparing 3rd world countries, you can also buy opium on the streets in Vietnam, haha
tubuliferous_ has joined #ruby
<Scriptonaut>
oh wow, this is #ruby
<Scriptonaut>
no wonder people haven't been answering my questions
<Scriptonaut>
I thought this was #rubyonrails this entire time
<adaedra>
:D
<adaedra>
There was a question?
myztic has joined #ruby
<Scriptonaut>
ya, an rspec question
<Scriptonaut>
According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
* adaedra
serves Scriptonaut a glass of wine
thiagovsk has joined #ruby
tmtwd has joined #ruby
<Scriptonaut>
I hate to admit it but I *hate* wine
<Scriptonaut>
I like beer
<Zarthus>
stand in line
<Scriptonaut>
I brew a lot of beer
<adaedra>
I don't actually drink Alcohol
dfockler has joined #ruby
_blizzy_ has joined #ruby
<al2o3-cr>
I drink to much :)
<dfockler>
you do!
blackmesa has joined #ruby
<adaedra>
al2o3-cr: how are the pink elephants?
<al2o3-cr>
i've named them all dumbo :D
bradleyprice has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 246 seconds]
NightMonkey has quit [Ping timeout: 260 seconds]
<Scriptonaut>
I try not to drink often nowadays, but it's not unusual for me to wake up on the living room floor at 7am on a saturday :P
<centrx>
heroin will do that to you
tubuliferous_ has quit [Ping timeout: 244 seconds]
<adaedra>
now this is illegal, children or not
<dfockler>
with weed you just end up in your bed well rested
<Scriptonaut>
that's legal here (near Seattle)
<adaedra>
heroin?
<Scriptonaut>
no, weed
NightMonkey has joined #ruby
Rickmasta has joined #ruby
<centrx>
adaedra, as long as we don't say "guys" I think anything goes
Alayde has joined #ruby
<adaedra>
hahaha
Muhannad has joined #ruby
chills42 has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
A124 has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
rbennace_ has joined #ruby
<Ox0dea>
Hey, gals! Any tips for choosing the best vein?
<Scriptonaut>
hahah
iamjarvo_ has joined #ruby
Vile` has quit [Ping timeout: 265 seconds]
<Aria>
Seriously?
ascarter has joined #ruby
A124 has joined #ruby
<Aria>
Just don't. This is a programming channel.
<Ox0dea>
Aria: Please advise with some haste. I'm goin' in!
<centrx>
I think he's mining for ore
<Scriptonaut>
Aria don't be so damn uptight
Vile` has joined #ruby
<drbrain>
Scriptonaut: that's inappropriate
<Aria>
Indeed.
Trynemjoel has joined #ruby
ascarter has quit [Max SendQ exceeded]
<dfockler>
Ruby!
<adaedra>
Ruby!
<Scriptonaut>
Makin a joke like that?
<Aria>
dfockler++
<centrx>
PHP!
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler>
GET OUT!
<Aria>
centrx++
ascarter has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
* adaedra
slaps centrx with all the reasons PHP is bad
<centrx>
it's a fractal, fractals are cool man
rbennacer has quit [Ping timeout: 272 seconds]
AlphaAtom has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 244 seconds]
<centrx>
Alright, back to work people! I'm not paying you all to...do anything
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
slawrence00 has quit [Read error: Connection reset by peer]
ivanf has quit [Ping timeout: 260 seconds]
A124 has quit [Ping timeout: 260 seconds]
stylus has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
A124 has joined #ruby
djbkd has quit [Remote host closed the connection]
fractalis has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
hazelux has quit [Remote host closed the connection]
<bazbing81>
before I dive into this, how does my gem get another gem's root? so gemA has a a dependency on gemB, how does gemB get gemA's root? Because of the way installed gem's are installed will it always be File.expand_path '../..', __FILE__ or something? I mean I know gems themselves are installed in a folder further up the directory tree in Ubuntu, but when we require them insto another gem would that allow us to use File.expand_path '../..' ?
sbhatore has joined #ruby
ivanf has joined #ruby
sbhatore is now known as jaimessi
<bazbing81>
just for more clarification, we're developing gemA gemA isn't an installed gem
jaimessi is now known as abcd1234
<adaedra>
usually, gems just require each other without trying to figure where they are installed
yalue has quit [Quit: return 0;]
<shevy>
I found that RbConfig::CONFIG['sitelibdir']+'/name_of_gem/' works reliably for my gems
<adaedra>
ew
<shevy>
what do you use adaedra
<bazbing81>
adaedra I want to create a gem that scans the gem we're developing for a keyword...but only the gem we're developing. No gems that are installed
lkba has quit [Quit: Bye]
<adaedra>
then just scan the directory, bazbing81
<adaedra>
shevy: to do what
<shevy>
to get the path of the gem
<adaedra>
I don't
<bazbing81>
adaedra: you mean they should manually put the root in?
<adaedra>
bazbing81: if your goal is to have a gem tool that scans other code bases, the best it to have your gem get as config which path to scan
<adaedra>
either by config file, environment or cli argument
<TomyLobo>
i have an array with keys and an array with values. how do i combine them into a dictionary?
<Ox0dea>
%w saves the most typing, but %i is still nice.
skade has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 240 seconds]
calleerlandsson has quit [Quit: Connection closed for inactivity]
<dfockler>
what does the %i and %w stand for?
<al2o3-cr>
%W for interpolation :)
vdamewood has quit [Quit: Life beckons.]
baweaver has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
jeremy04 has quit [Ping timeout: 260 seconds]
<waxjar>
i kinda wish ruby didnt have these
<adaedra>
aw :(
<dfockler>
%w will stand for '(W)hen you need a string'
Musashi007 has quit [Quit: Musashi007]
<dfockler>
%i will stand for '(I) really need a symbol'
djbkd has joined #ruby
<waxjar>
%w denotes an array, thought
<waxjar>
*though
texasmade has joined #ruby
<dfockler>
they both generate arrays
<adaedra>
array of Welcomed strings, array of Important symbols
<Ox0dea>
dfockler: %w is "word", %i is "intern".
<dfockler>
I don't want to hire interns
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
dfockler: Symbols are "interned" strings.
<waxjar>
just type a couple characters extra :D
tenderlove has joined #ruby
<Ox0dea>
waxjar: Have you never typed out an array of strings? It's fucking annoying.
benlovell has joined #ruby
<adaedra>
^
<al2o3-cr>
+1
<adaedra>
%w and %i are so nice
baroquebobcat has quit [Quit: baroquebobcat]
erts has joined #ruby
<waxjar>
meh, type it out as you would with %w and use your editor to insert quotes, commas and line breaks at the right places
<waxjar>
multiple cursors, ftw!
<Ox0dea>
Or, y'know,
hazelux has joined #ruby
<puppeh_>
I'm searching how I can initialize a unix domain socket and *then* connect to it. I don't want to use Socket.unix or UNIXSocket which connects at the same time it initializes the socket
<puppeh_>
any ideas?
fullofcaffeine has quit [Remote host closed the connection]
<adaedra>
why would you want to do that
rideh has quit [Ping timeout: 265 seconds]
erts has quit [Client Quit]
<puppeh_>
cause I want to connect at a later time, only when needed
<al2o3-cr>
don't forget %s
<Ox0dea>
al2o3-cr: That doesn't create an array, though.
<adaedra>
then create the socket when you need it?
<al2o3-cr>
oh, no
<puppeh_>
adaedra: I need it earlier, and I want to connect to it later
<puppeh_>
for a reason that's out of scope right now
<TomyLobo>
in a gsub with a block, can i get the captures somehow? i only get the entire match as a string
fullofcaffeine has joined #ruby
<waxjar>
the captures come in as block arguments i believe
<ruboto>
adaedra # => /tmp/execpad-f2068085f71e/source-f2068085f71e:2: unterminated string meets end of file ...check link for more (https://eval.in/412789)
<zenspider>
ah... no. It was reading the % as a method in my context
<zenspider>
I was doing ruby -e 'p % word ' and it looked like p().%(word)
maletor has quit [Quit: Computer has gone to sleep.]
Oka has joined #ruby
<adaedra>
ok, how do I close %w<space>
<al2o3-cr>
so, most things can be a delimiter for %?
bruno- has quit [Ping timeout: 244 seconds]
fractalis has quit [Ping timeout: 240 seconds]
ap4y has joined #ruby
<adaedra>
non alphanumeric iirc
leafybasil has quit [Ping timeout: 252 seconds]
<al2o3-cr>
ah, ok nice to know
benlovell has quit [Ping timeout: 256 seconds]
<adaedra>
with the special cases of ({[<
diegoviola has quit [Quit: WeeChat 1.2]
<zenspider>
no, pretty much anything except those other special chars specifying other types
<ruboto>
TomyLobo # => /tmp/execpad-33b27351e72d/source-33b27351e72d:4: unterminated string meets end of file ...check link for more (https://eval.in/412794)
<bazbing80>
Ox0dea that's cool...yeah read each line of file when count == line utilize string[], thanks
<Radar>
bazbing80: Thor has commands for this iirc
banister has joined #ruby
<Ox0dea>
Alternatively, `sed -i`.
rehat has joined #ruby
tmtwd has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
Mendenhall has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
<Alayde>
Might someone know why SOAP calls to an internal host fail with 'certificate verify failed' while an 'openssl s_client -connect <host>:443' works without issue? I've ensured that our internal CA is within CentOS' cert bundle (hence the working openssl s_client)
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Alayde>
I'm thuroughly stumped
mikecmpbll has quit [Quit: i've nodded off.]
<bazbing80>
Radar can't find any reference to that functionality
Musashi007 has quit [Quit: Musashi007]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
d2dchat has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]