tkuchiki has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
ddv has joined #ruby-lang
Sigma00 has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
cornerman has joined #ruby-lang
cornerma1 has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby-lang
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
homeless_ has joined #ruby-lang
Sirupsen has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
<homeless_>
I have heard about the Magpie developers, Are all the languages such as ruby,python,php,perl and so on have been shaped and developed by the same elite groups
<whitequark>
what?
<whitequark>
elite groups?
<homeless_>
elite developers
<whitequark>
elite developers?
<zenspider>
yes. yes they are.
<zenspider>
it's a language cabal
<whitequark>
apeiros: swift "may" end up open-source
<whitequark>
aiui the core developers want that
<homeless_>
cabal? that's bad
<whitequark>
apeiros: either way, the benefit of swift is that now everyone will want the same cool thing apple developers have, and hopefully ML derivatives will become more widely used
<whitequark>
(for me. I'm disinterested in OS X)
<zenspider>
homeless_: it's the only way to keep the languages pure
<homeless_>
zenspider: how
<zenspider>
homeless_: secret meetings
Sirupsen has quit [Ping timeout: 240 seconds]
<homeless_>
instead of jumping to new languages like addict, is it better to focus on one
<homeless_>
i mean isn't it better?
<Xney>
hmm what am I missing ... expect(true).to be_true
<Xney>
expected true to respond to `true?`
<zenspider>
Xney: haha. good question!
saarinen has quit [Quit: saarinen]
<Xney>
irb(main):001:0> true.respond_to?(:true?)
<Xney>
=> false
<zenspider>
homeless_: yes. I stick to visual basic.
<Xney>
this is rspec 3.x
<homeless_>
who are these elite developers
<homeless_>
how many are they
<homeless_>
what's their motive while developing new languages?
seanosaur has quit [Remote host closed the connection]
<Xney>
I see.. in rspec 3, be_true expects a true? method and be_truthy is not-false/not-nil, and be true is literally equal to the true singleton
<Xney>
geez
<homeless_>
are they doing it for their self-interest or distinguish them better from their mediocre colleagues or trying to change the world
* Xney
wonders who came up with be_true meaning send(:true?)==true and not be_true?
David___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sirupsen has joined #ruby-lang
<zenspider>
Xney: hah!
duderonomy has joined #ruby-lang
David___ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
kalehv_ has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
David___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xney>
I'm having perl flashbacks, where true and false are.. uhm.. guidelines
toastynerd has joined #ruby-lang
kalehv has quit [Ping timeout: 260 seconds]
Cakey has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
Rich_Morin has joined #ruby-lang
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fenicks has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quitte]
justinmcp has quit [Ping timeout: 240 seconds]
<Rich_Morin>
http://robots.thoughtbot.com/psa-do-not-use-system-ruby indicates that the default Ruby on Mavericks is badly broken and I've run into some problems trying to update my gems from Snow Leopard. (eg, build errors on libxml-ruby). Suggestions?
shinnya has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
David___ has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
weems|mac has joined #ruby-lang
duderonomy has joined #ruby-lang
David___ has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 240 seconds]
seanosaur has joined #ruby-lang
seanosaur has quit [Remote host closed the connection]
seanosaur has joined #ruby-lang
<darix>
Rich_Morin: that article is nothing but FUD
<Rich_Morin>
okaaay ... but I still have the build errors to contend with.
<darix>
well
<darix>
it would help if you share the error message ;)
<darix>
(use a paste site like pastie.org or gist)
<darix>
(and please report that as a bug to Apple)
<darix>
it is kinda funny how they got their own ruby build when the clang on their system doesnt support it ,)
saarinen has joined #ruby-lang
<Rich_Morin>
This is new territory for me, so I need fairly explicit instructions. What is the path to the rbconfig.rb file and the explicit edit I should perform?
<darix>
btw
<darix>
"Mavericks 10.9.3 updates ruby to: ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13] This seems to resolves the issue. – Sash May 21 at 23:47"
<yorickpeterse>
If there Model.where(...) bit *always* returns a single row you can change "update_all" to just "update"
banisterfiend has quit [Quit: Computer has gone to sleep.]
<gpg_>
yorickpeterse: thanks man i can see how much you want to help me cheers. i hope i end up like you one day. no shit. i think i need to take a step back and formulate my question better.
<yorickpeterse>
You'll end up like a grumpy guy who talks way too much
benlovell has joined #ruby-lang
<gpg_>
:))
<yorickpeterse>
also brb, lunch
<gpg_>
have a good one
<gpg_>
bye
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
kiddorails has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
<gpg_>
yorickpeterse: this is the code that did it: Model.all.each_with_index do |payment, n = 0| payment.update_attributes(column_name: @enc[n]) n +=1 end
toastynerd has joined #ruby-lang
amerine has quit [Ping timeout: 260 seconds]
<ljarvis>
gpg_: if you're using with_index you don't need n=0 and n+=1
yfeldblum has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
toastynerd has quit [Ping timeout: 264 seconds]
ayonkhan has joined #ruby-lang
amerine has joined #ruby-lang
heavyhor1e has joined #ruby-lang
heavyhor1e has quit [Client Quit]
<gpg_>
ljarvis: thanks m8
<ljarvis>
ur welcom m8
<gpg_>
love u guys oops went too far
<ljarvis>
tehe
<gpg_>
:)
tkuchiki has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
strmpnk has quit [Ping timeout: 256 seconds]
<yorickpeterse>
gpg_: Is the order of those encrypted values guaranteed to be the same as the order of rows in your database?
strmpnk has joined #ruby-lang
<yorickpeterse>
That is, if the database rows would be in reverse order, would things still work?
dangerousdave has quit [Read error: Connection reset by peer]
tkuchiki_ has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby-lang
dangerousdave has joined #ruby-lang
<gpg_>
yes the order is the same.i had to decrypt values and rencrypt them with new encryption and then insert them back
MindfulMonk has quit [Ping timeout: 256 seconds]
MindfulMonk has joined #ruby-lang
<yorickpeterse>
A bit more of a solid way, if possible, is to do something like
<yorickpeterse>
values = { 1 => '...', 2 => '...' } # where 1 and 2 are primary key values (e.g. from an "id" column)
<yorickpeterse>
or Model.find(id).update_attributes(:column_name => val)
<yorickpeterse>
Though that will use 2 queries instead of 1
marr has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
<ljarvis>
question, what's the point of doing Model.where(id: id).update_all if they're primary keys
<ljarvis>
you could do this in a single query..
<yorickpeterse>
That uses a single query
<yorickpeterse>
He wants to update different rows
heftig-z has joined #ruby-lang
<yorickpeterse>
Model.where(id: id).update_all(...) gets compiled into `UPDATE models WHERE id = :id SET ...`
<yorickpeterse>
errr SET ... WHERE
<yorickpeterse>
I always forget the order
tkuchiki_ has joined #ruby-lang
stamina has joined #ruby-lang
symm- has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Ping timeout: 256 seconds]
jds has joined #ruby-lang
JEG2 has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
vintik has joined #ruby-lang
amystephen has quit [Read error: Connection reset by peer]
amystephe has joined #ruby-lang
<heftig-z>
(from #ruby) how do you register GAsyncReadyCallbacks in ruby-gir-ffi?
<yorickpeterse>
heftig-z: ooff, not sure. I messed with GAsyncQueue the other day and that wasn't very pleasant either
vintik has quit [Ping timeout: 245 seconds]
<yorickpeterse>
Considering gir-ffi is a pretty thin layer on top of the GTK/GObject CAPI the C docs are probably the best starting point
<yorickpeterse>
Or do you mean setting it up using `GirFFI.setup` ?
<heftig-z>
the C api is pretty simple, you just provide a function pointer
<heftig-z>
(GAsyncReadyCallback is the type of that pointer)
<heftig-z>
it's used all over GIO for asynchronous operations
<heftig-z>
dbus calls in my case
<yorickpeterse>
Hm, not sure if gir-ffi has any stuff in place for that. For regular signals it supports blocks in Ruby, might be worth looking into seeing how that's handled
<heftig-z>
i've tried providing a proc, but I guess it's not handled properly
<yorickpeterse>
since functions such as g_signal_connect() also operate on pointers
ldnunes has joined #ruby-lang
mehlah has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
ayonkhan has quit []
scmx has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
benlovell has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
spastorino has joined #ruby-lang
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
mlangenberg has joined #ruby-lang
banisterfiend has joined #ruby-lang
Sgeo has quit [Read error: Connection reset by peer]
yatish27 has quit [Ping timeout: 245 seconds]
Sirupsen has joined #ruby-lang
banisterfiend has quit [Ping timeout: 250 seconds]
dwknoxy has joined #ruby-lang
<mlangenberg>
I have a initializer that normally accepts an array of Car objects, the initializer selects all Wheel objects from every car. Now there is one scenario where I want to pass just one Wheel object. Is it bad to use array.all? { |e| e.is_a? Wheel } in the initializer to check for an object class?
miqui has joined #ruby-lang
Soilent has joined #ruby-lang
heftig-z has quit [Remote host closed the connection]
arntempelgibbarn has quit [Ping timeout: 240 seconds]
centrx has joined #ruby-lang
toretore has quit [Ping timeout: 264 seconds]
toretore has joined #ruby-lang
Technodrome has joined #ruby-lang
lele has left #ruby-lang ["Leaving"]
lele has joined #ruby-lang
scmx has joined #ruby-lang
<gpg_>
yorickpeterse: ljarvis: Model.all.each_with_index do |payment,n| payment.update_attributes(column_name: @enc[n]) end --> saves my encrypted values to each column, BUT.. when there is a *\n* in the encrypted string it creates a new line.. instead of including the character *\n*
tbuehlmann has joined #ruby-lang
woollyams has joined #ruby-lang
<gpg_>
how can i convert "" double quotes in a array of strings to single quote strings?
Technodrome has quit [Quit: Technodrome]
<centrx>
gpg_, Strings are strings
toastynerd has joined #ruby-lang
cornerma1 has joined #ruby-lang
<gpg_>
centrx: yes but i want single quotes so not allow interpolation
<centrx>
gpg_, It sounds like the strings have already been interpolated
fullybaked has quit []
<gpg_>
so how can i convert wit #gsub , array["asd","asd","asd","asd","asd","asd","asd"] to array['asd','asd','asd','asd','asd','asd','asd','asd','asd',]
arntempelgibbarn has joined #ruby-lang
<gpg_>
or with any other method
<centrx>
gpg_, You change the quotation marks in your editor
cornerman has quit [Ping timeout: 260 seconds]
<centrx>
What are you really trying to do?
<gpg_>
well encrypted strings with \n are creating new line in my db fields
toastynerd has quit [Ping timeout: 272 seconds]
<gpg_>
where \n should be left literal
<apeiros>
mlangenberg: sounds like bad design to me, yes
<gpg_>
i guess thats the doble quotes
scmx has quit [Ping timeout: 250 seconds]
<centrx>
gpg_, More likely the database is just showing you the new line
<apeiros>
mlangenberg: aim for normalized input.
<centrx>
gpg_, You'll have to show some code. An encryption system should return a string, not something that would be interpolated
malconis has joined #ruby-lang
Miphix has joined #ruby-lang
tkuchiki has joined #ruby-lang
<apeiros>
gpg_: you realize that the \n character *is* a newline?
Blaguvest has joined #ruby-lang
seanosaur has joined #ruby-lang
<yorickpeterse>
gpg_: you have to escape the "\n" if you want to use it as a literal, not a newline
<gpg_>
ok yes that was the problem...all the doube quotes were replaced with single quotes and it worked, now \n is showing as a character in db field
<gpg_>
even though in console when i call my array variable @enc it still outputs doublequotes..weird? but it makes a difference how variable @enc was first defined
<gpg_>
which was with single quotes
Technodrome has joined #ruby-lang
<apeiros>
'\n' == "\\n"
<apeiros>
and that'd be 2 characters, and not "the \n character"
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gpg_>
again thanks for all help guys!
charliesome has joined #ruby-lang
robin850 has joined #ruby-lang
rsl has joined #ruby-lang
scmx has joined #ruby-lang
djbkd has joined #ruby-lang
<robin850>
Hello! Excuse me but is it expected that nil.singleton_class.singleton_class? == false please ?
yatish27 has joined #ruby-lang
seanosaur has left #ruby-lang [#ruby-lang]
karamazov has joined #ruby-lang
<centrx>
robin850, Where is that question mark method defined?
<robin850>
I see thank you ; but then it's seems a bit awkward that these objects respond to `singleton_class` or it should returns something like `nil`, no ?
vintik has joined #ruby-lang
<centrx>
robin850, The only excuse for it I can find is that Object#singleton_class specifically mentions - perhaps as though they were not really singleton classes
<centrx>
robin850, They are more like data types that happen to only have one value
<robin850>
Yep, it's a bit odd. I will try to investigate ; thanks for your help (and for showing me the available parser on the room ; it's pretty cool :-p )
kyb3r_ has quit [Read error: Connection reset by peer]
<NemesisD>
hey folks. i've got some bug deep in a rails app that's causing a stack level too deep error. using ruby 1.9.3, this error does not seem to have a backtrace attached to it. is there any technique i can do shy of recompiling ruby with a patch to troubleshoot this?
<yorickpeterse>
NemesisD: No, you have to find where the recursion is occurring
<ljarvis>
yorickpeterse: really? a lot of stdlib is terrible, i don't see a reason not to use that particular method
<yorickpeterse>
Then you can inject something like `if caller.length > 10000; some code...; end`
<NemesisD>
yorickpeterse i've narrowed it down to one test and one place in the code, but to troubleshoot further it requires me to delve into code that isn't my own, and it it exhausts the stack limit almost immediately so i have no chance to interrupt it and catch a glimpse of the stack
<yorickpeterse>
ljarvis: I've tried to deal with mkmf bullshit when packaging things in Gems, it's not worth using
nottheoilrig has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
<emanu>
hey guys, I encountered a weird bug where a user is copy/pasting text from an input field and it contains a bunch of hidden characters which I'm saving to a database along the way.
<emanu>
when I pull it out of the database, the string contains various \u#### characters
enebo has joined #ruby-lang
<emanu>
I managed to strip them out using: .gsub(/[^[:print:]]/,'')
Junker has joined #ruby-lang
<darix>
emanu: \u can be valid unicode chars
<darix>
that your current font might just not display
<darix>
(or your current local charset)
<emanu>
but my question is: wtf happened? :)
<eam>
darix: is your stack rlimit set very high? I've seen some buggy software try to allocate memory the size of whatever the stack rlimit is set to
<apeiros>
emanu: difficult to tell with the info you gave
<apeiros>
emanu: you could do .gsub(/[[:print:]]/,'').chars.to_a.uniq and show the result
<apeiros>
so we see which chars are in there
<darix>
eam: no. it is "tzinfo doesnt handle zic 2014 files, update it to fix that" :)
<eam>
hah
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<emanu>
["\u001D", "\u0016", "\e", "\u0019", "\u0010", "\u0013", "\u0014", "\u0000"] <-- result of the .chars.to_a.uniq
<darix>
eam: the mmap was like 292GB :p
BucOder has quit [Quit: Computer has gone to sleep.]
<emanu>
but yes, it seems after conferring with various professionals on this topic
<emanu>
that the pdf is borked and copying from it on OSX probably mucks up the encoding
havenwood has quit [Remote host closed the connection]
<darix>
emanu: you uplaoded a PDF into the DB?
<emanu>
and that weird string is the result, and a safe approach is to strip out all non-printable characters using regex character classes
<emanu>
darix: no, our users are copy/pasting from a pdf into an input field
havenwood has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
<eam>
darix: yeah, for example on RHEL: sh -c 'ulimit -SH -s 292277026816; host example.com'
<eam>
same failure mode, it attempts to malloc the stack size
<eam>
or rather, the stack limit
<darix>
i have a password set in database.yml and the pg update tells me "no password sent"
fullybaked has joined #ruby-lang
ruby-lang404 has joined #ruby-lang
<apeiros>
emanu: hm, those are all control characters
djbkd has quit [Remote host closed the connection]
<emanu>
yup, which is NOT what should be put in the clipboard when I copy "300-47382-32" from the pdf that's causing the bug...
djbkd has joined #ruby-lang
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
definitively not a null byte (\u0000)
<ruby-lang404>
is there a way outside or restclient to get output from an api resource pointer (i am a nubie)
momomomomo has joined #ruby-lang
<ruby-lang404>
s/or/of
bender_unit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nhmood>
what is the use of a non capturing group?
scmx has joined #ruby-lang
<apeiros>
when you want to group stuff, but don't need the regex engine to capture that group
yalue has quit [Quit: Leaving]
elia has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
<nhmood>
ok i see, so you could mix a (?..) and a (..) in the same regex search if you are just grouping things out
<nhmood>
and the performance would be better im guessing?
<apeiros>
probably. also it's less annoying when you have actual captures in the regex
<apeiros>
you don't want to sort out which you want and which you don't want. especially with larger regexen
emanu has quit [Quit: emanu]
sirene has quit [Read error: Connection reset by peer]
<nhmood>
oh i didn't even think of that
<nhmood>
that makes things much more simpler actually
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
postmodern has quit [Quit: Leaving]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
touzin has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
davidfrey has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
Loggie has quit [Remote host closed the connection]
davidfrey has joined #ruby-lang
Loggie has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
emanu has joined #ruby-lang
davidfrey has quit [Ping timeout: 255 seconds]
JohnFord has joined #ruby-lang
fullybaked has joined #ruby-lang
Loggie has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
fullybaked has quit [Client Quit]
momomomomo_ has joined #ruby-lang
AKASkip has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
loincloth has joined #ruby-lang
postmodern has joined #ruby-lang
vintik has joined #ruby-lang
jlovick has quit [Ping timeout: 255 seconds]
_ht has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 250 seconds]
loincloth has joined #ruby-lang
__butch__ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
jlovick has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
MichD is now known as michd
djbkd has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
BucOder has quit [Quit: Computer has gone to sleep.]
mykoweb has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
havenwood has quit [Ping timeout: 264 seconds]
cmhobbs has quit [Client Quit]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
slawrence00 has joined #ruby-lang
vintik has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
slawrence00 has quit [Client Quit]
karamazov has joined #ruby-lang
mistym has joined #ruby-lang
mykoweb has joined #ruby-lang
centrx has joined #ruby-lang
scmx has quit [Ping timeout: 256 seconds]
emanu has quit [Quit: emanu]
sepp2k has joined #ruby-lang
vintik has joined #ruby-lang
monees_ has joined #ruby-lang
monees has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
nhmood has quit [Quit: Page closed]
djbkd has joined #ruby-lang
djbkd has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
karamazov has quit [Remote host closed the connection]
kirby_ has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AKASkip has quit [Ping timeout: 250 seconds]
joast has quit [Quit: Leaving.]
<kirby_>
Hello. I’m running into a perplexing issue with bacula and am curious whether anyone has any input
<kirby_>
When running a job some clients report that they cannot authenticate to the storage daemon
<kirby_>
However, some clients can authenticate without issue
<kirby_>
Based on the way bacula works the director is providng the credentials to access the storage daemon so I’m confused why I’m seeing varying results
hotpancakes has joined #ruby-lang
kirby_ has left #ruby-lang [#ruby-lang]
monees_ has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
momomomomo_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
jlovick has quit [Ping timeout: 240 seconds]
momomomomo has quit [Client Quit]
Sgeo has joined #ruby-lang
Sirupsen has joined #ruby-lang
woollyams has joined #ruby-lang
samotarnik has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
samotarnik has quit [Quit: Leaving]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
toretore has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
candidkilsborne has joined #ruby-lang
toretore has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
mistym_ has joined #ruby-lang
mykoweb has quit [Ping timeout: 260 seconds]
mistym_ is now known as mistym
sharpmachine has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
<Xney>
hmm so there's no way to make an object 'false', like, the way ruby determines falseness?
<centrx>
That would be messed up
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
<centrx>
It might be possible but there is really no reason to do it
<Xney>
there is if you want separate 'nil' instances you can define singleton methods on
<Xney>
or false, or true
mistym_ has joined #ruby-lang
<centrx>
What's the point of it except to make something less explicit?
<centrx>
Your "false" must represent something. If it's boolean, use "false". If it's not, use something explicit like a method called #active?
<Xney>
if you have a proxy object system where you want to represent any value and add functionality to it
<Xney>
sort of like a wrapper
karamazov has joined #ruby-lang
<Xney>
ideally I would like it to also handle the singleton instances by wrapping mutable versions of it but I can't make them function the same way the singleton true ones do
<centrx>
Xney, Can't you just define the methods on an object to act like false in boolean expressions?
<centrx>
There is only one "false", but you can make anything act like false.
<Xney>
no, you can't
<Xney>
not without wrapping it in a method or something which handles your special false :)
mistym has quit [Ping timeout: 255 seconds]
<centrx>
I don't see any use for that
<centrx>
You are trying to make false something it is not
<centrx>
There really is only one false in all of existence
<Xney>
No, it's more like a wrapper class around false which acts as false but is extensible
<Xney>
but it wouldn't be a singleton like false is
<centrx>
Isn't that what FalseClass is?
mistym_ has quit [Ping timeout: 250 seconds]
<Xney>
let's say you had a set of objects which could be any value, including true, false, etc. and you wanted to extend them individually. you can do that with normal objects and wrap around their method calls, but you can't do it with false and true and such because they are singleton instances
karamazov has quit [Remote host closed the connection]
<Xney>
I can create a wrapper class around them which act as non-singletons but I can't duplicate their boolean-ness, I don't think they're method calls
mistym has joined #ruby-lang
<Xney>
yes I can call a special method on my wrapper classes which can determine false/true, but then I have to use that everywhere
karamazov has joined #ruby-lang
<Xney>
which turns into if IsTrue?(xxx) or xxx.true? or whatever
<Xney>
basically, I'd like my wrapper objects to act exactly as the objects they're wrapping, with some additional features. I already have immutable objects like fixnums wrapped, but the boolean and nil objects don't work purely through methods (I think)
amerine has joined #ruby-lang
amsi has joined #ruby-lang
dangerousdave has quit [Read error: Connection reset by peer]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xney>
I guess it sounds odd but I want to extend objects for a reason, immutable singletons can't be
banisterfiend has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
<Xney>
(and I need instances of them, anyways.. one '6' is not another '6')
<Xney>
there's no.. #to_bool or whatever. or #true?
rubybytes has joined #ruby-lang
shinnya has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
<rubybytes>
In my humble opinion /net/http/request.rb Net::HTTPHeader - initialize_http_header should coerce integer headers to strings, or at the very least raise an exception
marr has quit [Ping timeout: 240 seconds]
__butch__ has quit [Quit: Leaving.]
elia has joined #ruby-lang
<Mon_Ouie>
As you said, you can't completely replicate the behavior of falsey objects, so you should just avoid doing that and instead have the user use YourClass#some_predicate? in conditionals to avoid confusion
<Xney>
mon: well, then that kind of defeats the point of having it silently act as the wrapped objects
rubybytes has quit [Client Quit]
<Mon_Ouie>
I'm saying you shouldn't do that because you can't accomplish it
shinnya has joined #ruby-lang
<Xney>
yeah I was just hoping I was wrong, that there was a way to accomplish it :|
tylersmith has joined #ruby-lang
<Xney>
thanks for the ears in listening, at least :)
stardiviner has joined #ruby-lang
abhi_rsd_ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
Pun intended? :p
wallerdev has quit [Quit: wallerdev]
banisterfiend has joined #ruby-lang
_JokerDoom has joined #ruby-lang
candidkilsborne has quit [Remote host closed the connection]
dluv has joined #ruby-lang
hotpanca_ has joined #ruby-lang
kyb3r_ has joined #ruby-lang
mbr__ has joined #ruby-lang
faces has joined #ruby-lang
nopc0de- has joined #ruby-lang
headius_ has joined #ruby-lang
sharpmachine has joined #ruby-lang
lguardiola_ has joined #ruby-lang
PaulePan1er has joined #ruby-lang
jamooo has joined #ruby-lang
jsaak_ has joined #ruby-lang
error404_ has joined #ruby-lang
kalehv has joined #ruby-lang
davispuhh has joined #ruby-lang
spuk_ has joined #ruby-lang
`micro_ has joined #ruby-lang
cout_ has joined #ruby-lang
yeltzooo4 has joined #ruby-lang
kavinder has joined #ruby-lang
hachiya_ has joined #ruby-lang
davispuh has quit [Disconnected by services]
davispuhh is now known as davispuh
Forgetful_Lion has joined #ruby-lang
hotpancakes has quit [*.net *.split]
centrx has quit [*.net *.split]
eeezkil has quit [*.net *.split]
face has quit [*.net *.split]
spuk has quit [*.net *.split]
JokerDoom has quit [*.net *.split]
hachiya has quit [*.net *.split]
surrounder has quit [*.net *.split]
_rgn has quit [*.net *.split]
clamstar has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
lguardiola has quit [*.net *.split]
verto has quit [*.net *.split]
Kabaka has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
mbr has quit [*.net *.split]
error404 has quit [*.net *.split]
`micro has quit [*.net *.split]
zz_dlu has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
headius has quit [*.net *.split]
nopc0de has quit [*.net *.split]
cout has quit [*.net *.split]
jamooo_ has quit [*.net *.split]
mfn has quit [*.net *.split]
jsaak has quit [*.net *.split]
sMecKs has joined #ruby-lang
NemesisD has quit [Quit: going home]
banisterfiend has quit [Quit: Computer has gone to sleep.]
mfn has joined #ruby-lang
heftig has joined #ruby-lang
fmendez has joined #ruby-lang
clamstar has joined #ruby-lang
Kabaka has joined #ruby-lang
fmendez has left #ruby-lang [#ruby-lang]
fmendez has joined #ruby-lang
surrounder has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
woollyams has quit [Ping timeout: 272 seconds]
Mon_Robot has quit [Ping timeout: 240 seconds]
kavinder has quit [Remote host closed the connection]
kavinder has joined #ruby-lang
kavinder_ has joined #ruby-lang
kavinder has quit [Ping timeout: 245 seconds]
sharpmachine has quit [Remote host closed the connection]
spuk_ has quit [Read error: Connection reset by peer]