apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<jhass> kl: Foo foo = (Foo) Bar.new // casting; int foo = Integer.parseInt("1") // conversion
<jhass> er, new Bar
<jhass> you get the important part
mroach has joined #ruby
<siaw> havenn: 2nd edition
<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
<apeiros> you probably mean static-typed people?
Pupeno has joined #ruby
Pupeno has joined #ruby
<apeiros> (strong/weakly typed; dynamically/statically typed)
<kl> apeiros: bah, yes I did. I don't even know the definition of strongly/weakly-typed: I avoid those terms *always* except for typos :)
Beoran__ has joined #ruby
<kl> at least static/dynamic has some consensus
<apeiros> you could probably say weakly typed is autocast/-convert :)
<jhass> kl: let me find that lovely php snippet that demonstrates weak typing
<havenn> kl: consensus in what sense?
<apeiros> jhass: oh, the one which checks hash checksums and fails?
lzco has quit [Remote host closed the connection]
<apeiros> please let it be that one, I was looking for that recently
LudicrousMango has quit [Remote host closed the connection]
<agent_white> kl: /shrug - Haha I mean for people that complain 'x is better than y'... nurrmind!
<jhass> kl: ^
<jhass> apeiros: no, but I have that one too, sec
<kl> havenn: static / dynamic typing is surely quite obvious, unless you have a counter-example
reinaldob has quit [Remote host closed the connection]
<jhass> apeiros: https://eval.in/108854
<apeiros> aaahaha, yes
mgberlin has quit [Ping timeout: 265 seconds]
<apeiros> charliesomme found quite a couple of security bugs based on that one
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 258 seconds]
<siaw> jhass: i don’t believe that :o
<kl> jhass: um, wtf is going on in the 2nd
<siaw> hahahaaaaa
mkaesz has quit [Ping timeout: 256 seconds]
<apeiros> kl: scientific notation of numbers
<jhass> kl: same as the first
<apeiros> >> 0e123
<eval-in__> apeiros => 0.0 (https://eval.in/234601)
<jhass> 0e145 is a number
sk87 has joined #ruby
<apeiros> >> 0e12312312 == 0e3542423
<eval-in__> apeiros => true (https://eval.in/234602)
<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
Zolty_ has quit [Ping timeout: 250 seconds]
<jhass> my guess it tries until it finds true
<havenn> kl: Matz has said soft typing is a real possibility for Ruby 3.0: http://scholarship.rice.edu/handle/1911/16439
<havenn> "type checking for dynamically typed languages"
<jhass> so "0e20" == "0e20" probably doesn't convert
<kl> jhass: what's going on with the Ruby one? Nothing looks off there - but it doesn't look like anything's really testing it, either
<jhass> kl: which ruby one?
<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
dc has quit [Ping timeout: 258 seconds]
<jhass> arooni: just puts item.accessor ?
mgberlin has quit [Ping timeout: 244 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<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]
rshetty_ has joined #ruby
russt has quit [Quit: russt]
ishikawa91 has joined #ruby
xymbol___ has quit [Quit: Be back later ...]
jlast has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xymbol___ has joined #ruby
lysw123 has joined #ruby
davedev24_ has joined #ruby
crack_user has quit [Quit: Leaving.]
bmichelsen has quit [Quit: ZZZzzz…]
byprdct has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
dfinninger has joined #ruby
<mroach> Ah, nice that GitHub supports it. Sweet as
lysw123 has quit [Ping timeout: 258 seconds]
Deele has joined #ruby
lampd1 has quit []
tus has quit []
dfinninger has quit [Ping timeout: 245 seconds]
dopie has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Takle has joined #ruby
yourabi has joined #ruby
tsunamie has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
yourabi has quit [Client Quit]
tsunamie has joined #ruby
sea_loca_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 260 seconds]
sea_local has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
jk__ has joined #ruby
jk__ has quit [Excess Flood]
sea_local has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
gsd has joined #ruby
faitswulff has joined #ruby
sk87 has joined #ruby
valeriansaliou has joined #ruby
sevenseacat has joined #ruby
mary5030 has joined #ruby
dc has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
dc has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 258 seconds]
_5kg has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Remote host closed the connection]
frog|OFF is now known as green-big-frog
sumark has quit [Remote host closed the connection]
timonv_ has joined #ruby
Channel6 has quit [Quit: Leaving]
<green-big-frog> good morning
pu22l3r has quit [Remote host closed the connection]
sumark has joined #ruby
freerobby has quit [Quit: Leaving.]
lxsameer has joined #ruby
CrazyM4n has quit [Quit: Leaving]
neoxquick has quit [Ping timeout: 272 seconds]
<agent_white> \o
jenrzzz has joined #ruby
Adran has quit [Quit: Este é o fim.]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 258 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
russt has joined #ruby
newton has joined #ruby
Savoyard has joined #ruby
<newton> with TCPSocket, is there a way to specify socket.puts length when sending?
sea_local has joined #ruby
Adran has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
red_horned_rihno has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
beilabs has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
Savoyard has quit [Ping timeout: 244 seconds]
kiyote23 has joined #ruby
beilabs has joined #ruby
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]
aspires has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
kiyote23 has joined #ruby
rimantas has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
jeff-ooh has quit [Ping timeout: 250 seconds]
greenbagels has quit [Ping timeout: 264 seconds]
<pontiki> i am always here
<pontiki> :(
<pontiki> captain nosleep, that's me
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.
cbetta__ is now known as cbetta_
kaplejon_ is now known as kaplejon
nemesit|znc has joined #ruby
amitchellbullard has joined #ruby
Auv has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
bove_ is now known as bove
dukedave_ is now known as dukedave
dfinninger has quit [Ping timeout: 245 seconds]
lele has joined #ruby
<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
dumdedum has joined #ruby
Savoyard has quit [Ping timeout: 264 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle_ has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
kalusn has quit [Remote host closed the connection]
<tucket> is this channel active?
yeticry has joined #ruby
<pontiki> sometimes, tucket
<shevy> always depends on the question
<hephaestus_rg> what do you mean 'proof it's working correctly'
<tucket> i'm surprise no one is responding to a bootstrap question.. fairly common, surely
<tucket> ?
<pontiki> tucket: you might get better mileage in #rubyonrails, though, for your question
<shevy> just a title like "integrating rails and bootstrap" is an ideal question for #rubyonrails rather than #ruby
fabrice31 has joined #ruby
sinkensabe has joined #ruby
Morkel has quit [Quit: Morkel]
<hephaestus_rg> speaking of ruby, does anyone know a good card/deck library that serializes decks to json?
<shevy> I don't think it is common at all here, you are probably the second who asked about it here - in the last 3 months :D
<tucket> pontiki: is there a quick command to change channel
<tucket> #channel rubyonrails
<pontiki> also, tucket, you've not actually asked a question anyone has any hope of answer
<agent_white> tucket: Why not follow the github readme for bootstrap? They've tidied it up quite a bit to get settled into your app
<pontiki> tucket: /join #rubyonrails
<tucket> ty
<tucket> will do
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
<hephaestus_rg> i'd like to serialize decks to and from json to save them between starts of my program
shyshy has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
vpdn has joined #ruby
jlast has joined #ruby
<shevy> yeah
<shevy> you asked that a few times already
<shevy> Here is the docu how to use JSON http://www.ruby-doc.org/stdlib-2.0/libdoc/json/rdoc/JSON.html
tucket has left #ruby [#ruby]
<shevy> so simply go and store the json data somewhere; on startup check that file
pwnz0r has quit [Remote host closed the connection]
vpdn has quit [Ping timeout: 272 seconds]
decoponio has joined #ruby
hephaestus_rg has quit [Ping timeout: 272 seconds]
armyriad has quit [Ping timeout: 240 seconds]
Stoge88 has joined #ruby
TomyWork has joined #ruby
oo_ has quit [Remote host closed the connection]
amundj has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
bal has joined #ruby
oo_ has joined #ruby
GGMethos has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
vpdn has joined #ruby
oo_ has joined #ruby
frog|OFF has quit [Quit: I just got killed...]
xiq_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
lxsameer has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
oo_ has quit [Remote host closed the connection]
Xeago has joined #ruby
atomi has quit [Ping timeout: 265 seconds]
kalusn has joined #ruby
sandelius has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
russt has quit [Quit: russt]
bal has quit [Quit: bal]
jenrzzz has joined #ruby
bal has joined #ruby
oo_ has joined #ruby
aswen has joined #ruby
SOLDIERz has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
jheg_ has joined #ruby
kl has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
sk87 has joined #ruby
<shortCircuit__> do I need to require minitest for writing a test like this in ruby http://pastie.org/private/ib1nb48crbm2sr39huftxw
xymbol___ has quit [Quit: Be back later ...]
kl has quit [Ping timeout: 265 seconds]
tesuji has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
vpdn has quit [Ping timeout: 256 seconds]
bears_ has quit [Remote host closed the connection]
jusmyth1 has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
GGMethos has joined #ruby
terlar has joined #ruby
marr has joined #ruby
ARCADIVS has joined #ruby
einarj has joined #ruby
kl has joined #ruby
timonv_ has joined #ruby
bal has quit [Quit: bal]
jheg_ has quit [Quit: jheg_]
ixti has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
pewpew has joined #ruby
cleopatra has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 260 seconds]
webgen has joined #ruby
Guest29867 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Joufflu has quit [Read error: Connection reset by peer]
kl has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
<webgen> hey guys can you help me with nickserv stuff
gokulnath has quit [Read error: Connection reset by peer]
<webgen> I want to be able to join #rubyonrails on startup, it requires I have reserved nickname :\
iwishiwerearobot has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
bal has joined #ruby
gokulnath has joined #ruby
<certainty> webgen: do /msg nickserv help
_5kg has quit [Ping timeout: 255 seconds]
<shevy> you must register webgen https://freenode.net/faq.shtml
LouisRoR has joined #ruby
CustosL1men has joined #ruby
<webgen> thanks !
kevinxu has joined #ruby
ixti has joined #ruby
kevinxu is now known as Guest19314
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
jlast has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
exadeci has joined #ruby
sk87 has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
jeff-ooh has joined #ruby
lessless has joined #ruby
bal has quit [Ping timeout: 260 seconds]
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
olivier_bK has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
kamilc__ has quit [Quit: Leaving...]
msgodf has joined #ruby
chthon has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
jeff-ooh has quit [Ping timeout: 256 seconds]
Morkel has joined #ruby
amclain has quit [Quit: Leaving]
elaptics`away is now known as elaptics
eka has joined #ruby
Takle has joined #ruby
davedev24_ has quit [Remote host closed the connection]
Mattias has left #ruby ["WeeChat 0.4.2"]
aswen has joined #ruby
Takle_ has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
bahamas has joined #ruby
ayaz has joined #ruby
webgen is now known as dionysus
goshdarnyou has quit [Quit: Connection closed for inactivity]
mepholic has joined #ruby
dotsspwe has quit [Quit: Leaving.]
mepholic has left #ruby ["WeeChat 1.0.1"]
st0mar has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 260 seconds]
dionysus is now known as dionysus69
ghr has joined #ruby
<bahamas> hello. how can I find where a method is defined? I have a 'set' method in a file and I want to know what defines it
chinmay_dd has joined #ruby
olivier_bK has quit [Quit: Quitte]
Pupeno has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
Pupeno has joined #ruby
olivier_bK has joined #ruby
roolo has joined #ruby
<bahamas> the method is not 'required', so I don't even know what module it's coming from
<certainty> bahamas: you might find it using the Method#source_location ... method(:set).source_location
<certainty> ideally receiver.method(:set).source_location
<bahamas> certainty: method(:set).source_location worked. thanks
<bahamas> now to discover what uses that lib
<cleopatra> hello ruby people
<cleopatra> :)
chipotle_ has quit [Quit: cheerio]
<cleopatra> mmm
Savoyard has joined #ruby
chipotle has joined #ruby
<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"
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<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]
Inoperable has joined #ruby
<shevy> perl is still not dead eam, look:
<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()
<eval-in__> shevy => we set bahamas on jamaica! ... (https://eval.in/234711)
dfinninger has quit [Ping timeout: 250 seconds]
<bahamas> ok, so I need to add include Specinfra::Helper:Set
<shevy> for example
<avril14th> you got it
st0mar has quit [Client Quit]
anarang has quit [Ping timeout: 245 seconds]
<avril14th> but you should read more to understand what's going on. including is a subtle thing
LouisRoR1 has joined #ruby
<bahamas> hm. if I used serverspec in the 'normal' way, I didn't have to do that. I wonder what's different
Inoperable has quit [Client Quit]
lemur has quit [Ping timeout: 258 seconds]
<avril14th> the method probably wasn't in a module
<avril14th> so when you loaded the file it was right accessible from the global namespace
LouisRoR has quit [Ping timeout: 250 seconds]
Inoperable has joined #ruby
<bahamas> avril14th: you mean the same method is defined somewhere else or what do you mean it wasn't in a module?
oo_ has quit [Remote host closed the connection]
<avril14th> bahamas: one sec
<shevy> bahamas have you looked at the .rb files? I am sure one of them loaded and included that part
boombadaroomba has joined #ruby
Xeago has joined #ruby
<shevy> it's the only logical thing because otherwise, it could not have possibly worked
anarang has joined #ruby
<shevy> for some of my gems, when I am lazy, I create a file called autoinclude.rb which loads the gem and also includes the module automatically
<avril14th> bahamas: start a ruby oncsole, require or load the file https://gist.github.com/muichkine/a9a36d64cbc89d8601f0 and try to access both methods
kl__ has quit [Ping timeout: 258 seconds]
sandelius has joined #ruby
picassoo has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
kyb3r_ has quit [Quit: Leaving]
kl__ has joined #ruby
doev has joined #ruby
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
kiyote23 has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
toretore has joined #ruby
<bahamas> shevy: this is the traceback, if it helps https://bpaste.net/show/36fb054be9a9
ohaibbq has quit [Quit: Leaving...]
ruisanto1 is now known as ruisantos
<bahamas> I see that my files are 'load'ed
<shevy> yeah that is a crazy path
DefV has quit [Ping timeout: 245 seconds]
Guest19314 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kapil__ has quit [Quit: Connection closed for inactivity]
<shevy> I'd have absolutely no idea where to start looking what's wrong, I am just glad that my paths are much simpler :)
<shevy> what I suspect is that the include line simply is not done
<bahamas> what do you mean? because I have two different locations?
<shevy> no
<shevy> well that also
<shevy> from /Users/lucian/.vagrant.d/gems/gems
<shevy> but it seems you also have an extra (???) home dir with yet another bunch of gems (?????)
<shevy> I have a system wide installation for gems
<shevy> all my gems are at /usr/lib/ruby/gems/ - no exception ever
<bahamas> now I notice what you mean. it's not loading from the system wide installation for gems
<shevy> oh so you also have a system wide installation
<shevy> it drives me crazy to have things in multiple locations, that's why I try to radically simplify everything
agjacome has joined #ruby
<shevy> at work I had to use a --home-directory option for gems, as I had no access to /usr/lib*
<shevy> no wait... what was the name...
<bahamas> yeah. it looks like vagrant is searching only in its own locations for gems
anarang has quit [Ping timeout: 258 seconds]
<shevy> gem install --user-install name_of_the_gem_here
<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
anarang has quit [Quit: Leaving]
anarang has joined #ruby
<shevy> oh damn
<shevy> that's the wrong link... they are old men there :(
<platzhirsch> shevy: sorry that I called you rattle snake last night
<shevy> hey
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> that is the first time I see you here in like 3 months
Xeago has quit [Remote host closed the connection]
kl__ has quit [Ping timeout: 258 seconds]
grzywacz has joined #ruby
grzywacz has joined #ruby
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'
sandelius has joined #ruby
<shevy> I ate them when I was in London!
Savoyard has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
chihhsin has quit [Quit: leaving]
<agent_white> crump'n donuts...
jenrzzz has quit [Ping timeout: 258 seconds]
konsolebox has joined #ruby
platzhirsch has joined #ruby
<avril14th> Dunkin < Krispy Kreme
jeanlinux has joined #ruby
jusmyth1 has left #ruby [#ruby]
<bahamas> shevy. can you explain in more detail how can I see the full path of a required file?
Soda has joined #ruby
kevinxu has joined #ruby
<shevy> bahamas can you? try to use caller
Savoyard has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
kevinxu is now known as Guest45400
<shevy> and $LOAD_PATH and $: I suppose
<shevy> require 'pp'; pp $LOAD_PATH; pp $:; def foo; pp caller; end; foo
Guest45400 has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
Inoperable has quit [Quit: Rectified]
Pupeno_ has joined #ruby
mroach has joined #ruby
reinaldo_ has joined #ruby
kl__ has joined #ruby
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> I don't know what is serverspec
Pupeno has quit [Ping timeout: 265 seconds]
relic has quit [Quit: ZNC - http://znc.in]
jlast has joined #ruby
reinaldo_ is now known as reinaldob
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
xymbol___ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
moritzs has quit [Ping timeout: 264 seconds]
<bahamas> shevy: thanks. I got some results
<bahamas> if I look for a certain name that was supposed to be imported, it should have a 'caller' too, no?
viblo has joined #ruby
tokik has quit [Ping timeout: 250 seconds]
xymbol___ has quit [Ping timeout: 258 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
fandi has quit [Quit: Leaving]
sk87 has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
timonv_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
fabrice31 has quit [Remote host closed the connection]
krz has joined #ruby
grzywacz has quit [Ping timeout: 258 seconds]
anarang has quit [Quit: Leaving]
axilla_ has joined #ruby
rylev has joined #ruby
kl__ has quit [Ping timeout: 260 seconds]
ajaiswal has quit [Quit: Leaving]
reinaldob has quit [Read error: Connection reset by peer]
Inoperable has joined #ruby
max96at|off is now known as max96at
sigurding has quit [Quit: sigurding]
cvtsx1 has joined #ruby
reinaldob has joined #ruby
<shevy> caller is for methods
<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]
viblo has quit [Client Quit]
emmesswhy has quit [Client Quit]
viblo has joined #ruby
Guest18152 is now known as _chs_
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
uber_hulk has quit [Ping timeout: 264 seconds]
reinaldob has joined #ruby
larissa has joined #ruby
beilabs has joined #ruby
LouisRoR1 has quit [Ping timeout: 244 seconds]
Zamyatin has joined #ruby
kl__ has joined #ruby
* certainty tips hat
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
<wasamasa> lukbitz: don't enforce java truths onto ruby
<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
<wasamasa> lukbitz: it's about structuring code
<shevy> what you suggest is a different model where the user of a code is disallowed from accessing objects in ruby
<shevy> and that simply is not the ruby OOP model
<shevy> you want to forbid .send
<borkdude_> is it possible to shift a range with a value, for example (1..10) + 1 so you get 2..11 ?
<shevy> borkdude_ good question
<shevy> NoMethodError: undefined method `+' for 1..10:Range
<shevy> hmm
<shevy> borkdude_ I guess Range itself does not have a trivial way to do that
kp666 has quit [Quit: Leaving]
<shevy> you could suggest this as a new feature to Range at http://bugs.ruby-lang.org/projects/ruby-trunk
icbm has quit [Quit: Computer sleeping]
sandelius has joined #ruby
<lukbitz> shevy: I understand.
sandelius has quit [Max SendQ exceeded]
paulfm has joined #ruby
chinmay_dd_ has joined #ruby
<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: so, yes
<shevy> use java
<wasamasa> lukbitz: it's security theater
<wasamasa> lukbitz: if you want to do business with people who are impressed by fat libraries and dead code, use java
kedare has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<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 :)?
Suchit has joined #ruby
Suchit has quit [Client Quit]
techsethi_ has joined #ruby
<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 joined #ruby
hmsimha has joined #ruby
dotix has joined #ruby
djdarkbeat has joined #ruby
fandi has joined #ruby
paulfm has joined #ruby
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Musashi007 has quit [Quit: Musashi007]
freerobby has quit [Quit: Leaving.]
allcentury has joined #ruby
vt102 has joined #ruby
livingstn has quit [Ping timeout: 240 seconds]
tier has joined #ruby
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]
jlast has joined #ruby
enebo has joined #ruby
theotherstupidgu has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
kl has joined #ruby
tuelz has joined #ruby
<tuelz> trying to remove hashes in an array that have a nil value with no success
TrafficMan has joined #ruby
mary5030 has joined #ruby
Savoyard has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
kl__ has quit [Ping timeout: 245 seconds]
arya_ching has quit []
red_horned_rihno has quit [Ping timeout: 264 seconds]
<avril14th> tuelz: array.compact
<apeiros_> tuelz: empty hashes don't have values, so they don't have values which are nil either
<avril14th> ah no wait
red_horned_rihno has joined #ruby
<apeiros_> uh, worse even.
bigkevmcd has joined #ruby
<tuelz> apeiros_: ahh, gotcha, so how would I remove the empty hash?
<tuelz> avril14th: no dice on compact
<apeiros_> tuelz: array.reject! { |k, v| # <-- arrays do not have key/value
<avril14th> tuelz: array.select{ |i| i.value.nil? }
kiyote23 has quit [Remote host closed the connection]
<avril14th> tuelz: array.delete_if{ |i| i.value.nil? } sorry :)
<apeiros_> interesting result you get…
kiyote23 has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
<tuelz> apeiros_: I know, I just tried in irb and got something different...
kl has quit [Ping timeout: 240 seconds]
<avril14th> [{:val => 1},{:vvv => nil}].delete_if{ |a| a.value.first.nil? }
<avril14th> >> [{:val => 1},{:vvv => nil}].delete_if{ |a| a.value.first.nil? }
<eval-in__> avril14th => undefined method `value' for {:val=>1}:Hash (NoMethodError) ... (https://eval.in/234888)
<apeiros_> tuelz: no wonder I'm surprised over your result - you do not get that result
<waxjar> array.reject! { |h| h.any?{ |_,v| v.nil? } }
<avril14th> >> [{:val => 1},{:vvv => nil}].delete_if{ |a| a.values.first.nil? }
<eval-in__> avril14th => [{:val=>1}] (https://eval.in/234890)
<avril14th> waxjar version is even better
rbennacer has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
hgl has quit [Ping timeout: 258 seconds]
rbennacer has quit [Remote host closed the connection]
arya_ching has joined #ruby
marr123 has joined #ruby
* apeiros_ would prefer if people helped tuelz in a way he understands what he actually does
kiyote23 has quit [Remote host closed the connection]
<apeiros_> because right now they quite obviously don't
rbennacer has joined #ruby
grn has joined #ruby
marr has quit [Ping timeout: 245 seconds]
valeriansaliou has joined #ruby
marr123 is now known as marr
timonv_ has joined #ruby
<grn> How can I monkey patch a module in a method? I need a setup method that performs the patch.
jerius has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
<apeiros_> grn: it sounds like you're doing something horribly bad in a very bad way. how you can do it: use module_eval
kl has joined #ruby
<tuelz> apeiros_: in my app I
<tuelz> 'm getting that result
<tuelz> in irb I don
<tuelz> 't
<apeiros_> tuelz: then you don't do in your app what you do in irb
<tuelz> apeiros_: I know, lol trying to figure out the difference now
<apeiros_> either not the same data, not the same code, or both.
<apeiros_> my bet is on data.
vyorkin has joined #ruby
hgl has joined #ruby
sailias has joined #ruby
<avril14th> tuelz: not same code could appear if you do irb on one side and rails console on the other though
eindoofus has joined #ruby
snath has joined #ruby
valeriansaliou has quit [Ping timeout: 245 seconds]
arya_ching has quit [Ping timeout: 256 seconds]
Livadi has joined #ruby
oleo has joined #ruby
<tuelz> trying to remove all hashes with a value of nil
eindoofus has quit [Read error: Connection reset by peer]
<tuelz> which I guess don't actually exist?
mateNz has joined #ruby
<tuelz> or only exist as emnpty hashes
_5kg has joined #ruby
icbm has joined #ruby
DaniG2k has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
<Senjai> You may wish to check out that one
<tuelz> Senjai: thanks
Alina-malina has quit [Read error: Connection reset by peer]
<waxjar> just a nitpick: an empty Hash is {}, { :key => nil } isn't empty :)
<waxjar> it has a key :key, with value nil.
<tuelz> waxjar: thanks for the clarification
anaeem1 has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
<Senjai> I also am not to keen on that structure
Timgauthier has joined #ruby
<Senjai> Not sure if you have control over that or not
icbm has quit [Client Quit]
Timgauthier is now known as timgauthier_away
Alina-malina has joined #ruby
chinmay_dd has quit [Ping timeout: 250 seconds]
<Senjai> tuelz: myArray.select { |hash| hash.values.all? { |val| val.present? }}
<Senjai> would be my preferred solution
<Senjai> But again, I would structure the data a lot better if you have the ability to do it
obscured has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
<tuelz> Senjai: yeah I guess I should've realized the structure sucked about 5 minutes into playing with it
<tuelz> :p
gjptpx has joined #ruby
<Senjai> Is it a structure you made?
anaeem1_ has joined #ruby
cajone has quit [Remote host closed the connection]
dcarmich has joined #ruby
Rapier- has quit [Quit: (null)]
dcarmich has quit [Client Quit]
<tuelz> Senjai: yeah, after some manipulaation my code made it that way
<Senjai> Okay
<Senjai> SO you're solving a problem you dont need to solve
<tuelz> not entirely on purpose, just bad forsight
druznek has joined #ruby
<tuelz> exactly
<Senjai> tuelz: You should begin by asking yourself if what you're trying to do is harder than it should be
<tuelz> the problem is I should've never made that structure :p
evanjs has joined #ruby
<druznek> Hi to all :))
<Senjai> more often if you're trying to force a square peg into a round hole
<Senjai> you can do it better
snath has quit [Ping timeout: 258 seconds]
<tuelz> Senjai: remind me that every 30 minutes and I'll be good :p
<Senjai> Problem #1, hashes don't have to have their own position, you can put hashes in an array, the array will contain the appropriate order
<druznek> Quick question: has Dir.tmpdir been removed from the standard library?
<tuelz> knowing and drawing upon that knowledge are very different things for me >.<
ta has quit [Remote host closed the connection]
devoldmx33 has joined #ruby
cajone has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Senjai> tuelz: Secondly, if this is like a question with multiple choice answers
last_staff has quit [Quit: last_staff]
dumdedum has joined #ruby
<Senjai> tuelz: I would have each hash have a question key, and an answers key, where answers would be an array of answer objects
<druznek> Senjai, i have already seen the docs, i wanted to make sure. :)
<Senjai> tuelz: Which hints that you should actually have an array of something called Question
rbrs has quit [Quit: Leaving]
kamilc__ has joined #ruby
<druznek> was the method moved or just removed?
<Senjai> Where question has a body and has a list of possible Answer's
<Senjai> druznek: Idno mang
<Senjai> druznek: Dir.methods.grep /tmp/
dreinull has left #ruby ["undefined"]
commmmodo has joined #ruby
Savoyard has quit [Quit: (null)]
<druznek> >> Dir.methods.grep /tmp/
<eval-in__> druznek => [] (https://eval.in/234895)
<druznek> []
<druznek> damn
<Senjai> tuelz: ANd that's where OOP comes in, object orientated programming, so its likely that these shouldn't be just hashes :P
<druznek> Ok, thank you Senjai
surs has quit [Quit: leaving]
<Senjai> druznek: Why do you need it?
<druznek> :)
<tuelz> Senjai: makes sense.
<druznek> I need the location of the tmpdir on the system
chipotle has joined #ruby
<Senjai> druznek: if unix, /tmp, if windows, %TEMP%
<druznek> and i wanted to make sure that is system independent
<Senjai> iirc
<druznek> yes i know
<Senjai> Also
<Senjai> why do you need the system tmp directory
<Senjai> Just make your own tmp directory local to your project
jlast has quit [Ping timeout: 258 seconds]
<druznek> I think this will be my go to solution
<druznek> I didn't want to deal with the tmp cleanup\
timgauthier_away is now known as Timgauthier
Savoyard has joined #ruby
<Senjai> druznek: Looks like it was just extracted
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…]
jlast has quit [Ping timeout: 258 seconds]
uber_hulk has quit [Quit: leaving]
asmodlol has joined #ruby
Takle_ has joined #ruby
bal has quit [Quit: bal]
green-big-frog is now known as frog|OFF
hamakn has joined #ruby
endless_walrus has quit [Quit: Textual IRC Client: www.textualapp.com]
_beechnut has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
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]
emmesswhy has joined #ruby
asmodlol has joined #ruby
sargas has joined #ruby
MasterPiece has quit [Quit: Leaving]
jeff-ooh has joined #ruby
mroach has quit [Quit: mroach]
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
picassoo has joined #ruby
bahamas has joined #ruby
aspires has joined #ruby
sambao21 has joined #ruby
sigurding has quit [Quit: sigurding]
Areessell has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
asmodlol has quit [Ping timeout: 264 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
ghostbox has quit []
<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]
aclearman037 has joined #ruby
triple_b has joined #ruby
Techguy305 has joined #ruby
jobewan has joined #ruby
iRockZ has left #ruby [#ruby]
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
moritzs has joined #ruby
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…]
st0mar has joined #ruby
Macaveli has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
marr has joined #ruby
Savoyard has joined #ruby
econerd4ever has joined #ruby
ChoiKyuSang_ has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
ChoiKyuSang has quit [Ping timeout: 258 seconds]
ponga has joined #ruby
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]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
rylev has joined #ruby
tubuliferous has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
<shevy> pipework!
<shevy> there you are
<shevy> where have you been?
jlow1 has quit [Quit: WeeChat 1.0.1]
Takle has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
mateNz has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
workmad3 has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
rylev has quit [Remote host closed the connection]
asmodlol has joined #ruby
ixti has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
Takle_ has joined #ruby
godd2 has joined #ruby
tvw has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
Macaveli has joined #ruby
<pipework> shevy: Trying to prevent myself from sobering up, why?
GeorgesLeYeti has quit [Quit: Leaving]
gjptpx has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
kenichi has quit [Quit: ZNC - http://znc.in]
mleone has joined #ruby
momomomomo has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
wjimenez_ has joined #ruby
renderfu_ has quit [Remote host closed the connection]
tier has joined #ruby
emmesswhy has joined #ruby
psy_ has joined #ruby
n1lo has quit [Remote host closed the connection]
valeriansaliou has quit [Quit: Be back later ...]
dorei has joined #ruby
<shevy> people have been forgetting about the importance of good documentation while you were gone
Vocoder has quit [Quit: Leaving]
green-big-frog is now known as frog|eating
n1lo has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
<godd2> yea it's all your fault pipework
* pipework promises never to almost sober up ever again.
kenichi has joined #ruby
<pipework> I'll do my part.
delianides has joined #ruby
psmolen has quit [Ping timeout: 258 seconds]
theotherstupidgu has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
ziggles has quit [Remote host closed the connection]
kenneth has joined #ruby
iRockZ1 has joined #ruby
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
wjimenez_ is now known as wjimenez5271
fabrice31 has joined #ruby
jlast has joined #ruby
sailias has joined #ruby
econerd4ever has quit [Remote host closed the connection]
sandelius has joined #ruby
<shevy> \o/
<shevy> also people
<shevy> write more gems
<shevy> we need to dethrone cpan
econerd4ever has joined #ruby
psmolen has joined #ruby
klmlfl_ has joined #ruby
<godd2> shevy im doin my best. I already have 2 up
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<godd2> we only need, what, 48,000 more gems or so?
Hanmac has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
shyshy has quit [Ping timeout: 245 seconds]
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 256 seconds]
max96at is now known as max96at|off
klmlfl has quit [Ping timeout: 260 seconds]
xymbol___ has quit [Quit: Be back later ...]
momomomomo has quit [Quit: momomomomo]
oleo is now known as Guest60792
oleo__ has joined #ruby
Stoge88 has joined #ruby
VictorBjelkholm has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
renderful has joined #ruby
shyshy has joined #ruby
kl has quit [Ping timeout: 255 seconds]
Guest60792 has quit [Ping timeout: 250 seconds]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
devoldmx27 has joined #ruby
sailias has quit [Quit: Leaving.]
dc has joined #ruby
befective has joined #ruby
Kabaka has quit [Ping timeout: 256 seconds]
sarmiena_ has joined #ruby
avelldiroll has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Obfuscate has quit [Ping timeout: 264 seconds]
frog|eating is now known as green-big-frog
enebo has joined #ruby
devoldmx33 has quit [Ping timeout: 245 seconds]
enebo has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
davedev24_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
davedev24_ has joined #ruby
william3 has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
hamakn has joined #ruby
Hanmac has joined #ruby
Heskie has joined #ruby
devoldmx27 has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
Macaveli has quit [Ping timeout: 250 seconds]
davedev2_ has joined #ruby
tubuliferous has joined #ruby
hiyosi has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
AlSquire has joined #ruby
djbkd has quit [Remote host closed the connection]
pwnz0r has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
aspires has quit []
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<GaryOak_> can anyone actually write perl code, or do they just use a library?
chrishough has joined #ruby
LouisRoR has quit [Ping timeout: 256 seconds]
befective has quit [Quit: Page closed]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlSquire has quit [Client Quit]
<eam> GaryOak_: perl's pretty easy to work with
<eam> if you can write ruby you can write perl
<GaryOak_> I haven't even looked at, but only heard so much stuff surrounding it, I guess similar to the ruby community
dfinninger has joined #ruby
sailias has joined #ruby
aspires has joined #ruby
ponga has joined #ruby
kiyote23 has joined #ruby
<hdrv> godd2: and now we only need 39,998! good job ;)
djbkd has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
jobewan has quit [Ping timeout: 258 seconds]
<sandelius> hello my fellow rubyists. Is there a javascript ninja here that could help me translate this ruby snippet into javascript? https://gist.github.com/sandelius/37725e6248e00d80e1ec
platzhirsch has left #ruby [#ruby]
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 ...
<havenwood> sandelius: http://opalrb.org
<Hanmac> *the lvm data is gone*
ponga has quit [Ping timeout: 250 seconds]
<eam> Hanmac: bummer :(
<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
<GaryOak_> all-liquid: yes http://rubyinstaller.org/
<all-liquid> GaryOak_ nice:) thanks man
<godd2> all-liquid yes I develop in winders
<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]
t0rc has quit [Quit: WeeChat 1.0.1]
evanjs has joined #ruby
<all-liquid> godd2 https://bitnami.com/stack/ruby/installer and this http://railsinstaller.org/en is what I've got, im doing right so far right?
lolmaus has quit [Quit: Konversation terminated!]
tuelz has quit [Ping timeout: 272 seconds]
mateNz has joined #ruby
<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
<miah> there are for a few
jerius has quit []
Megtastique has quit []
<eam> here's a concrete example: I was doing descriptor passing over a unix domain socket
anaeem1 has quit [Remote host closed the connection]
<miah> those are handy; but ya
<miah> few and far between
<eam> there's sort of a half-assed collection of stuff in UNIXSocket for passing a fd, but it returns it as a generic IO
iRockZ1 has joined #ruby
<miah> interesting
<eam> so you have to muck around with a ton of crap to map it around to a different type
anaeem1 has joined #ruby
<eam> all I really want is to be able to use a descriptor directly
jamesaxl has quit [Client Quit]
evanjs has quit [Remote host closed the connection]
agit0 has quit [Quit: This computer has gone to sleep]
Megtastique has joined #ruby
<miah> i was having a really hard time getting unixsocket stuff working when i was trying to build a tool to speak to syslog-ng (and haproxy)
<miah> but its been a while and i dont recall the exact issue
Spami has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
evenix has joined #ruby
evanjs has joined #ruby
bitcycle has joined #ruby
<bitcycle> Hey all.
viblo has quit [Ping timeout: 258 seconds]
<eam> the right way to do things is to implement a 1:1 interface of the underlying api, then throw an object layer on top for simple use cases
<pontiki> hi
jlast has joined #ruby
<eam> but most of the ruby stuff is *only* the object layer and you have to write ffi if your use case doens't fit it
rpag has joined #ruby
<bitcycle> Could someone help me understand how to pass all arguments to a base class from a class that inherits from Base?
jerius has joined #ruby
viblo has joined #ruby
<godd2> bitcycle super *args ?
<miah> eam: ya that seems to be the case
<pontiki> you mean via super, bitcycle ?
<miah> use ffi for everything
arup_r has quit [Ping timeout: 240 seconds]
zz_twistedpixels is now known as twistedpixels
Deele has quit [Ping timeout: 260 seconds]
<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?
dts|pokeball has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
agjacome has joined #ruby
momomomomo has joined #ruby
<jhass> both
rshetty has joined #ruby
<jhass> vendor/cache caches the gem files
<jhass> it does not cache the installed versions
bricker`work is now known as bricker
<jhass> but if the cache is fully populated, bundle install will make no network connect
<jhass> also make sure to use bundle install --deployment on the server
<jhass> bundle help package and bundle help install have more info
trampi has quit [*.net *.split]
haroldwu has quit [*.net *.split]
mahlon has quit [*.net *.split]
Rylee has quit [*.net *.split]
nevans has quit [*.net *.split]
thoraxe has quit [*.net *.split]
Rydekull has quit [*.net *.split]
certainty has quit [*.net *.split]
maxmanders has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
soahccc has quit [*.net *.split]
angryzor has quit [*.net *.split]
susmus has quit [*.net *.split]
preller has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
vanderh0ff has quit [*.net *.split]
synfin has quit [*.net *.split]
napcae has quit [*.net *.split]
qz has quit [*.net *.split]
JDHankle has quit [*.net *.split]
gregf_ has quit [*.net *.split]
contradictioned has quit [*.net *.split]
totesjakey has quit [*.net *.split]
jmaister has quit [*.net *.split]
eval-in__ has quit [*.net *.split]
yasu has quit [*.net *.split]
pibby has quit [*.net *.split]
s_e has quit [*.net *.split]
Kovensky has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
finges has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
qpls_ has quit [*.net *.split]
scottyob has quit [*.net *.split]
Muz has quit [*.net *.split]
eregon has quit [*.net *.split]
FifthWall has quit [*.net *.split]
neoice has quit [*.net *.split]
nullsign has quit [*.net *.split]
clocKwize_ has quit [*.net *.split]
pizzaops has quit [*.net *.split]
ahuman has quit [*.net *.split]
crodas has quit [*.net *.split]
xybre has quit [*.net *.split]
ryotarai has quit [*.net *.split]
sweeper has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
Scient has quit [*.net *.split]
IceyEC_ has quit [*.net *.split]
okinomo_ has quit [*.net *.split]
davidcelis has quit [*.net *.split]
n88 has quit [*.net *.split]
wmoxam has quit [*.net *.split]
crazysim has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
eythoriu1 has quit [*.net *.split]
jerius has quit []
scottyob has joined #ruby
jmaister has joined #ruby
susmus has joined #ruby
haroldwu has joined #ruby
trampi has joined #ruby
mahlon has joined #ruby
Rylee has joined #ruby
nevans has joined #ruby
thoraxe has joined #ruby
Rydekull has joined #ruby
qz has joined #ruby
gregf_ has joined #ruby
Muz has joined #ruby
maxmanders has joined #ruby
Kovensky has joined #ruby
contradictioned has joined #ruby
s_e has joined #ruby
thejoecarroll has joined #ruby
neoice has joined #ruby
pizzaops has joined #ruby
ryotarai has joined #ruby
eythoriu1 has joined #ruby
clocKwize_ has joined #ruby
wmoxam has joined #ruby
angryzor has joined #ruby
ahuman has joined #ruby
FifthWall has joined #ruby
synfin has joined #ruby
soahccc has joined #ruby
finges has joined #ruby
crazysim has joined #ruby
crodas has joined #ruby
napcae has joined #ruby
eval-in__ has joined #ruby
Scient has joined #ruby
scottymeuk has joined #ruby
yasu has joined #ruby
xybre has joined #ruby
nullsign has joined #ruby
julieeharshaw has joined #ruby
pibby has joined #ruby
vanderh0ff has joined #ruby
certainty has joined #ruby
qpls_ has joined #ruby
mhenrixon has joined #ruby
JDHankle has joined #ruby
n88 has joined #ruby
eregon has joined #ruby
mr_rich101 has joined #ruby
davidcelis has joined #ruby
sweeper has joined #ruby
SirCmpwn has joined #ruby
totesjakey has joined #ruby
IceyEC_ has joined #ruby
preller has joined #ruby
okinomo_ has joined #ruby
yasu has quit [Excess Flood]
robertt_dex has quit [Excess Flood]
psmolen has quit [Read error: Connection reset by peer]
yasu_ has joined #ruby
jlast has joined #ruby
lucyinthesky_ has joined #ruby
headius is now known as IlIlIIlIllIlI
rshetty has quit [Ping timeout: 245 seconds]
IlIlIIlIllIlI is now known as headius
robertt_dex has joined #ruby
psmolen has joined #ruby
jerius has joined #ruby
totesjakey has quit [Ping timeout: 250 seconds]
samuel02 has quit [Ping timeout: 244 seconds]
realli has quit [Ping timeout: 244 seconds]
djbender has quit [Ping timeout: 244 seconds]
ruby236 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has joined #ruby
droidburgundy has joined #ruby
realli has joined #ruby
djbender has joined #ruby
samuel02 has joined #ruby
emmesswhy has joined #ruby
ruby236 has quit [Client Quit]
faitswulff has joined #ruby
faitswulff has left #ruby [#ruby]
chrishough has joined #ruby
kl has quit [Ping timeout: 265 seconds]
<miah> if you want it to be local packages only you need to pass --deployment or --local
antgel has joined #ruby
<miah> but ya; read the docs =)
p0wn3d_mhs has quit [Quit: WeeChat 0.4.3]
iRockZ1 has quit [Quit: Leaving.]
maletor_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> i wonder why "rails new" doesn't also do "git init; git add .; git commit -m 'First commit'"
maletor has joined #ruby
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
kl has joined #ruby
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?
<epitron> foo to the power of kw_args_hash
lucyinthesky_ is now known as lucyinthesky
<shevy> you use weird names man
junix659 has joined #ruby
<epitron> sorry
<epitron> foo (to the power of kw_args_hash)
<shevy> >> def foo(**kw_args_hash); end
<eval-in__> shevy => :foo (https://eval.in/235057)
<godd2> bitcycle I haven't used ** yet, I just know it's there. lemme find an article on line that will walk through it
<epitron> i still don't really use ruby kwargs either
<epitron> i think i used them once or twice
djbkd has joined #ruby
<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
<epitron> ah
<epitron> then you'll have to use hashes
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
chipotle has quit [Ping timeout: 272 seconds]
<epitron> def method(options={})
Takle has joined #ruby
<godd2> setting defaults on an options hash can be a hassle
<epitron> method :opt=>value, :opt2=>value2
<epitron> the pattern i used to use was: options[:opt] ||= default
<bitcycle> godd2: does the hash class in ruby have a getter that allows for a default value when the key isn't present?
<epitron> just a bunch of those at the top of your method
<godd2> bitcycle yes. you pass a block to Hash.new
<epitron> or you an go, "defaults = { ... }; options = defaults.merge(options)"
<bitcycle> epitron: ah, that's right. cool.
<epitron> or you just pass a value
mengu has quit [Remote host closed the connection]
<epitron> Hash.new(5)
<shevy> >> hash = Hash.new; hash.default = "We go fishing."; hash[:yo]
<eval-in__> shevy => "We go fishing." (https://eval.in/235062)
<epitron> that'll make a hash that returns 5 instead of nil
<shevy> bitcycle ^^^
<bitcycle> Hey all. Thanks for the help in understanding ruby classes and super.
bitcycle has quit [Quit: leaving]
Takle_ has quit [Ping timeout: 260 seconds]
<epitron> BYE BYE
<godd2> >> hash = Hash.new { |h, k| h[k] = 7 }; hash[:a]
<eval-in__> godd2 => 7 (https://eval.in/235063)
byprdct has quit [Client Quit]
toretore has joined #ruby
oleo has joined #ruby
tercenya has joined #ruby
sigurding has joined #ruby
GaryOak_ has joined #ruby
<epitron> >> hash = Hash.new {|h,k| h[k] = h }; hash[:whee]; hash
<eval-in__> epitron => {:whee=>{...}} (https://eval.in/235065)
n1lo has quit [Quit: Leaving]
<epitron> INFINITE HASH
lucyinthesky has quit [Ping timeout: 245 seconds]
<godd2> I wonder what the Hausdorff dimension of that hash is
<epitron> haha
<pipework> epitron: Well, that's not as nice as this.
<epitron> i used to know how to calculate that
freerobby has quit [Quit: Leaving.]
<pipework> >> Hash.new {|h,k| h[k] = h.class.new(&h.default_proc);h }
<eval-in__> pipework => {} (https://eval.in/235067)
robertt_dex has quit [Remote host closed the connection]
haha has joined #ruby
<pipework> >> Hash.new {|h,k| h[k] = h.class.new(&h.default_proc);h[:lol][:wat][:now] }
<eval-in__> pipework => {} (https://eval.in/235068)
<haha> hello
<shevy> that nick makes me laugh
haha is now known as Guest72086
<Guest72086> :D
<shevy> that nick makes me sad
delianides has quit []
<shevy> now you are one among many
<godd2> was it any different before?
lolmaus has joined #ruby
<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]
byprdct has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Hobogrammer_ has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
ixti has joined #ruby
shanlar- has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
deric_skibotn_ has joined #ruby
theotherstupidgu has joined #ruby
pietr0 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
pietr0 has quit [Client Quit]
<epitron> is there a way to implement mkdir_p with Hash.new{} ?
<epitron> i think i tried that at first
<epitron> i ended up having to do recursion
sheepman has quit [Ping timeout: 245 seconds]
wjimenez_ has joined #ruby
<epitron> i don't think you can take a flat structure and apply it recursively to a chain of methods
sigurding has quit [Quit: sigurding]
m8 has quit [Quit: Sto andando via]
joast has quit [Ping timeout: 245 seconds]
_djbkd has joined #ruby
<epitron> YOU HAVE A CHALLENGE PEOPLE
chipotle has joined #ruby
<Guest72086> o/
echooo1 has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Ping timeout: 245 seconds]
Gadgetoid has quit [Ping timeout: 245 seconds]
clamstar has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
patric100e99 has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
alexherbo2 has quit [Ping timeout: 245 seconds]
rotti_love has quit [Ping timeout: 245 seconds]
ccooke has quit [Ping timeout: 245 seconds]
timonv^ has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 245 seconds]
chipotle_ has quit [Ping timeout: 245 seconds]
kl has quit [Ping timeout: 245 seconds]
sandelius has quit [Ping timeout: 245 seconds]
rpag has quit [Ping timeout: 245 seconds]
akaiiro has quit [Ping timeout: 245 seconds]
wjimenez5271 has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 245 seconds]
jstad has quit [Ping timeout: 245 seconds]
sarlalian has quit [Ping timeout: 245 seconds]
pasv^_^ has quit [Ping timeout: 245 seconds]
shanlar has quit [Ping timeout: 245 seconds]
rainfyre has quit [Ping timeout: 245 seconds]
j416 has quit [Ping timeout: 245 seconds]
deric_skibotn_ is now known as deric_skibotn
wjimenez_ has quit [Remote host closed the connection]
whoisjake has quit [Ping timeout: 245 seconds]
asmodlol has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
cleopatra has quit [Ping timeout: 245 seconds]
radic has quit [Ping timeout: 245 seconds]
Pro| has quit [Ping timeout: 245 seconds]
KramerC has quit [Ping timeout: 245 seconds]
peterhu has quit [Ping timeout: 245 seconds]
viblo has joined #ruby
riceandbeans has quit [Ping timeout: 245 seconds]
kies has quit [Ping timeout: 245 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
riceandbeans has joined #ruby
ccooke has joined #ruby
rotti_love has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
yvemath has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
rainfyre has joined #ruby
pasv^_^ has joined #ruby
peterhu has joined #ruby
Pro| has joined #ruby
Zleec has joined #ruby
josephnd1nton has joined #ruby
jokke has quit [Quit: ninja vanish]
<Zleec> is this the channel for rails stuff?
BLuEGoD has joined #ruby
jokke has joined #ruby
rismoney1 has joined #ruby
CustosL1men has joined #ruby
sheepman has joined #ruby
agent_white has joined #ruby
KramerC has joined #ruby
sheepman is now known as Guest30738
<godd2> Zleec no, you want #rubyonrails
elaptics is now known as elaptics`away
kirun has quit [Quit: Client exiting]
commmmodo has joined #ruby
sandelius has joined #ruby
tyll has joined #ruby
commmmodo has quit [Client Quit]
clamstar has joined #ruby
tyll_ has quit [Ping timeout: 244 seconds]
bmichelsen has joined #ruby
commmmodo has joined #ruby
<Zleec> godd2 thanks
kl has joined #ruby
Megtastique has quit []
atmosx has joined #ruby
kies has joined #ruby
akaiiro has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
cleopatra has joined #ruby
sarlalian has joined #ruby
rpag has joined #ruby
alexherbo2 has joined #ruby
asmodlol has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
all-liquid has quit []
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyll_ has joined #ruby
byprdct has joined #ruby
tvw has joined #ruby
mateNz has quit [Quit: Lost terminal]
asmodlol has quit [Ping timeout: 245 seconds]
tyll has quit [Ping timeout: 258 seconds]
byprdct has quit [Max SendQ exceeded]
Eiam_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
asmodlol has joined #ruby
chipotle has quit [Quit: cheerio]
<Guest72086> ok gn8
anaeem___ has joined #ruby
dotix has quit [Quit: Leaving]
Megtastique has joined #ruby
pwnz0r has joined #ruby
kiyote23 has joined #ruby
wildroman2 has quit [Ping timeout: 265 seconds]
<pipework> Ah yes, all hail the good nate.
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
Takle has quit [Ping timeout: 256 seconds]
Heskie has quit [Read error: Connection reset by peer]
Guest72086 has quit [Quit: Page closed]
anaeem1 has quit [Ping timeout: 245 seconds]
yvemath has joined #ruby
Heskie has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
viblo has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
Megtastique has quit []
Takle has joined #ruby
tyll has joined #ruby
kiyote23 has quit [Remote host closed the connection]
tyll_ has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
kiyote23 has joined #ruby
startupality has quit [Quit: startupality]
klaas has joined #ruby
tvw has quit [Ping timeout: 244 seconds]
antgel has quit [Ping timeout: 272 seconds]
agit0 has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
eguneys has joined #ruby
<eguneys> how can I do this http://pastebin.com/mMYQs4fL
nanashiRei has quit [Remote host closed the connection]
<mozzarella> do what
<eguneys> build a hash while omitting nil values
Megtastique has joined #ruby
michaeldeol has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kyank_ has joined #ruby
econerd4ever has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
ghormoon has joined #ruby
kalusn has joined #ruby
decoponio has quit [Quit: Leaving...]
<godd2> epitron I got the first part: https://gist.github.com/nicklink483/6eaa693f10aa74b70076
startupality has joined #ruby
kyank has quit [Ping timeout: 258 seconds]
<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
ponga has quit [Ping timeout: 256 seconds]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
tier has quit [Remote host closed the connection]
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 :<<.
bl4ckdu5t has quit [Max SendQ exceeded]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as Guest27086
econerd4ever has quit [Quit: Leaving...]
CustosL1men has quit [Ping timeout: 264 seconds]
axilla_ is now known as axilla
<havenwood> Cognitect made a RubyGem that'll let you do it but the syntax is awkward and they don't take pull requests: https://github.com/cognitect-labs/transducers-ruby#readme
spider-mario has quit [Remote host closed the connection]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Savoyard has quit [Ping timeout: 264 seconds]
<zenspider> not sure why you keep using terms like reducing when you're not reducing...
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
hamakn has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
ixti has joined #ruby
CrazyM4n has joined #ruby
TgMts_ has joined #ruby
timonv^ has quit [Remote host closed the connection]
charliesome has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<havenwood> zenspider: That's just what the Clojure folk call it. The reducing step.
<havenwood> I'm probably using it inartfully given this is #ruby. :P
TgMts has quit [Ping timeout: 240 seconds]
wildroman2 has quit []
hamakn has quit [Remote host closed the connection]
<zenspider> it's not called reduce/reduce. it's called map/reduce. for a reason. they're math terms and they make sense.
<godd2> zenspider aparently they are all kinds of folding: http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29
<havenwood> zenspider: but within a map is a reduce
doodlehaus has quit [Remote host closed the connection]
<havenwood> whatever, i should be using Ruby terminology
djbkd has quit [Remote host closed the connection]
<zenspider> havenwood: I disagree
<zenspider> hrm... I've not seen haskell's foldt and foldi. what does the t and i stand for?
<waxjar> i think most (all?) the Enumerable methods can be implemented in terms of a reduce
<zenspider> tree?
<godd2> interleave perhaps?
TgMts_ has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
<zenspider> waxjar: sure they can. or map. or each. or whatever. that's part of the beauty
<waxjar> but once something's called map, it shouldn't behave like reduce anymore :P
djbkd has joined #ruby
<zenspider> interleave? increment?
<zenspider> λ> putStrLn $ foldi (\x y -> concat ["(",x,"+",y,")"]) "0" (map show [1..13])
<zenspider> (1+((2+3)+(((4+5)+(6+7))+((((8+9)+(10+11))+(12+13))+0))))
<zenspider> trying to make sense of that one
<zenspider> looks like it is doing one more group each time
louism2wash has quit [Quit: This computer has gone to sleep]
<zenspider> 1 + 2 + 2/2 + (2/2)2 ... I dunno if that's the pattern
enebo has quit [Quit: enebo]
<zenspider> nor do I have any clue when I'd want to do that
<zenspider> foldt looks interesting, still not sure when I'd want it
<zenspider> but I can come up with some BS example for it, I'm sure
sargas has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
havenn has joined #ruby
<zenspider> foldi :: (a -> a -> a) -> a -> [a] -> a
<zenspider> foldi f z [] = z
<zenspider> foldi f z (x:xs) = f x (foldi f z (pairs f xs))
<zenspider> I _think_ that's going the way I (poorly) described
hatzopoulos has joined #ruby
<godd2> zenspider it's probably more useful with monads
<zenspider> I know more ML than I know haskell, but they're pretty close in this regard
jlast has quit [Read error: Connection reset by peer]
<akaiiro> hello guys
geiltalasdair has joined #ruby
arescorpio has joined #ruby
sandelius has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
msull92 has joined #ruby
msull92 has left #ruby [#ruby]
<akaiiro> is there a way to make this regexp simpler?
<akaiiro> ([12][1-9A-HJ-NP-Za-z]{26,33}\,)*([12][1-9A-HJ-NP-Za-z]{26,33}\z){1}
<shevy> hmmmmm
emmesswhy has joined #ruby
<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
<akaiiro> 1FicJjxAbzUb9zULjBVxqobQWYToq4VmTW,1FicJjxAbzUb9zULjBVxqobQWYToq4VmTW,1rBauUTxko6FBiLspFMGEe1FWdLW49DjfR
Guest27086 is now known as bl4ckdu5t
bl4ckdu5t is now known as Guest24723
duncannz has joined #ruby
commmmodo has joined #ruby
duncannz has quit [Max SendQ exceeded]
geiltalasdair has quit [Quit: Leaving]
<zenspider> akaiiro: you might want to just have a single regexp for the hash itself, deal with the comma separation separately.
<godd2> >> "1FicJjxAbzUb9zULjBVxqobQWYToq4VmTW,1FicJjxAbzUb9zULjBVxqobQWYToq4VmTW,1rBauUTxko6FBiLspFMGEe1FWdLW49DjfR".scan /[^,]+/
<eval-in__> godd2 => ["1FicJjxAbzUb9zULjBVxqobQWYToq4VmTW", "1FicJjxAbzUb9zULjBVxqobQWYToq4VmTW", "1rBauUTxko6FBiLspFMGEe1FWdLW49DjfR"] (https://eval.in/235110)
geilt has joined #ruby
<zenspider> at the veriy least, you can nuke {1} immediately
Guest24723 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
CpuID has joined #ruby
<zenspider> I'd also write it as (pat)(,pat)*
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
<zenspider> I suspect yours can have some wierd backtracking characteristics
<zenspider> tho I've not dabbled in that shit for quite some time
duncannz has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<pipework> Regexp.union is really useful.
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
<akaiiro> ok, all check those options :)
beef-wellington has quit [Ping timeout: 250 seconds]
aswen has quit [Ping timeout: 245 seconds]
<bl4ckdu5t> If I'm to display IP address of remote user from a jekyll blog, how can I do this?
Soliah has joined #ruby
Takle has quit [Read error: No route to host]
<bl4ckdu5t> I know of the request in rails but I think that's just rails
Takle has joined #ruby
neoxquick has quit [Ping timeout: 265 seconds]
agjacome has quit [Quit: leaving]
josephndenton has quit [Ping timeout: 240 seconds]
<zenspider> bl4ckdu5t: that's pretty standard to CGI in general, so I think you have it in sinatra or anything with an http request/response
sailias has quit [Quit: Leaving.]
bmichelsen has joined #ruby
psmolen has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
<pipework> bl4ckdu5t: In a jekyll block, those are typically static, so you'd need to use JS to determine the IP address.
<bl4ckdu5t> zenspider: I just tried request.path and I saw nothing
elek has joined #ruby
<bl4ckdu5t> pipework: I never knew js could do that
neoxoen has joined #ruby
<rpag> JS and a third party service can
<pipework> You'd have to either provide a service or use one. There's ifconfig.me/ip for a service.
<bl4ckdu5t> ok thanks
<pipework> s/block/blog/
deric_skibotn_ has joined #ruby
<zenspider> I totally overlooked the jekyll part. :)
jerius has quit []
momomomomo has quit [Ping timeout: 272 seconds]
Prometheian has quit [Remote host closed the connection]
lbrf_ is now known as lbrf
deric_skibotn has quit [Ping timeout: 272 seconds]
veduardo has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
deric_skibotn_ is now known as deric_skibotn
lbrf has quit [Quit: Lingo: www.lingoirc.com]
jlast has quit [Ping timeout: 265 seconds]
cliffstah has joined #ruby
Megtastique has joined #ruby
psmolen has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
atomical has joined #ruby
DLSteve has joined #ruby
larissa has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
iamninja has joined #ruby
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.
<godd2> >> [1,2,3].reduce([]) {|acc, i| acc << i*2}
<eval-in__> godd2 => [2, 4, 6] (https://eval.in/235112)
valeriansaliou has joined #ruby
davedev2_ has joined #ruby
zB0hs has joined #ruby
<godd2> >> [1,2,3].map {|i| i*2}
<eval-in__> godd2 => [2, 4, 6] (https://eval.in/235113)
hamakn has joined #ruby
fandi has quit [Quit: Leaving]
davedev24_ has quit [Ping timeout: 264 seconds]
<godd2> when havenwood was referring to the "reducing step", he just meant the << in my first example
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Hijiri has quit [Ping timeout: 258 seconds]
<pipework> >> [1,2,3].each_with_object([]) {|item, arr| arr << item * 2}
<eval-in__> pipework => [2, 4, 6] (https://eval.in/235114)
hephaestus_rg has joined #ruby
Hijiri has joined #ruby
<pipework> >> [1,2,3].each_with_object([]) {|item, arr| arr << (item * 2)}
<eval-in__> pipework => [2, 4, 6] (https://eval.in/235115)
<pipework> Oh good, I was worried that really took 40s
Vile` has quit [Remote host closed the connection]
ItSANgo_ has joined #ruby
<pipework> Turns out IRC is not a good mechanism for SOA communication.
<godd2> pipework if you click on the link, it says it took 0.056 seconds
valeriansaliou has quit [Ping timeout: 240 seconds]
<pipework> godd2: Oh neat.
olivier_bK has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
xenomorph has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<pipework> godd2: It'd require actual benchmarking, but I think the each_with_object approach would be fastest.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
ohcibi_ has joined #ruby
ohcibi has quit [Ping timeout: 260 seconds]
heftig has quit [Read error: Connection reset by peer]
xenomorph has joined #ruby
xenomorph has quit [Changing host]
xenomorph has joined #ruby
kalusn has joined #ruby
treehug88 has quit []
heftig has joined #ruby
ta has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<zenspider> dmarr: environment can def be part of it
<zenspider> dmarr: eg: echo $LANG
<zenspider> mine is en_US.UTF-8
<zenspider> yours might be C
happyface has quit [Quit: Connection closed for inactivity]
rylev has quit [Remote host closed the connection]
<zenspider> godd2: that's _one_ way of doing it, yes. so not "just"
<dmarr> mine is en_US.UTF-8
josephnd1nton has quit [Ping timeout: 244 seconds]
jenrzzz_ has joined #ruby
<zenspider> dmarr: ok. my original desc might be backwards. maybe the code is reading in via your env but has an internal encoding of binary
<zenspider> test with LANG=C ./script.rb
<zenspider> (or just look at the IO code)
fabrice31 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
sn0wb1rd has joined #ruby
Gadgetoid has joined #ruby
radic has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
j416 has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti` has quit [Quit: Xiti`]
snath has quit [Ping timeout: 256 seconds]
tuelz has joined #ruby