kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
symm- has joined #ruby
Puffball has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
stardiviner has joined #ruby
kareeoleez has quit [Remote host closed the connection]
raeoks has joined #ruby
solars has joined #ruby
shinnya has joined #ruby
lukec has quit [Quit: lukec]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has joined #ruby
nadir_ has joined #ruby
agent_white has quit [Remote host closed the connection]
flughafen has quit [Ping timeout: 244 seconds]
nadir_ is now known as nadir
stannard has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emilkarl is now known as emilkarl[away]
yfeldblum has joined #ruby
echosystm has quit [Quit: leaving]
pythoninthegrass has joined #ruby
kgrz has quit [Ping timeout: 276 seconds]
Puffball has joined #ruby
chipotle has quit [Quit: cheerio]
emilkarl[away] is now known as emilkarl
allcentury has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
Devalo has quit [Remote host closed the connection]
CROOKED^HILLARY^ has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
pythoninthegrass has quit [Quit: Textual IRC Client: www.textualapp.com]
Puffball has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 244 seconds]
pawnbox_ has joined #ruby
Puffball has joined #ruby
moeSeth has joined #ruby
chipotle has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
harry111 has quit [Ping timeout: 260 seconds]
gokulnath has joined #ruby
firstdayonthejob has joined #ruby
iamvery has quit [Ping timeout: 246 seconds]
gokulnath is now known as gokul
gokul is now known as gokulnath
CROOKED^HILLARY^ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
saneax_AFK is now known as saneax
Puffball has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby
ur5us has quit [Remote host closed the connection]
yfeldblum has joined #ruby
benlieb has joined #ruby
yfeldblum has quit [Remote host closed the connection]
harry111 has joined #ruby
yfeldblum has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
dionysus69 has joined #ruby
<prooftechnique>
So I've got an inflection singular 'metadata', 'metadata', but fields_for still insists that I use :metadatum. Am I misunderstanding inflections, or am I missing a step?
aupadhye has quit [Ping timeout: 260 seconds]
gregf_ has quit [Ping timeout: 272 seconds]
tildes has joined #ruby
saneax is now known as saneax_AFK
ur5us has joined #ruby
codecop has joined #ruby
harry111 has quit [Ping timeout: 276 seconds]
harry111 has joined #ruby
Puffball has joined #ruby
ta_ has joined #ruby
gregf_ has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
Puffball has quit [Remote host closed the connection]
<roelof>
now I want to have the image where x = 0 and y = ) so I tried this : <img src = <%= @painting.big_images["tiles"].collect { |x y url| x == 0 && y == 0 } %> />
<roelof>
but now a lot of errors. How can I make this work ?
harry111 has quit [Ping timeout: 276 seconds]
DoubleMalt has joined #ruby
mark_66 has joined #ruby
<alfie_max15>
roelof, what is the error?
<elomatreb>
Don't you need commas after the arguments in the .collect block?
sonne has joined #ruby
<roelof>
SyntaxError (/home/ubuntu/workspace/app/views/paintings/show.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting '|' ..._images["tiles"].collect { |x y url| x == 0 && y == 0 } );@o...
<alfie_max15>
try, @painting.big_images["tiles"].collect { |x, y, url| x == 0 && y == 0 }
<alfie_max15>
you were missing commas
djbkd has joined #ruby
Puffball has joined #ruby
Couch has joined #ruby
tristanp_ has quit [Ping timeout: 246 seconds]
<roelof>
I tried that and now I see this in my html : <img src = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false] />
CausaMortis has joined #ruby
<roelof>
I just want to have to url
<elomatreb>
I don't think .collect is the correct method for that
<roelof>
that looks better but I only need the url
<elomatreb>
Add [:url] after the code
<elomatreb>
Sorry, that was wrong. A moment please
<alfie_max15>
add `.first['url']` if you just need the first url
<roelof>
every x and y have only 1 url
<alfie_max15>
or use `.map{|x| x['url']}`
taylan has joined #ruby
<elomatreb>
If there will always be only on image with x and y equal to 0, .first["url"] should work
<alfie_max15>
`select` returns an array of `tiles` that matches the condition, so if n tiles matches, then the result will be an array of those n tiles
<taylan>
I remember reading something like Ruby's "if" expression working like propositional logic, so that 'if <false> then <whatever>' evaluates to true. do I remember wrong? I merely want to show this as an example of what a programming language can do with its if
harry111 has joined #ruby
malcolmva has joined #ruby
marr has joined #ruby
CROOKED^HILLARY^ has joined #ruby
nankyokusei has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
gokulnath has quit [Ping timeout: 252 seconds]
pontiki has quit [Ping timeout: 272 seconds]
pontiki has joined #ruby
<roelof>
thanks. now find out how to delete the spaces between the images
<alfie_max15>
spaces??
fenre has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
tatsuo_ has joined #ruby
hightower3 has joined #ruby
antgel has joined #ruby
<roelof>
I see a image , some white space and then another image
<alfie_max15>
in your browser?
<roelof>
tep
<roelof>
yep
slackbotgz has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
<alfie_max15>
that's a whole another thing
<alfie_max15>
you'd have to work with some css
harry111 has quit [Ping timeout: 260 seconds]
<roelof>
yep, and find another image. This one is too big so the last part is shown under it instead of next to it
patrick_star_2 has joined #ruby
RegulationD has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Remote host closed the connection]
zyzioziom has joined #ruby
skade has joined #ruby
pontiki has quit [Ping timeout: 264 seconds]
pontiki has joined #ruby
patrick_star_3 has quit [Ping timeout: 246 seconds]
aufi has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
harry111 has joined #ruby
tatsuo_ has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
giz|work has joined #ruby
joes_ has joined #ruby
joes_ has quit [Client Quit]
jgt has joined #ruby
skade has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
dhruvasagar has quit [Quit: WeeChat 1.4]
<taylan>
hmm, I must have confused it with another programming language. in Ruby, 'if <false> ...' seems to just return nil
joes_ has joined #ruby
<adaedra>
Hello
gokulnath has joined #ruby
fenre has quit [Remote host closed the connection]
roelof has quit [Quit: Page closed]
pontiki has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
Biopandemic has joined #ruby
pawnbox has joined #ruby
ctp has quit [Client Quit]
triangles has quit [Ping timeout: 240 seconds]
m8_ has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
gagrio has quit [Ping timeout: 252 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
hanmac has joined #ruby
stardiviner has joined #ruby
m8 has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 276 seconds]
|2701 has joined #ruby
johnmilton has joined #ruby
last_staff has quit [Ping timeout: 246 seconds]
k0n has quit [Disconnected by services]
last_staff has joined #ruby
banister has joined #ruby
stannard has joined #ruby
gagrio has joined #ruby
gagrio is now known as gagrio|MTG
joonty has quit [Ping timeout: 240 seconds]
solars has joined #ruby
Rickmasta has joined #ruby
GBrawl has joined #ruby
johnny56 has joined #ruby
ferr1 has joined #ruby
beauby has joined #ruby
synthroid has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
akiTendo has joined #ruby
Macaveli has quit [Remote host closed the connection]
Dysp has joined #ruby
<Dysp>
Hi there Ruby people. If I am to create some sort of GUI to help my fellow peeps at the department use my scripts, how should I go around this? Any recommendations on which gui framework to use?
CloCkWeRX has joined #ruby
<jhass>
is there a ruby binding for libui yet?
<jhass>
doesn't look like it, too bad
roamingdog has quit [Ping timeout: 276 seconds]
<ddv>
Dysp: make a webapp perhaps
djcp has joined #ruby
<insanedreamer>
Dysp: I’d create a webapp
<Dysp>
Like with Rails?
<insanedreamer>
Dysp: or Sinatra/Padrino if it’s simple enough
<jhass>
what do your scripts do?
<Dysp>
Was actually also my first thought
<jhass>
how will your GUI help anybody using them?
<Dysp>
Take data from excel sheets and pile em unto more excel sheets.
<Dysp>
It helps, because they should press a button instead of using the command line like I do ;)
<Dysp>
But I actually think creating a webapp is the proper solution.
<jhass>
yeah, upload/download should be easy enough
<insanedreamer>
certainly will be much easier for you to maintain
<Dysp>
True..
tristanp has quit [Ping timeout: 272 seconds]
<insanedreamer>
no installation issues on client machines, etc.
emilkarl is now known as emilkarl[away]
<Dysp>
Yeah, definetly the way to go.
<Dysp>
That's what I wil ldo.
<Dysp>
Time to learn Rails.
johnmilton has quit [Read error: Connection reset by peer]
<Dysp>
^_^
<alfie_max15>
you dont seem to have much functionalities to use rails for it
<insanedreamer>
Dysp: Sinatra should be enough for what it sounds like you need to do - check it out, simpler/lighter than Rails
<alfie_max15>
Sinatra should be enough
<Dysp>
Yeah, but I would like to expand on it if I am going to build a web-app anyhoot.
<Dysp>
Of course I don't know the difference between Rails and Sinatra, however I would like to learn Rails anyhoot.
<insanedreamer>
Dysp: Sinatra is pretty expandable - especially if you start with Padrino.
<insanedreamer>
Dysp: Sure, Rails will also work of course.
johnmilton has joined #ruby
<Dysp>
What would you say is the difference between the two frameworks?
allcentury has quit [Ping timeout: 264 seconds]
<Dysp>
And by that I mean, for usage?
johnmilton has quit [Remote host closed the connection]
johnmilton has joined #ruby
arlek_ has quit [Ping timeout: 276 seconds]
johnmilton has quit [Remote host closed the connection]
<insanedreamer>
Dysp: Sinatra gives you much less out of the box, so you add the components you want if you need them. Rails is fully-featured but also more opinionated. Again, if you go with Sinatra I recommend looking at Padrino which is Sinatra on steroids.
tristanp has joined #ruby
<Dysp>
Ah okay. I will probably go with Rails nevertheless. Just to learn it. But I wanted your opinion anyway.
deadnull_ has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
Pumukel has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
troulouliou_div2 has joined #ruby
emilkarl[away] is now known as emilkarl
joonty has joined #ruby
emilkarl is now known as emilkarl[away]
emilkarl[away] is now known as emilkarl
emilkarl is now known as emilkarl[away]
emilkarl[away] is now known as emilkarl
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnmilton has quit [Remote host closed the connection]
emilkarl has joined #ruby
Pumukel has joined #ruby
johnmilton has joined #ruby
elementaru has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
solars has quit [Ping timeout: 244 seconds]
ponga has quit []
tristanp has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c0mrad3>
jhass: does the rubygems.org show a pre-release gems ?
<jhass>
yes
<jhass>
apart from the "from source option" using bundler there, you can also run gem build asciidoctor-mallard.gemspec; gem install ./asciidoctor-mallard.gem
<jhass>
(after getting the source)
tristanp has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
webus has joined #ruby
<c0mrad3>
jhass: I am trying to package that gem for fedora
<jhass>
then you want to use gem build even more so
sdwrage has joined #ruby
<jhass>
that'll give you the .gem file you'd download otherwise
eladmeidar has quit [Read error: Connection reset by peer]
zast has joined #ruby
<shevy>
jaja
<shevy>
I fooled you! that was german!!!
hahuang61 has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Es0teric has quit [Quit: Computer has gone to sleep.]
rbennacer has quit [Remote host closed the connection]
<shevy>
jhass today I learned something really weird... the english did not only steal kindergarten or eigenklass but also this name: https://en.wikipedia.org/wiki/Einkorn_wheat
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tsherman has joined #ruby
<jhass>
because backticks are more commonly known I'd guess
joonty has joined #ruby
<jhass>
also probably to enforce some consistency, so people don't mix it all over the place randomly
<kyle__>
jhass: They're also so much easier to miss when skimming through code I think. Similar to the preference for %() over %{} in the guide. If you use {} it stands out and is easier to see.
ruby-lurker34567 has quit [Ping timeout: 250 seconds]
chopin has joined #ruby
<jhass>
{ is harder to type on most international keyboards
<kyle__>
Really?
nankyokusei has quit [Ping timeout: 260 seconds]
<kyle__>
I guess It's been a very long time since I've used one, and even then I just used a us-keymap and didn't look at the keys (too confusing).
<jhass>
AltGr+7 on a german keyboard for instance
<kyle__>
Ugh. OK, that makes sense then. Didn't realize.
<kyle__>
I wonder if there's a resource online to show what symbols are easily accessible from each keymap.....
RegulationD has quit [Remote host closed the connection]
ksmutthu has joined #ruby
synthroid has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
skade has joined #ruby
GarethAdams has joined #ruby
freerobby has joined #ruby
jaguarmagenta has joined #ruby
ferr1 has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
<p1k>
so if my $LOAD_PATH contains /home/user/project/lib and a file exists /home/project/user/lib/x/z.rb shouldn't require 'x/z' source it ?
Rutix has quit []
tristanp has quit [Read error: Connection reset by peer]
<apeiros>
p1k: yes
<darix>
p1k: not really
<darix>
hm
<apeiros>
unless there's one which matches "earlier"
mistermocha has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<darix>
p1k: require_relative can also be useful
<apeiros>
and assuming user/project vs. project/user was a typo ;-)
xue_ has joined #ruby
<darix>
to get in-project libraries
jaguarmagenta has quit [Ping timeout: 276 seconds]
<shevy>
aha!
<shevy>
apeiros has good eyes - I would not have spotted the user/project versus project/user difference up there
<p1k>
apeiros: yeah the later was a type :) I'll take another look, they are parsed sequentially right?
<p1k>
typo* fail -_-
<apeiros>
"they"?
kareeoleez has joined #ruby
fenre_ has quit [Remote host closed the connection]
CROOKED^HILLARY^ has quit [Ping timeout: 240 seconds]
<p1k>
the paths
<apeiros>
first rubygems, after that in order from front to end, yes.
Rutix has joined #ruby
Rutix has joined #ruby
kobain has quit [Remote host closed the connection]
jaiks has joined #ruby
synthroid has joined #ruby
moeabdol2 has joined #ruby
mostlybadfly has joined #ruby
DanyC has joined #ruby
flughafen_ has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 272 seconds]
moeabdol2 has quit [Client Quit]
ItSANg___ has quit [Quit: Leaving...]
tristanp_ has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
elaptics is now known as elaptics`away
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
moeabdol has joined #ruby
matp has joined #ruby
DanyC has quit [Remote host closed the connection]
DanyC has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
Guest38297 is now known as dopie
dopie has quit [Quit: Leaving]
adac has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
DanyC has quit [Client Quit]
craigp has quit [Ping timeout: 246 seconds]
xue_ has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
Ishido has joined #ruby
glcx has quit [Quit: Quitte]
whathappens has joined #ruby
fenre has joined #ruby
bronson has joined #ruby
[Butch]_ has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
Sean___ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amclain has joined #ruby
[Butch] has quit [Ping timeout: 240 seconds]
[Butch]_ is now known as [Butch]
ropeney has quit [Quit: Leaving]
skolman has joined #ruby
claw has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
whathappens has quit [Remote host closed the connection]
symm- has joined #ruby
hk238 has joined #ruby
Guest38 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
flughafen_ has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
centrx has quit [Quit: centrx]
bronson has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
evidex has quit [Ping timeout: 244 seconds]
Sean___ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
SilverKey has joined #ruby
Trieste has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
_aeris_ has joined #ruby
Couch has quit [Ping timeout: 272 seconds]
claw has joined #ruby
tsherman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sunnypar1eunji>
jhass: seems that way, though like 1.5 minutes pass from the SSH from dropbear and the FIN it sends
<jhass>
that's long
rkazak has joined #ruby
andikr has quit [Remote host closed the connection]
<jhass>
I'd probably trace through net-ssh's codepath at this point, adding puts/binding.pry's
jancel has joined #ruby
<sunnypar1eunji>
jhass: yeah interestingly, on the openssh one, openssh appears to advertise its version first -- or at least from what you can see in the capture
<jhass>
comparing to the capture net-ssh connects successfully too could be interesting
<sunnypar1eunji>
which would make sense because the capture is from the ruby device's perspective
oncall-pokemon has quit [Quit: Connection closed for inactivity]
<sunnypar1eunji>
jhass: yeah let me get one
<jhass>
in particular how the Server: Protocol packet differs (besides the version)
<jhass>
like maybe missing null bytes at the end or stuff like that
skade has quit [Read error: Connection reset by peer]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
senayar has quit []
platzhirsch has quit [Ping timeout: 244 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
<sunnypar1eunji>
jhass: looks like it sends it within the same second
weckl has quit [Remote host closed the connection]
Jardayn has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
skade has quit [Read error: Connection reset by peer]
tvw has joined #ruby
ruskie has joined #ruby
skade has joined #ruby
skade has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 250 seconds]
jhack has quit [Quit: jhack]
skade has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
skade has quit [Read error: Connection reset by peer]
tristanp_ has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
tristanp has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Ch4rAss has joined #ruby
tatsuo_ has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 240 seconds]
fenre has quit [Remote host closed the connection]
skade has joined #ruby
aufi has quit [Ping timeout: 276 seconds]
craigp has joined #ruby
lightheaded has quit []
boboc has joined #ruby
<ruurd>
Is ruby tapas worth subscribing to?
hutch34_ has joined #ruby
<havenwood>
ruurd: yes
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<havenwood>
ruurd: Especially if you've never subscribed it's a deal because you'll have all the back content.
ramfjord has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
sfmk has joined #ruby
skade has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 260 seconds]
skade has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Ebok has joined #ruby
<ruurd>
Hmm. OK
<ruurd>
avdi I'll consider it.
whathappens has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
tildes_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ch4rAss has quit [Ping timeout: 252 seconds]
<gregf_>
er, is havenwood avdi?
moeabdol has quit [Ping timeout: 272 seconds]
<anna`>
Hi folks i am having trouble installing tokyocabinet in centos7 i am getting this error: http://kopy.io/zylqL#1iL0ks78K6vx0qbundle commands i have already yum install tokyocabinet-devel - any ideas?
spider-mario has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
<ruurd>
no gregf_ avid <> havenwood
Pumukel has quit [Read error: Connection reset by peer]
loechel has joined #ruby
<avdi>
gregf_: yes. Also, ruurd is avdi, and you are avdi. I am all of you! Bwhahahaha!
loechel is now known as Pumukel
startupality has joined #ruby
aegis3121 has joined #ruby
jaruga___ has quit [Quit: jaruga___]
tatran has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
<ruurd>
avdi and I am all of you
skweek has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<avdi>
and together, we are all _why
lukec has quit [Quit: lukec]
araujo_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
k3rn31 has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
Ch4rAss has joined #ruby
futilegames has joined #ruby
Gasher has joined #ruby
skade has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 244 seconds]
skade has joined #ruby
Nanuq has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
roamingdog has joined #ruby
thoraxe has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
evidex has quit [Remote host closed the connection]
TomyLobo has joined #ruby
Biopandemic has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
skade has quit [Read error: Connection reset by peer]
Ch4rAss has quit [Ping timeout: 260 seconds]
skade has joined #ruby
GodFather_ has joined #ruby
tristanp has joined #ruby
Biopandemic has joined #ruby
<jhass>
anna`: how about a pastebin that actually loads ;)
tristanp has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
tristanp has joined #ruby
nobitanobi has quit [Remote host closed the connection]
juanfra has quit [Quit: juanfra]
<anna`>
xD oh yer, weird
<anna`>
Sorry about that folks; i've managed to fix it anyhow
electrostat has joined #ruby
juanfra has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
rapha has quit [Quit: WeeChat 1.4]
rapha has joined #ruby
mikecmpbll has joined #ruby
Amnez777 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
bronson has joined #ruby
jobewan is now known as jobewan_away
jobewan_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
diegoviola has joined #ruby
<anna`>
i don't know what happened, but i managed to copy/paste half a command from terminal in and amongst the kopy.io sentence
bronson has quit [Remote host closed the connection]
<mog>
im having a problem with ruby strings. when i run this line puts "Agent##{agent.id}: #{message}" i get an error U+00E2 from UTF-8 to US-ASCII
Cohedrin has joined #ruby
<mog>
the message has unicode in it so that makes sense
Trieste has quit [Excess Flood]
<mog>
how do i tell it to have this be a utf8 string and not a ascii one
threh has quit [Ping timeout: 276 seconds]
Trieste has joined #ruby
<apeiros>
mog: which ruby version?
wrkrcoop has joined #ruby
<mog>
ruby 2.3.0p0 (2015-12-25) [x86_64-linux]
<apeiros>
and you get that when running the line with ruby? or with irb/pry?
ramfjord has joined #ruby
Snowy has quit [Remote host closed the connection]
<wrkrcoop>
when testing wether a method accepts an argument of a specific type, i’ve just been calling the method with an argument and saying ‘expect it not to raise argument error’
<wrkrcoop>
i feel like that’s not the best approach…
<mog>
no im trying to fix this bug in some software i use
jaguarmagenta has joined #ruby
<mog>
and this is where the stack trace takes me
boboc has quit [Remote host closed the connection]
<apeiros>
mog: ok, look, in ruby 2.3, string literals default to utf-8
<mog>
and if i comment out the puts line the software runs fine i just dont get a new line in my log file
Trieste has quit [Excess Flood]
<apeiros>
mog: so it seems unreasonable that you get that exception - unless you have a specific encoding comment in the file. but I'd assume you'd have seen that.
<mog>
thats what i thought apeiros but the error message made me think otherwise
<mog>
how can i check for that ?
<mog>
like i can grep the tree for ASCII
<mog>
or something similar
<apeiros>
ah well, $stdout's encoding might be us-ascii
<mog>
yes this outputting to a log file
<apeiros>
via a plain puts?
<mog>
yes
<apeiros>
so how come it goes to a file? shell redirect? $stdout reopened?
chouhoulis has quit [Remote host closed the connection]
<apeiros>
or make a method for it and put it into ~/.irbrc
<apeiros>
or use pry, there it's "hist"
<User458764>
apeiros great :)
<bodgix>
Hi. I'm looking for advice on architecture. I have a collection whose objects need reference to the collection itself. If I use composition (assign the collection itself to an instance variable of the object in the collection) I'm getting circular references. I don't know if it's really a problem, but when I print the collection with pp, I'm seeing something like an endless nesting
chouhoulis has joined #ruby
tristanp has joined #ruby
hahuang61 has joined #ruby
<bodgix>
would accessing having the collection a global or module variable be a better idea? or using the singleton pattern maybe? or are circular references ok?
jancel has joined #ruby
chouhoul_ has joined #ruby
<jhass>
there are some valid usecases, your description is too abstract to say whether its okay here. afaik the GC has no issues with that either
mtkd has joined #ruby
postmodern has quit [Quit: Leaving]
<bodgix>
I have a collection of metrics. some metrics are "complex" metrics whose value is a mathematical expression which is using other metrics
<bodgix>
so when I call metric.value it needs access to other metrics in order to calculate the value
<bodgix>
or if it's a simple metric, it just returns the value
mdw has joined #ruby
GarethAdams has quit [Quit: Leaving...]
<bodgix>
how about Marshall'ing? do you think there may be a problem?
<jhass>
mh, sounds like they should only reference the metrics they need, not all metrics there are
postmodern has joined #ruby
<jhass>
uh, no idea
<bodgix>
but the expression may use any arbitrary metric
<bodgix>
so I figured, I'll give the metric access to all other merics' values
chouhoulis has quit [Ping timeout: 276 seconds]
ChiefAlexander has joined #ruby
aegis3121 has quit [Remote host closed the connection]
<apeiros>
>> a = []; a << a; Marshal.load(Marshal.dump(a))
djbkd has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Quit: Leaving]
djbkd has joined #ruby
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
<bodgix>
thanks jhass, apeiros looks like there should be no issues with circular refs then. but I may consider a global / module variable. I thought that passing the collection ref to the object would be cleaner though
djbkd has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
GreenSand has quit [Ping timeout: 250 seconds]
Dimik has joined #ruby
<bodgix>
until I saw endless screens of pp output. Still don't know why.
<jhass>
I consider the global cleaner here because I find it cleaner that it may change without the classes interaction
<jhass>
at least when it comes to collections I prefer classes to own stuff they reference
<jhass>
if they don't, I prefer them to know where to fetch it
<bodgix>
fair enough
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
mdw has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
Coldblackice has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
ico has quit [Remote host closed the connection]
<bodgix>
I actually thought of 3rd solution. I assigned the collection to a class variable of Metric's base class
ta_ has joined #ruby
<bodgix>
which is kind of similar to global I think
<jhass>
well it's not like you're ever going to reassign it
<jhass>
so a constant is perfectly fine
pawnbox has joined #ruby
mog has left #ruby ["Leaving"]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<bodgix>
good point. thanks jhass
taylan has quit [Ping timeout: 260 seconds]
jancel has quit [Remote host closed the connection]
ico has joined #ruby
webus has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
drahosj has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
adac has joined #ruby
drahosj has quit [Read error: Connection reset by peer]
<User458764>
Does someone knows how to force irb to not display return value for one command?
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<apeiros>
User458764: ;
jancel has joined #ruby
<apeiros>
or ;0
mjuszczak has joined #ruby
tristanp_ has joined #ruby
codecop has joined #ruby
<apeiros>
the former will wait with execution until you enter the next command, the latter won't.
tristanp has quit [Ping timeout: 252 seconds]
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
drahosj has joined #ruby
<User458764>
apeiros ok nice hack I does my job
<User458764>
*it
drahosj has quit [Client Quit]
tristanp_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
drahosj has joined #ruby
tristanp has joined #ruby
dionysus69 has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
zast has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
skade has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
yos7ph has quit [Quit: Leaving]
mjuszczak has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
weckl has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
roamingdog has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
larslarsson has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
aegis3121 has joined #ruby
skade has quit [Read error: Connection reset by peer]
arlek_ has joined #ruby
bronson has joined #ruby
gtsai_ has joined #ruby
skade has joined #ruby
aegis3121 has quit [Client Quit]
LastWhisper____ has joined #ruby
tekneek has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
Sean___ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
gtsai has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 252 seconds]
wolfedale has joined #ruby
kobain has quit [Max SendQ exceeded]
aegis3121 has joined #ruby
kobain has joined #ruby
arlek_ has quit [Ping timeout: 260 seconds]
gtsai_ has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
nankyokusei has joined #ruby
Sean___ has joined #ruby
hdawg has joined #ruby
gtsai has joined #ruby
tekneek has quit [Quit: Ex-Chat]
jhack has joined #ruby
skade has quit [Read error: Connection reset by peer]
Ebok has quit [Quit: This computer has gone to sleep]
spider-mario has joined #ruby
Ebok has joined #ruby
drahosj has left #ruby ["Leaving"]
whathappens has joined #ruby
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
skade has joined #ruby
jaruga___ has joined #ruby
jaruga___ has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 244 seconds]
A124 has quit [Quit: '']
SuperLag has quit [Quit: maintenance]
m0rph84 has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Read error: Connection reset by peer]
aegis3121 has joined #ruby
arlek_ has joined #ruby
tristanp has joined #ruby
hdawg has quit [Quit: Leaving]
craigp has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
moos3 has joined #ruby
Sou|cutter has joined #ruby
AltLock has quit [Quit: WeeChat 1.5]
nobitanobi has quit [Remote host closed the connection]
mdw has joined #ruby
wolfedale has quit [Ping timeout: 260 seconds]
umdstu has quit [Quit: umdstu]
Devalo has quit [Remote host closed the connection]
zeroDi has joined #ruby
boboc has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
djbkd has joined #ruby
tvw has quit [Ping timeout: 246 seconds]
<shevy>
you are a hackster!
workmad3 has joined #ruby
Trieste has quit [Ping timeout: 244 seconds]
gtsai has quit [Ping timeout: 252 seconds]
GodFather_ has quit [Ping timeout: 276 seconds]
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.4]
GBrawl has quit [Quit: (null)]
Trieste has joined #ruby
elementaru has joined #ruby
codecop has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
Trieste has quit [Ping timeout: 260 seconds]
hdawg_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
RegulationD has joined #ruby
hdawg_ has left #ruby [#ruby]
tristanp has joined #ruby
Trieste has joined #ruby
djellemah has quit [Ping timeout: 252 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[Butch]_ has joined #ruby
n_blownapart has joined #ruby
JoshGlzBrk has joined #ruby
tvw has joined #ruby
aarwine has joined #ruby
[Butch]_ is now known as [Butch]
[Butch] has quit [Ping timeout: 246 seconds]
<aarwine>
is there a good way to do `var1 || var2` if you want to be checking for empty string instead of nil?
hdawg_ has joined #ruby
hdawg_ has quit [Client Quit]
<aegis3121>
var1.empty? || var2.empty? ?
Trieste has quit [Excess Flood]
<aarwine>
!!
<aarwine>
thanks :)
taylan has joined #ruby
roamingdog has joined #ruby
ljames has quit []
JoshGlzBrk has quit [Ping timeout: 260 seconds]
weckl has quit [Quit: Leaving]
jhack has joined #ruby
centrx has joined #ruby
<al2o3-cr>
aarwine: [var1, var2].any? &:empty?
<Papierkorb>
al2o3-cr: that has a completely different behaviour
n_blownapart has quit []
<al2o3-cr>
Papierkorb: how so?
roamingdog has quit [Ping timeout: 250 seconds]
<Papierkorb>
al2o3-cr: (var1 || var2) is already different to (var1.empty? || var2.empty?) though, so if that's what OP wanted, then ofc you're correct
nankyokusei has quit [Remote host closed the connection]
hdawg_ has joined #ruby
<al2o3-cr>
ah ok, point taken :)
hdawg_ has left #ruby [#ruby]
<jhass>
Papierkorb: any? short-circuits too, it's not all that different
<jhass>
just slower due to creating an array
<jhass>
and procs
<Papierkorb>
jhass: I thought more about (var1 || var2) != (var1.empty? || var2.empty?)
<aarwine>
I was doing something different; I ended up just using a full if else - I wanted to do `if title.empty do "no title" else title end` - It's in an erb <%= %>
yfeldblum has joined #ruby
<jhass>
aarwine: rails/activesupport?
<aarwine>
naw, just ruby :(
<aarwine>
jhass: were you thinking of blank?
perlgod has joined #ruby
n_blownapart has joined #ruby
<jhass>
aarwine: no, presence
<jhass>
title.presence || "no title"
tristanp has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
tristanp has joined #ruby
perlgod has quit [Client Quit]
mjuszczak has joined #ruby
djellemah has joined #ruby
swills has quit [Ping timeout: 240 seconds]
crazydiamond has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n0xff has joined #ruby
adac has quit [Ping timeout: 276 seconds]
johnbat26 has joined #ruby
Sammichmaker has quit [Ping timeout: 244 seconds]
<mtkd>
aarwine is one of var1 or var2 guaranteed to be set?
tildes_ has quit [Ping timeout: 276 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
benlieb has quit [Quit: benlieb]
kspencer has quit [Quit: WeeChat 1.3]
CausaMortis has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
stannard has quit [Remote host closed the connection]
bronson has joined #ruby
kspencer has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has quit [Quit: centrx]
Regulati_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
arthurl has joined #ruby
zyzioziom has quit [Ping timeout: 276 seconds]
zenlot has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
art-solopov has quit [Quit: Konversation terminated!]
tristanp has quit [Ping timeout: 250 seconds]
zenlot has joined #ruby
freerobby1 has quit [Quit: Leaving.]
tristanp has joined #ruby
hypercube32 has joined #ruby
jackjackdripper has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
madgen has quit [Ping timeout: 246 seconds]
tristanp_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
mleung has quit [Quit: mleung]
mozzarel1 has joined #ruby
mleung has joined #ruby
ereslibre_laptop has joined #ruby
ereslibre_laptop has quit [Changing host]
ereslibre_laptop has joined #ruby
marens_ has joined #ruby
SilverKey has quit [Quit: Halted.]
Ballo has joined #ruby
idefine_ has joined #ruby
<Ballo>
Can I assign a class constant as a lambda?
Ebok has quit [Quit: This computer has gone to sleep]
neanderslob has quit [Disconnected by services]
neanderslob_ has joined #ruby
hightower3 has quit [Ping timeout: 244 seconds]
startupality has quit [Ping timeout: 240 seconds]
majuscul1 has joined #ruby
_ht_ has joined #ruby
adgtl_ has joined #ruby
devyn_ has joined #ruby
crankhar1er has joined #ruby
ByronJoh1son has joined #ruby
ule_ has joined #ruby
hostess_ has joined #ruby
idefine_ has quit [Remote host closed the connection]
janno_ has joined #ruby
Raboo_ has joined #ruby
tvl has joined #ruby
Caerusz has joined #ruby
howdoi has joined #ruby
Ariadeno has joined #ruby
kappy_ has joined #ruby
rdark_ has joined #ruby
joevandy1 has joined #ruby
borkdude_ has joined #ruby
ule_ is now known as jsp
Ariadeno is now known as Guest16607
jsp has quit [Changing host]
jsp has joined #ruby
bobbycvi has joined #ruby
santiago_ has joined #ruby
whathapp_ has quit [Remote host closed the connection]
tristanp has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
m8 has quit [Quit: Sto andando via]
znz_jp0 has joined #ruby
Evan| has joined #ruby
spacemud_ has joined #ruby
x0f_ has joined #ruby
diegoaguilar has joined #ruby
Bilge- has joined #ruby
bihi_ has joined #ruby
Lightsword_ has joined #ruby
vircung has joined #ruby
Mr_Pancake- has joined #ruby
iamvery_ has joined #ruby
okdas_ has joined #ruby
DarkBushido_ has joined #ruby
exchgr` has joined #ruby
pikajude_ has joined #ruby
tris- has joined #ruby
blackwell_ has joined #ruby
braincra- has joined #ruby
cschneid- has joined #ruby
troulouliou_div2 has joined #ruby
j416_ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
martinbjeldbak has joined #ruby
jenrzzz has joined #ruby
trajing has joined #ruby
Seeq_ has joined #ruby
startupality has joined #ruby
bougyman_ has joined #ruby
kspencer has quit [*.net *.split]
Snowy has quit [*.net *.split]
blackgoat has quit [*.net *.split]
aknagi has quit [*.net *.split]
kfpratt has quit [*.net *.split]
elementaru has quit [*.net *.split]
Es0teric has quit [*.net *.split]
ruskie has quit [*.net *.split]
amclain has quit [*.net *.split]
matp has quit [*.net *.split]
frem_ has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
iamvery has quit [*.net *.split]
bihi has quit [*.net *.split]
braincrash has quit [*.net *.split]
dmnd has quit [*.net *.split]
kith has quit [*.net *.split]
adgtl has quit [*.net *.split]
AnoHito has quit [*.net *.split]
nertzy has quit [*.net *.split]
cajone has quit [*.net *.split]
ereslibre has quit [*.net *.split]
Asher has quit [*.net *.split]
rdark has quit [*.net *.split]
eljimador has quit [*.net *.split]
mozzarella has quit [*.net *.split]
_ht has quit [*.net *.split]
chrismytton has quit [*.net *.split]
veloutin has quit [*.net *.split]
tris has quit [*.net *.split]
Guest71979 has quit [*.net *.split]
pikajude has quit [*.net *.split]
blackwell has quit [*.net *.split]
Evan_ has quit [*.net *.split]
frode15243 has quit [*.net *.split]
kappy has quit [*.net *.split]
devyn has quit [*.net *.split]
spacemud has quit [*.net *.split]
ule has quit [*.net *.split]
tercenya has quit [*.net *.split]
rbr has quit [*.net *.split]
digitalfiz has quit [*.net *.split]
[diecast] has quit [*.net *.split]
acalewin has quit [*.net *.split]
davidmichaelkarr has quit [*.net *.split]
YaknotiS has quit [*.net *.split]
j416 has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Mr_Pancake has quit [*.net *.split]
braderhart has quit [*.net *.split]
mjc_ has quit [*.net *.split]
jwang has quit [*.net *.split]
Raboo has quit [*.net *.split]
martinbjeldbak_ has quit [*.net *.split]
vircung__ has quit [*.net *.split]
trajing- has quit [*.net *.split]
majuscule has quit [*.net *.split]
znz_jp has quit [*.net *.split]
bougyman has quit [*.net *.split]
exchgr has quit [*.net *.split]
Bugboy1028 has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
Caerus|Away has quit [*.net *.split]
jimcroft has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
okdas has quit [*.net *.split]
janno has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
eam has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
linduxed has quit [*.net *.split]
lancetw has quit [*.net *.split]
aguynamedben has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
marens has quit [*.net *.split]
yude has quit [*.net *.split]
crankharder has quit [*.net *.split]
G has quit [*.net *.split]
Guest4184_______ has quit [*.net *.split]
zero7 has quit [*.net *.split]
Bilge has quit [*.net *.split]
joevandyk has quit [*.net *.split]
twodayslate has quit [*.net *.split]
Klumben has quit [*.net *.split]
jordanm has quit [*.net *.split]
Lightsword has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
hostess has quit [*.net *.split]
kireevco has quit [*.net *.split]
x0f has quit [*.net *.split]
cschneid has quit [*.net *.split]
borkdude has quit [*.net *.split]
nekomune has quit [*.net *.split]
Seeq has quit [*.net *.split]
moss has quit [*.net *.split]
DarkBushido_ is now known as DarkBushido
Lightsword_ is now known as Lightsword
blackwell_ is now known as blackwell
Raboo_ is now known as Raboo
Seeq_ is now known as Seeq
j416_ is now known as j416
tvl is now known as tobiasvl
bihi_ is now known as bihi
Mr_Pancake- is now known as Mr_Pancake
G has joined #ruby
G has quit [Changing host]
G has joined #ruby
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
veloutin has joined #ruby
tris- is now known as tris
DynamicM` has joined #ruby
tessi_zz has joined #ruby
jsp is now known as ule
Bugboy1028 has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
<jhass>
yes (whatever you mean by that)
idefine has joined #ruby
GodFather_ has joined #ruby
startupality has quit [Client Quit]
neanderslob_ is now known as neanderslob
B1n4r10 has quit [Ping timeout: 244 seconds]
<Ballo>
I just have a lambda I use a lot of places. I could have probably just used a method
DynamicMetaFlow has quit [Ping timeout: 260 seconds]
rbr has joined #ruby
Redfoxmoon has left #ruby ["Leaving"]
shazaum__ has joined #ruby
Mission-Critical has joined #ruby
<jhass>
yeah
aguynamedben has joined #ruby
whathappens has joined #ruby
tildes_ has joined #ruby
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
kspencer has joined #ruby
whathappens has joined #ruby
benlieb has quit [Quit: benlieb]
finisherr has joined #ruby
lukec has joined #ruby
axl_ has quit [Quit: axl_]
djbkd has quit [Remote host closed the connection]
lukec has quit [Client Quit]
akiTendo has left #ruby [#ruby]
firstdayonthejob has quit [Ping timeout: 244 seconds]
whathapp_ has quit [Ping timeout: 272 seconds]
Alayde has joined #ruby
<Alayde>
Hey folks. When writing a class to interact with a REST api that requires authentication, is it typically best to take care of authenticating inside the initialize method or is it best if that be explicitly done? e.g. obj = Class.new, obj.authenticate
<kaleido>
ive noticed it usually done the latter
idefine has quit [Remote host closed the connection]
Klumben has joined #ruby
pawnbox has quit [Read error: Connection timed out]
pawnbox has joined #ruby
DynamicM` has quit [Remote host closed the connection]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
freerobby has joined #ruby
Mission-Critical is now known as MissionCritical
djbkd has joined #ruby
nekomune has joined #ruby
Rickmasta has joined #ruby
djbkd has quit [Remote host closed the connection]
ruskie has joined #ruby
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby
bougyman_ is now known as bougyman
roamingdog has joined #ruby
arthurl has quit [Ping timeout: 272 seconds]
rbennacer has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
idefine has joined #ruby
sepp2k has quit [Quit: Leaving.]
rbennacer has joined #ruby
ujjain has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
<jhass>
I'd take credentials in initialize and do the authentication lazily upon the first request
cdg has quit [Remote host closed the connection]
idefine has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
chopin has quit [Remote host closed the connection]
hutch34 has joined #ruby
GarethAdams has quit [Quit: Leaving...]
shazaum__ has quit [Quit: Leaving]
Dimik has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
<Alayde>
Huh, amazing the things you don't think of until someone else says it
<Alayde>
thanks jhass
jaguarmagenta has joined #ruby
roamingdog has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
koooge has joined #ruby
jordanm has joined #ruby
kith has joined #ruby
AnoHito has joined #ruby
beawesomeinstead has joined #ruby
jwang has joined #ruby
eljimador has joined #ruby
YaknotiS has joined #ruby
amclain has joined #ruby
elementaru has joined #ruby
Asher has joined #ruby
nertzy has joined #ruby
kfpratt has joined #ruby
tercenya has joined #ruby
yude has joined #ruby
elomatreb has quit [Ping timeout: 250 seconds]
jmhmccr has joined #ruby
chrisseaton has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
smathy is now known as smathy_afk
jancel has quit [Ping timeout: 260 seconds]
eam has joined #ruby
hays has quit [Ping timeout: 260 seconds]
elomatreb has joined #ruby
lukec has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hays has joined #ruby
skolman has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
skolman has joined #ruby
rkazak has joined #ruby
whathappens has quit [Quit: Leaving...]
matp has joined #ruby
mistermocha has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 272 seconds]
mbreedlove has joined #ruby
mistermocha has joined #ruby
shadeslayer has quit [Ping timeout: 260 seconds]
xxneolithicxx has quit [Quit: Leaving.]
dhk has joined #ruby
idefine has joined #ruby
davedev24 has joined #ruby
mbreedlove has quit [Ping timeout: 246 seconds]
Nahra has joined #ruby
mistermocha has quit [Remote host closed the connection]