<kl>
jhass: oh. I never saw the term "conversion" used in that context. I only ever saw the term associated with stuff like, when you take a long and convert it to a double (or other way round, even if lossy)
Pupeno has joined #ruby
<apeiros>
same thing really
<apeiros>
you create new data in the process
atomical has quit [Ping timeout: 258 seconds]
dc has joined #ruby
<apeiros>
you do not reinterpret existing data
<kl>
hmm. i see now
pwnz0r has joined #ruby
<apeiros>
that is, if we're talking machine level long/double
<kl>
I was
<jhass>
dunno, "casting" a double to a long is actually conversion, java just happens to allow to use the casting syntax for it
chipotle has joined #ruby
<jhass>
in java that is
<kl>
jhass: yeah. that's why I associated conversion with numbers - it's the most common form I've ever come across
atomical has joined #ruby
<apeiros>
jhass: ok, my java is rusty. java lets you do float/int conversion using cast syntax? that's fecked up.
<jhass>
yeah
<havenn>
“The closest Ruby gets to traditional typecasting (and it isn’t very close) is the role-playing conversion methods, described in section 7.4.4.” Excerpt From: David A. Black. “The Well-Grounded Rubyist, Second Edition.”
<kl>
apeiros: "casting for numbers' :)
<jhass>
apeiros: java's fucked up in many regards anyway ;)
<apeiros>
more reason to dislike java.
<apeiros>
jhass: yeah. the opposite direction of php.
<jhass>
dunno, standard library feels the same way inconsistent
lemur has quit [Remote host closed the connection]
<apeiros>
lol
<apeiros>
so not even that…
<apeiros>
how very sad.
<jhass>
"what's the f*cking naming scheme" and "which of these f*cking variants am I supposed to use?"
lemur has joined #ruby
<kl>
I'm yet to hear a language that people *aren't* "sad" about
<jhass>
have that in both langs
<apeiros>
I love how there's like 2000 string and buffer classes…
<kl>
Ruby is the closest i have came, although strongly-typed people would complain
<apeiros>
kl: I have my beefs with ruby, but overall I'm pretty happy
<apeiros>
ruby is strongly typed
mgberlin_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
<agent_white>
Have no problem with any language as of yet. Can't expect all cars to drive the same right?
<kl>
agent_white: I'm not sure that's a useful metaphor. lol
<havenn>
klaas: surely not obvious in the sense of which is preferred? obvious in terms of which is which? dynamic, gradual and soft typing make quite a grey area.
Pupeno has quit [Ping timeout: 240 seconds]
Beoran_ has quit [Ping timeout: 260 seconds]
<kl>
apeiros: lawd jesus.
<jhass>
kl: and since php is weakly typed, the string becomes a number when it looks like one
startupality has joined #ruby
phutchins has joined #ruby
<apeiros>
and it seems php prefers the numeric value for ==
duncannz has quit [Remote host closed the connection]
<apeiros>
it could very well have been the other way round
<apeiros>
jhass: so anybody volunteers to source-dive? :)
<kl>
jhass: oh, don't think you posted it
<jhass>
kl: that's just apeiros showing your scientific notation
<jhass>
apeiros: into PHP? ew...
<ishikawa91>
I am new to irc and am trying to get into the rubyonrails channel. But its telling me I need to register? Can someone help me?
<jhass>
ishikawa91: /msg Nickserv help
siaw has left #ruby [#ruby]
<ishikawa91>
thank you
Dopagod has quit [Read error: Connection reset by peer]
<SHyx0rmZ>
PHP Manual: "If you compare a number with a string or the comparison involves numerical strings, then each string is converted to a number and the comparison performed numerically."
<jhass>
"numerical string"
<apeiros>
I wonder how much performance this costs
phutchins has quit [Ping timeout: 256 seconds]
<apeiros>
I mean it means php has to test every string for numericality
<SHyx0rmZ>
only in comparisons :D
<apeiros>
or at least every string which is ever compared using ==
<apeiros>
I wonder whether the result is cached
<jhass>
SHyx0rmZ: nope, see my first link
<jhass>
things like ++ too
<SHyx0rmZ>
conversion apparently also applies to switch statements
<SHyx0rmZ>
oh my, you're right
atomical has quit [Ping timeout: 258 seconds]
<apeiros>
hmmm
atomical has joined #ruby
* apeiros
wonders whether the higher data rate of youtube's 60fps might actually cause more stuttering… that'd be slightly perverse
postmodern has joined #ruby
Areessell has joined #ruby
arescorpio has joined #ruby
hamakn has joined #ruby
<apeiros>
hm, wow, it's actually only around 0.5MB/s
<apeiros>
gah, bedtime. when did the clock advance that much? and why nobody told me?!?
* apeiros
off, nighty night
tristanp has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
CpuID has joined #ruby
CpuID has joined #ruby
jlast has joined #ruby
TheHappyLegend has joined #ruby
platzhirsch has left #ruby [#ruby]
siaw has joined #ruby
<TheHappyLegend>
Hey guys, anyone have a way to make a .rb file into a .exe?
lucyinthesky has joined #ruby
siaw has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
tristanp has quit [Read error: Connection reset by peer]
fandi has joined #ruby
tristanp has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
oo_ has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
<mroach>
@TheHappyLegend: I did this once before with Ocra. It creates an exe file that is a self-extracting archive containing the Ruby runtime and necessary gems.
atomical has quit [Ping timeout: 258 seconds]
<mroach>
That may be an outdated way of doing it. A quick Google search yields 'releasy' which looks more modern. https://github.com/Spooner/releasy/
commmmodo has quit [Quit: commmmodo]
Musashi007 has joined #ruby
<TheHappyLegend>
Great ty!
atomical has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
commmmodo has joined #ruby
fabrice31 has joined #ruby
gccostabr has joined #ruby
oo_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
LudicrousMango has joined #ruby
gccostabr has quit [Client Quit]
startupality has quit [Quit: startupality]
fabrice31 has quit [Ping timeout: 256 seconds]
chu has quit [Ping timeout: 256 seconds]
LouisRoR has quit [Ping timeout: 260 seconds]
faitswulff has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
Takle has quit [Remote host closed the connection]
Tranquility has quit [Quit: Connection closed for inactivity]
chu has joined #ruby
startupality has joined #ruby
sankaber has joined #ruby
mikepack has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
kiyote23 has joined #ruby
fgo_ has quit [Ping timeout: 250 seconds]
Savoyard has quit [Quit: (null)]
atomical has quit [Ping timeout: 258 seconds]
atomical has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
jusmyth has joined #ruby
startupality has quit [Quit: startupality]
kayloos has quit [Remote host closed the connection]
fmcgeough has joined #ruby
tkuchiki has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
echooo has quit [Ping timeout: 245 seconds]
pwnz0r has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
robustus|Off has quit [Ping timeout: 250 seconds]
echooo has joined #ruby
lzco has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
sarmiena_ has joined #ruby
robustus has joined #ruby
havenn is now known as havenwood
phutchins has joined #ruby
Mothore has joined #ruby
CpuID has joined #ruby
Mothore has quit [Client Quit]
multi_io has joined #ruby
lzco has quit [Ping timeout: 264 seconds]
TheHappyLegend has left #ruby [#ruby]
hamakn has quit [Remote host closed the connection]
rshetty has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
jusmyth has quit [Quit: Leaving.]
phutchins has quit [Ping timeout: 264 seconds]
faitswulff has quit [Quit: Leaving.]
Savoyard has joined #ruby
felipedvorak has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
nisstyre has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
suffice has quit [Ping timeout: 245 seconds]
faitswulff has joined #ruby
kirun has quit [Quit: Client exiting]
Dopagod has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
suffice has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
lzco has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Ping timeout: 258 seconds]
jeff-ooh has quit [Remote host closed the connection]
Techguy305 has joined #ruby
pwnz0r has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
felipedvorak has joined #ruby
beilabs has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
suffice has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
suffice has joined #ruby
dideler has joined #ruby
jlast has joined #ruby
davedev24_ has joined #ruby
pika_pika has joined #ruby
parabolize has joined #ruby
pwnz0r has quit [Remote host closed the connection]
fernandolopez has quit [Quit: Saliendo]
JoshGlzBrk has joined #ruby
valeriansaliou has joined #ruby
hamakn has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
doritostains has joined #ruby
suffice has quit [Ping timeout: 240 seconds]
doritostains has quit [Client Quit]
sargas has joined #ruby
crack_user has joined #ruby
suffice has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
<sargas>
From IO Class Docs, what does this mean? "w" Write-only, truncates existing file to zero length or creates a new file for writing.
lucyinthesky_ has joined #ruby
beilabs has joined #ruby
duncannz has joined #ruby
<jhass>
sargas: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
lemur has joined #ruby
<havenwood>
sargas: Please say in both channels if you cross-post. Check #ruby-lang, waxjar already answered you.
<waxjar>
02:39:47 (waxjar) sargas_: it means if the file already exists, its contents are deleted. otherwise it creates a new file
<waxjar>
i noticed you timed out :p
mgberlin has joined #ruby
<sargas>
jhass, havenwood: sorry, I was on my phone on the other channel and didn't realize that until now... I just got connection back on my laptop
<havenwood>
sargas: aha :)
<sargas>
what is the scope of #ruby vs #ruby-lang? I didn't notice there were 2 channels?
<havenwood>
sargas: no real difference
<sargas>
ok
<jhass>
#ruby has more people ;P
<havenwood>
sargas: but yeah, 'truncate to zero length' means an empty file
<sargas>
could it be that #ruby-lang doesn't require identifying the users?
<havenwood>
sargas: neither channel does, though #ruby-lang used to
nisstyre has joined #ruby
<sargas>
oh
<sargas>
havenwood: thanks for answering, so with Open Mode 'w' I can start writing to a blank file?
rpag has quit [Ping timeout: 245 seconds]
<sargas>
havenwood: what if I open a file that already has content in Open Mode 'w'?
<havenwood>
sargas: like waxjar said, "if the file already exists, its contents are deleted"
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sargas>
havenwood: oh, I haven't seen his answer... I timed out...
<havenwood>
sargas: Ah, he repeated it here.
<sargas>
waxjar: thanks for helping
apeiros_ has quit [Remote host closed the connection]
<sargas>
I just saw it, man my internet is messed up today
apeiros_ has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
kyank has joined #ruby
hamakn has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
<havenwood>
sargas: And since "w" is "Write-only" you can only write to the File, no reading as well like with "w+".
emmesswhy has joined #ruby
michaeldeol has joined #ruby
<sargas>
havenwood: I see, the "truncate at zero length" was the weird part to understand for me...
<havenwood>
sargas: understandable
<sargas>
havenwood: From my tests here, "r+" lets me write to an existing file without overriding it, while "w+" overrides the entire thing...
<sargas>
good to have both options
<sargas>
makes the use of File class a breeze to use :)
charliesome has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
lucyinthesky_ has left #ruby ["Leaving"]
<jhass>
I use the helpers, File.read and File.write a lot
<havenwood>
yeah, those are handy
cleopatra has quit [Remote host closed the connection]
<havenwood>
and File.readlines too from time to time
mgberlin has quit [Remote host closed the connection]
aspires has quit []
shyshy has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
tokik has joined #ruby
greenbagels has joined #ruby
echooo1 has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
echooo has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
Savoyard has quit [Quit: (null)]
dfinninger has joined #ruby
faitswulff has quit [Quit: Leaving.]
atomical has quit [Ping timeout: 258 seconds]
boombadaroomba has quit [Ping timeout: 240 seconds]
wldcordeiro_ has joined #ruby
faitswulff has joined #ruby
faitswulff has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
atomical has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
veduardo has quit [Quit: WeeChat 0.4.2]
<sargas>
jhass: I finally can understand the IO stuff more fully... specially which mode to use depending on the situation
<sargas>
jhass: taking the time to dive deep into Ruby is proving very satisfactory...
jlast has quit [Ping timeout: 258 seconds]
kiyote23 has joined #ruby
<sargas>
jhass: and yes, the File methods are great! I have used them before fully knowing what they did (glad I didn't break stuff)
Takle has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
fandi has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
Techguy305 has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
fandi has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
emmesswhy has quit [Quit: Leaving]
fabrice31 has joined #ruby
ramfjord has joined #ruby
braincra- has joined #ruby
livingstn has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
mroach has quit [Remote host closed the connection]
lucyinthesky_ has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
jlast has joined #ruby
pwnz0r has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
ycodr has quit [Remote host closed the connection]
ycodr has joined #ruby
iamninja has joined #ruby
sk87 has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc has quit [Remote host closed the connection]
Savoyard has joined #ruby
JoshGlzBrk has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
m4rCsi has quit [Ping timeout: 250 seconds]
beef-wellington has quit [Ping timeout: 244 seconds]
lucyinthesky_ has quit [Quit: Leaving]
mroach has joined #ruby
kevinxu has joined #ruby
kevinxu is now known as Guest20044
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyll_ has joined #ruby
jusmyth has joined #ruby
jusmyth has quit [Client Quit]
rshetty has quit [Remote host closed the connection]
tyll has quit [Ping timeout: 264 seconds]
mroach has quit [Quit: Leaving...]
Savoyard has quit [Quit: (null)]
mroach has joined #ruby
gsd has quit [Ping timeout: 258 seconds]
mroach has quit [Client Quit]
gsd has joined #ruby
Techguy305 has joined #ruby
sevenseacat has joined #ruby
phutchins has joined #ruby
dfinninger has joined #ruby
crack_user has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 244 seconds]
Guest20044 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
Techguy305 has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
mroach has joined #ruby
godd2 has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 244 seconds]
gsd has quit [Read error: Connection reset by peer]
mgberlin has quit [Read error: Connection reset by peer]
gsd has joined #ruby
crack_user has joined #ruby
arooni has joined #ruby
dfinninger has quit [Ping timeout: 265 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mgberlin has joined #ruby
<arooni>
how do i print out an a list of strings when i have an array of objects where one attr_accessor is a string
<arooni>
in a .each loop?
jeff-ooh has joined #ruby
Pattt has quit [Ping timeout: 240 seconds]
<benzrf>
arooni: mapM_ (print . accessor) theList
<benzrf>
if this were haskell, i mean
fgo has joined #ruby
gsd has quit [Read error: Connection reset by peer]
dc has joined #ruby
ziggles has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
gsd has joined #ruby
<ziggles>
How should i choose when to use $global vs GlobalConstant? when my app needs a client that won't change during runtime?
jlast has quit [Ping timeout: 258 seconds]
jeff-ooh has quit [Ping timeout: 245 seconds]
mgberlin_ has joined #ruby
Vile` has joined #ruby
ponga has joined #ruby
<jhass>
ziggles: I yet have to come across a valid usecase for the former
<ziggles>
jhass: yeah... it's pretty ugly too and i find that Rubocop bitches about it
Soda has quit [Remote host closed the connection]
NightMonkey has joined #ruby
<jhass>
can't say that often about rubocop, but rightfully
timonv_ has joined #ruby
davedev24_ has quit []
ponga has quit [Ping timeout: 245 seconds]
krz has joined #ruby
radic has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
valeriansaliou has joined #ruby
jenrzzz has joined #ruby
radic has joined #ruby
Megtastique has quit []
koderok has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
koderok has quit [Remote host closed the connection]
<waxjar>
ziggles: global variable for something that's variable, global constant for something that's (supposed to be) constant?
mikepack has joined #ruby
kiyote23 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Kryptonical has joined #ruby
ponga has joined #ruby
<jhass>
I guess it's sort of okay to mutate the object that's assigned to the constant
kiyote23 has joined #ruby
<jhass>
but reassigning a global variable... can't make that thread safe
<jhass>
just forget you can even do that
arup_r has joined #ruby
michaeldeol has quit [Ping timeout: 250 seconds]
triple_b has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
<Nilium>
206 day streak on GitHub. Hell yeah. ಠ_ಠ
Dopagod has quit [Remote host closed the connection]
<sevenseacat>
impressive.
michaeldeol has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
ponga has quit [Ping timeout: 244 seconds]
kiyote23 has quit [Ping timeout: 265 seconds]
ishikawa91 has quit [Quit: Connection closed for inactivity]
cd13233 has joined #ruby
wldcordeiro_ has quit [Quit: Leaving]
Megtastique has joined #ruby
mgberlin has joined #ruby
mengu has joined #ruby
ajaiswal has joined #ruby
<Nilium>
sevenseacat: Not really when you consider that almost all the changes I made over the last week were me just slowly adding doc comments to a repo because I've been completely braindead the entire time.
<sevenseacat>
hah
<Nilium>
Actually, last few weeks.
mgberlin_ has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Ping timeout: 250 seconds]
<Nilium>
Plus I'm avoiding committing actual code right now to avoid having to update my NDA agreement.
jlast has joined #ruby
<Nilium>
That is, standard NDA that tries to swallow all personal work regardless of whether it's related to what you do for your employer.
<Nilium>
Which meant I had to compile a some two to three page list of exemptions for my NDA >_>
<sevenseacat>
oh i hate those
kl has quit [Ping timeout: 255 seconds]
mengu has quit [Ping timeout: 245 seconds]
<Nilium>
Could be worse. Mine at least has exemptions and has a clause saying it doesn't apply to anything that's obviously unrelated.
Megtastique has quit []
jimmyhoughjr has joined #ruby
<Nilium>
In unrelated boring stuff, I find it really weird that ASCIIDoc is not more popular
oo_ has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
pu22l3r has joined #ruby
cd13233 has quit [K-Lined]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
oo_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
oo_ has joined #ruby
livingstn has quit [Ping timeout: 255 seconds]
kiyote23 has joined #ruby
Avahey has joined #ruby
<sevenseacat>
so do i
<sevenseacat>
i love asciidoctor
faitswulff has joined #ruby
TgMts has quit [Ping timeout: 240 seconds]
kp666 has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
uber_hulk has joined #ruby
grassdog has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
braincra- has quit [Quit: bye bye]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
picassoo has joined #ruby
rshetty has joined #ruby
fgo_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 256 seconds]
grassdog has quit [Client Quit]
Takle has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
kp666 has joined #ruby
arooni has quit [Ping timeout: 245 seconds]
kiyote23 has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
pu22l3r has joined #ruby
sargas has joined #ruby
pu22l3r_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
CrazyM4n has joined #ruby
Savoyard has joined #ruby
Musashi007 has joined #ruby
fabrice31 has joined #ruby
msull92 has joined #ruby
jeff-ooh has joined #ruby
ndrei has joined #ruby
Savoyard has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
Savoyard has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving.]
jeff-ooh has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
bmichelsen has quit [Quit: ZZZzzz…]
Megtastique has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
psy_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Adran has joined #ruby
triple_b has joined #ruby
sevenseacat has quit [Ping timeout: 265 seconds]
havenwood has quit []
<mroach>
@Nilium What makes it preferable to something like Markdown?
<mroach>
I’ll have bucketloads of documentation to do soon
agent_white has joined #ruby
<Nilium>
More flexible, generates more than just HTML.
<Nilium>
e.g., manpages
agent_white has quit [Read error: Connection reset by peer]
bmichelsen has joined #ruby
<mroach>
That’s nice. The syntax looks quite clean.
mikepack has joined #ruby
axisys has quit [Remote host closed the connection]
Savoyard has quit [Quit: (null)]
kyb3r_ has joined #ruby
kevinxu has joined #ruby
pu22l3r_ has quit [Read error: No route to host]
kevinxu is now known as Guest29867
shortCircuit__ has joined #ruby
<mroach>
Though I’m considering setting up an internal wiki of some kind.
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
<Nilium>
Basically, Markdown is ultra-basic in what elements it has, AsciiDoc covers almost everything
<Nilium>
Fucking bots
<mroach>
Yeah it is pretty basic. That’s been one of my complaints with it
<Nilium>
In case anyone can ban the hell out of bots, picassoo is one.
<mroach>
It’s ok for scratching out a blog post or something but beyond that you’re limited.
<mroach>
Yeah, I got spammed from that one too...
agent_white has joined #ruby
kiyote23 has joined #ruby
mikepack has quit [Remote host closed the connection]
Megtastique has quit []
<Nilium>
But yeah, I've started using AsciiDoc for docs and I let Markdown just be my blogpost fodder 'cause I never need more than paragraphs and links.
Musashi007 has quit [Quit: Musashi007]
pwnz0r has quit [Remote host closed the connection]
<Nilium>
Also, git uses asciidoc for documentation, so that's kind of a vote in favor of it for me
kiyote23 has quit [Client Quit]
rshetty has quit [Remote host closed the connection]
<njs126>
Once a good ide for Ruby that is part of CentOS repo?
LudicrousMango has quit []
_5kg has quit [Ping timeout: 265 seconds]
sargas has quit [Quit: This computer has gone to sleep]
kiyote23 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sargas has joined #ruby
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
arescorpio has quit [Excess Flood]
Musashi007 has joined #ruby
faitswulff has quit [Quit: Leaving.]
rshetty has joined #ruby
bears has quit [Remote host closed the connection]
bears_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
sargas has quit [Quit: This computer has gone to sleep]
<pontiki>
perhaps you don't want to use puts, but something like binwrite
uber_hul1 has joined #ruby
uber_hul1 has quit [Client Quit]
Savoyard has joined #ruby
Adran has quit [Quit: Este é o fim.]
kiyote23 has quit [Ping timeout: 264 seconds]
uber_hul1 has joined #ruby
oleo is now known as Guest48980
uber_hulk has quit [Ping timeout: 265 seconds]
oleo__ has joined #ruby
uber_hul1 is now known as uber_hulk
* Nilium
is compiling two versions of Ruby at the same time
<Nilium>
God help my CPU
<pontiki>
hee
<pontiki>
try it on two separate VMs at once :)
bmichelsen has joined #ruby
<Nilium>
Thankfully it doesn't actually take that long to compile Ruby itself
<Nilium>
The real problem is the several hundred mb of documentation it spits out
pwnz0r has joined #ruby
<Nilium>
Though that pales in comparison to generating documentation for wxwindows, which produces gigabytes of documentation if you let it
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<riceandbeans>
KDE was the nastiest thing I ever compiled
bmichelsen has quit [Client Quit]
<mroach>
@Nilium Can you omit that in the compile options?
Guest48980 has quit [Ping timeout: 256 seconds]
TinkerTyper has quit [Quit: ZNC restarting...]
<Nilium>
Probably
<mroach>
@riceandbeans And nastiest thing you ever used am I right or waht? xD
<Nilium>
I just don't bother
Savoyard has quit [Ping timeout: 250 seconds]
<Nilium>
I liked KDE 2 and 3.
<mroach>
I’m being facetious :p
sk87 has joined #ruby
<Nilium>
I'm being two rubies compiling side by side and genuinely concerned about melting my MBP.
<Nilium>
And it is onto the rdoc phase of the compiling process
<Nilium>
Meaning the heavy lifting is done
<pontiki>
AFAIK, you can omit the docs if you do the standard compile from source thing. i haven't seen options for doing that with the various other installers
emmesswhy has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
<Nilium>
I went with ruby-install this time because it's doing what I'd be doing already
_Andres has joined #ruby
<Nilium>
i.e., downloading from source, running ./configure, make, etc.
TinkerTyper has joined #ruby
faitswulff has quit [Quit: Leaving.]
<Nilium>
Why the fuck is this running dot..
<Nilium>
I do not remember that being a thing
<Nilium>
Why do I have dot installed anyway
<Nilium>
I'm pretty sure I keep that uninstalled specifically for situations like these
Zamyatin has joined #ruby
mengu has joined #ruby
VBlizzard has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
<pontiki>
dot?
Zamyatin has joined #ruby
blizzy has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby
valeriansaliou has joined #ruby
<TTilus>
aaas: responding to rly old question (about relation of chruby and ruby-install), chruby docs pretty much explain the thing, but chruby only selects between installed rubies and ruby-install (as you prolly can tell by the name of it) only installs rubies
mengu has quit [Ping timeout: 272 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
<pontiki>
and there were several others who gave the same answer to that
lkba has joined #ruby
fabrice31 has joined #ruby
oo_ has joined #ruby
jeff-ooh has joined #ruby
louism2wash has joined #ruby
<TTilus>
pontiki: either you were there or your backbuffer is way longer than mine ;) (found the question from my awaylog)
green-big-frog is now known as frog|OFF
hmsimha has joined #ruby
boombadaroomba has joined #ruby
greenbagels_ has joined #ruby
sea_local has quit [Remote host closed the connection]
msull92 has quit [Quit: (null)]
sea_local has joined #ruby
phutchins has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
boombadaroomba has quit [Ping timeout: 258 seconds]
chu has quit [Remote host closed the connection]
<Nilium>
I'm always here, but not exactly conscious.
sea_local has quit [Ping timeout: 250 seconds]
<Nilium>
The upside of having a digital ocean server acting as my IRC connection
chu has joined #ruby
tobago has joined #ruby
<epitron>
hmmm
<epitron>
is it possible to make included modules be autoloaded with autoload?
Scripore has quit []
emmesswhy has joined #ruby
<Nilium>
What do you mean?
phutchins has quit [Ping timeout: 264 seconds]
<epitron>
well, if i want to extend a base class... but i want that extension to only be loaded if the base class is accessed
goshdarnyou has joined #ruby
<epitron>
for performance
<Nilium>
Is there a reason to believe that's actually a performance benefit?
<epitron>
well, i extend like 20 base classes
<epitron>
and most of them aren't used that frequently
<epitron>
i guess you're right though
<epitron>
rubygems is stating the whole filesystem
<Nilium>
Either way, I don't think so, unless you provide some means of knowing which extension to load for which thing is being accessed as part of a base class
<epitron>
that's what's killing load time
<epitron>
hmm
<Nilium>
It would be easier to just require stuff as needed.
<epitron>
it could be method missing
jlast has quit [Ping timeout: 258 seconds]
<epitron>
method_missing could touch the not-yet-loaded constants
<epitron>
then re-dispatch the message
emmesswhy has quit [Client Quit]
lemur has quit [Remote host closed the connection]
xenomorph is now known as {xenomorph}
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron>
eih, i guess this is a language redesign kinda feature
faitswulff has joined #ruby
<Nilium>
Well, there's also const_missing, but you'd need to know the methods to do that, at which point it's debatable if it's even worth it considering how annoying it'd be to code that
{xenomorph} is now known as xenomorph
<Nilium>
*to do that either way
lemur has joined #ruby
<epitron>
autoload makes a magic const, doesn't it?
<mroach>
I’ve thought about using my Digital Ocean box as an IRC relay so I’m always on, but the latency is awful ;_;
<epitron>
linode
<Nilium>
Seems alright for me, but I keep my DO droplet semi-close
<mroach>
Er, not relay, just irssi in screen
<Nilium>
Ah, yeah, I don't do that.
<Nilium>
I set up a ZNC server.
<pontiki>
why would the latency be so awful?
faitswulff has quit [Client Quit]
<mroach>
Because I’m in Australia and latency to everywhere is awful
lemur has quit [Remote host closed the connection]
agit0 has quit [Quit: This computer has gone to sleep]
lemur_ has joined #ruby
<pontiki>
oh well, yeah
<Nilium>
That would do it.
<epitron>
hahah
<mroach>
The closest Linode data centre is in Tokyo
<Nilium>
Got any basic server providers in Australia?
<epitron>
australia must have cheap shells
<mroach>
Yeah there are some. I may grab one for IRC and random crap
<epitron>
if not, that's a niche :)
<epitron>
start a business!
<mroach>
As for proper providers, we have SoftLayer and Amazon data centres here
<Nilium>
AWS might work. At least I don't think they'd be too expensive just for IRC.
<mroach>
Yeah probably not. SoftLayer is pricy. Cheapest server is $25 + a 20% Australia markup
SOLDIERz has joined #ruby
<Nilium>
The Australia tech tax never ceases to amaze me.
<mroach>
Seriously
Photism has quit [Quit: Leaving]
<mroach>
Oddly, buying a MBP here isn’t expensive
<sevenseacat>
yay for the australian tax.
<mroach>
I think mine is starting to break which means I have a reason to buy a new one :D
<sevenseacat>
yeah it is, what are you talking about
<Nilium>
Huh, that's not what I'd heard, but maybe it changed
<sevenseacat>
a specced up MBP is like 3k
<mroach>
I mean comapred to the price in Singapore or Hong Kong or even the US it’s not out of line
<pontiki>
0.0
<Nilium>
I guess, but it's still arbitrarily more for the same thing
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<sevenseacat>
seems pricier to me
renderful has joined #ruby
<Nilium>
Still not sure what I'll do for my next machine. Can't really drop Apple 'cause I like the software I have on here, but it might be time to stop buying laptops.
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
kaplejon has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
cbetta_ has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
jeregrine has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 260 seconds]
bove has quit [Ping timeout: 260 seconds]
ckrailo_ has quit [Ping timeout: 260 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
Deele has quit [Ping timeout: 260 seconds]
krisleech has quit [Ping timeout: 260 seconds]
hfp has quit [Ping timeout: 260 seconds]
Asher has quit [Ping timeout: 260 seconds]
_chs_ has quit [Ping timeout: 260 seconds]
lepht has quit [Ping timeout: 260 seconds]
amitchellbullard has quit [Ping timeout: 260 seconds]
NightMonkey has quit [Ping timeout: 260 seconds]
Anarch has quit [Ping timeout: 260 seconds]
WillAmes has quit [Ping timeout: 260 seconds]
red_horned_rihno has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
<sevenseacat>
i'll be ready for a new laptop in about 6 months
dotsspwe has joined #ruby
<sevenseacat>
atm i have a samsung series 9 which i love, but the cpu is a tad underpowered
<Nilium>
I'll be ready by sometime in 2015 since that's when my Applecare expires
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
<Nilium>
At which point it's only a matter of time before some calamity befalls my laptop
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
<mroach>
15” MBP is A$2999 in Australia or US$2499.
dotsspwe has joined #ruby
<mroach>
$2999 AUD = $2498 USD
<sevenseacat>
interesting
Asher2 has joined #ruby
<mroach>
I meant to add “*in the US" to that first line
Stoge88 has joined #ruby
<mroach>
My AppleCare has expired and I want retina, USB3, HDMI, and BT 4.0 LE.
kaplejon_ has joined #ruby
cbetta__ has joined #ruby
* Nilium
is kind of confused about the exchange rate between USD and AUD
<Nilium>
I thought AUD was supposed to be better..
renderful has quit [Ping timeout: 265 seconds]
<mroach>
Times have changed.
<pontiki>
it was for a while
ckrailo__ has joined #ruby
<Nilium>
Shows how much I pay attention
<mroach>
The mining boom is no longer a boom and the US economy is doing decently well so thing are back to normal
<Nilium>
Either way, if it ends up being roughly the same as the USD, I'm surprised
<mroach>
1 USD = 1.22 AUD these days
bove_ has joined #ruby
Anarch_ has joined #ruby
dukedave_ has joined #ruby
<sevenseacat>
AUD is only about 80c USD these days
<Nilium>
Still a lot to of money to me either way, but I have a salary equivalent to $12 an hour, so I kind of have to be stingy.
<Nilium>
I have a feeling nobody at my company would like that I talk about my salary.
magic has joined #ruby
krisleech has joined #ruby
uber has quit [Ping timeout: 260 seconds]
_chs_ is now known as Guest18152
TDJACR_ has quit [Changing host]
TDJACR_ has joined #ruby
<mroach>
Where do you work? I’ll call and ask
jeregrine has joined #ruby
<mroach>
:p
TDJACR_ is now known as NotADJ
MasterPiece has joined #ruby
mikepack has joined #ruby
hfp has joined #ruby
lepht has joined #ruby
adambeynon_ has joined #ruby
<Nilium>
I would discourage that
mjc_ has joined #ruby
NightMonkey has joined #ruby
charliesome has quit [Quit: zzz]
uber has joined #ruby
<Nilium>
Plus it's not like there's a single thing anyone can do to stop me from talking about my pay.
<mroach>
We’ve got some $10 VPSs here. Not bad. Now do I want to pay $10/month for IRC...
oleo__ has quit [Quit: Verlassend]
<Nilium>
Even if it's kind of a weird taboo in the US to talk about it.
<Nilium>
Well, you could always run other stuff on the server.
<pontiki>
running a bouncer takes like no resources
<pontiki>
your other apps wouldn't even feel it
Deele has joined #ruby
<pontiki>
or even doing the dead simple irssi in tmux/screen
mikepack has quit [Ping timeout: 245 seconds]
<Nilium>
My server is just server static content via nginx, mail, gitolite, and znc right now, I think.
<mroach>
Yeah I know. I already have a server in Singapore but the latency is bad
<sevenseacat>
its a weird taboo anywhere to talk about salary i think
<mroach>
So maybe I’ll just move it here, put CloudFlare in front of the site so other people don’t take a performance penalty, then I can IRC
<mroach>
Yeah it’s pretty not OK to talk about salary anywhere
<pontiki>
it is discouraged because that would give the employees and other works more power over the companies
<mroach>
There’s really no good that can come of it. People either pity or resent you.
<shevy>
you filthy rich
<mroach>
Ok that’s a fair point, @pontiki
<Nilium>
I prefer to make it known just as a matter of putting stuff into context
<mroach>
Then again there tends to be nuance behind pay rates in certain kinds of jobs
<pontiki>
there is, for sure
<pontiki>
we have no idea how many hours nilium works that makes their salary only $12/hr
<mroach>
@Nilium Cost of living is a factor too. For example I get $30/hr here but a pizza costs $25
<Nilium>
I get paid for a 40 hour work week.
aspires has quit []
<mroach>
So if I eat a pizza every hour, which I do, I only take home $40/day
<pontiki>
that's the standard, yeah
<Nilium>
Working more obviously won't get me more, but I still usually end up with a couple hours more per week.
NightMonkey has quit [Ping timeout: 250 seconds]
<pontiki>
we (or well, I, anyway) have no idea what Nilium's work entails
<mroach>
Me neither
<Nilium>
Hell on earth.
<pontiki>
then you're overpaid
<mroach>
Also I’m on a shorter-term contract which affects pay
<Nilium>
Fixing hell on earth, more like, except fixing anything means I get told not to fix things.
<pontiki>
i was gonna say, hell on earth needs absolutely no development, no maintenance, it's here already in full form
<Nilium>
Trust me, it needs maintenance
<Nilium>
Otherwise hell on earth would come to a grinding halt
<pontiki>
do we call you wormwood now?
<pontiki>
or are you screwtape?
magic is now known as Auv
louism2wash has quit [Read error: Connection reset by peer]
<Nilium>
I'm probably more in Wormwood's shoes.
louism2wash has joined #ruby
NightMonkey has joined #ruby
jlast has joined #ruby
<pontiki>
my current rate is about half what it should be
<pontiki>
but i didn't, and don't, really give a crap
<Nilium>
I don't care too much because I live with my parents and my living costs are close to zero as a result, so I can save all my money.
_cb1 has quit [Ping timeout: 260 seconds]
<pontiki>
still, i didn't really expect to be working for them this long
<pontiki>
same as me
<pontiki>
i'm their primary care giver at this point
mary5030 has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<Nilium>
I'm not, I'm just living with them 'cause I have nowhere else to go right now and can't really afford it
<pontiki>
my parents are well into their 80s, and pretty infirm and wotnot
tagrudev has joined #ruby
anarang has joined #ruby
codecop has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
ctooley has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
Pupeno has joined #ruby
charliesome has joined #ruby
kiyote23 has quit [Ping timeout: 264 seconds]
circ-user-dcuPD has quit [Ping timeout: 258 seconds]
valeriansaliou has quit [Quit: Be back later ...]
sigurding has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
Takle has joined #ruby
_cb1 has joined #ruby
charliesome has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
<shevy>
mroach are the pizza good?
<mroach>
Sometimes yeah
<mroach>
Though I would prefer to find some nice pan pizza
kenneth has joined #ruby
<mroach>
Thin crust doesn’t do it for me the way pan pizza does.
last_staff has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
Takle has quit [Ping timeout: 265 seconds]
andikr has joined #ruby
<shevy>
a good italian pizza here costs around 9$
<shevy>
which ironically enough is just about comparable to your mention of $30/h, just in relationship e. g. average pay would be around 9$-15$/hour on average
<shevy>
so perhaps this is the grand universal pizza rule
Adran has joined #ruby
agit0 has joined #ruby
snath has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
<mroach>
The Economst actually came up with the Big Mac Index a while back
<shevy>
haha
<mroach>
It’s a great way of figuring out purchasing power parity between nations
<mroach>
On the other end of the spectrum is the iPhone index since the price doesn’t change country to country so you can see how easily people can afford it
Adran has quit [Client Quit]
louism2wash has quit [Quit: This computer has gone to sleep]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<mroach>
The Big Mac Index works because the food is typically locally sourced, it depends entirely in local labour costs and taxes, and the food is made to a pretty similar standard around the world
<mroach>
Since minimum wage is so high here, the cost of eating out goes up so much.
<certainty>
moin rubyists
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeff-ooh has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lemur_ has quit [Remote host closed the connection]
lemur has joined #ruby
Takle has joined #ruby
noop has joined #ruby
jeff-ooh has quit [Ping timeout: 255 seconds]
greenbagels__ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
gokulnath has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
Alina-malina has joined #ruby
wookiehangover has quit [Ping timeout: 258 seconds]
commmmodo has quit [Quit: commmmodo]
lemur has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 260 seconds]
greenbagels_ has quit [Ping timeout: 245 seconds]
ninegordon has joined #ruby
ninegordon has left #ruby [#ruby]
Adran has joined #ruby
gokulnath has joined #ruby
aganov has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
armyriad has joined #ruby
keen___________2 has joined #ruby
wookiehangover has joined #ruby
ki0 has joined #ruby
keen___________1 has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 250 seconds]
red_horned_rihno has quit [Read error: Connection reset by peer]
CpuID has quit [Quit: This computer has gone to sleep]
red_horned_rihno has joined #ruby
pppd has quit [Ping timeout: 256 seconds]
mengu has joined #ruby
mengu has joined #ruby
ctooley has quit [Quit: ctooley]
kapil__ has joined #ruby
Cache_Money has joined #ruby
Spami has joined #ruby
hephaestus_rg has joined #ruby
<hephaestus_rg>
hello there
<hephaestus_rg>
i'm wondering if anyone knows a card/deck library that's /window 4
<hephaestus_rg>
that's serializable
<hephaestus_rg>
because i'd like to persist the playing card deck to a json file
timonv_ has joined #ruby
red_horned_rihno has quit [Ping timeout: 265 seconds]
rshetty has joined #ruby
red_horned_rihno has joined #ruby
sea_local has joined #ruby
Musashi007 has quit [Quit: Musashi007]
timonv_ has quit [Ping timeout: 260 seconds]
Savoyard has joined #ruby
kamilc__ has joined #ruby
kish has quit [Changing host]
kish has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
tucket has joined #ruby
<tucket>
Hello, does anyone here have experience with bootstrap?
<tucket>
I've followed this tutorial - but I can't see any proof of it working correctly
<bahamas>
certainty: can you explain something about ruby? I have a 'set' method in a file. there is no require in that file or anything. how does an external library make that method available, so there is no name error?
Savoyard has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
Takle has quit [Remote host closed the connection]
pewpew has left #ruby [#ruby]
<dionysus69>
guys I do identify and it still doesnt log in to rubyonrails channel :\
dionysus69 has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
rdark has joined #ruby
Takle_ has joined #ruby
dionysus69 has joined #ruby
bjornar has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 258 seconds]
_5kg has joined #ruby
apeiros_ has joined #ruby
AlSquire has joined #ruby
anaeem1_ has joined #ruby
Timgauthier has joined #ruby
AFKGeek has joined #ruby
rdark has quit [Quit: leaving]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has joined #ruby
anarang has quit [Ping timeout: 244 seconds]
graf_ has quit [Ping timeout: 246 seconds]
<shevy>
dionysus69 impossible
<shevy>
did you do /msg nickserv identify YOUR_PASSWORD_HERE
<bahamas>
can anyone answer the question above about how you can use a method in a file without defining it there or using 'require'?
startupality has joined #ruby
memph1s has joined #ruby
<avril14th>
bahamas: well, you can meta program it there? Not sure what your question is. You have the method source location, what else do you need?
timonv_ has quit [Remote host closed the connection]
<bahamas>
avril14th: how do I meta program it?
<apeiros_>
bahamas: the only methods that qualify for that are those ruby includes already
<apeiros_>
bahamas: otherwise you're asking for the impossible.
<shevy>
we can make the impossible happen
rdark has joined #ruby
<avril14th>
<3
<bahamas>
apeiros: the only methods that qualify for what?
quarcu has quit [Ping timeout: 245 seconds]
<bahamas>
please keep in mind I'm a ruby beginner
<shevy>
bahamas a method called set can only work it if it was defined somewhere
<shevy>
unless you use method_missing
<apeiros_>
or well… I guess you can emulate require using one of the eval variants.
Musashi007 has joined #ruby
<bahamas>
shevy: this I understand. what I want to understand is what is happening. 'set' is used in a file without being a 'require' in that file
<bahamas>
how does this work?
<shevy>
wait a moment
<shevy>
why would require have to be used there?
<shevy>
can't just another file require other files that have it?
charliesome has joined #ruby
anarang has joined #ruby
quarcu has joined #ruby
<bahamas>
shevy: you mean file A uses 'set'. file B requires 'set' definition and also requires file A?
<shevy>
for example
<shevy>
not every individual file must carry all dependencies standalone
ixti has joined #ruby
<shevy>
you could even write .rb files that have only one method each, and then require those individual files
surs has joined #ruby
<shevy>
so file foo.rb has: class Foo; def test; end; end and then you have file bar.rb which has class Foo; def bar; end; end ... and if you require both, class Foo will have those two methods
<apeiros_>
bahamas: if set was required anywhere in your application, it can be used everywhere
valeriansaliou has joined #ruby
AndChat| has joined #ruby
<bahamas>
ok. so that's how 'require' works.
<avril14th>
yes
<avril14th>
require is "load if you haven't already"
<avril14th>
so if somewhere the file was loaded, then nothing happens
lkba has quit [Read error: Connection reset by peer]
<apeiros_>
and the load is "into the currently running instance", not "into the current file"
Timgauthier has joined #ruby
<avril14th>
load is everwhere
<bahamas>
btw, I see in some files both require "specinfra/helper/set" and include Specinfra::Helper::Set. why is this?
quarcu has quit [Ping timeout: 250 seconds]
<avril14th>
in your whole program
<avril14th>
require is to have a file loaded if needed
<apeiros_>
bahamas: the two do entirely different things
<shevy>
bahamas you can also simulate require by yourself with eval, as apeiros wrote
<bahamas>
avril14th: so it's loading into a global namespace, so to speak?
Inoperable has joined #ruby
<avril14th>
yes
<shevy>
oh... apeiros_ wrote it... not apeiros ... there is apparently a clone of apeiroses invading this channel
<avril14th>
now include / extend / prepend you should look online. It's totally different thing.
st0mar has joined #ruby
<apeiros_>
require -> load a codefile
<apeiros_>
include -> add methods and constants from a module to a class/module
<shevy>
bahamas every time you use "class" or "module" you add or modify a namespace; class Foo; end <--- Foo is toplevel. module Bar; class Foo; end; end <--- this Foo is a different one residing under the Bar:: namespace
<bahamas>
how can I tell which file was actually 'require'd. is there something that gives me the full path?
<shevy>
well
<shevy>
you could use caller()
<apeiros_>
shevy: we're one :-p
valeriansaliou has quit [Ping timeout: 245 seconds]
memph1s has quit [Quit: I couldn't come up with quit message :(]
<apeiros_>
bahamas: $LOADED_FEATURES
<apeiros_>
contains all required files
jlast has joined #ruby
<shevy>
bahamas you have been using another programming language before right?
<bahamas>
shevy: yes, several
<bahamas>
python, javascript, lua, haskell, etc.
<shevy>
ok, I guess all of them have their ways of loading files
<bahamas>
not like ruby. it sounds like ruby's require resembles C's include
<shevy>
in ruby you don't have that many ways - require() and load() for the most part
<shevy>
nono
<shevy>
include works on modules
<shevy>
include String # => TypeError: wrong argument type Class (expected Module)
dfinninger has joined #ruby
<shevy>
you must require or load external code before you can then use include on any Module defined therein, so require and load come before include's
AndChat| has quit [Ping timeout: 256 seconds]
st0mar has quit [Read error: Connection reset by peer]
st0mar has joined #ruby
<shevy>
they probably used include Specinfra::Helper::Set to add up the code that resides under module Set there
<shevy>
but before that, they had to require it
Inoperable has quit [Quit: Rectified]
lemur has quit [Remote host closed the connection]
<shevy>
python has some fancier way
lemur has joined #ruby
<shevy>
from matplotlib.numerix import arange, sin, pi
<shevy>
pretty cool eh?
<shevy>
ruby doesn't have much like that :(
Xeago has quit [Remote host closed the connection]
<bahamas>
shevy: so a file called 'serverspec' requires specinfra/helper/set. I require this 'serverspec', but it doesn't make available the 'set' method
mengu has quit [Remote host closed the connection]
<avril14th>
python has the command, ruby has the style
kl__ has joined #ruby
<shevy>
bahamas ok but you know why?
<avril14th>
bahamas: if the set method is inside a module, no. All you do when requiring the file is having access to the module which you then need to include or instance use.
<shevy>
bahamas because the question is - WHERE is this set() method?
<shevy>
if it is not on toplevel, but in a module, you must scope to it
<shevy>
OR include the module
<bahamas>
yeah. it's in a module
<shevy>
>> module Foo; def self.set; puts 'we set bahamas on jamaica!'; end; end; Foo.set()
boombadaroomba has quit [Ping timeout: 245 seconds]
SOLDIERz_ has joined #ruby
<bahamas>
shevy: the lib 'serverspec' has a file called 'serverspec.rb'. that file both requires 'specinfra/helper/set' and includes Specinfra::Helper::Set
<shevy>
\o/
<bahamas>
I require that file somewhere in my files. should that be enough to make 'set' available?
<shevy>
I think so
<shevy>
I don't know the particulars of that, but you can try for yourself in a test.rb file
<bahamas>
if yes, then maybe I'm requiring the wrong one, so I need to see which one I'm requiring
<shevy>
test.rb should have content: module Foo; def set; puts 'hi from set'; end; end; include Foo ... and create foo.rb that has: require './test.rb'; set()
workmad3 has joined #ruby
<shevy>
or alternative, require_relative 'test.rb' should work... or you can modify the load path so that it works; normally, ruby projects are setup to default to the central ruby loat path
<shevy>
on my system this is at /usr/lib/ruby/site_ruby/2.1.0/
<shevy>
if you do a simple: require 'foo' then it will try to find the file /usr/lib/ruby/site_ruby/2.1.0/foo.rb first
dionysus69 has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
dionysus69 has joined #ruby
SOLDIERz has quit [Ping timeout: 256 seconds]
rodfersou has joined #ruby
dionysus69 has quit [Client Quit]
picassoo has joined #ruby
pandaant has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 245 seconds]
dc has joined #ruby
kiyote23 has joined #ruby
alexherbo2 has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
Pumukel has joined #ruby
startupality has quit [Quit: startupality]
<bahamas>
shevy: I have a file that has require "serverspec". if I run this file with ruby file.rb, I can see that the 'set' method is available (because I added a puts method(:set))
<bahamas>
if I run the file with vagrant, I get an error about 'set' not being available. do you have any idea what might be happening?
startupality has joined #ruby
<shevy>
no idea how vagrant works, sorry
dc has quit [Ping timeout: 240 seconds]
<shevy>
if it uses pure ruby then when it works for you in a .rb file, it must work in vagrant too
<bahamas>
since I'm not a ruby user, I didn't notice this
<shevy>
I guess there is some way to tell it to use more gem directories
<shevy>
but since I always have only one, I don't know
kl__ has quit [Ping timeout: 245 seconds]
moritzs has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
kl__ has joined #ruby
<bahamas>
yeah, I'm looking for a way to specify that
anarang has joined #ruby
Morkel has quit [Quit: Morkel]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kapil__ has joined #ruby
<bahamas>
vagrant comes with its own version of ruby and gem
<shevy>
lol
<shevy>
am I glad to not know it
mroach has quit [Quit: mroach]
dionysus69 has joined #ruby
<bahamas>
what do you use for vm management?
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
lolmaus has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
jeff-ooh has joined #ruby
red_horned_rihno has joined #ruby
quazimodo has joined #ruby
Timgauthier is now known as timgauthier_away
kevinxu has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
well I don't really do much with VMs... I guess I used colinux on windows once, qemu for a haiku boot on linux another time... that about sums it up. I couldn't tell you why I would need a VM really either
chihhsin has quit [Quit: leaving]
kevinxu is now known as Guest48998
<bahamas>
I do all my development inside VMs. it's a lot easier to match development and production that way
chihhsin has joined #ruby
jeff-ooh has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
platzhirsch has joined #ruby
<platzhirsch>
Morning
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<shevy>
hey Platini
<shevy>
lol
<platzhirsch>
While I won't jump into Ruby coding again straight away, I think it's crucial to hang around here more often
<shevy>
I mean platzhirsch
<shevy>
are you still in the UK?
<platzhirsch>
yes
<shevy>
have you become funnier too? you know the monty python effect?
<shevy>
try to buy a parrot
<shevy>
insist that it is dead
ghostbox has joined #ruby
<platzhirsch>
I don't know, I was able to pull off some puns, so yeah.. I guess
Guest48998 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch>
yeah, since the Android app is now in a good place, I can soon start doing work on our web app/back end/ruby
<shevy>
platzhirsch hmm I think I was already in bed at that time
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
davedev24_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
SOLDIERz_ has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
<platzhirsch>
:)
krz has joined #ruby
<platzhirsch>
London is a crazy place and I am not exactly on the brightest side in terms of salary, but for my first year of Uni and Mixlr as a startup, that's a pretty amazing place to work right now
oo_ has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<shevy>
do you eat donuts
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 265 seconds]
Takle_ has joined #ruby
spastorino has joined #ruby
hmsimha has joined #ruby
chinmay_dd has quit [Quit: Leaving]
<agent_white>
I dun think those exist in the UK. Only these things called 'crumpets'
reinaldob has quit [Read error: Connection reset by peer]
<bahamas>
shevy: sorry, I don't understand how to use 'caller'. I tried caller(require "serverspec") and caller("serverspec"), but it doesn't work like that
<shevy>
put that in a file: require 'pp'; pp $LOAD_PATH; pp $:; def foo; pp caller; end; foo
<shevy>
you can trace back from where methods would have been called
fabrice31 has joined #ruby
<shevy>
I think you can also use the ruby debugger too
dfinninger has joined #ruby
wildroman2 has joined #ruby
mengu has quit [Remote host closed the connection]
<shevy>
but it's another one of those areas I haven't dived deeper into, for if software becomes so complex that I don't understand, I tend to write my own solution when applicable
<shevy>
(if I need something that is)
valeriansaliou has joined #ruby
cvtsx has quit [Ping timeout: 258 seconds]
n1lo has joined #ruby
beilabs has quit [Ping timeout: 264 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
doev has quit [Quit: Verlassend]
lbrf has joined #ruby
tesuji has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
emmesswhy has joined #ruby
dfinninger has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
kamilc__ has joined #ruby
viblo has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
arup_r has quit [Remote host closed the connection]
viblo has joined #ruby
viblo has quit [Client Quit]
viblo has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
timonv_ has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
xymbol___ has joined #ruby
<bahamas>
is LOAD_PATH cached? I see in it files that no longer exist on my machine.
jlast has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
mengu has joined #ruby
chu has joined #ruby
_5kg has quit [Ping timeout: 260 seconds]
AFKGeek has joined #ruby
antgel has joined #ruby
xymbol___ has quit [Quit: Be back later ...]
kl___ has joined #ruby
arup_r has joined #ruby
andikr has quit [Remote host closed the connection]
kl__ has quit [Ping timeout: 250 seconds]
hiyosi has joined #ruby
kirun has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
Xeago has joined #ruby
bjornar is now known as tziom
iRockZ has joined #ruby
LouisRoR has joined #ruby
dc_ has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
green-big-frog has joined #ruby
techsethi_ has joined #ruby
bluenemo has joined #ruby
tokik has joined #ruby
techsethi_ has quit [Client Quit]
xymbol___ has joined #ruby
dangerousdave has joined #ruby
dc_ has quit [Ping timeout: 250 seconds]
rbrs has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
giuseppesolinas has joined #ruby
timonv_ has joined #ruby
bal has joined #ruby
techsethi_ has joined #ruby
zzz_Ridley has quit [Ping timeout: 272 seconds]
jeff-ooh has joined #ruby
khem_ has joined #ruby
twistedpixels is now known as zz_twistedpixels
jlast has joined #ruby
zz_twistedpixels is now known as twistedpixels
yeticry has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
luksaur has joined #ruby
yeticry has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeff-ooh has quit [Ping timeout: 260 seconds]
valeriansaliou has quit [Quit: Be back later ...]
bogeyd6 has quit [Read error: Connection reset by peer]
phreakocious has joined #ruby
dangerousdave has quit []
postmodern has quit [Quit: Leaving]
lessless has joined #ruby
c0rwin has joined #ruby
dangerousdave has joined #ruby
dangerou_ has joined #ruby
hgl has quit [Ping timeout: 265 seconds]
lukbitz has joined #ruby
agjacome has quit [Quit: leaving]
zzz_Ridley has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
<lukbitz>
I discovered instance_variable_set or get can break private protection, why use private if everybody can cheat it?
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl has joined #ruby
picassoo has quit [K-Lined]
theotherstupidgu has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
chinmay_dd has joined #ruby
valeriansaliou has joined #ruby
william3 has joined #ruby
phutchins has joined #ruby
_5kg has joined #ruby
vt102 has joined #ruby
hgl has quit [Ping timeout: 256 seconds]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
valeriansaliou has quit [Ping timeout: 250 seconds]
larissa has quit [Quit: Leaving]
uber_hulk has joined #ruby
AFKGeek has quit [Quit: Leaving]
<avril14th>
lukbitz: send can break all protections. It's left willingly so. protected / private are for information and well structure as they enforce simple access, that can be bypassed if needed/done.
larissa has joined #ruby
theotherstupidgu has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
theotherstupidgu has joined #ruby
<lukbitz>
ab
Savoyard has joined #ruby
<avril14th>
ab?
<lukbitz>
avril14th: so, security isn't for ruby?
hgl has joined #ruby
<wasamasa>
lukbitz: we'
<wasamasa>
lukbitz: we're consenting adults, not control freaks
<bahamas>
why would rake not display the tasks in a file?
<lukbitz>
wasamasa: the problem is, if someone else try to get or set some info of my system, this person can edit a important info freely?
_5kg has quit [Ping timeout: 245 seconds]
<wasamasa>
lukbitz: wat
rshetty has quit [Remote host closed the connection]
<wasamasa>
lukbitz: you're mixing up very different things
_5kg has joined #ruby
<wasamasa>
lukbitz: this for instance has nothing to do with ruby's encapsulation: https://xkcd.com/1200/
Savoyard has quit [Ping timeout: 258 seconds]
<lukbitz>
wasamasa: Can't understand. In a perfect world you can think nobody can hack you.
zarubin has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
aclearman037 has joined #ruby
<wasamasa>
lukbitz: besides, it's not like java's encapsulation is impossible to circumvent
<wasamasa>
lukbitz: it's just a massive pain
<lukbitz>
wasamasa: how you keep your info secure then?
sk87 has joined #ruby
AFKGeek has joined #ruby
<lukbitz>
why exists 'private'if it is not really private.
<wasamasa>
why do people live in societies that can fuck up their lives
hgl has joined #ruby
<lukbitz>
wasamasa: the fault is not of people.
<wasamasa>
lukbitz: it is
<lukbitz>
wasamasa: you choose born?
<wasamasa>
lukbitz: just like you did choose to discuss something rather unimportant with the wrong mindset
<theotherstupidgu>
levels of granularity, ruby fits nice for doing simple small isolated systems that can interface with other systems via a messaging mechanism.
<lukbitz>
wasamasa: you really scare me saying these things.
<wasamasa>
lukbitz: your english scares me
djdarkbeat has quit [Quit: djdarkbeat]
VictorBjelkholm has joined #ruby
VictorBjelkholm has quit [Max SendQ exceeded]
<lukbitz>
wasamasa: RoR was built above ruby and ruby offers this security.
<theotherstupidgu>
i dont know why RoR refuses to di
VictorBjelkholm has joined #ruby
<theotherstupidgu>
die*
<lukbitz>
wasamasa: don't take this personal, I"m talking about ruby.
<chu>
Is that a popular view among Rubyists?
<wasamasa>
lukbitz: I don't have any idea why you're suggesting I'm taking that personal
<green-big-frog>
hi
tristanp has joined #ruby
<theotherstupidgu>
hi
<lukbitz>
wasamasa: you're talking about my english.
hmsimha has quit [Ping timeout: 252 seconds]
<shevy>
haha
rodfersou has quit [Read error: Connection reset by peer]
<lukbitz>
wasamasa: but i understood your concept, there's no security.
antgel has quit [Quit: Lost terminal]
rodfersou has joined #ruby
tkuchiki has joined #ruby
<shevy>
lukbitz ruby has a different object model
<shevy>
it gives you more freedom than other OOP centric languages
<shevy>
you can modify ruby objects at runtime
<shevy>
add new behaviour, eliminate old behaviour
<lukbitz>
shevy: yes, but let everybody controls your class is a shame.
<wasamasa>
lukbitz: why do you think so?
<shevy>
that is deliberate
<shevy>
you can not steal control over code from a user
claptor has quit [Quit: this channel is bakas]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kl___ has quit [Ping timeout: 250 seconds]
dangerousdave has joined #ruby
Inoperable has quit [Quit: Rectified]
<lukbitz>
shevy: I didn't understand, why exists private then if everybody can access your data?
<wasamasa>
lukbitz: to structure your code
<shevy>
because private in ruby is not private in java
arooni has joined #ruby
<shevy>
<shevy> lukbitz ruby has a different object model
<wasamasa>
lukbitz: public interfaces are for the user to work with, private interfaces are for the programmer to work with
<wasamasa>
lukbitz: you are of course free to use the private interfaces as user since the ruby developers were no control freaks
techsethi_ has quit [Quit: techsethi_]
<wasamasa>
lukbitz: however, that has absolutely nothing to do with security
<lukbitz>
shevy: so, private is a form to prevent a bad error in the programa and not a way to garantee your software don't will be violated.
viblo has quit [Ping timeout: 258 seconds]
<wasamasa>
lukbitz: no
<wasamasa>
lukbitz: it's to structure the code
cassianoleal has joined #ruby
<lukbitz>
wasamasa: right.
<wasamasa>
lukbitz: "Use these methods, don't use those methods"
<wasamasa>
that's all it says
<wasamasa>
I don't even want to know what "violating software" means in that context
<lukbitz>
wasamasa: alright, but there's other alternative tool too garantee the security of data?
<shevy>
lukbitz in ruby you use private to distinguish between the default (public) methods, which will happen more frequently than those who would be internal (private)
<wasamasa>
lukbitz: what the hell is that supposed to mean?
russt has joined #ruby
<wasamasa>
lukbitz: is that some sort of security theatre you're playing?
chinmay_dd has quit [Ping timeout: 272 seconds]
<shevy>
lukbitz there is no alternative to it
<lukbitz>
wasamasa: it's about business, that's all.
<wasamasa>
lukbitz: please don't try making ruby work like java, it's a waste of time
antgel has joined #ruby
<lukbitz>
wasamasa: right, but try to treat me like a fool.
* wasamasa
rolls eyes
chinmay_dd_ is now known as chinmay_dd
<lukbitz>
shevy: thanks
<lukbitz>
wasamasa: thanks you too sir.
jlast has quit [Remote host closed the connection]
<shevy>
fat libraries and dead code... I have to remember that quote from you wasamasa
<wasamasa>
shevy: it's not from me actually, I'll find the link for you
jlast has joined #ruby
<lukbitz>
avril14th: thank you too
<shevy>
oh soahccc... while adding the quote from wasamasa I also found the last one which was from you, last month: <soahccc> I guess ruby just makes you happy... I get angry when looking at PHP or something curly-brace-semicolon-alike
<avril14th>
luksauru
<avril14th>
*lukbitz
agent_white has quit [Read error: Connection reset by peer]
red_horned_rihno has quit [Ping timeout: 264 seconds]
ycodr has quit [Remote host closed the connection]
<lukbitz>
wasamasa: just for curiosity, you have something against java :)?
<shevy>
steve is the guy with a million lines of code for his java game right?
ycodr has joined #ruby
<wasamasa>
I bet
<wasamasa>
"[…]you use […] Java when you need an especially fat API to impress a client."
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ki0 has quit []
<wasamasa>
"And what better language for building big, dead systems than Java?"
<lukbitz>
wasamasa: ok, what you use instead of java?
<wasamasa>
lukbitz: I have issues with every single programming language I've worked with so far
<wasamasa>
lukbitz: so don't you worry
<wasamasa>
lukbitz: asides from that, I tend to use programming languages that are well suited for the task at hand
<wasamasa>
lukbitz: like, ruby for writing quick and dirty scripts to automate tasks for me
<wasamasa>
lukbitz: and for web development at work
Takle has joined #ruby
chinmay_dd has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<lukbitz>
Right, ruby replaces java so well, like perl.
agent_white has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 250 seconds]
<wasamasa>
but I've also written java for clients that expected impressive looking loads of code
ki0 has joined #ruby
pika_pika has joined #ruby
dangerou_ has quit [Ping timeout: 250 seconds]
<wasamasa>
and javascript for clientside web applications
<wasamasa>
shevy: steve is also the guy who wrote a javascript parser and interpreter for emacs
vt102 has quit [Quit: Leaving]
Takle_ has quit [Ping timeout: 260 seconds]
dfinninger has joined #ruby
<lukbitz>
I have a theory you can't be a one-language-programmer or you will be fustrated or stuck.
Xeago has quit [Remote host closed the connection]
iwishiwerearobot has quit [Quit: Be back later ...]
Jackneill has joined #ruby
beef-wellington has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
agent_white has joined #ruby
<wasamasa>
well, there are people who supposedly get by only writing java :P
agent_white has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<lukbitz>
wasamasa: I want to be a guru of some specific language, but I think it's impossible. Maybe Darwin was right about adapt in the environment you want to work.
dfinninger has quit [Ping timeout: 244 seconds]
triple_b has joined #ruby
Takle has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
Takle has joined #ruby
<wasamasa>
lukbitz: there are languages simple enough to become an expert at them
<wasamasa>
lukbitz: like C or Lisp
<lukbitz>
wasamasa: ruby?
<wasamasa>
ruby is definitely not simple, it keeps surprising me constantly
<lukbitz>
and C is simple?
<wasamasa>
it has a tiny standard library and maps down to the machine very well
tier has joined #ruby
red_horned_rihno has joined #ruby
twistedpixels is now known as zz_twistedpixels
<wasamasa>
scheme has a smaller specification and a very elegant overall structure
agent_white has joined #ruby
livingstn has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
green-big-frog is now known as frog|OFF
<lukbitz>
The boring of static languages is because they're static, ruby is dynamic, you always are learning.
arup_r has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tier has joined #ruby
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
delianides has joined #ruby
dumdedum has quit [Quit: foo]
mbeasley has joined #ruby
agent_white has joined #ruby
Savoyard has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
hjlsteffens has joined #ruby
jheg has joined #ruby
delianides has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
techsethi_ has quit [Quit: techsethi_]
hjlsteffens has quit [Client Quit]
pu22l3r has joined #ruby
Anarch_ is now known as Anarch
freerobby has joined #ruby
paulfm has quit [Quit: Zzzzz...]
endless_walrus has joined #ruby
Rapier- has joined #ruby
agent_white has joined #ruby
Savoyard has quit [Ping timeout: 265 seconds]
agent_white has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
sanguisdex has joined #ruby
kl__ has joined #ruby
aclearman037 has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
josephndenton has joined #ruby
delianides has joined #ruby
kiyote23 has joined #ruby
lbrf has quit [Quit: Be back later ...]
sankaber has joined #ruby
kamilc__ has quit [Quit: Leaving...]
noop has quit [Ping timeout: 258 seconds]
eichenwald has joined #ruby
agent_white has joined #ruby
agent_white has quit [Client Quit]
bmichelsen has joined #ruby
eichenwald has quit [Client Quit]
_5kg has quit [Ping timeout: 265 seconds]
eichenwald has joined #ruby
bmichelsen has quit [Client Quit]
tier has quit [Remote host closed the connection]
eichenwald has quit [Changing host]
eichenwald has joined #ruby
WillAmes has joined #ruby
red_horned_rihno has quit [Ping timeout: 256 seconds]
lukbitz has quit [Quit: ChatZilla 0.9.91 [Firefox 31.3.0/20000101000000]]
boombadaroomba has quit [Ping timeout: 250 seconds]
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
Megtastique has joined #ruby
aclearman037 has joined #ruby
sevenseacat has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
arup_r has joined #ruby
noop has joined #ruby
Macaveli has quit [Ping timeout: 258 seconds]
<jheg>
o/
<jheg>
Question regarding initialize method in classes
sambao21 has joined #ruby
arup_r has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
GeorgesLeYeti has joined #ruby
<jheg>
If I have an Animal parent class and a Human child class
Macaveli has joined #ruby
<jheg>
and within Animal I have a initialize method with @name and @gender and I create a new instance of Human that doesn’t have an initialize method do I pass the two args that is required by the parent class when cretaing a new child object?
Techguy305 has joined #ruby
mengu has quit [Remote host closed the connection]
timonv^ has joined #ruby
zz_twistedpixels is now known as twistedpixels
jeff-ooh has joined #ruby
<jheg>
In that scenario the child class doesnt have any specific states so can just inherit the parent
kiyote23 has quit [Remote host closed the connection]
renderful has joined #ruby
tvw has quit []
<jheg>
however am I correct in thinking that the moment the child class does have even just one state of its own I have to then initialize all the states of the parent class in the child classes initialize method?
<jheg>
hope that makes sense
davedev2_ has joined #ruby
tvw has joined #ruby
tkuchiki has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
kiyote23 has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
xymbol___ has quit [Quit: Be back later ...]
red_horned_rihno has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
whoisjake has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
TrafficMan has quit [Ping timeout: 272 seconds]
davedev2_ has quit [Read error: Connection reset by peer]
jeff-ooh has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
davedev2_ has joined #ruby
timonv^ has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 258 seconds]
davedev24_ has quit [Ping timeout: 258 seconds]
gheegh has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
timonv_ has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
Avahey has joined #ruby
arya_ching has joined #ruby
red_horned_rihno has joined #ruby
theotherstupidgu has quit [Ping timeout: 245 seconds]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Timgauthier is now known as timgauthier_away
<Senjai>
you'll have to require 'tmpdir' now
<Senjai>
apeiros_: Did I explain the things correctly :P
Pattt has joined #ruby
sk87 has joined #ruby
<apeiros_>
Senjai: tl;dr
mary5030 has quit [Remote host closed the connection]
<Senjai>
That's okay
<Senjai>
just say yes
<apeiros_>
it was a splendid explanation
grn has quit []
mary5030 has joined #ruby
<druznek>
Thank you Senjai :)
<apeiros_>
I agree that this data does not look like it wants to be arrays & hashes
<apeiros_>
proper classes ftw.
<Senjai>
right :P
chinmay_dd has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
kiyote23 has joined #ruby
commmmodo has quit [Quit: commmmodo]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chihhsin has joined #ruby
livingstn has joined #ruby
charliesome has quit [Quit: zzz]
ndrei has quit [Ping timeout: 258 seconds]
AFKGeek has joined #ruby
Ankhers has joined #ruby
hamakn has quit [Remote host closed the connection]
noop has quit [Ping timeout: 264 seconds]
louism2wash has joined #ruby
AugustoC has quit [Quit: Connection closed for inactivity]
kiyote23 has quit [Remote host closed the connection]
AFKGeek is now known as AFK_Geek
alex88 has quit []
AFK_Geek is now known as kaosu
kaosu is now known as AFKGeek
mengu has joined #ruby
kiyote23 has joined #ruby
AFKGeek is now known as AwayFlyingKites
<certainty>
Senjai: well using /tmp can have advantages. for example on many systems /tmp is the mountpoint for for the tmp partition. Thus it is marked noexec, nosuid etc.
<certainty>
that is somethin you don't have if you use your own
<certainty>
putting aside all the talk about standards and things
crome has quit [Ping timeout: 245 seconds]
crome has joined #ruby
spider-mario has joined #ruby
momomomomo has joined #ruby
russt has quit [Quit: russt]
arup_r has joined #ruby
dfinninger has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
arooni has quit [Quit: Leaving]
xymbol___ has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paulfm has quit [Quit: Zzzzz...]
iwishiwerearobot has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
AwayFlyingKites has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 250 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
aclearman037 has joined #ruby
xymbol___ has quit [Ping timeout: 260 seconds]
dfinninger has joined #ruby
elcheckito has joined #ruby
crome has quit [Ping timeout: 250 seconds]
crome has joined #ruby
DaniG2k has quit [Quit: leaving]
paulfm has joined #ruby
Techguy305 has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 256 seconds]
kayloos has joined #ruby
timonv_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
kalusn has quit [Ping timeout: 265 seconds]
tuelz has quit [Ping timeout: 250 seconds]
bihetq has joined #ruby
crome has quit [Ping timeout: 244 seconds]
crome has joined #ruby
agjacome has joined #ruby
bihetq has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
bmichelsen has joined #ruby
Calmoto has joined #ruby
ghormoon has quit [Remote host closed the connection]
techsethi_ has joined #ruby
elcheckito has quit [Quit: WeeChat 1.0.1]
_beechnut has joined #ruby
tobago has quit [Remote host closed the connection]
crome has quit [Ping timeout: 245 seconds]
crome has joined #ruby
Neomex has joined #ruby
kiyote23 has joined #ruby
<Senjai>
certainty: I agree :P
armyriad has joined #ruby
Guest78 has joined #ruby
_beechnut has quit [Read error: Connection reset by peer]
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0/20141127111021]]
dfinninger has joined #ruby
Guest78 is now known as jstad
momomomomo has quit [Quit: momomomomo]
jstad has quit [Client Quit]
wald0 has joined #ruby
jstad has joined #ruby
sargas has joined #ruby
robertt_dex has joined #ruby
xymbol___ has joined #ruby
rimantas has quit [Quit: rimantas]
kiyote23 has quit [Remote host closed the connection]
frog|OFF is now known as green-big-frog
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
russt has joined #ruby
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
Timgauthier has joined #ruby
tus has joined #ruby
Timgauthier is now known as timgauthier_away
davedev24_ has joined #ruby
hamakn has joined #ruby
Daniel__^_^ has joined #ruby
hamakn has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 258 seconds]
marcules has joined #ruby
<marcules>
hi
rshetty has joined #ruby
<waxjar>
hi
<kaspergrubbe>
wup
shyshy has joined #ruby
hamakn has joined #ruby
Daniel__^_^ is now known as GaryOak_
rshetty has quit [Read error: Connection reset by peer]
kl has quit [Read error: Connection reset by peer]
<GaryOak_>
how's it going?
tuelz has joined #ruby
rshetty has joined #ruby
_beechnut has quit [Read error: Connection reset by peer]
grzywacz has quit [Quit: :wq]
Morkel has quit [Quit: Morkel]
DaniG2k has joined #ruby
rippa has joined #ruby
chinmay_dd has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
sigurding has quit [Quit: sigurding]
mikepack has joined #ruby
timonv_ has joined #ruby
bahamas has joined #ruby
renderful has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
snath has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tokik has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
t0rc has joined #ruby
viblo has joined #ruby
Prometheian has quit [Remote host closed the connection]
jds has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
picassoo has joined #ruby
asmodlol has joined #ruby
dotix has quit [Ping timeout: 265 seconds]
rbennacer has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
kl has joined #ruby
dionysus69 has joined #ruby
aganov has quit [Quit: Leaving]
viblo_ has joined #ruby
dideler has left #ruby ["undefined"]
red_horned_rihno has quit [Ping timeout: 264 seconds]
emmesswhy has joined #ruby
Megtastique has quit []
picassoo has quit [K-Lined]
viblo has quit [Ping timeout: 258 seconds]
viblo_ is now known as viblo
emmesswhy has quit [Client Quit]
lzco has quit [Remote host closed the connection]
Megtastique has joined #ruby
<dionysus69>
hello guys, I to do this online ordering website and since I am attracted by the enigmatic charm of ruby, I wanted to use RoR for it. Could anyone please direct me to the most up to date/"best" tutorial for RoR? any details I might need to know? I have tried lynda tutorial RoR 4 essentials, it wasnt quite the thing I wanted. Could you please direct me and share your personal experiences perhaps?
theRoUS has quit [Changing host]
theRoUS has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
techsethi_ has quit [Quit: techsethi_]
klmlfl has joined #ruby
<kaspergrubbe>
dionysus69: I quite enjoyed https://leanpub.com/tr4w when I started with Rails a few years ago
iamninja has quit [Quit: ZZZzzz…]
<dionysus69>
kaspergrubbe: will take a look, appreciated alot!
emmesswhy has joined #ruby
viblo_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
viblo__ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
valeriansaliou has joined #ruby
diegoviola has joined #ruby
viblo has quit [Ping timeout: 258 seconds]
atomi has joined #ruby
jlast has joined #ruby
dotsspwe has joined #ruby
viblo__ is now known as viblo
jheg has quit [Ping timeout: 258 seconds]
kobain has joined #ruby
einarj has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
viblo_ has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
hamakn has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
sigurding has joined #ruby
hamakn has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 258 seconds]
sankaber has joined #ruby
valeriansaliou has quit [Ping timeout: 258 seconds]
ghr has quit []
pandaant has quit [Remote host closed the connection]
treehug88 has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
speaking1ode is now known as speakingcode
renderfu_ has joined #ruby
CustosL1men has quit [Ping timeout: 240 seconds]
Channel6 has quit [Quit: Leaving]
ponga has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 258 seconds]
frog|OFF is now known as green-big-frog
tier has quit [Ping timeout: 260 seconds]
<green-big-frog>
hi
<cschneid>
Does anybody have a pointer on how .ruby-version and rbenv work together? I have `2.1` in a ruby-version and rbenv doesn't find my 2.1.3 install.
asmodlol has quit [Ping timeout: 272 seconds]
sargas has quit [Quit: This computer has gone to sleep]
<soahccc>
cschneid: I think it auto detects it? I use chruby and I also don't have to type the whole thing... `chruby 2` matches 2.1.0 or `chruby perf` matches 1.9.3-perf
timonv_ has quit [Remote host closed the connection]
<cschneid>
soahccc: interestingly there's a `rbenv alias` plugin which solves this. `rbenv alias 2.1 2.1.5` sets that
asmodlol has joined #ruby
dc has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
AlSquirrel has joined #ruby
timonv_ has joined #ruby
paulfm has quit [Quit: Zzzzz...]
ponga has quit [Ping timeout: 260 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
AlSquire has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
jeanlinux has quit [Remote host closed the connection]
jobewan has joined #ruby
jobewan has quit [Read error: Connection reset by peer]
ki0 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Html-01 has joined #ruby
livingstn has quit [Ping timeout: 245 seconds]
stunder has joined #ruby
paulfm has joined #ruby
aclearman037 has joined #ruby
sambao21 has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
existensil has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
sargas has joined #ruby
Html-01 has quit []
dc has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 272 seconds]
St_Marx has joined #ruby
kayloos has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
viblo_ has joined #ruby
rshetty_ has joined #ruby
rshetty has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
<jhass>
dionysus69: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
picassoo has quit [K-Lined]
viblo__ has joined #ruby
iLike has joined #ruby
<dionysus69>
jhass: the only reason I posted here was that the other channel is half as active, no one responded :\
<jhass>
no reason to not inform about it
viblo has quit [Ping timeout: 255 seconds]
viblo__ is now known as viblo
twistedpixels is now known as zz_twistedpixels
jfran has joined #ruby
<dionysus69>
jhass: ok sorry, will do in future :)
_beechnut has joined #ruby
<jhass>
all there's to expect ;)
sandelius has joined #ruby
eichenwald has quit [Quit: WeeChat 1.0.1]
faitswulff has joined #ruby
viblo_ has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
aclearman037 has quit [Quit: I'm out!]
havenwood has joined #ruby
pandaant has joined #ruby
wldcordeiro_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
checkit has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
klmlfl has quit [Remote host closed the connection]
Savoyard has quit [Quit: (null)]
bricker`work has joined #ruby
Fire-Dragon-DoL has joined #ruby
Stoge88 has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
sargas has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
armyriad has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
iRockZ_ has joined #ruby
apeiros_ has joined #ruby
pimeys_ has joined #ruby
delianides has quit [Remote host closed the connection]
MatthewsFace has quit [Read error: Connection reset by peer]
iRockZ_ has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
avril14th has quit [Ping timeout: 265 seconds]
dotsspwe has quit [Quit: Leaving.]
<pimeys_>
I'm having a problem with HTTP headers. Currently I'm using mongrel2 as a http server and get the headers as JSON. The headers string is ASCII, but when I parse the json to a ruby hash, all strings turn into UTF-8.
psy_ has quit [Ping timeout: 245 seconds]
arclitgold has quit [Quit: leaving]
<pimeys_>
What is the best practise: convert the keys and values to UTF-8 or keep them in ASCII somehow?
tristanp has quit [Remote host closed the connection]
whoisjake has quit []
iLike has quit [Read error: Connection reset by peer]
blindsight has quit [Ping timeout: 258 seconds]
msgodf has quit [Ping timeout: 244 seconds]
ValicekB has joined #ruby
<apeiros_>
pimeys_: there is no ascii json. json is utf-8.
<pimeys_>
of course when you have some non-utf8 characters in ASCII, you convert the string to UTF-8, you can fail pretty hard with some string operations if there's some weird characters.
rshetty_ has quit [Remote host closed the connection]
avril14th has joined #ruby
* jhass
fetches popcorn
<pimeys_>
apeiros_: yep, but again mongrel2 is returning the headers as ASCII string, which is JSON
<pimeys_>
should I ask from the mongrel people, can it be a problem with mongrel2?
dotsspwe has joined #ruby
<pimeys_>
that it should handle the encoding of the string
deric_skibotn has joined #ruby
sea_local has quit [Remote host closed the connection]
dotsspwe has quit [Max SendQ exceeded]
<apeiros_>
*sob*
dotsspwe has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
dotsspwe has quit [Max SendQ exceeded]
dfinninger has joined #ruby
dotsspwe has joined #ruby
<apeiros_>
jhass: can I get some of your popcorn?
dotsspwe has quit [Max SendQ exceeded]
avril14th has joined #ruby
dotsspwe has joined #ruby
<jhass>
nah, you're part of the play, no popcorn for the actors!
dotsspwe has quit [Max SendQ exceeded]
dotsspwe has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros_>
down with the 4th wall!
dotsspwe has quit [Max SendQ exceeded]
tristanp has joined #ruby
mengu has quit [Remote host closed the connection]
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
<jhass>
pimeys_: so, do you have an actual problem? like some code not working?
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
avril14th has quit [Remote host closed the connection]
jlast has joined #ruby
<pimeys_>
jhass: yes, happends very rarely, but sometimes we have faulty headers
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
avril14th has joined #ruby
<jhass>
like?
<pimeys_>
having weird characters, like every 100M requests
<jhass>
example?
dotsspwe has joined #ruby
theotherstupidgu has quit [Ping timeout: 240 seconds]
dotsspwe has quit [Max SendQ exceeded]
<pimeys_>
I have a test case now, which is crashing, when user agent is "User\xF2Agent"
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
blindsight has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
blindsight is now known as Guest10632
<jhass>
crashing how? why do I need to squeeze every detail out of you?
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
dotsspwe has joined #ruby
<pimeys_>
"User\xF2Agent".split
<pimeys_>
ArgumentError: invalid byte sequence in UTF-8
dotsspwe has quit [Max SendQ exceeded]
theotherstupidgu has joined #ruby
<apeiros_>
pimeys_: your string isn't even ascii.
<pimeys_>
I know
<apeiros_>
lol
<apeiros_>
ok
<pimeys_>
but sometimes headers have weird characters
moritzs has quit [Ping timeout: 264 seconds]
<pimeys_>
for some weird reason
<apeiros_>
I'm out of this. there be insanity.
<pimeys_>
like I said, around every 100M request
<jhass>
soo
lbrf has joined #ruby
<jhass>
this probably is just some fuzzer
<jhass>
what's your question again?
avril14th has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
<jhass>
given we determined that this is not ASCII and not UTF-8
mikecmpbll has quit [Ping timeout: 255 seconds]
avril14th has joined #ruby
<apeiros_>
thanks banister
<pimeys_>
trying to figure out if the headers are ASCII, but mongrel sends them as JSON, should the parsed hash also be ASCII or should we handle the faulty characters after parsing the json using scrub or something
<pimeys_>
I know how to fix this, but I'd like to have some sense for the problem before going furthe
<pimeys_>
r
<jhass>
apeiros_ already said that JSON is defined to be in UTF-8
<jhass>
if you get invalid UTF-8 you get invalid JSON
<pimeys_>
yep, and headers should be ASCII
<jhass>
for this matters, every valid ASCII is valid UTF-8
agjacome has quit [Quit: leaving]
lbrf_ has joined #ruby
lbrf has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
<pimeys_>
and it seems mongrel2 is still sending the headers as JSON, but the string format seems to be ASCII
<jhass>
what's .encoding saying exactly?
valeriansaliou has joined #ruby
ta has joined #ruby
Savoyard has joined #ruby
<apeiros_>
jhass: you cheater. eating popcorn before becoming an actor. *pouts*
<jhass>
ASCII-8bit is ruby's way of saying "random byte sequence"
<jhass>
apeiros_: :P
<Hanmac>
jhass: "Invalid UTF8, invalid JSON" ;P sounds like some saying from one of the Pirates of the caribian movies ;p
* apeiros_
still considers "ascii-8bit" a misnomer
<jhass>
yeah
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
<apeiros_>
but I guess the intention was to say: "7bit are ascii, 8bit bytes are possible"
Savoyard has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
<apeiros_>
s/are ascii/are interpreted as ascii/
<apeiros_>
after all, binary could also be ebcdic or whatsitsname
timonv_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
Vocoder has joined #ruby
<Hanmac>
today will be the last time i could be online at home because my system died and the RAID could not protect me ... i will send in my harddrives to restore data even if it does cost me "much" money
paulfm has quit [Quit: Zzzzz...]
faitswulff has quit [Quit: Leaving.]
<apeiros_>
Hanmac: :(
viblo_ has joined #ruby
<apeiros_>
Hanmac: good luck!
<apeiros_>
Hanmac: when do you expect to be back?
patrick99e99 has joined #ruby
<eam>
Hanmac: backups :( raid is for HA, not data protection
<apeiros_>
reminds me that I still need an off-site backup
<Hanmac>
eam: yeah ... if i still have some money i will buy an NAS next year ...
viblo__ has joined #ruby
marr has quit []
tvw has quit []
<Hanmac>
apeiros_ i buyed new harddrives already and will install a total new system at the weekend ... but i try to be online at work ;P
<eam>
I just spent a tiny bit on a usb external drive
<pimeys_>
hmm, when digging further it looks like it's actually ZeroMQ which is encoding the string as ASCII-8BIT
viblo has quit [Ping timeout: 255 seconds]
viblo__ is now known as viblo
<pimeys_>
uuh
asmodlol has quit [Ping timeout: 240 seconds]
<jhass>
so, as said don't view "ascii-8bit" as ascii
<Hanmac>
eam what does mean HA in your last sentence?
avril14th has quit [Remote host closed the connection]
<jhass>
view it as "I've no clue what this is"
timonv_ has joined #ruby
avril14th has joined #ruby
georgesmith has joined #ruby
<jhass>
true ascii would be US-ASCII
<jhass>
iirc
<apeiros_>
yes
<apeiros_>
ascii = 7bit
<eam>
Hanmac: high availability
<apeiros_>
binary (in any meaningful modern system) = 8bit
asmodlol has joined #ruby
<apeiros_>
so "\xF2" -> *not* ascii.
<eam>
RAID is for tolerating a fault and staying live, which is a use case distinct from disaster recovery
Pumukel has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
Techguy305 has quit [Ping timeout: 245 seconds]
chthon has quit [Ping timeout: 244 seconds]
<apeiros_>
hm… I just realized that I can throw away redundancy in the offsite backup. so I don't have to buy the same size of disks for it.
<Hanmac>
eam my current problem: the raid worked and the data is still there ... its only the LVM metadata that got corupted ... (and so it cant find the logical volumes in the RAID)
viblo_ has quit [Ping timeout: 258 seconds]
elaptics is now known as elaptics`away
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
roolo has quit [Remote host closed the connection]
allcentury has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
_beechnut has quit [Ping timeout: 272 seconds]
_beechnut has joined #ruby
paulfm has joined #ruby
chrishough has joined #ruby
klmlfl has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
JimmyNeutron has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 255 seconds]
pauly_oc has joined #ruby
asmodlol has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
fandi has quit [Ping timeout: 245 seconds]
<finges>
Anyone have any good resources on how to deal with Gem versioning conflicts. I have 2 gems that require different versions of Rspec.
jamesaxl has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
yourabi has joined #ruby
Eiam has joined #ruby
aclearman037 has joined #ruby
ChoiKyuSang_ has quit [Remote host closed the connection]
<jhass>
there's not much you can do, find the version that require compatible versions and/or get upstream of both to support the newest version
<jhass>
which gems are we talking about?
studiotate has joined #ruby
ChoiKyuSang has joined #ruby
codezomb has joined #ruby
<finges>
rspec-puppet and serverspec 2
lbrf_ has quit [Quit: Be back later ...]
<bricker`work>
finges: yeah you'll just have to downgrade one of the gems probably. Bundler is just doing its job :)
boombadaroomba has joined #ruby
<finges>
rspec-puppet is getting close I think to pushing to rspec3. Serverspec v2 only supports rspec 3
<finges>
Yep... I suspected as much.
<bricker`work>
finges: or, better yet, fork rspec-puppet, add rspec 3 support, and then open a PR with them.
Savoyard has quit [Quit: (null)]
wjimenez5271 has joined #ruby
<jhass>
if you use bundler and there's a branch somewhere that supports 3, you can try using that
djbkd has joined #ruby
ramfjord has joined #ruby
druznek has quit [Ping timeout: 258 seconds]
treehug88 has quit [Ping timeout: 245 seconds]
ixti has quit [Ping timeout: 250 seconds]
claymore has joined #ruby
claymore has quit [Remote host closed the connection]
Calmoto has quit [Ping timeout: 255 seconds]
c0rwin has quit [Ping timeout: 250 seconds]
antgel has quit [Ping timeout: 245 seconds]
<pipework>
finges: If rspec-puppet has tests, try just bumping the rspec version constraint in the gemfile to allow for rspec 3 and then run the tests.
treehug88 has joined #ruby
djbkd has quit [Client Quit]
pietr0 has joined #ruby
dfinninger has quit [Remote host closed the connection]
studiotate has quit [Quit: Computer has gone to sleep.]
green-big-frog is now known as frog|OFF
natevick has joined #ruby
<Hanmac>
eam what do you say about that cruelity that while the LVM metadata is real data is more or less there, but not available for me? ... i think karma does go some very good stuff for me next year to equal that shit out ...
<sandelius>
havenwood yeah tried it but it put a lot opal javascript in the compiled version.
kiyote23 has quit [Ping timeout: 258 seconds]
<havenwood>
sandelius: so you want a to_url function in js?
evanjs has quit [Remote host closed the connection]
jenrzzz has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
<sandelius>
havenwood no I'm just fiddleing around and find more reasons why I should avoid node and js :)
theotherstupidgu has joined #ruby
renderful has quit [Remote host closed the connection]
iRockZ1 has left #ruby [#ruby]
<sandelius>
havenwood we get soo much from Ruby and it would be nice to see how javascript would do this.
<sandelius>
havenwood It's node hysteria at my work and I'm trying to calm the boys down :)
rdark has quit [Quit: leaving]
mleone has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
iRockZ1 has joined #ruby
natevick has quit [Client Quit]
tjbiddle has joined #ruby
mleone has joined #ruby
<havenwood>
sandelius: JavaScript is far from my forte. I think ##javascript is probably the best place to ask, they shouldn't have trouble with that Ruby.
pushpak has joined #ruby
iRockZ1 has left #ruby [#ruby]
<Pumukel>
Hi, did anyone ever used unicorn combined with mozilla-circus instead of piping the sockets throug nginx?
byprdct has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
MrIlyas has joined #ruby
<Pumukel>
I search for a documentation or something of the configuration for unicorn to be able to use unicorn as flexible as possible with circus
iRockZ1 has joined #ruby
Obfuscate has joined #ruby
bears has joined #ruby
<Hanmac>
so i will shutdown my pc and deassable it ... we will see each other in the next live ... *plays a farwell song*
<pontiki>
it's been lovely, Hanmac
<pontiki>
we shall miss you both, and await your return in the summerland
dumdedum has quit [Quit: foo]
havenwood has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
siso has joined #ruby
jobewan has joined #ruby
AxonetBE has joined #ruby
toretore has quit [Ping timeout: 272 seconds]
<AxonetBE>
what are you usign as replacement string in an url? I was using for example /wsdl/:marketplace/:feed_id/:order_id/:action.xml"
Savoyard has joined #ruby
<jhass>
AxonetBE: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
aspires has quit []
tristanp has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
marcules has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
aspires has joined #ruby
Kabaka has joined #ruby
antgel has joined #ruby
<Pumukel>
which is the right ruby channel to get answers on unicorn?
bricker`1ork has joined #ruby
bricker`1ork is now known as bricker
bricker`work has quit [Disconnected by services]
iRockZ1 has left #ruby [#ruby]
bricker is now known as bricker`work
<pontiki>
Pumukel: this and #rubyonrails would be my choices. however, it doesn't necessarily mean anyone in either place has the answers you're seeking
all-liquid has joined #ruby
renderful has joined #ruby
parduse has joined #ruby
seanosaur has joined #ruby
avelldiroll has joined #ruby
<all-liquid>
guys is ruby available on Windows platform?
ramfjord has joined #ruby
<shevy>
godd2 good, you are a busy beaver but the others here are slacking
<shevy>
godd2 I am trying to finish most of my rewrites before 2014 is over; in 2015 I will dive into C and rails so it'll be busy (programming is only and ever a hobby for me)
agit0 has joined #ruby
evanjs has quit [Remote host closed the connection]
<godd2>
all-liquid Ive only ever done it the RubyInstaller way, but that should work too
evanjs has quit [Read error: Connection reset by peer]
akaiiro has joined #ruby
<all-liquid>
godd2 thanks for heads up man
msgodf has joined #ruby
Ankhers has quit [Remote host closed the connection]
<sandelius>
How cannot people jump the node train and miss out on ruby stdlib or even python. Not even usable loops in javascript. This makes me angry!
evanjs has joined #ruby
m8 has joined #ruby
<godd2>
yea! screw javascript! *goes back to opal development*
jamesaxl has joined #ruby
m8 has quit [Changing host]
m8 has joined #ruby
<miah>
i find the ruby stdlib a bit lacking; especially when it comes to unix'y stuff
<eam>
miah: +1 to that
<waxjar>
what do you miss? :o
browndawg has quit [Quit: Leaving.]
<miah>
minitar is a mess
<miah>
the ssh gem is unmaintained
Hanmac has quit [Quit: Leaving.]
<eam>
waxjar: the object model fights with you if you do anything complex
<sandelius>
miah then we have stuff to do this weekend ;)
<eam>
there's no good 1:1 map for basic posix functions
<godd2>
on line 17, the Dog constructor is calling the parent method of the same name (initialize) with the "super" method.
<godd2>
oops, I forgot to inherit from Animal. refresh to see the change
<godd2>
I always forget one thing
bogeyd6 has joined #ruby
doodlehaus has joined #ruby
Ankhers has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
agit0 has joined #ruby
studiotate has joined #ruby
tristanp has joined #ruby
<unholycrab>
i want to load a required gem by its source code, instead of doing apt-get install rubygems; gem install somegem. is this a good idae?
<unholycrab>
i would rather package it all together and require gem by its absolute path
<miah>
why require by absolute path?
<miah>
i mean; require 'foo/bar' is gonna work
<pontiki>
gem install is better than using apt-get install, but should not need the absolute path for require
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah>
you can use bundler, or a dependency in your .gemspec to add dependencies.
<pontiki>
^
<miah>
otherwise you're gonna have a bad time
commmmodo has joined #ruby
happyface has joined #ruby
jenrzzz has joined #ruby
michaeldeol has joined #ruby
gsd has joined #ruby
<unholycrab>
i guess im just trying to avoid installing packages on a host
<unholycrab>
thanks miah
Savoyard has quit [Quit: (null)]
wald0 has quit [Ping timeout: 245 seconds]
siso has quit [Read error: Connection reset by peer]
whoisjake has joined #ruby
<miah>
you can 'bundle package'
<miah>
ship your app, with its vendor/cache
<unholycrab>
yeah there we go
<miah>
untar
sinkensa_ has quit [Remote host closed the connection]
<miah>
bundle install
<miah>
and its magical
<unholycrab>
this is probably what im looking for
Macaveli has joined #ruby
dotix has joined #ruby
commmmodo has quit [Quit: commmmodo]
<unholycrab>
man this channel is good im becomming such a pro now
checkit has quit [Quit: (null)]
pwnz0r has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
dc has quit [Ping timeout: 244 seconds]
icebourg has joined #ruby
jherbst has joined #ruby
dc has joined #ruby
<miah>
<3
Macaveli has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
pwnz0r has joined #ruby
pwnz0r has quit [Remote host closed the connection]
Channel6 has joined #ruby
kl has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
parduse has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
commmmodo has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
commmmodo has quit [Client Quit]
tier has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<hfp>
Hey all, I'm a bit confused how to install Ruby on a server. I am trying to setup a dev/staging VM and I need Ruby on it to run Adhearsion (VoIP framework). I was thinking going with rbenv, but it seems it installs only for a specific user and not system wide?
tuelz has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
commmmodo has joined #ruby
econerd4ever has joined #ruby
sk87 has joined #ruby
<pipework>
hfp: You probably need to read the README.
Takle_ has quit [Remote host closed the connection]
<pipework>
I know that RVM and ruby-install/chruby support installing and using rubies system-wide.
<hfp>
pipework: Ok, maybe I misunderstood then
jlast has quit [Ping timeout: 264 seconds]
lessless has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
GaryOak_ has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4ever has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
econerd4ever has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
davedev2_ has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
rylev has joined #ruby
econerd4ever has quit [Remote host closed the connection]
geggam has joined #ruby
econerd4ever has joined #ruby
timonv_ has joined #ruby
seanosaur has quit []
tier has joined #ruby
neoxquick has joined #ruby
sambao21 has joined #ruby
rubyshop has joined #ruby
<jhass>
unholycrab: also check bundle install --deployment
spider-mario has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 250 seconds]
valeriansaliou has joined #ruby
spider-mario has joined #ruby
jmdade has joined #ruby
frem has joined #ruby
commmmodo has quit [Quit: commmmodo]
emmesswhy has quit [Quit: This computer has gone to sleep]
postmodern has joined #ruby
valeriansaliou has quit [Ping timeout: 240 seconds]
ixti has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Takle has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
rubyshop has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 240 seconds]
msgodf has quit [Ping timeout: 258 seconds]
Savoyard has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
robertt_dex has quit [Ping timeout: 255 seconds]
commmmodo has joined #ruby
<jhass>
hfp: depending on the OS there might be packages with recent versions
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
djbkd has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
Takle has quit [Read error: No route to host]
Takle_ has joined #ruby
robertt_dex has joined #ruby
boombadaroomba has joined #ruby
fabrice31 has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
msull92 has joined #ruby
msull92 has left #ruby [#ruby]
louism2wash has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dts|pokeball has quit [Quit: is a client command Fabtasticwill]
fabrice31 has quit [Ping timeout: 272 seconds]
<louism2wash>
Hey guys, If I clone a project that has it's gems cached in directory in the project do I still need to run 'bundle install' or does the project know to reference the vendor/cache directory to look for gems?
delianides has quit [Remote host closed the connection]
<miah>
because people may use something other than git
oleo__ has quit [Quit: Verlassend]
<epitron>
but rails is opinionated! :)
* epitron
adds that to his ~/.railsrc
<miah>
i know; and i avoid it like the plague
<ReinH>
epitron: It's opinionated about things it can control.
<ReinH>
It can't control whether or not you have git installed.
<epitron>
gem install git
<epitron>
:D
<bitcycle>
godd2: Hey, just got back from lunch. Thanks for that example! super(*args) is what I was looking for, and that will send _all_ stuff to the constructor of the base class, right?
<epitron>
i wonder how much slower a pure-ruby git would be
<shevy>
bitcycle depends on what args is
<ReinH>
epitron: A rough guess? 100x slower.
<epitron>
hahah
<godd2>
bitcycle only if the class sending the args has *args in its method call
<ReinH>
epitron: I'm not joking...
<epitron>
yeppp
<ReinH>
git is extremely fast even for C
delianides has joined #ruby
<epitron>
mercurial is at least 10x slower than git
<epitron>
and that's only in PYTHON
viblo has quit [Ping timeout: 258 seconds]
<bitcycle>
godd2, shevy, hmm... in python there's *args and **kwargs that are builtin to the language syntax. Is there such a thing in ruby? I just assumed that args was a thing.
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
you can not rename args in python?
<godd2>
bitcycle ** works for keyword arguments in ruby
chipotle_ has joined #ruby
<bitcycle>
godd2: so, def foo(**kw_args_hash) would work?
<bitcycle>
epitron: I read an article once upon a time that talked about ruby not supporting the **kwargs syntax, and that it said that you should just pass a hash as a single argument and parse the hash.
<epitron>
i guess, if you break your code up into lots of little methods, you don't need methods with so many options that you need to start naming them
byprdct has joined #ruby
<junix659>
i just installed something using gem as a user, and deleted it from my homedir, now after I installed the same program as root, when I execute this as a user it says it can't find the program (tmuxinator) what did I do wrong? I can't find the path n my profile
<epitron>
bitcycle: that was before they added kwargs
<bitcycle>
epitron: tell me about it. Legacy code can be a pain to work with.
mengu has joined #ruby
mengu has joined #ruby
<epitron>
kwargs are relatively new
<bitcycle>
epitron: I'm using ruby 1.9.2p290
<godd2>
keyword args are great for code that you intend to be used by other developers
<Guest72086>
well, innovative user names are hard to be unique
p0wn3d_mhs has joined #ruby
commmmodo has quit [Quit: commmmodo]
<Guest72086>
What is the way to do what we used to do in C, press Y to enter again. I have a hash like items = {rice: 100, milk: 20} and I would like the user to enter the item and quantity, multiple times and calculate the resultant price.
ponga has joined #ruby
pietr0 has quit [Quit: pietr0]
shazaum has quit [Quit: This computer has gone to sleep]
<godd2>
it creates well enough, but it doesn't update correctly
freerobby has joined #ruby
kyank_ has quit [Ping timeout: 272 seconds]
anaeem___ has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 240 seconds]
theotherstupidgu has quit [Ping timeout: 250 seconds]
boombadaroomba has joined #ruby
theotherstupidgu has joined #ruby
pwnz0r has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
wjimenez5271 has joined #ruby
valeriansaliou has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
joast has joined #ruby
Takle has joined #ruby
mallu has joined #ruby
<mallu>
I'm trying to install minitest-chef-handler gem. One of the dependency is chef. How can I tell the gem to use currently install chef?
roolo has joined #ruby
wildroman2 has joined #ruby
valeriansaliou has quit [Client Quit]
allcentury has quit [Ping timeout: 265 seconds]
valeriansaliou has joined #ruby
nanashiRei has joined #ruby
evanjs has quit [Remote host closed the connection]
ki0 has joined #ruby
<havenwood>
eguneys: You can probably simplify things. But I'll just throw this out there: %w[display_name reputation age].map.with_object({}) { |meth, hash| value = user.public_send(meth) and hash[meth] = value }
roolo has quit [Ping timeout: 265 seconds]
tyll_ has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
tyll has quit [Ping timeout: 256 seconds]
pwnz0r has joined #ruby
<havenwood>
though I guess `each_with_object` instead of `map.with_object` >.>
paulfm has quit [Quit: Goodbye]
<havenwood>
just just: hash = {}; ...; hash
<havenwood>
or just*
iRockZ has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
iRockZ has left #ruby [#ruby]
<waxjar>
note that'll also omit "false" as a value, not just nil
<havenwood>
apparently trying to eat a hot dog and code is too much for me to do at once
_djbkd has quit [Remote host closed the connection]
ponga has joined #ruby
djbkd has joined #ruby
<havenwood>
but i finished the dog :)
mleone has quit [Ping timeout: 250 seconds]
Photism has joined #ruby
tyll has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<havenwood>
%w[display_name reputation age].each_with_object({}) { |meth, hash| value = user.public_send(meth); hash[meth] = value unless value.nil? }
djbkd has joined #ruby
tyll_ has quit [Ping timeout: 256 seconds]
palms has joined #ruby
startupality has quit [Ping timeout: 258 seconds]
allcentury has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dts|pokeball has quit [Quit: Leaving]
lbrf_ has joined #ruby
palms has quit [Client Quit]
dts|pokeball has joined #ruby
<havenwood>
seems #each_with_object should really be named #map_with_object
pwnz0r has quit [Remote host closed the connection]
bl4ckdu5t has quit [*.net *.split]
djbkd has quit [Remote host closed the connection]
Megtastique has quit []
tyll_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
Takle has joined #ruby
tyll has quit [Ping timeout: 255 seconds]
Savoyard has quit [Quit: (null)]
Ankhers has quit [Remote host closed the connection]
<waxjar>
hmm, you're not mapping over the original collection in the sense of #map and #map!
Megtastique has joined #ruby
pietr0 has joined #ruby
fabrice31 has joined #ruby
__main__ has quit [Ping timeout: 264 seconds]
<havenwood>
waxjar: aren't you?
codecop has quit [Remote host closed the connection]
<havenwood>
waxjar: just instead of reducing by shoveling onto an Array, you're supplying the initial object and doing the reducing step manually
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
waxjar: but the returning of the initial object seems more map-like than each-like to me
ohaibbq has quit [Quit: Leaving...]
dfinninger has quit [Remote host closed the connection]
<havenwood>
waxjar: wtb transducers :P
Megtastique has quit [Client Quit]
obscured has quit [Quit: leaving]
startupality has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
<havenwood>
i'd like #map to take an optional argument for alternative initial object, then another optional reducing step
tristanp has quit [Remote host closed the connection]
<havenwood>
so the verbose expression of current behavior would be: map [], :<<
<waxjar>
that seems more like a #reduce/#inject to me than a #map
nfk has quit [Quit: yawn]
<havenwood>
waxjar: i like the way they're doing it in Clojure 1.7
<waxjar>
#each_with_object is more of a #reduce as well, except you don't have to return the accumulator at the end of the block
Prometheian has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
ki0 has quit []
<zenspider>
alternative initial object?
<zenspider>
that doesn't make sense
<havenwood>
zenspider: so instead of shoveling onto an array, have something other than an array be the initial object
<zenspider>
initial object? you mean collection, no?
<waxjar>
for #map i'd except just a transformation of each element, not of the container itself
startupality has quit [Quit: startupality]
<godd2>
zenspider transducers return transducers so you can shovel onto anything you want
<zenspider>
map totally works on ANY enumerable, so you're not confined to shoveling onto an array
<zenspider>
godd2: don't tell me that. tell havenwood :P
junix659 has quit [Quit: Leaving]
TgMts has joined #ruby
<havenwood>
zenspider: just using clojure terminology. it works off of any source collection that mixes in Enumerable. but all those Enumerable reducing methods reduce to an Array.
Savoyard has joined #ruby
<havenwood>
zenspider: No matter what you're mapping from, you're mapping to an Array.
<zenspider>
this is true
<zenspider>
I haven't had it be a problem that I recall. I don't remember if the current version does, but it would be nice if it at least respected subclasses
bl4ckdu5t has joined #ruby
<havenwood>
So the idea is, same old map, just an option to map to something other than an Array with a reducing step other than :<<.
<pipework>
akaiiro: Maybe bring it to ##regex or something like that.
shyshy has quit [Ping timeout: 272 seconds]
<shevy>
that's an example for a regex that has gone cancer
<akaiiro>
LOL!
havenn has quit [Remote host closed the connection]
<akaiiro>
yes
<godd2>
akaiiro well "simpler" could just mean that you construct the regex ahead of time giving various pieces names so that it's easier to understand
<shevy>
what should it match against anyway?
<godd2>
looks like serial numbers?
<akaiiro>
bitcoin base58 addresses
Sgeo has quit [Quit: No Ping reply in 180 seconds.]
<CrazyM4n>
There's a ##regex? I'd like to think that they just talk about regex golfing the whole time
<godd2>
ah then probably not. those are generated cryptographically so the regexes are gonna be horrendous
sandelius has quit [Client Quit]
Sgeo has joined #ruby
dts|pokeball is now known as dts
<shevy>
hehehe
havenwood has joined #ruby
<akaiiro>
Bitcoin address is an identifier (account number), starting with 1 or 3 and containing 27-34 alphanumeric Latin characters (except 0, O, I)
davedev24_ has joined #ruby
<akaiiro>
mmmmm
<godd2>
[^0OI]
geilt has quit [Ping timeout: 255 seconds]
<zenspider>
godd2: that matches too much
<zenspider>
but while a 2-pass regex might be easier to read, it'll be 2x slower
<godd2>
I know, but he can exclude from an existing range
kyank_ has joined #ruby
<CrazyM4n>
How about /.*/
<CrazyM4n>
That should match it
<CrazyM4n>
:P
rismoney1 has quit [Ping timeout: 250 seconds]
<akaiiro>
I have a field that can hold a list of those
bmichelsen has quit [Quit: ZZZzzz…]
<akaiiro>
so it could be something like
<godd2>
akaiiro you also have to consider what is surrounding your target search. if what you're regexing over only has addresses, then you dont have to worry about much
sambao21 has quit [Quit: Computer has gone to sleep.]
ponga has quit [Ping timeout: 265 seconds]
xiq__ has joined #ruby
Xiti` has joined #ruby
procat has quit [Read error: Connection reset by peer]
procat has joined #ruby
klaas has quit [Read error: Connection reset by peer]
klaas has joined #ruby
charliesome has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
icebourg_ has joined #ruby
freerobby has joined #ruby
tenseiten has joined #ruby
tenseiten has quit [Changing host]
tenseiten has joined #ruby
dc_ has joined #ruby
Takle_ has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
mloveless has joined #ruby
Takle_ has joined #ruby
damic has quit [Ping timeout: 256 seconds]
damic has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
duncannz has quit [Remote host closed the connection]
dc has quit [Ping timeout: 256 seconds]
icebourg has quit [Ping timeout: 264 seconds]
xiq_ has quit [Ping timeout: 264 seconds]
Xiti has quit [Ping timeout: 256 seconds]
seitensei has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dopagod has joined #ruby
chipotle has joined #ruby
duncannz has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
duncannz has quit [Max SendQ exceeded]
Sgeo has quit [Quit: No Ping reply in 180 seconds.]
ItSANgo has quit [Quit: Leaving...]
Sgeo has joined #ruby
duncannz has joined #ruby
rylev has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
_beechnut has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
atomical has joined #ruby
kiyote23 has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
rylev has joined #ruby
pandaant has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
bogeyd6 has quit [Read error: Connection reset by peer]
kyote has quit [Changing host]
kyote has joined #ruby
malcolmva has quit [Ping timeout: 264 seconds]
commmmodo has joined #ruby
t3h_j4n170r has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
Savoyard has joined #ruby
econerd4ever has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
asmodlol has quit [Ping timeout: 244 seconds]
econerd4ever has quit [Client Quit]
speersj_ has joined #ruby
dopie has joined #ruby
Soda has quit [Remote host closed the connection]
asmodlol has joined #ruby
Savoyard has quit [Ping timeout: 256 seconds]
dopie has quit [Remote host closed the connection]
moritzs has joined #ruby
chrishough has joined #ruby
jaequery has joined #ruby
bricker has quit [Remote host closed the connection]
bricker`work has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dmarr has joined #ruby
dts is now known as BillsPC
<dmarr>
Anyone know why i'd see this with gulp-ruby-sass: Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Max SendQ exceeded]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
malcolmva has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
BillsPC is now known as dts|pokeball
troulouliou_dev has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
boombadaroomba has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
fandi has joined #ruby
kalusn has quit [Remote host closed the connection]
jlast has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
<zenspider>
dmarr: because they're incompatible? you're prolly reading in binary and passing through utf8 regexps?
Heskie has quit []
<dmarr>
hmm its possible. feel like it might be an enviroment thing, my coworkers are running the same task with the same version of ruby and don't get this error
giuseppesolinas has joined #ruby
tuelz has quit [Ping timeout: 260 seconds]
jeff-ooh has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mengu has quit [Remote host closed the connection]
<godd2>
zenspider mapping is just reducing into a collection.