apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: 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
zachallett has joined #ruby
<benzrf> haha their github is called 'usrbinnc'
<maestrojed> combusean I got you. I was thinking the VM in rvm stood for virtual machine. I thought this cause you said the project would have to run in its environment. I was wrong. Ignore :)
fgo has joined #ruby
<combusean> so in your project directory, what happens when you type rvm list?
<maestrojed> # No dvm rubies installed yet. Try 'dvm help install'.
shevy has quit [Ping timeout: 240 seconds]
<combusean> dvm?
<maestrojed> sorry, rvm
<combusean> wtf?
* combusean tells maestrojed about copy and paste.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maestrojed> I am typing to you on my laptop cause I have IRC. I am running these on this other laptop. Sorry. I will do better
djbkd has quit [Remote host closed the connection]
eka_ has quit [Ping timeout: 255 seconds]
<combusean> heh, i don't care =)
rmcclellan has quit [Ping timeout: 264 seconds]
<combusean> it's ok
fallacy has joined #ruby
<maestrojed> well, I appreciate your help and am not trying to be annoying. I realize I know very little about what I am trying to do
armstrjare has joined #ruby
<combusean> maestrojed, so anyways, i would brush up on http://rvm.io and check out what's going on with that
testcore has joined #ruby
<combusean> maestrojed, do you have a .rvmrc or .ruby-version/.ruby-gemset in your project directory?
thomasxie has left #ruby [#ruby]
<maestrojed> combusean no, neither.
<maestrojed> I will read more on rvm.io.
<combusean> neither of the three files?
<maestrojed> nope. neither of those three
<combusean> so, typically you would do rvm install 2.1.1 and when that's done run cat 2.1.1 > project_dir/.ruby-version
<combusean> that's assuming you want v2.1.1 ruby
<combusean> erm
<combusean> echo 2.1.1 > project_dir/.ruby_version
sepp2k1 has quit [Read error: Connection reset by peer]
whomp has joined #ruby
<combusean> and echo global > project_dir/.ruby_gemset
nihils has joined #ruby
<whomp> why can't you ever compile ruby into pure machine code and just run the machine code? i understand that there are times where you're doing super dynamic stuff, like with the eval command, but a lot of what i do doesn't have anything to do with that
lmickh has quit [Remote host closed the connection]
<combusean> um
<combusean> my guess whomp is that ruby is an interpreted language, and compiling architecture specific machine code is outside the scope of that
<maestrojed> combusean okt. Thx. I am reading though rvm.io and your lastest suggestion. I have to pick up my wife from work so I will probably be breaking for a little while. I really really appreciate the help.
<whomp> but ruby has to come up with machine code at some point. it's just damn lazy about it!
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<combusean> maestrojed, i'll be online later this evening (hour 30ish, depending on when i get out of here)
<combusean> maestrojed, also combusean@gmail.com
<maestrojed> heh! thx combusean You are the best!
<combusean> np =)
MatthewsFace has joined #ruby
<whomp> ultimately, it's doing the same thing gcc does with C: turn the language into machine code. there is nothing the computer can run but machine code. but the way it does it only at the very last minute seems unncecessary for the vast majority of programs i've written
Beoran_ has quit [Ping timeout: 255 seconds]
KeiKun has joined #ruby
<whomp> or for pretty much anyone
nichtdiebohne has quit [Ping timeout: 276 seconds]
<combusean> whomp, gcc makes binaries out of C code, and that's a lot of systems-architecture specific stuff
simono has joined #ruby
<combusean> the ruby interpreter itself is written in C and doesn't make binaries
rmcclellan has joined #ruby
<benzrf> whomp: ok smart guy, how do you propose generating machine code out of ruby besides just embedding ruby code into a binary along with an interpreter
<whomp> combusean, call it binaries or machine code, but in any case, the ruby interpreter *has* to, in the end, spit out machine instructions
<benzrf> no it doesnt
Vu1k has quit [Quit: Vu1k]
<benzrf> whomp: here's an example.
<benzrf> wait actually nvm
<whomp> it's not like there are special circuits in the machine for ruby code
shevy has joined #ruby
<benzrf> whomp: consider a shell.
<benzrf> whomp: let's say, bash
andy__ has quit [Remote host closed the connection]
x1337807x has quit [Read error: Operation timed out]
<combusean> but there are special instructions in gcc that make machine code out of C
<i_s> JSON.parse(nil.to_json) #=> JSON::ParserError: 757: unexpected token at 'null'. wat
<benzrf> whomp: bash takes in potentially-somewhat complicated commands
<combusean> i_s, nil isn't a string of minimum 2 octets like { }
<benzrf> like 'cat foo !$ > whatever'
evenix has joined #ruby
<benzrf> whomp: therefore, in order to run those commands, it must spit out machine code to do them at some level
<combusean> i_s, JSON.parse expects strings in its argument
KeiKun_ has quit [Ping timeout: 264 seconds]
jxf has joined #ruby
<i_s> combusean: ok, but wouldn't proper behavior be to throw an error if one cannot serialize properly?
olivier_bK has joined #ruby
<whomp> guys... every. single. language. spits out machine code in the end. no matter how many steps it does in between, or when it finally spits out that code, it has to spit out machine instructions. there are no other instructions the machine can understand. if you still don't agree, then i can't have a discussion with you
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
<whomp> obviously some languages do not spit out all of the machine code in advance. these are scripting languages
aspires has joined #ruby
<i_s> seems like a property for deserializers and serializers should be that serializing and deserializing a thing should give you the same result, otherwise throw an error on serializing
<combusean> whomp, there's no "spitting out" of machine code
<combusean> the kernel loads binaries that gcc produces because it can interpret that machine code
<whomp> call it "spitting out" or executing
maestrojed has quit [Quit: Computer has gone to sleep.]
<combusean> the ruby interpreter just doesn't make binaries, if it did it wouldn't be an interpreted language.
sambao21 has quit [Quit: Computer has gone to sleep.]
<benzrf> whomp: so bash spits out machine code?
<whomp> i know that it does not create binaries. but it creates machine code. if it did not, it could not run
<benzrf> whomp: bash reads your command and converts it to machine code?
<benzrf> then executes the machine code that runs your command?
bradhe has quit [Remote host closed the connection]
<whomp> yes. it doens't print out a file of the code that it ran, but it has to
<whomp> what other code could the computer run?
* combusean notes it's the kernels job of executing machine code, not bash or ruby
<benzrf> if i click a button in firefox, it spits out the machine code to do what that button does?
<benzrf> combusean: no, it's the cpu's
<combusean> um
<benzrf> the kernel does not execute machine code o.O
Guedes0 has left #ruby ["Saindo"]
<whomp> see now we're just being pedantic. when i say run, i mean that ruby is telling the machine "hey, run this piece of machine code". whether it's talking specifically to the kernel or whatever is irrelevant
crzrcn has quit [Quit: Leaving.]
<whomp> would anyone else like to help out this poor and broken discussion...
<benzrf> whomp: so you consider invoking a function to be 'spitting out machine code'
<benzrf> OK
MatthewsFace has quit [Quit: This computer has gone to sleep]
<benzrf> aint no arguing with that
<whomp> great
<combusean> whomp, its you who's not understanding the context of compilers and interpeters, so if the conversation is broken it's not our fault
cpruitt has joined #ruby
northfurr has joined #ruby
<whomp> so now what i'm saying is, instead of figuring out all the machine code over and over again with each time we call a method, we can just figure out what bytecode we need for it in the first place
cpruitt has quit [Client Quit]
<whomp> combusean, great, let's move on
Hytosys has joined #ruby
northfurr has quit [Client Quit]
<benzrf> whomp: you dont know what youre talking about
Beoran_ has joined #ruby
hobodave has joined #ruby
<benzrf> whomp: you've established that you consider calling a function to be 'spitting out bytecode', so what you CAN do is spit out a series of function calls
i_s has quit [Remote host closed the connection]
<benzrf> but then, of course, you still need to bundle the ruby interpreter
<benzrf> since that's where the functions live
timonv has joined #ruby
kitak has quit [Remote host closed the connection]
<whomp> ok so we've done that
yubrew has joined #ruby
kitak has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
<benzrf> yes, this is a thing that exists
<benzrf> i dunno what the ruby version is called
<benzrf> i know that python has tools for that
<benzrf> it sticks your script into a binary along with an interpreter
<benzrf> and then you can tote it around to systems that dont have a system install of the interp
badabim has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
badabim has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<whomp> why isn't it standard?
<benzrf> ultimately, every interpreter written in C is really just a that-language-to-C translator, where that language is a massive layer of 'syntactic sugar' over the functions defined in the interpreter
timonv has quit [Ping timeout: 252 seconds]
<benzrf> well, more or less
wjlafrance has quit [Quit: This computer has gone to sleep]
xaq has joined #ruby
<benzrf> it's not quite like that when it compiles to VM bytecode and then executes said bytecode
<benzrf> well, it still is
yubrew has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
<benzrf> in the same sense that C is just sugar for machine code
<benzrf> whomp: because it's useless
crzrcn has joined #ruby
<benzrf> whomp: the vast majority of times, the system youre targeting already has an install
<whomp> C is useless?
papercode has quit [Quit: WeeChat 0.4.4-dev]
<benzrf> no, packaging is
<benzrf> why bother adding megabytes to the script when the target system already has a copy of the interp
* combusean heads home for now
<whomp> ok. so the machine has what it needs already. so it usually compiles?
testcore has quit [Quit: [BX] *SUBLIMINAL*MESSAGE* USE BITCHX *SUBLIMINAL*MESSAGE*]
dorei has joined #ruby
badabim has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
ce_afk is now known as cescalante
x77686d has quit [Quit: x77686d]
<benzrf> um
<benzrf> YARV compiles ruby code to YARV bytecode, then executes the bytecode on its VM
<benzrf> i really, really dont think you know what youre talking about
zz_karupa is now known as karupa
dapz has joined #ruby
oo_ has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 255 seconds]
jxf has quit [Ping timeout: 255 seconds]
badabim has joined #ruby
jamto11 has joined #ruby
<agent_white> Good evening folks
<RubyPanther> benzrf: I think the word people used when I tried to describe Ruby as a meta-language for C was "troll"
northfurr has joined #ruby
Hytosys has quit [Quit: Hytosys]
jamto11_ has joined #ruby
mikepack has joined #ruby
<benzrf> huehuehue
marr has quit []
<benzrf> the true stranth of lisp is that it is its own meta language
xcv has quit [Remote host closed the connection]
RowdyChild|Away has quit [Quit: Bye]
<RubyPanther> packaging isn't useless, it is just that the only use is installation by non-technical users. For most uses of Ruby that isn't happening.
narcan has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
zmbmartin has joined #ruby
<benzrf> well, thats what i meant by calling it useless
<RubyPanther> sure, the little people don't exist.
<benzrf> :P
whomp has quit [Ping timeout: 255 seconds]
mikepack has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
HashNuke has joined #ruby
arubin has joined #ruby
<RubyPanther> whomp: if you never call #eval you'll never exercise the dynamic functionality anyways, so there is no extra step unless you use it. But if you benchmark the bytecode-generation phase of any scripting language you'll find there is basically "no" time taken there.
s2013 has quit [Ping timeout: 265 seconds]
zmbmartin has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
rrios has quit [Read error: Connection reset by peer]
<RubyPanther> And if you ran the code repeatedly in a tight enough loop to make that timing matter, it would actually sit in the cache and not only would the instructions not get regenerated, they might not even get run
djbkd has joined #ruby
poguez_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<RubyPanther> In the old days there _were_ attempts to make that sort of behavior standard, for example there are old Perl tools for that, but they do actually contribute to performance, and create more opportunities for problems and inefficiencies
agent_white has joined #ruby
djbkd has quit [Remote host closed the connection]
rrios has joined #ruby
<RubyPanther> " but they do NOT actually contribute to performance"
<shevy> man
<shevy> get over it
<shevy> nobody remembers perl anymore
<RubyPanther> perl is the interpreter, the language is Perl
jamto11_ has quit []
kitak_ has joined #ruby
saarinen has joined #ruby
fsdldl has joined #ruby
pwh has quit []
hobodave has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
senayar_ has joined #ruby
<arubin> RubyPanther: Are you referring to generation of compiled Perl files?
<arubin> Files with Perl bytecode rather.
<RubyPanther> arubin: yes, binaries with an interpreter and the generated bytecode linked together
nanoyak has quit [Quit: Computer has gone to sleep.]
<arubin> Python does do something like this now.
hobodave has joined #ruby
<RubyPanther> I used such products commercially, but we gained no performance benefit. It was just an extra development hassle. But it allowed easy user installation.
bradhe has joined #ruby
i_s has joined #ruby
saarinen has quit [Ping timeout: 240 seconds]
<arubin> And while doing some performance troubleshooting last year, I noticed that perl still checks for those files.
<benzrf> yea python uses pyc files
<shevy> and nobody remembers that distinction either
<shevy> there is only perl
<benzrf> helps load time a tad
x1337807x has joined #ruby
<RubyPanther> Python is often used for end-user GUI apps, so it is probably very useful there. Ruby would probably benefit in that area if we had it.
<benzrf> it's actually PERL, for Practical Extraction and Report Language
* benzrf ducks
<RubyPanther> No, St. Wall covered that.
<benzrf> i know
brunops has quit [Ping timeout: 255 seconds]
<benzrf> i was trying to annoy you
senayar has quit [Ping timeout: 252 seconds]
fly2web has joined #ruby
oo_ has joined #ruby
<RubyPanther> getting me talking about the Old Days will probably annoy everybody _but_ me lolol
<fly2web> i think that ruby is easy.
<fly2web> is it right?
<benzrf> fly2web: almost as easy as UR MUM LEL
<RubyPanther> fly2web: No, Ruby is programming. Programming is hard.
<rmcclellan> You lose vast amounts of sleep
<fly2web> UR MUM LEL?
napcae has quit [Ping timeout: 252 seconds]
qubit has quit [Ping timeout: 252 seconds]
<shevy> fly2web ruby is rather complex as a whole
<fly2web> what is it?
<fly2web> complex?
<fly2web> oh
<shevy> fly2web but you can use a minimalistic subset of ruby, then it will be simple
<arubin> It is possible for something to be complex and easy.
<fly2web> oh
<arubin> He did not ask whether Ruby is simple.
<RubyPanther> as long as you know what you're doing, you'll know which parts to use until you know what you're doing
<shevy> fly2web yeah. For instance, what is a block? What is the distinction @ vs @@? class vs. module? include vs. extend? lambdas, procs, call, evals? (there are like 6 ways to eval...)? what is .send and .method_missing?
cpruitt has quit [Quit: cpruitt]
<fly2web> i read lean to program to 60 page.
<shevy> lean? :)
ixti has quit [Ping timeout: 265 seconds]
<fly2web> learn
<shevy> ;)
x77686d has joined #ruby
<shevy> it is ok for introduction
<arubin> 60 page?
<shevy> but the only real way to learn ruby is to write scripts yourself, your brain learns actively that way
<fly2web> yes
rrios has quit [Ping timeout: 265 seconds]
qubit has joined #ruby
napcae has joined #ruby
<RubyPanther> I read Lean Programming in 60 Days and I cut at least 20 LOC off my apps.
<fly2web> 60page of 231 page.
i_s has quit [Ping timeout: 264 seconds]
r_rios has quit [Ping timeout: 264 seconds]
olivier_bK has quit [Ping timeout: 246 seconds]
<fly2web> i study ruby for metasploit.
<fly2web> you know it?
<RubyPanther> You don't need to read the whole manual, you can read the first half and just try to focus on methods beginning with 'a'..'m'
jmeeuwen has quit [Read error: Connection reset by peer]
jmeeuwen_ has joined #ruby
frode15243 has quit [Ping timeout: 252 seconds]
<fly2web> oh
<fly2web> i see.
jmeeuwen_ is now known as jmeeuwen
agent_white has quit [Quit: brb]
<rmcclellan> hmm the more ruby you know the more easier it is to put projects together also always keep an eye on the libraries
<fly2web> ‘a’..’m’?
sambao21 has joined #ruby
OliverJAsh has quit [Ping timeout: 252 seconds]
nickgartmann has quit [Ping timeout: 252 seconds]
msch has quit [Ping timeout: 252 seconds]
senayar_ has quit [Remote host closed the connection]
<fly2web> who know metasploit?
<shevy> yeah
<shevy> unfortunately, people who learn ruby because of metasploit are eternal noobs
<shevy> I've seen it happen over and over again
<shevy> sorry fly2web
<RubyPanther> >> (o=Object.methods.sort)[0,o.size/2] # you can do a lot
<eval-in__> RubyPanther => [:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :__id__, :__send__, :allocate, :ancestors, :autoload, :autoload?, :class, :class_eval, :class_exec, :class_variable_defined?, :class_variable_get, ... (https://eval.in/140841)
senayar has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
nickgartmann has joined #ruby
frode15243 has joined #ruby
OliverJAsh has joined #ruby
<fly2web> oh yes
msch has joined #ruby
andy__ has joined #ruby
msch is now known as Guest84839
bradhe has quit [Remote host closed the connection]
brunops has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
jason__ has joined #ruby
cpruitt has joined #ruby
bradhe has joined #ruby
jmeeuwen has quit [Client Quit]
jmeeuwen has joined #ruby
<fly2web> ruby is hacking language?
tkuchiki has joined #ruby
LBRapid has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 240 seconds]
jamto11 has quit [Remote host closed the connection]
Lightsword has joined #ruby
<fly2web> right?
<Lightsword> whats the best place to learn ruby's version of regex?
<benzrf> fly2web: ruby is a good language for hacking
<benzrf> wait do u mean hacking as in breaking into systems
bradhe has quit [Read error: Connection reset by peer]
<fly2web> benzrf: thanks
<benzrf> or hacking as in what hacking orignially meant
<RubyPanther> Ruby doesn't hack language. Perl does that. http://www.wall.org/~larry/natural.html
<fly2web> yes benzrf
<benzrf> fly2web: which one
<fly2web> hacking == metasploit
RubyRonin has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
bradhe has joined #ruby
amclain has joined #ruby
<fly2web> i wanna ruby for metasploit
<RubyPanther> Ruby isn't clever enough for hacking.
<benzrf> hmm
<fly2web> but penetration is written by ruby.
<benzrf> when i said its a good lang for hacking i meant as in the original meaning
<benzrf> idk if its good for cracking
saarinen has joined #ruby
reset has quit [Quit: Leaving...]
<fly2web> oh
sdwrage has joined #ruby
SvenOostenbrink has quit [Ping timeout: 276 seconds]
LBRapid has joined #ruby
<Jamo> but metasploit is just one framework...
pwh has joined #ruby
agent_white has joined #ruby
instantaphex has joined #ruby
dima__ has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
mercwithamouth has joined #ruby
agent_white has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
shinobi_one has quit [Quit: shinobi_one]
havenwood has joined #ruby
saarinen has quit [Ping timeout: 252 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
instantaphex has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
dima__ has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
Igneous has joined #ruby
yubrew has joined #ruby
eynj1 has joined #ruby
aspires has quit []
eynj has quit [Ping timeout: 264 seconds]
eynj1 is now known as eynj
stephenmac7 has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
stephenmac7 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 276 seconds]
maximski has quit [Ping timeout: 255 seconds]
afex has quit [Ping timeout: 276 seconds]
_justin has joined #ruby
johncjensen has joined #ruby
nisstyre has joined #ruby
BSaboia has joined #ruby
saarinen has joined #ruby
s2013 has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
<Igneous> Hey dudes, if any of you are willing, I'd really like a code critique. I wrote something I'm fairly proud of and would just love for someone to rip it apart. https://gist.github.com/Igneous/4b2267def4042ade15c4
charliesome has joined #ruby
SubSignal has joined #ruby
<arubin> Igneous: Any reason that you put the single parameter in a hash?
<Igneous> primarily extensibility
fgo has quit [Remote host closed the connection]
peeja_ has joined #ruby
mary5030 has joined #ruby
<benzrf> Igneous: i see ur using amqp
<benzrf> why not zmq
wjlafrance has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
razrunelord has quit [Ping timeout: 264 seconds]
dik_dak has joined #ruby
<benzrf> Igneous: also use thread.join, not loop sleep 1
dapz has joined #ruby
<benzrf> hmm
<benzrf> maybe
<benzrf> i dont know these libs ur using
x77686d has quit [Quit: x77686d]
<shevy> benzrf did you learn the language R yet?
SubSignal has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
cpruitt has quit [Quit: cpruitt]
<Igneous> benzrf: nothing there really blocks :/
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<benzrf> shevy: no
<shevy> Igneous looks ok though after a "class Foo" statement, I would make two newlines, not one
<shevy> class AMQP
<shevy> include Logging
danman_ has joined #ruby
danman_ has quit [Client Quit]
rmcclellan has quit [Quit: Leaving]
goleldar has quit [Remote host closed the connection]
<Igneous> yeah I imagine my style isn't supergreat, I'm fairly novice. noted though
cg433n has joined #ruby
eka has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
combusean has joined #ruby
agent_white has quit [Client Quit]
Atrumx has quit [Quit: quitting]
LBRapid has quit [Ping timeout: 252 seconds]
nickgartmann has quit [Ping timeout: 252 seconds]
ddv has joined #ruby
cg433n has quit [Client Quit]
<shevy> functions in R are objects
* combusean waves
bpgoldsb has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
<benzrf> shevy: sounds like python
<benzrf> in python we can say
<benzrf> def foo(n):
<benzrf> return n + 1
<shevy> hehe
<benzrf> print(map(foo, [1, 2, 3]))
m00nlight_ has quit [Quit: Konversation terminated!]
<shevy> R is weird
<benzrf> sadly python has multiple personality disorder about whether it is OO or procedural
<shevy> you can look at the source of a function if you type its name, without using ()
cpruitt has joined #ruby
<shevy> lol
zmbmartin has joined #ruby
blackavr_ has joined #ruby
nickgartmann has joined #ruby
<katlogic> benzrf: Python is saint compared to JS.
Darryl has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
peeja has quit [Disconnected by services]
peeja_ is now known as peeja
<benzrf> js is like if you took python and exacerbated all of its problems and reduced its good parts
blackavr has quit [Ping timeout: 264 seconds]
blackavr_ is now known as blackavr
<benzrf> and then gave it ubiquitous lambdas
<katlogic> And fast JIT
<benzrf> they even have similar object systems!
<dorei> js is lambda for the mases xD
<benzrf> well, at a basic semantics level, not at a usage level
s2013 has quit [Ping timeout: 276 seconds]
<dorei> sadly, js is a sideeffect of the early browsers' war
<benzrf> this is why you should use haskell
<benzrf> it's sideeffect free!
<combusean> benzrf, did that whomp guy ever figure it out?
badabim_ has joined #ruby
<benzrf> dont think so
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> combusean: ever tried smalltalk
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<combusean> nah
<combusean> i'm a programmer for trade, rarely for fun
sparrovv has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
johncjensen has quit [Remote host closed the connection]
<katlogic> Smalltalk is like this horrible perverted uncle of JS and ObjC making smutty remarks at them.
<combusean> if it doesn't add to my resume i probably won't touch it =/
LBRapid has joined #ruby
qz has quit [Remote host closed the connection]
zmbmartin has quit [Ping timeout: 240 seconds]
bpgoldsb has joined #ruby
brunops has quit [Ping timeout: 276 seconds]
<dorei> combusean: you can never know who might be impressed by smalltalk :p
<benzrf> katlogic: youre wrong on so many levels
agent_white has quit [Ping timeout: 258 seconds]
zachallett has quit [Remote host closed the connection]
<katlogic> Also, much older uncle.
<combusean> dorei, there's a lot about programming as a science that I lack
<combusean> never went to school for it
<katlogic> I refuse to acknowledge to say he's ancestor.
<combusean> self taught, spent too long in php
agent_white has joined #ruby
badabim has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
<benzrf> katlogic: what the hell do u have against smalltalk
<benzrf> smalltalk is pretty sweet
zachallett has joined #ruby
<arubin> katlogic: JS is an aborted fetus.
<dorei> combusean: have you managed to escape from php? :)
<arubin> No one is going to claim to be related.
<combusean> dorei, yes
<katlogic> benzrf: Sure, so is fortran :>
<combusean> dorei, altho I have to read/fix it occasionally cause some old shit from a previous life is still around
nari has joined #ruby
<benzrf> katlogic: wow u sure sound like somebody who's been told that smalltalk is dum & never looked at it
psyko666 has quit [Remote host closed the connection]
<katlogic> benzrf: Smalltalk is dumb and I never looked at it!
<katlogic> There
BWStearns has quit [Ping timeout: 255 seconds]
<benzrf> lele:
sparrovv has quit [Ping timeout: 276 seconds]
badabim_ has quit [Ping timeout: 276 seconds]
<benzrf> *le
<benzrf> l
shevy has quit [Ping timeout: 265 seconds]
<katlogic> But seriously, smalltalk, self and all those which can be called blast from the past. Those are niche and will probably remain so.
<havenwood> Igneous: are you trying to support Ruby 1.8?
CaptainJet has joined #ruby
<benzrf> unrightfully so >:
cg433n has joined #ruby
<katlogic> benzrf: There is small resistence in the Lua camp which is far descendant of those, but it is probably doomed to niche too.
cg433n has quit [Client Quit]
<Igneous> havenwood: not intentionally, why do you ask?
<havenwood> Igneous: it's past end-of-life, so I'd recommend dropping stuff like `require 'rubygems'` that is only needed in 1.8
<Igneous> old hash syntax?
<katlogic> I mean the language is perfect and then they butcher it with 1-based indexing.
<Igneous> oh, hm
<Igneous> yeah I guess that's a habit I picked up
<benzrf> katlogic: what, st?
<havenwood> Igneous: and yeah mq.subscribe queue: mac, handler: @handler
<katlogic> benzrf: Lua
<benzrf> lelelelelel
xaq has quit [Remote host closed the connection]
<havenwood> Igneous: but 1.9+ the `require 'rubygems'` is redundant
zachallett has quit [Ping timeout: 264 seconds]
<havenwood> Igneous: also you could use keyword arguments, if you're willing to do 2.0+
<havenwood> Igneous: get rid of `params={}`
<Igneous> the opts={} convention gives me a huge boner though
<katlogic> benzrf: 1-based indexes of smalltalk are excused by its age. I mean, there were worse mistakes in the past, like pascal or cobol.
<Igneous> I know it's supposed to be (arg,opts={}), but still
<Igneous> havenwood: or could you suggest a equally readable replacement for what i'm currently doing with params={}?
CaptainJet has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
i_s has joined #ruby
<havenwood> **params
predator117 has joined #ruby
armstrjare has quit [Quit: Textual IRC Client: www.textualapp.com]
<Igneous> okay you've got me, what's **?
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
dodosan has joined #ruby
dodosan has quit [Client Quit]
cpruitt has quit [Quit: cpruitt]
agent_white has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
brunops has joined #ruby
jmeeuwen has joined #ruby
LostDatagram has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<havenwood> >> def example **hash; hash[:bird] end; example(bird: 'Spur-winged Plover')
Lightsword_ has joined #ruby
<eval-in__> havenwood => "Spur-winged Plover" (https://eval.in/140845)
cpruitt has joined #ruby
<havenwood> Igneous: a hash keyword splat of sorts
sdwrage has joined #ruby
Hanmac has joined #ruby
x77686d has joined #ruby
robbyoconnor has joined #ruby
qqw has quit [Ping timeout: 250 seconds]
Lightsword has quit [Ping timeout: 276 seconds]
Lightsword_ is now known as Lightsword
cpruitt has quit [Client Quit]
jxf has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
* combusean likes that example havenwood =)
qqw has joined #ruby
justinxreese has joined #ruby
<havenwood> Igneous: the double splat captures all remaining keywords and stored them in a hash
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Es0teric has quit [Quit: Computer has gone to sleep.]
evenix has quit [Remote host closed the connection]
<Igneous> that's pretty hot
<benzrf> like in python!
<benzrf> :-)
* combusean shoots python
<benzrf> dont be hatin on python
<benzrf> it has REAL kwargs
* combusean is trollin on python
<havenwood> stores*
<benzrf> that arent bullshit hash-unpacking sugar
* combusean misses Tcl for that reason
_maes_ has joined #ruby
jason__ has quit [Remote host closed the connection]
voltagex has joined #ruby
<voltagex> does anyone know what version of readline Ruby 2.1.1 depends on?
hamakn has joined #ruby
LostDatagram has joined #ruby
Es0teric has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
crucify_me has quit []
robbyoconnor has quit [Ping timeout: 264 seconds]
andy__ has quit [Remote host closed the connection]
andy__ has joined #ruby
pwh has quit []
xaq has joined #ruby
lw has quit [Quit: b]
sambao21 has joined #ruby
lukec has joined #ruby
andy__ has quit [Ping timeout: 264 seconds]
krz has joined #ruby
TheShaun has left #ruby ["Textual IRC Client: www.textualapp.com"]
timonv has joined #ruby
yubrew has joined #ruby
dorei has quit []
fgo has joined #ruby
snath has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
maximski has joined #ruby
nari has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
razrunelord has joined #ruby
crzrcn has quit [Quit: Leaving.]
zachallett has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 252 seconds]
codabrink has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
robbyoconnor has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
razrunelord has quit [Ping timeout: 276 seconds]
mikepack has joined #ruby
Lightsword has quit [Ping timeout: 276 seconds]
blackavr has quit [Quit: blackavr]
pu22l3r has joined #ruby
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
JBreit has joined #ruby
endash has quit [Quit: endash]
rokob has quit [Remote host closed the connection]
fgo has joined #ruby
jameswlane has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
Celm has quit [Remote host closed the connection]
sillywizard has quit [Quit: Leaving]
jameswlane has quit [Max SendQ exceeded]
shevy has joined #ruby
JBreit has left #ruby [#ruby]
mikepack has quit [Ping timeout: 265 seconds]
zachallett has quit [Ping timeout: 265 seconds]
servatoo has quit [Remote host closed the connection]
servatoo has joined #ruby
Celm has joined #ruby
pu22l3r has quit [Remote host closed the connection]
servatoo has quit [Read error: No route to host]
servatoo has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
meatherly has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
nari has joined #ruby
luluapple has quit [Quit: ZNC - http://znc.in]
Celm has quit [Ping timeout: 252 seconds]
snuffeluffegus has joined #ruby
m00nlight has joined #ruby
philoserf has joined #ruby
zmbmartin has joined #ruby
cjbottaro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
LexicalScope has quit [Ping timeout: 264 seconds]
jacobsmith has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sdouglas has joined #ruby
narcan has joined #ruby
sdwrage has joined #ruby
zmbmartin has quit [Ping timeout: 264 seconds]
eka has joined #ruby
zmbmartin has joined #ruby
zmbmartin has left #ruby [#ruby]
CaptainJet has quit []
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
eka has quit [Client Quit]
_justin has quit [Ping timeout: 264 seconds]
echevemaster has quit [Ping timeout: 276 seconds]
_justin has joined #ruby
michaeldeol has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
_justin has quit [Client Quit]
michaeldeol has quit [Read error: Connection reset by peer]
shalicke has joined #ruby
michaeldeol has joined #ruby
mengu has quit [Ping timeout: 265 seconds]
oo__ has joined #ruby
radic has quit [Ping timeout: 264 seconds]
radic has joined #ruby
testcore has joined #ruby
i_s has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
IceDragon has quit [Read error: No route to host]
oo_ has quit [Ping timeout: 252 seconds]
IceDragon has joined #ruby
sethen has quit [Ping timeout: 264 seconds]
IceDragon has quit [Read error: Connection reset by peer]
evenix has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
echevemaster has joined #ruby
crystal77 has joined #ruby
philoserf has quit [Ping timeout: 264 seconds]
<shalicke> I'm having an issue with net/ftp & open-uri where it hangs on trying to put a binary file from a url to an ftp server. e.g. https://gist.github.com/shalicke/0d9af0a5f1edaf85fb2a
<shalicke> Am I missing something painfully obvious?
i_s has quit [Ping timeout: 252 seconds]
dima__ has joined #ruby
bthesorceror has joined #ruby
chiw has joined #ruby
braincra- has quit [Quit: bye bye]
dima__ has quit [Ping timeout: 276 seconds]
pwh has joined #ruby
yubrew has joined #ruby
kung has quit [Ping timeout: 252 seconds]
chinkung has quit [Quit: Bye!]
_justin has joined #ruby
jamto11 has joined #ruby
agjacome has quit [Quit: leaving]
braincrash has joined #ruby
r_rios has joined #ruby
philoserf has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
centrx has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
diegoviola has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
instantaphex has joined #ruby
afex has joined #ruby
<jacobsmith> What is the open(item.standard_url) doing? After looking at the Net::FTP implementation, try just passing the file itself (it opens it as a binary because you're using putbinaryfile )
meatherly has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
caleb_io has joined #ruby
<shalicke> the file is a URL (an S3 URL)
Fretta has quit [Quit: Fretta]
matcouto has joined #ruby
instantaphex has quit [Ping timeout: 252 seconds]
<shalicke> so there is no local 'file' to speak of, except for something temporary generated by open-uri
<jacobsmith> hmm...have you tried downloading it to a temp file, uploading that, and then deleting it? (obviously not what you would want to do long-term, but may help finding where the problem exists)
_justin has quit [Quit: _justin]
<shalicke> Well, that's how I am working around it, but that's why I am asking -- this *should* work
<shalicke> AFAICT
<jacobsmith> Okay, I see...
<jacobsmith> Let me go back and look now that I know more of what you're doing...
<shalicke> pulling binary data from url -> putting to ftp as stream
<shalicke> essentially.
maximski has quit []
burntbit has joined #ruby
chiw has quit [Quit: Bye!]
sdwrage has quit [Quit: This computer has gone to sleep]
crzrcn has joined #ruby
<jacobsmith> Are you using 'open-uri' ?
<shalicke> yes, as mentioned initially
ehc has joined #ruby
ehc has quit [Client Quit]
<jacobsmith> Okay, yeah I see that now...
<jacobsmith> That was my best guess; AFAIK you're right, it should work with a binary stream as long as it's using open-uri
Doppp has quit [Quit: leaving]
zachallett has joined #ruby
crzrcn has quit [Ping timeout: 265 seconds]
Doppp has joined #ruby
SubSignal has joined #ruby
<jacobsmith> Yeah, sorry, idk where the problem is...especially because open-uri already makes it a temp file...I'd be interested in finding out if you get this resolved! (will you update the gist?)
zachallett has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
oo__ has quit [Remote host closed the connection]
SubSignal has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
combusean has joined #ruby
<shalicke> I included some more info and I'm also asking in ruby-lang. Will post on SO too
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
Milly_Bays has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
sambao21 has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> yfeldblum: I didn't know you use chef! I'm learning how to test drive chef. :D
bthesorceror has quit [Remote host closed the connection]
afex has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 240 seconds]
bradhe_ has joined #ruby
shevy has joined #ruby
oo_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
Avahey_ has quit [Quit: Connection closed for inactivity]
badabim has joined #ruby
sdwrage has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
freerobby has joined #ruby
<combusean> pipework, I have chef experience. Feel free to ask me questions in privmsg. =)
bthesorceror has joined #ruby
oo_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
sdouglas has joined #ruby
m00nlight has quit [Quit: Konversation terminated!]
bradhe has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
godd2 has joined #ruby
<shevy> combusean do you use more salt or more pepper
poguez_ has quit [Quit: Connection closed for inactivity]
* combusean blinks
<combusean> shevy, neither, i never grew up on using salt and pepper was never my thing either
bradhe_ has quit [Ping timeout: 240 seconds]
badabim has quit [Remote host closed the connection]
<combusean> my mom never salted food
i_s has joined #ruby
<combusean> except salted eggs. :9
<combusean> so I guess I am more a salt guy
badabim has joined #ruby
phinfonet has quit []
SvenOostenbrink has joined #ruby
oo_ has quit [Remote host closed the connection]
<shevy> aha I knew it
<shevy> nobody uses pepper
<agent_white> Eee my 3.5" LCD is hooked up to my Raspberry! I can now code Ruby like gnomes do! :)
oo_ has joined #ruby
* agent_white giggles with excitement
<setient> nice!
<combusean> agent_white =)
<setient> raspberry pi's are nato.
<combusean> i hate that spotify pauses the ad when you mute it too low
<setient> neato. a good intro to low power stuff.
<agent_white> setient: I just got my first the other week! Now I need to interface it with my Arduino... but I need to finish my Ruby IRC client first ;P
robbyoconnor has quit [Ping timeout: 252 seconds]
danshult_ has joined #ruby
<agent_white> This is just like Christmas!
robbyoconnor has joined #ruby
yubrew has joined #ruby
Lewix has joined #ruby
i_s has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
badabim has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
oo_ has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
omosoj has quit [Ping timeout: 240 seconds]
SvenOostenbrink has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
pika_pika has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<setient> agent_white: you can do so much more.
crzrcn has joined #ruby
roadie has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
<setient> it is also interesting to start thinking in the lower power mindset. like distributing work across multiple low powe rmachines instead of one faster one because it is easier to then add more machines as you need em
<setient> and it actually shows you realistic hardware requirements for things
bluOxigen has joined #ruby
sdouglas has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
<agent_white> setient: My mind is racing with ideas! Haha! Best one I have so far is using it to live stream aggregated logs from all my servers... but we will see!
sdouglas has joined #ruby
cina has joined #ruby
<agent_white> sentient: I did see an article about a university program that had students making clusters out of stacks of Pi's held together with legos... looked fun! :)
cina has quit [Client Quit]
Darryl has quit [Quit: Connection closed for inactivity]
Darryl has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
snuffeluffegus has quit [Remote host closed the connection]
philoserf has quit [Quit: Yep. Gotta run. Later.]
oo_ has quit [Remote host closed the connection]
crzrcn has quit [Quit: Leaving.]
phansch has joined #ruby
mikepack has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Slavox is now known as Slavox|AFK
robustus has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
sdouglas has joined #ruby
fgo has joined #ruby
omosoj has joined #ruby
oo_ has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 276 seconds]
wjlafrance has quit [Quit: This computer has gone to sleep]
<setient> agent_white: yup! different work requires different resources. i mean a single core, like the one in a raspberry pi, is fast. it is fast enough to do a lot of things. maybe not all at once but you can have many.
Kruppe has quit [Ping timeout: 258 seconds]
dfinly has quit [Quit: Textual IRC Client: www.textualapp.com]
arietis has joined #ruby
Slavox|AFK is now known as Slavox
sdouglas has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
zachallett has joined #ruby
Kruppe has joined #ruby
brunops has joined #ruby
rezzack has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
RubyDubyDoo has joined #ruby
emaxi has joined #ruby
sputnik13 has joined #ruby
zachallett has quit [Ping timeout: 255 seconds]
rezzack1 has joined #ruby
rezzack1 has quit [Client Quit]
RubyDubyDoo has quit [Client Quit]
freerobby has joined #ruby
i_s has joined #ruby
havenwood has joined #ruby
oo_ has quit [Remote host closed the connection]
robustus has joined #ruby
Lightsword has joined #ruby
rezzack has quit [Ping timeout: 252 seconds]
goleldar has joined #ruby
brunops has quit [Remote host closed the connection]
brunops has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
echevemaster has quit [Ping timeout: 264 seconds]
brucelee_ has joined #ruby
alexju has joined #ruby
caleb_io has quit [Quit: caleb_io]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nisstyre has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
metamaterial has joined #ruby
oo_ has joined #ruby
brucelee_ has quit [Ping timeout: 252 seconds]
sputnik13 has joined #ruby
havenwood has quit [Ping timeout: 276 seconds]
combusean has quit [Quit: Leaving]
combusean has joined #ruby
brucelee_ has joined #ruby
zellio has joined #ruby
philoserf has joined #ruby
echevemaster has joined #ruby
<zellio> is there a way to print the open name spaces?
sean_ has joined #ruby
SCommette has joined #ruby
<shalicke> jacobsmith: answer was to set ftp.passive = true
oo_ has quit [Remote host closed the connection]
metamaterial has quit [Remote host closed the connection]
pika_pika has quit [Ping timeout: 264 seconds]
brunops has quit [Ping timeout: 240 seconds]
combusean has quit [Read error: Connection reset by peer]
brunops has joined #ruby
dima__ has joined #ruby
njection has joined #ruby
Aaaal has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
shevy has quit [Ping timeout: 255 seconds]
xaq has quit [Remote host closed the connection]
Aaaal has quit [Read error: Connection reset by peer]
shevy has joined #ruby
Aaaal has joined #ruby
i_s has quit [Remote host closed the connection]
aganov has joined #ruby
dima__ has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
iliketurtles has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
northfurr has quit [Quit: northfurr]
michaeldeol has joined #ruby
sputnik13 has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
<iliketurtles> could someone explain to me how I might use higher order functions to create nested method calls like one(plus(one)) # => 2 ? I understand the concept of a higher order function, and how to design them in ruby (add_three = ->(x){ x + 3 }; add_three.call(1) # => 4); but I dont understand how I would define a method like plus() in the above case
bradhe has joined #ruby
r_rios has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
yfeldblum has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
evenix has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Client Quit]
sean_ is now known as combusean
freerobby has joined #ruby
xaq has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
omosoj has quit [Quit: Leaving]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
nisstyre has joined #ruby
philoserf has quit [Quit: Yep. Gotta run. Later.]
andikr has joined #ruby
<benzrf> iliketurtles: it sounds like you dont understand hofs cuz that doesnt seem to be an example of em at all
sputnik13 has joined #ruby
kyb3r__ has joined #ruby
<iliketurtles> benzrf: hmm i guess wiki lied to me then, its taken straight from the wiki page about hofs in ruby; http://en.wikipedia.org/wiki/Higher-order_function; care to elaborate?
freerobby1 has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
<benzrf> well what do u understand it as meaning
ValicekB has quit []
<iliketurtles> benzrf: from my experience with them in JS, i understand they can either accept a fn as arguments, or explicitly return a function
Aaaal has quit [Read error: Connection reset by peer]
<godd2> iliketurtles You haven't constructed a function which takes in or returns a function
Aaaal has joined #ruby
<godd2> your add_three function takes in a number, and outputs a number
<benzrf> ^
<iliketurtles> but is add_three(add_three(1)) not satisfying that?
Morkel has joined #ruby
<benzrf> ... yes?
SCommette has quit [Quit: SCommette]
<benzrf> what godd2 just said
kyb3r_ has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
HashNuke has quit [Quit: Connection closed for inactivity]
<iliketurtles> im confused. add_three(add_three(1)) is an example of using that function in a way that it accepts a function as an argument
<iliketurtles> right?
<godd2> not in ruby
<godd2> the inner add_three(1) will resolve to a number, so you're -really- just giving the outer function a number as input
SCommette has joined #ruby
<iliketurtles> yeah that makes sense
SCommette has quit [Client Quit]
<godd2> I shouldn't say "not in ruby"
<godd2> I should say, not the way youve written the funtion
jamto11 has quit [Ping timeout: 252 seconds]
<godd2> function*
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 255 seconds]
<godd2> Try writing a lambda that returns a lambda, and you'll be on a right track
Lightsword_ has joined #ruby
<iliketurtles> godd2: right track as in trying to solve my one(plus(one)) problem?
instantaphex has joined #ruby
Lightsword has quit [Ping timeout: 276 seconds]
<godd2> I meant right track as in writing a higher order function
Lightsword_ is now known as Lightsword
<godd2> in your one(plus(one)) example, is the outer 'one' the same thing as your inner 'one'?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iliketurtles> godd2: yes; i'd want to be able to do this, as well: one(plus(two)). so i assume each "digit" function will need to recoggnize whether its passed another function or not, and either return its integer value, or call the function passed
<iliketurtles> my brain just isnt processing how I would accomplish this though
michaeldeol has joined #ruby
<benzrf> iliketurtles: it's NOT being passed a function
<benzrf> iliketurtles: it's being passed the result
tobago has joined #ruby
* benzrf whacks iliketurtles over the head with a stick
<iliketurtles> benzrf: "it's" = what
Morkel has quit [Ping timeout: 252 seconds]
<benzrf> oh wait i think i understand your confusion
<iliketurtles> i havent shown any code examples for this case above^ so are you referring to my add_three function?
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
<benzrf> iliketurtles: in ruby, 'foo()' and 'foo' are the same thing
<godd2> iliketurtles: One way to achieve that is to have default values for the input variable to the lambda (maybe)
<benzrf> >> def foo; 3; end; foo
<eval-in__> benzrf => 3 (https://eval.in/140890)
<iliketurtles> benzrf: i understand that
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<benzrf> iliketurtles: i dont think u do
oo_ has joined #ruby
bluOxigen has joined #ruby
ValicekB has joined #ruby
instantaphex has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
sambao21 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ItSANg___ has joined #ruby
<iliketurtles> godd2: the part I am most unclear about is how a "digit" function like one() or two() would be able to pass its value into the nested plus() function
<iliketurtles> i understand I can define the plus function such that it returns a lambda
timonv has joined #ruby
ItSANgo has quit [Ping timeout: 245 seconds]
aagdbl has joined #ruby
razrunelord has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 252 seconds]
oo_ has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Beoran_ has quit [Ping timeout: 252 seconds]
jacobsmith has quit [Ping timeout: 252 seconds]
sputnik13 has joined #ruby
zachallett has joined #ruby
blueOxigen has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
SubSignal has joined #ruby
poguez_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
zachallett has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Client Quit]
philoserf has joined #ruby
deens has joined #ruby
toastynerd has quit []
emaxi has quit [Remote host closed the connection]
sdouglas has joined #ruby
philoserf has quit [Client Quit]
SubSignal has quit [Ping timeout: 240 seconds]
<godd2> one = ->(x=1){x == 1 ? 1 : x.call} # this is wrong but it looks cool
emaxi has joined #ruby
<godd2> I think the problem with one(plus(one)) in ruby is that you'd have to be able to ask plus what it's parameters and then pass it a constructed pair of parameters ex post facto
_justin has joined #ruby
sdouglas has quit [Remote host closed the connection]
badabim has joined #ruby
goleldar has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 265 seconds]
Beoran_ has joined #ruby
tagrudev has joined #ruby
rokob has joined #ruby
sputnik13 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sdouglas_ has joined #ruby
bradhe has joined #ruby
oo_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
badabim has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
<iliketurtles> godd2: figured it out.
<iliketurtles> >> def plus(num); -> fn { fn + num }; end; def two(param=nil); param.nil? ? 2.0 : param.call(2.0); end; two(plus(two))
<eval-in__> iliketurtles => 4.0 (https://eval.in/140896)
<iliketurtles> \o/
sdouglas_ has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
sdwrage has joined #ruby
bthesorceror has quit [Remote host closed the connection]
funburn has quit [Read error: No route to host]
brunops has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
hakunin has quit []
funburn has joined #ruby
timonv has quit [Remote host closed the connection]
obs has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
hakunin has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
xaq has quit [Remote host closed the connection]
badabim has joined #ruby
maestrojed has joined #ruby
<shalicke> iliketurtles: clever.
<iliketurtles> shalicke: not dumb after all!
Lewix has joined #ruby
ndrei has joined #ruby
bambuka has joined #ruby
maestrojed has left #ruby [#ruby]
maestrojed has joined #ruby
HashNuke has joined #ruby
<godd2> I got this to work, too: https://gist.github.com/anonymous/11243101
sdouglas has joined #ruby
apeiros has quit [Remote host closed the connection]
badabim has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
apeiros has joined #ruby
skysploit has quit [Quit: Leaving]
<godd2> >> one = ->(x=->{1}) {(x.kind_of?(Array)) ? (x[0].call(x[1],one.call)) : ->{1}}; plus = ->(lhs, rhs = nil) { rhs.nil? ? (return [plus, lhs]) : (return (lhs.call + rhs.call))}; one.call(plus.call(one.call))
<eval-in__> godd2 => 2 (https://eval.in/140905)
<godd2> That's one of the hackier things I've done in Ruby to date
<benzrf> wenk wenk
Es0teric has quit [Quit: Computer has gone to sleep.]
<benzrf> no its simple
brucelee_ has quit [Ping timeout: 252 seconds]
<benzrf> >> def one(f); f.call 1; end; def plus(n); -> v {n + v}; one = 1; one plus one
<eval-in__> benzrf => /tmp/execpad-0b75f9e384ca/source-0b75f9e384ca:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/140907)
mikepack has joined #ruby
<benzrf> >> def one(f); f.call 1; end; def plus(n); -> v {n + v}; end; one = 1; one plus one
<eval-in__> benzrf => 2 (https://eval.in/140908)
<benzrf> :-)
<godd2> oh that's cheating
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<benzrf> ;)
<godd2> >> p = "p"; p p
<eval-in__> godd2 => "p" ... (https://eval.in/140909)
sdouglas has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 276 seconds]
<godd2> and of course puts p, p puts, and puts puts
<maestrojed> combusean you around?
apeiros has quit [Ping timeout: 265 seconds]
pagioss is now known as pagios
freerobby has joined #ruby
sputnik13 has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
klaut has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
obs has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 276 seconds]
shevy has joined #ruby
<maestrojed> I have been trying to figure out why I get errors when trying to run the Compass gem. It was recommended that I try rvm. I've been reading up on it. If they only ruby thing we do or use is Compass and sass, is rvm overkill?
nisstyre has quit [Quit: WeeChat 0.4.3]
eynj has left #ruby [#ruby]
sputnik13 has joined #ruby
<godd2> maybe, but I'd argue that having a working knowledge and environment of rvm is beneficial in its own right
sputnik13 has quit [Read error: Connection reset by peer]
<godd2> and it's easy to set up
sputnik13 has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<maestrojed> ok, Do you know of a good resource or tut? I have been browsing rvm.io but not sure where to start, how to install or use gems, etc.
ndrei has joined #ruby
<godd2> what OS are you on?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maestrojed> godd2 OSX
robustus has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 264 seconds]
<maestrojed> I have rvm installed. Its using the system ruby. If I try to switch to default I get an error. Just thought I should mention that
sputnik13 has quit [Read error: Connection reset by peer]
sputnik13 has joined #ruby
cescalante is now known as ce_afk
<maestrojed> But it seems, according to my understanding of the docs, that I should see .rvm or .gem folders in my project. I don't know when that would have been created. But its most likely I just don't understand yet :)
anarang has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
shevy has joined #ruby
MatthewsFace has joined #ruby
moritzs has joined #ruby
_pingu has joined #ruby
Aaaal has quit [Quit: Aaaal]
sdouglas has joined #ruby
Lewix has quit [Remote host closed the connection]
<godd2> Have you tried asking the folks over at #rubyonrails ?
<_pingu> did: gem install knife-solo without errors, but got the following error, when i run the new command: http://pastebin.com/WdVEeay1
Mon_Ouie has quit [Ping timeout: 252 seconds]
<maestrojed> godd2 I have not. I can. Thx for the suggestion.
MatthewsFace has quit [Client Quit]
dkamioka has joined #ruby
agent_white has joined #ruby
obs has joined #ruby
<combusean> hey maestrojed
jprovazn has joined #ruby
emaxi has joined #ruby
<maestrojed> combusean hey dude. I have been reading on rvm and I think I need to keep going. Its pretty expansive. I think all we do with ruby is use Compass and SASS. I was wondering if rvm might be overkill.
<combusean> rvm's not that difficult to set up
<combusean> last it seemed you already had half of it going because you were able to run the basic suite of commands
robustus has joined #ruby
<godd2> _pingu: if you run `gem list` is win32-api in the list and if so, what version?
havenwood has joined #ruby
<maestrojed> combusean agreed. rvm is installed. Been reading over rvm.io. Seems to be some broad topics and I am not sure where to start. But I will keep reading.
Macaveli has joined #ruby
<_pingu> godd2: yes. win32-api (1.4.8 x86-mingw32)
<maestrojed> Also I am using the system ruby. If I try to switch to default or install another version I get an error. Not sure if that a bigger issue or if system is fine
<combusean> maestrojed, did you run the rvm install commands earlier, and put that information in the .ruby_gemset and .ruby_version files?
<combusean> that's really all there is to it
<combusean> brb
havenwood has quit [Ping timeout: 252 seconds]
<godd2> _pingu: are you in the cygwin bash environment? What happens if you run `knife` in cmd?
<nffff> /join #startups
skaflem has joined #ruby
Lightsword has quit [Ping timeout: 276 seconds]
alpha123 has quit [Ping timeout: 240 seconds]
emaxi has quit [Remote host closed the connection]
apeiros has joined #ruby
<_pingu> godd2: my ruby installation is part of vagrant. just removed it completly from my windows 7 and installed it new. then did gem install chefspec. it gets automatically dependencies like knife, too. i get the same error in cmd.exe, powershell and git bash. here is the new error: http://pastebin.com/xyiY41wC
emaxi has joined #ruby
<_pingu> godd2: the error comes if i fire knife -h for instance
sparrovv has joined #ruby
<godd2> what are your ruby and gem versions?
<maestrojed> combusean ok, is .ruby_gemset created by "rvm gemset create"?
sparrovv has quit [Remote host closed the connection]
alpha123 has joined #ruby
MatthewsFace has joined #ruby
claymore has joined #ruby
endash has joined #ruby
nffff has quit [Quit: leaving]
dima__ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Saliendo]
kyb3r__ has quit [Quit: Leaving]
<godd2> any reason you're not using rubygems 2.2.2 ?
kyb3r_ has joined #ruby
emaxi has quit [Ping timeout: 252 seconds]
bambuka has quit [Ping timeout: 276 seconds]
shevy has quit [Ping timeout: 264 seconds]
ddv has quit [Changing host]
ddv has joined #ruby
dkamioka has quit [Remote host closed the connection]
<godd2> (`gem update --system` to update rubygems)
yfeldblum has joined #ruby
yubrew has joined #ruby
dima__ has quit [Ping timeout: 255 seconds]
<_pingu> godd2: don't know. the ruby installation came with my vagrant installation. i'll try your command. one moment, please
endash has quit [Quit: endash]
sdouglas has quit [Remote host closed the connection]
<maestrojed> when I try to run "rvm install 1.9.3" I get this error https://gist.github.com/maestrojed/11243977
<maestrojed> cc: combusean
<combusean> ok, maestrojed what happens when you run brew update?
<combusean> look at the logs
_justin has quit [Quit: _justin]
<_pingu> godd2: ok, updated gem to 2.2.2, but the error is still the same
fgo has joined #ruby
<maestrojed> combusean I have to run "brew update" with sudo, does that imply an issue? otherwise things look like they succeed. I will look for logs.
yubrew has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
<maestrojed> Well I am re-trying rvm install, it might be going further.
fgo has quit [Read error: No route to host]
jxf has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
evenix has quit [Remote host closed the connection]
<combusean> maestrojed, what was the exact command you ran to produce that output?
Es0teric has joined #ruby
SteveBenner09 has joined #ruby
<maestrojed> combusean which time, for my list gist? Here is the full thing https://gist.github.com/maestrojed/11243960
<maestrojed> combusean but, after I ran home-brew update, I think "rvm install 1.9.3" is working. At least so far. Its still going
funburn has quit [Quit: funburn]
<Hanmac> the last time i used rvm on OSX i think it used macports and i didnt had a problem with that
_justin has joined #ruby
<maestrojed> I could uninstall homebrew. We have tried so many things to fix this issue. Installing homebrew was one of them
sdouglas has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
noop has joined #ruby
<maestrojed> New error: https://gist.github.com/maestrojed/11244201 I will try running brew tap --repair.
shevy has joined #ruby
<godd2> _pingu: This person "fixed" it by switching back to Ruby 1.9.3: https://github.com/tknerr/bills-kitchen/issues/48
<maestrojed> But again. gcc.... I think that is something that we installed recently in trying to fix this issue. Its its not needed I could uninstall it
<godd2> _pingu: apparently you can try `gem install win32-api --platform=ruby`
MatthewsFace has quit [Quit: This computer has gone to sleep]
bradhe has quit [Remote host closed the connection]
arturaz has joined #ruby
brucelee_ has joined #ruby
bradhe has joined #ruby
happytux_ has joined #ruby
happytux has quit [Ping timeout: 252 seconds]
<_pingu> godd2: just tried gem update. don't know if that was a goog idea. if that doesn't work, i'll install vagrant again, do your gem update command and try your last suggestion.
<SteveBenner09> maestrojed what os? linux?
zachallett has joined #ruby
<_pingu> godd2: ok, that didn't help. try your command now, before i delete and reinstall everything
<maestrojed> SteveBenner09 osx
<maestrojed> So I run "brew doctor" and get an error around gcc. I will paste bin it
<_pingu> godd2: the error stays thes same.. )-:
fabrice31 has joined #ruby
<godd2> Mine works, but I'm on Ruby 1.9.3
<godd2> And I've never used Vagrant, what does that do, help with the devkit stuff or something?
<Hanmac> hmmm doesnt homebrew has its own channel for problems like that?
freerobby has joined #ruby
blackmesa has joined #ruby
x77686d has quit [Quit: x77686d]
b2nary has joined #ruby
ndrei has joined #ruby
<SteveBenner09> cool sweet, maybe you guys can help me test a script I wrote for uninstalling homebrew
ak5 has joined #ruby
<ak5> hi guys, I have a server in china that can
sski has joined #ruby
nomenkun has joined #ruby
<ak5> oops
<maestrojed> ok, I will go ask there. The crux of this is I just need Compass and Sass to work. I am feeling very deflated.
<SteveBenner09> I was going to write a blog about it being the total tits and all, but I havnt thoroughly tested it yet
<_pingu> godd2: http://en.wikipedia.org/wiki/Vagrant_%28software%29 it comes with embedded ruby
zachallett has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 240 seconds]
<SteveBenner09> homebrew is godly except there's NO EASY WAY TO UNINSTALL
<SteveBenner09> fail
shevy has joined #ruby
nomenkun_ has joined #ruby
<ak5> well, I need to install some gems on the server in china, and was wondering if I can migrate gems from my localhost to the server someway. I am using rvm on localhost - not on server. The server is in china so connectivity to mirrors is too bad to dl the gems from there. Also the china mirror doesn't have this gem for some reason (I believe)
foooobear has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
<godd2> _pingu: If you want, I can help you set up Ruby 1.9.3 on your Win7 box with the Devkit so you can install native gems
<ak5> any ideas?
funktor has joined #ruby
<godd2> ak5 Bundler can be used for gem installation automation
lsmola has joined #ruby
foooobear has quit [Remote host closed the connection]
b2nary has quit [Read error: Connection reset by peer]
foooobear has joined #ruby
jamto11 has joined #ruby
zigomir has joined #ruby
<ak5> godd2: I am not sure that helps. Can I bundle my gems on localhost into some kind of archive then move to server and install that way?
nomenkun has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<_pingu> godd2: knowing hoy to setup ruby independet would be nice, but i'am not sure if that would resolve the problem. take a look here: https://rubygems.org/gems/chefspec i installed chefspec 3.4.0 from march this year. guess they use a newer ruby version than 1.9.3
alex88 has joined #ruby
<combusean> maestrojed, how do you have gcc installed?
bradhe has quit [Remote host closed the connection]
<combusean> did you go through installing xcode and all that?
<maestrojed> combusean I have no idea.
b2nary has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<maestrojed> Xcode is install so maybe?
<maestrojed> I personally didn't do it
bradhe has joined #ruby
<combusean> i gotta pass out soon
<combusean> email me tomorrow and i'll hop back on
chipotle has joined #ruby
<maestrojed> yeah dude, no prob. I know this is just a circular rabbit hole.
chipotle has quit [Remote host closed the connection]
<combusean> =)
senayar has joined #ruby
<_pingu> godd2: http://code.sethvargo.com/chefspec/ says chefspec requires Ruby 1.9 or higher!
chipotle has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
instantaphex has joined #ruby
metamaterial has joined #ruby
_justin has quit [Quit: _justin]
bradhe has quit [Ping timeout: 265 seconds]
emaxi has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
makara has joined #ruby
instantaphex has quit [Ping timeout: 276 seconds]
razrunelord has joined #ruby
qba73 has joined #ruby
CorpusCallosum has quit [Ping timeout: 255 seconds]
frobrob_ has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
_justin has joined #ruby
razrunelord has quit [Ping timeout: 252 seconds]
<ak5> how can I move a gem from system A to system B if systema is using rvm and the gem is in a gemset?
dapz has joined #ruby
zigomir has quit []
frobrob has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
tvw has joined #ruby
blueOxigen has quit [Ping timeout: 255 seconds]
sputnik13 has joined #ruby
<Hanmac> ak5 i dont think you want that ... depending on the system it might that a gem from system A does not work on system B, specially the bindings
KeiKun is now known as Guest68118
Guest68118 has quit [Disconnected by services]
KeiKun_ has joined #ruby
nemesit|znc has quit [Ping timeout: 252 seconds]
MacTrash has joined #ruby
yfeldblu_ has joined #ruby
<Hanmac> its like using a screw driver for + on a - screw ... it might work, but you might break it
sputnik13 has quit [Client Quit]
havenwood has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
SubSignal has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
nemesit|znc has joined #ruby
<ak5> Hanmac: I see, but my server in china cannot use the US gem repo and the CHinese one doesn't have the pre version of the gem that I want
cina has joined #ruby
<RubyPanther> ak5: if it is the exact same OS version with the same packages and updates on the same CPU then you can copy it
<ak5> Hanmac: any other solution?
yfeldblum has quit [Ping timeout: 240 seconds]
relix has joined #ruby
_justin_ has joined #ruby
<Hanmac> ak5 is that gem hosted on ruby gems? if yes use "gem download" to ddl the gem package, then you can move it to server B and install it locally
<RubyPanther> if it is something like, ubuntu on one side and fedora on the other, it might work.. but the odds are going way down
<Hanmac> also if one server uses gcc and the other uses clang as default CC it could/will also make problems
<RubyPanther> it it is a public gem, you can always just move the gem by whatever method you would copy the installation
<ak5> RubyPanther: ok, its linux 64 in both cases, but arch and ubuntu..
_justin has quit [Ping timeout: 240 seconds]
_justin_ is now known as _justin
<ak5> does gem support installing gems from files (archives)? Can I just fetch a gem archive?
ce_afk is now known as cescalante
ta has quit [Quit: Leaving...]
<ak5> Hanmac: oh didn't see your solution, will try this now
<RubyPanther> ak5: you could for example install the remote OS in a local VM, but it is a huge pile of work for nothing. gems are easy to install without a repo
blackmesa has quit [Ping timeout: 240 seconds]
<Hanmac> ak5 "fetch" is your keyword: "fetch Download a gem and place it in the current directory"
SubSignal has quit [Ping timeout: 255 seconds]
<Hanmac> ak5 for more help try "gem help commands"
<ak5> thanks for this
<ak5> any way to mirror rubygems easily? I have an ubuntu, npm and pip mirror already, missing gems :D
<ak5> (the things you do in china)
cina has quit [Remote host closed the connection]
<Hanmac> ak5 there is "mirror Mirror all gem files (requires rubygems-mirror)" but i didt try this before
ta has joined #ruby
<metamaterial> how's the job scene for american programmers in china ?
sdouglas has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
sdouglas has joined #ruby
cina has joined #ruby
<ak5> meh
<ak5> I have always been an entrepreneur/programmer
<ak5> id you just want a 9-5 I wouldn't recommend it
<ak5> if you want to build your own empire, its f*ckin nuts :D
Fractional has joined #ruby
<ak5> hardest part: finding good people
<metamaterial> im there
<ak5> but everything else is up for grabs, so if you are so inclined, jump the pond and start
<godd2> Just start with a small empire ;)
* Hanmac is more neutral than good
Milly_Bays has quit [Ping timeout: 264 seconds]
<metamaterial> how's the government toward americans wanting to be licensed programmers ? non-teachers?
obs has joined #ruby
<ak5> no problem
<ak5> you need to find a company that will "invite" you
<godd2> As far as I know, no states in the US require lisencure for programming
brunops has joined #ruby
<metamaterial> the skools do
<ak5> but if you are a qualified engineer, that's a piece of cake
<godd2> However, if you want to be a programming teacher at an accredited institute, then you need a degree
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<ak5> heck I'd do it if you would consider staying on a half year or whatever until you are settled
<ak5> godd2: yes
banister has joined #ruby
m1lt0n has joined #ruby
<godd2> But that has mroe to do with the accredditing system than regulation
sdouglas has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
<metamaterial> never been to china, still in school
cescalante is now known as ce_afk
<ak5> metamaterial: hey if you want an internship or something of that sort, message me
<ak5> you kinda have to be a freak to want to do that in china, or really like asian women or something
_justin has quit [Ping timeout: 252 seconds]
<metamaterial> yeah that's what i'm wondering, LoL
* Hanmac has a licence that he is a freak ;P ... but i would prefer japan over china
Fractional has quit [Remote host closed the connection]
<metamaterial> i bet being a programmer in china is above a teacher, but below a corporte job/being paid by a western corporation
senayar has joined #ruby
<metamaterial> and i bet the government is really friendly toward them. but i've never read any good news on the subjects or met anyone. thanks ak5 ^_^
mikepack has joined #ruby
_justin has joined #ruby
Xeago has joined #ruby
Deele has joined #ruby
TigerWolf has quit [Quit: Textual IRC Client: www.textualapp.com]
<ak5> the government is not important in china if you are white
<ak5> and not a total asshat
fgo has joined #ruby
<ak5> as long as you aren't harming chinese people (you are allowed to hurt white people that don't have many chinese friends :P), you're good
cina_ has joined #ruby
* Hanmac plays chameleon on a clack-wall ... hm yeah white enough ;P
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sputnik13 has joined #ruby
<godd2> That's meta-racist
<ak5> I have access to all the anemities one would expect a 20 something to want to have/use in a western country
<ak5> haha
cina has quit [Ping timeout: 252 seconds]
nvrch has joined #ruby
<ak5> that includes the occasional joint, etc
<ak5> china is only scary for chinese people
<ak5> for white people it's like disney land
<ak5> sounds weird, but totally true
maestrojed has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 252 seconds]
LiohAu has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
benzrf|offline is now known as benzrf
<metamaterial> white people are like salmon swimming with trout in a nice river
badabim has joined #ruby
benzrf is now known as benzrf|offline
<metamaterial> just dont jump out and try to walk against the current
<metamaterial> =D
sputnik13 has quit [Client Quit]
<ak5> sure
<ak5> if you want to use a fishy metaphore like that
<ak5> :D
bradhe has joined #ruby
benzrf|offline is now known as benzrf
metamaterial has quit [Remote host closed the connection]
<godd2> And that's the story of the wisest thing ever said in an IRC channel.
mehlah has quit [Quit: Leaving...]
brunops has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
metamaterial has joined #ruby
senayar has joined #ruby
CorpusCallosum has joined #ruby
Guest84839 is now known as msch
<Hanmac> godd2: hey! yesterday i said something wise too:
<Hanmac> for a real programmer its not important where the data is coming from or where the data is going to ... only the now is important *zen-mode* ;P
brunops has joined #ruby
kaspergrubbe has joined #ruby
Guillaume__ has joined #ruby
<metamaterial> now work it =P
<Guillaume__> hello
<metamaterial> work it good !
<Guillaume__> hi have troubles to use jruby 1.7.12
<Guillaume__> installed it from tar.gz on a ubuntu 64 bit desktop
<Guillaume__> when i try to run my rb script , i get the following error : NameError: cannot load Java class org.postgresql.Driver
<Guillaume__> i tried on a windows 7 computer, it's okay
freerobby has joined #ruby
timonv has joined #ruby
<Guillaume__> i suppose that classpath isn't cofigured well
<Hanmac> Guillaume__: tryed #jruby ?
badabim has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
<Guillaume__> yes Hanmac
<Guillaume__> i tyry bith channel
<Guillaume__> try*
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
<_pingu> http://pastebin.com/ZGKWPsBt but if i open the browser i can download http://rubygems.org/latest_specs.4.8.gz
havenwood has joined #ruby
<Hanmac> _pingu: hm problem with the proxy configuration?
godd2 has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
funburn has joined #ruby
<_pingu> Hanmac: Guess no. also tried gem install chefspec -p proxy, but got the same error
brunops has quit [Ping timeout: 255 seconds]
brunops has joined #ruby
Morkel has joined #ruby
ests has joined #ruby
marr123 has joined #ruby
<Hanmac> _pingu: where is your proxy configured? in your browser or in your system? try to add it to your system too, it might help (ps: rubygems wants https in newer versions)
ikaros has joined #ruby
<ak5> Hanmac: I have the .gem file in my current dir, but when I do gem install <gem name> it doesn't find it and prints some not found error
<Hanmac> ak5 you need "gem install filename"
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fsdldl has quit [Quit: WeeChat 0.4.3]
emaxi has joined #ruby
qba73 has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
<roadie> is there a way to download the ruby mailinglist archive in one go? I tried wget but it produces one index.html >80MB
<roadie> ruby-talk that would be
ests has left #ruby [#ruby]
xcv has joined #ruby
<_pingu> Hanmac: ok, found a solution. thanks. :-)
brunops has quit [Ping timeout: 252 seconds]
<ak5> Hanmac: no such luck: ERROR: Could not find a valid gem 'atomic-1.1.16.gem' (>= 0) in any repository
dapz has joined #ruby
combusean has joined #ruby
poikon_ has quit []
poikon has joined #ruby
qba73 has joined #ruby
emaxi has quit [Ping timeout: 252 seconds]
sputnik13 has joined #ruby
<ak5> Hanmac: ok, it's just some unix permission screwing up, thanks
himsin has joined #ruby
ephemerian has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poikon has quit [Client Quit]
Morkel has quit [Quit: Morkel]
heftig has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
marr123 is now known as marr
xiella has joined #ruby
poikon has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
Lightsword has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
_justin has quit [Quit: _justin]
alexherbo2 has joined #ruby
olivier_bK has joined #ruby
dima__ has joined #ruby
timonv_ has joined #ruby
robbyoconnor has joined #ruby
timonv has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
nfk has joined #ruby
dima__ has quit [Ping timeout: 252 seconds]
funktor has quit [Remote host closed the connection]
funktor has joined #ruby
<agent_white> How can I get the index of the current element in an enumerator? ie - a = [1,2,3].cycle
Aaaal has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<tobiasvl> use each_with_index instead?
<Hanmac> agent_white:
<Hanmac> >> [1,2,3].cycle.with_index.take(6)
<eval-in__> Hanmac => [[1, 0], [2, 1], [3, 2], [1, 3], [2, 4], [3, 5]] (https://eval.in/141003)
<Hanmac> >> [1,2,3].each_with_index.cycle.take(6)
heftig has joined #ruby
ce_afk is now known as cescalante
yubrew has quit [Ping timeout: 252 seconds]
<Hanmac> huch? where is my second result?
roolo has joined #ruby
badhatter has joined #ruby
funktor has quit [Ping timeout: 252 seconds]
<_pingu> I successfuly installed https://github.com/sethvargo/chefspec under win 7. I expected a commandline tool named rspec, but there is none. are my expectations wrong, or can i run rspec on another way?
<Hanmac> >> [1,2,3].each_with_index.cycle.take(6)
<eval-in__> Hanmac => [[1, 0], [2, 1], [3, 2], [1, 0], [2, 1], [3, 2]] (https://eval.in/141006)
<Hanmac> agent_white: did you see the difference in the index?
<agent_white> tobiasvl: When I do that, the indexes increase though the values are the same.
cina_ has quit [Remote host closed the connection]
<agent_white> Hanmac: Hmmm trying that out now
sdouglas has joined #ruby
cina has joined #ruby
deric_skibotn has quit [Read error: Connection reset by peer]
quantsini has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
<Hanmac> >> [1,2,3].each_with_index.cycle.with_index.take(6)
<Hanmac> >> [1,2,3].each_with_index.cycle.with_index.take(6)
<eval-in__> Hanmac => [[[1, 0], 0], [[2, 1], 1], [[3, 2], 2], [[1, 0], 3], [[2, 1], 4], [[3, 2], 5]] (https://eval.in/141018)
cover has joined #ruby
rokob has quit [Remote host closed the connection]
m3nTe has joined #ruby
m3nTe has joined #ruby
m3nTe has quit [Changing host]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<_pingu> shouldn't gem install rspec install the commandline tool rspec under win 7?
okdas has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
blackmesa has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
<RubyPanther> "ain’t nobody got time for hpux" http://opensslrampage.org/
banister has joined #ruby
cescalante is now known as ce_afk
quantsini has joined #ruby
AlSquire has joined #ruby
mikecmpbll has joined #ruby
zoraj has joined #ruby
<agent_white> Hanmac: Ooo... thanks for that idea! I think I found a way to avoid needing to find the index :)
WilfredTheGreat has joined #ruby
user258467 has joined #ruby
oo_ has quit [Remote host closed the connection]
andrewlio has joined #ruby
rdark has joined #ruby
<Hanmac> RubyPanther: i liked the line "YADF: Yet Another Double Free" ;P
DouweM has quit [Ping timeout: 252 seconds]
<RubyPanther> I sure hope YADF isn't the new thing lol
subraminion has joined #ruby
wookiehangover has quit [Quit: i'm out]
timonv_ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
cina_ has joined #ruby
cina has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has quit [Read error: Connection reset by peer]
poguez_ has quit [Quit: Connection closed for inactivity]
davedev24 has joined #ruby
oo_ has joined #ruby
fly2web has quit [Quit: fly2web]
rjhunter has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
Lightsword has quit [Remote host closed the connection]
robustus has joined #ruby
<Hanmac> RubyPanther: my system is getting more "trusty" ... in some days its more "trusty" then i am ;P
lkba has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
klaut has joined #ruby
<RubyPanther> Hanmac: I don't trust me or my computers; we'd both cave under torture, probably.
<Hanmac> its a joke about ubuntu14.04 version name ;P
snapcase has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
Guillaume__ has quit [Ping timeout: 240 seconds]
akonny has joined #ruby
nari has quit [Ping timeout: 252 seconds]
freerobby has quit [Ping timeout: 265 seconds]
emaxi has joined #ruby
Night-hacks has joined #ruby
phansch has joined #ruby
<Night-hacks> Hi i'm ruby newbi
yfeldblum has quit [Remote host closed the connection]
snapcase has joined #ruby
<Night-hacks> i want to make my emacs as a decent ruby development environment
yfeldblum has joined #ruby
jamto11 has joined #ruby
<Night-hacks> code completion - file navigation - type checking etc
cina_ has quit [Quit: leaving]
<Night-hacks> does any one can guide me through the best approach ?
emaxi has quit [Ping timeout: 252 seconds]
<metamaterial> i wana get into emacs
akonny has quit [Quit: akonny]
<metamaterial> for now its just sublime and atom
rdark has quit [Ping timeout: 264 seconds]
DouweM has joined #ruby
ak5 has quit [Quit: WeeChat 0.4.3]
timonv has joined #ruby
rdark has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sski has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
noob101 has joined #ruby
<noob101> Where can I go to learn about Ip addresses and ports? I am trying to learn about the internet. Is there a channel for that?
<apeiros> wikipedia is probably quite a good source
robustus has joined #ruby
sski has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
eka_ has joined #ruby
<SteveBenner09> lol apeiros
KeiKun_ has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
<noob101> apeiros: I don't know where to start though.
<noob101> I don't know the terminology exactly
<metamaterial> does ruby allow control of the different layers?
<metamaterial> i'm a noob too i dont know how to ask this right
<SteveBenner09> Noob101: this will solve all your problems http://lmgtfy.com/?q=internet&l=1
oo_ has joined #ruby
<SteveBenner09> metamaterial: can you expound on your terms such as control and layers
<metamaterial> i know there's a gem to handle https setup of a rails app
<diegoviola> i will be doing some image processing in the background with sidekiq, i think sidekiq uses redis for queues, will the queues help me in case if my system goes down? i want to restart/resume the service and track which images hasn't been processed and then resume from there
<apeiros> metamaterial: #rubyonrails
<apeiros> might also be a #rack thing
jottr has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
<metamaterial> can ruby go low enough to change the packet header on a tcp/ip requet
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eka_ has quit [Quit: My computer has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
<metamaterial> Noob101 wants to write tor in ruby =p
<timgauthier> :O!
<timgauthier> sweet
<timgauthier> Tor is that NSA spy tool right?
<apeiros> I thought it was an FBI honeypot
Bira has joined #ruby
andrewlio has quit [Ping timeout: 276 seconds]
<timgauthier> oh maybe its that apeiros
<noob101> metamaterial: what's a "tor"
funburn has quit [Quit: funburn]
SonicX has quit [Read error: Connection reset by peer]
<timgauthier> I should get one of them IRC scripts that shows what i am playing on iTunes :D
dANOKELOFF has joined #ruby
<timgauthier> Tor is a 'secure' browser that uses a distributed network for data and traffic
<metamaterial> lol
<metamaterial> lol
gtech has quit [Remote host closed the connection]
<metamaterial> tor takes everything you do and shows it to everyone, but ironically it lets journalists and chinese peole and syrian people evade censorships
<timgauthier> it isn't so much a browser of actual websites as much as a way for you to hide what you are doing. However the FBI has been able to hijack it and take advantage of and exploit other servers on the network which has allowed them to discover who specific users are
yubrew has quit [Ping timeout: 276 seconds]
<timgauthier> it shows it to everyone, but it removes who you are
<apeiros> timgauthier: it's not a browser. it's a network.
<timgauthier> yes apeiros but it requires a browser, so i normally think of it as the Tor browser
<metamaterial> so how low can ruby code go
robustus has quit [Ping timeout: 264 seconds]
<apeiros> timgauthier: it does not require a browser.
<Hanmac> timgauthier: nope ... the TorBrowser is a bundled version from Tor+firefox-derivat
<timgauthier> oh my bad
<timgauthier> ok
SubSignal has joined #ruby
<noob101> I got freaking DDoS so I am trying to learn about this stuff to protect myself now.
<timgauthier> cool
<noob101> I got DDoS last night...
sparrovv has joined #ruby
<timgauthier> you got ddos? how do you know?
<timgauthier> How do you know that you got DDoS'ed, how do you know that you where targeted, and what can you do to reduce your target profile.
<apeiros> Noob101: chances that you yourself can learn enough in a meaningful time to successfully deflect an actual DDOS is quite small.
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
testcore has quit [Remote host closed the connection]
KeiKun has joined #ruby
<timgauthier> 12 year olds with a bit of time and money can gain access to a bot network of exploited windows machines so vast that you can't really do much to deflect it
testcore has joined #ruby
robustus has joined #ruby
subraminion has joined #ruby
<metamaterial> you can eat onion rings and pop corn
ghr has joined #ruby
<timgauthier> yum!
<timgauthier> don't do that
ghr has quit [Client Quit]
mrnugget has joined #ruby
<apeiros> Noob101: and I don't say that meaning you're not intelligent enough or anything. I say it because big companies with vast talent resources struggle to properly handle and deflect DDOSes
jprovazn has quit [Quit: Leaving]
<timgauthier> look up the post op report from base camp's ddos
<metamaterial> i disagree
yfeldblum has quit [Ping timeout: 240 seconds]
<metamaterial> big companies are stupid even with their dns routing
<noob101> apeiros: I know I got DDoS cause suddenly last night after getting banned from a game, my internet shut down completely which doesn't usually happen and my internet connection was five bars.
<timgauthier> honestly, when I hear someone say "I want to stop myself from getting DDoSed" it sounds like a 5 year old saying they're going to learn fission. It is so much larger and more complicated, and it unnecessary to understand
<metamaterial> a single user can disconect their internet, change ip, and figure out how they leaked their ip in the first place
ce_afk is now known as cescalante
<timgauthier> that is the job of your service providers and network admins
<metamaterial> but that's #iplogic
<timgauthier> Noob101 that isn't necessarily a DDoS
SubSignal has quit [Ping timeout: 265 seconds]
<apeiros> metamaterial: if you're that good, you should make a career in that field. it pays good.
<timgauthier> intact i suspect that is not a DDoS is any way
<timgauthier> apeiros its very hard to do that with a large service, especially when you need to keep actual clients connected
<apeiros> but tbh, I think this is an "I'm on the internet and I know better than those idiots anyway" opinion.
<metamaterial> get me a job you can have 20 %
<timgauthier> and perhaps some of those clients are direct IP connecting, others may be using DNS routing, etc.
<apeiros> timgauthier: oh, I know.
mikepack has joined #ruby
Zai00 has joined #ruby
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
<noob101> timgauthier: I am sure though, I looked online and I think that's what happened. Why would that happen all of a sudden? I was having problems with people on that game anyway, they retaliated and already knew my IP.
<timgauthier> again, this is a very limited and unrealistic view Noob101
tibounise has joined #ruby
<metamaterial> your game didn't leak your ip to your hacker friends
<timgauthier> there are many things that could cause a network outage similar to the one you've discribed
poikon has quit [Remote host closed the connection]
<timgauthier> and many of them are likely due to issues within your ISP's network, and not at all related to some kids playing a video game
schaary is now known as schaary|afk
<timgauthier> the fact that you have 5 imaginary bars of signal strength is actually irrelevant.
<timgauthier> Example, my laptop currently shows full Wifi/wlan signal, i do not have full signal at this moment.
sdouglas has joined #ruby
<timgauthier> The radio in my mac is getting a full strength identifier from the base station downstairs, but my signal speed is highly degraded, and i am getting about 1/4th of my actual wifi speed due to the interference.
echevemaster has quit [Quit: Leaving]
<metamaterial> hey speaking of, how come my wifi radio turns on with a mind of it's own?
<timgauthier> my iPhone does not get any wifi in the same location and drains its battery trying to establish a connection to the wifi (it sees the network sometimes, but the signal is too weak to actually connect)
burntbit has quit [Quit: Leaving]
zoraj has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 252 seconds]
kenndel_ has quit [Read error: Connection reset by peer]
<timgauthier> the questions you are asking show a bit of a knowledge gap with how your connection works, I would suggest looking into sources of interference for connections of the type you have. if you are on a cellular/3g/4g connection you may be surprised how much weather can affect your signal despite showing full bars (the bars are dependant on a calculation that your device uses to show them, most devices show an inaccurate signal strength
<timgauthier> so that your provider looks good by having more bars in more places)
andrewlio has joined #ruby
funburn has joined #ruby
karupa is now known as zz_karupa
<timgauthier> other issues could be an internal routing issue with your ISP, maybe one of the towers or internal connections overloaded due to too many customers, or a piece of hardware failed and had to route over and dropped several customers at the same time because it had to prioritize bandwidth
poikon has joined #ruby
<timgauthier> the fact that you where having issues before your disconnect makes me believe that it is more likely a case of interference then anything else.
chipotle has quit [Quit: cya]
<timgauthier> what is your OS and hardware metamaterial
<timgauthier> my paragraphs are done :D
sdouglas has quit [Ping timeout: 240 seconds]
<SteveBenner09> metamaterial its okay this is just an NSA test
kitak_ has quit [Read error: Connection reset by peer]
<metamaterial> network neutrality is dead
<timgauthier> haha SteveBenner09 :D
bradhe has joined #ruby
kitak_ has joined #ruby
cescalante is now known as ce_afk
<timgauthier> i don't know about that metamaterial none of the stuff i've mentioned is new
<timgauthier> data priority has existed since cellphones existed. Cell towers prioritize emergency services over regular users, and corporate or tier one data over regular users
<metamaterial> =P
<timgauthier> thats why google can send data between centres faster then i can connect to a local centre, that is not new
<timgauthier> :D
workmad3 has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
<timgauthier> the fact that 4g is so broken in north america is what really sucks (europe just lacks coverage believe it or not)
<SteveBenner09> tim you can't explain it, its like when people discovered they were being wiretapped. After it's been going on for deacades lol
<timgauthier> thats true
<timgauthier> but i have previous experience with data transmission on telco's
Bira has quit []
<SteveBenner09> like "OMG that is SHOCKING so is this going affect my netflix queue? or what"
<timgauthier> lol
<metamaterial> i thought arpanet was made so i can play an mmo fps while hopping wifi points
<SteveBenner09> oh neat
<timgauthier> yes metamaterial :D
<metamaterial> now we're all just setting up akamai dns redundancies ?
<metamaterial> for netflix?
<timgauthier> I worked somewhere with alarm systems, and we used cell towers for signal transmission
<timgauthier> and my father was high level at a telco, so we talked about infrastructure a lot
<timgauthier> but yes, your netflix queue is going to be reset :P
<timgauthier> did you guys see that guy who invented a new way to create cell towers? it uses the interference to create the cell coverage
bradhe has quit [Ping timeout: 240 seconds]
<SteveBenner09> cool, did your dad ever get frustrated with how badly designed the networks are in the US
<metamaterial> p-cell
<metamaterial> ?
JohnBat26 has joined #ruby
<timgauthier> we are in Canada, but yes :D
<timgauthier> yeah p-Cell or whatever it is called commercially now
<SteveBenner09> I bet Nikola would have pwnt p-cell
robustus has joined #ruby
<timgauthier> the canadian networks are government mandated so they're not as ridiculous, though they have a mandate to cover the entire country (even though people don't live in many places)
<metamaterial> nikola would still be rockin an old school cray like naw i got this
<SteveBenner09> haha there was even a Wired artcile about how shitty our infrastructure actual design
m3nTe has quit [Ping timeout: 264 seconds]
<SteveBenner09> its like, bad
<timgauthier> yeah
<timgauthier> but your road infrastructure is worse
<metamaterial> shrug
<SteveBenner09> oh lord yes
sdouglas has joined #ruby
<metamaterial> i happen to like my roads tyvm
<timgauthier> did you know that a basic side road in germany is 2 times as thick, and an auto bahn is 4 times as thick?
<timgauthier> and they still spend millions every year to repair and resurface them
<timgauthier> metamaterial yes. but your roads and bridges are falling apart man!
<metamaterial> so what
<SteveBenner09> Deutsche Strassen sind ausgezeichnet
<timgauthier> it will be really hard to fight the russians in NA when all the bridges collapse!
<timgauthier> hehe SteveBenner09 true
* timgauthier is a canadian living in germany
<SteveBenner09> we spend millions on administrative costs tho, that has to count for something
<timgauthier> no
<timgauthier> administrative overhead is worthless
<SteveBenner09> also on sports games lol
spider-mario has joined #ruby
<SteveBenner09> ich will auch in Deutschland arbeiten
<timgauthier> conscription man, forced military service, or government work. Make all the low level and unskilled jobs be worked by young people. They choose military or civic service
<workmad3> timgauthier: so lets throw out every single administrator in that 'overhead' and see how well thing keep going? ;)
<timgauthier> :P
<SteveBenner09> yeah it was sarcasm :)
<timgauthier> ANARCHY!
<metamaterial> if europe wants to impress me, they can remove all patents on all software. otherwise, stop sueing our tech companies for socialism tax money coffers!
<timgauthier> metamaterial what?!
<timgauthier> most of that crap is puppets for american crap
<SteveBenner09> its public fact that the top-level institutions do not disclose budgets, and are immune to all auditing
<metamaterial> wat
x77686d has joined #ruby
ixti has joined #ruby
<timgauthier> wat!
x77686d has quit [Client Quit]
<timgauthier> i don't know what you are referencing too metamaterial
<SteveBenner09> seriously
tobago has quit [Ping timeout: 265 seconds]
<timgauthier> but most of the patent trolling i've heard of in europe is through american puppet orgs in europe.
sdouglas has quit [Ping timeout: 240 seconds]
<metamaterial> the only complaint i have about merica atm is all teh tech companies cant make uber cool shit because of some stupid patent the other guy has. even though i respect and want to get rich from the system =P
<SteveBenner09> New Zealand banned software patents
<timgauthier> yeah metamaterial
<SteveBenner09> I wonder how long before they cave lol
<timgauthier> the problem is that if NZ bans them then everyone goes to another country that has them, so we need to get the EU to ban them
roolo has quit [Quit: Leaving...]
<workmad3> metamaterial: I believe it was merica that allowed through a patent for the Linked List data structure... in 2007
<metamaterial> what wait NZ BANNED SW patents
funburn has quit [Quit: funburn]
<timgauthier> i'm ok with patents for truly novel things, the problem is the broad general patents that exsist
<metamaterial> 1 sec
akonny has joined #ruby
<timgauthier> getting a visa to live and work in NZ is tricky metamaterial
<metamaterial> wow
tobago has joined #ruby
<SteveBenner09> american law is so pointless I wouldn't be surprsied if they patented the byte
banister has joined #ruby
<metamaterial> looks like i'm never releasing my software in nz storez
robustus has quit [Ping timeout: 264 seconds]
<metamaterial> EU has to do it to make usa dance =P
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
badabim has joined #ruby
<timgauthier> the fact that a crazy rancher in nevada is being allowed to break the law and do as he wants (even though he knows he is getting away with doing something not legal) just because he's gathered enough support from people who are willing to stand against the government is a scary sign of what is to come
<timgauthier> you can fix things only so much when the thing that is broken is the population.
<SteveBenner09> shhhh
<SteveBenner09> go watch more public news
<timgauthier> metamaterial they banned the patents, not the copyright
<SteveBenner09> educate your mind ;)
robustus has joined #ruby
<SteveBenner09> no exactly tim, that is a big difference I think
<agent_white> I know I'm up too late when I'm hearing from the EU folks.
<agent_white> D:
<SteveBenner09> I could be wrong as I'm not a lawyer, but I really think coypright is a lot better at least
<timgauthier> if the state rules, woah yeah no the interpretation of using stateland to graze cattle for free isn't a correct interpretation, then thats what the government decides, they are the land owner. when you refuse to pay then the government has the legal right to take your cattle as payment
Night-hacks has quit [Ping timeout: 265 seconds]
* agent_white waves to the EU from Colorado
<SteveBenner09> I'm cali born and raised agent_white :)
<timgauthier> if you show up with guns then they have the right to arrest you
<agent_white> SteveBenner09: Ah!
<timgauthier> and if you get a small army of people to show up then you are causing public disturbance, and they'd all get arrested.
<metamaterial> i'll settle for a license to reproduce with forever royalties
<metamaterial> =P
<SteveBenner09> yeah I'm waiting for a drone strike to just wipe that ranch off the map lol
emaxi has joined #ruby
<SteveBenner09> BREAKING NEWS
pdtpatrick has quit [Ping timeout: 252 seconds]
<metamaterial> what is this news shit you're talking about
<SteveBenner09> TERRORIST CELL HAS BREEN ACTIVATED IN THE HEART OF AMERICA
<agent_white> Hey now! I live in the boonies and have cattle in my barn as we speak. We get nice tax-breaks for having our cattle ;D
freerobby has joined #ruby
<agent_white> ... and bacon slices for having pigs. >:D
<olivier_bK> when i send mail with ruby i get that in my mail box root (no subject)-Subject: export_instance
<workmad3> agent_white: you breed your own steak? awesome :D
<timgauthier> in Canada we get things like that once and a while, they send in the army to break it up and we go on with life. but in this case if they do that then it reinforces what the crazy people think about the government, so you either give in and let them do what they want which teaches them that they can push and get what they want and erodes the ability of the government to govern, or you make those people actually hate you and deal with
<timgauthier> it
<agent_white> workmad3: Yessir :)
<olivier_bK> how i can remove (no subject)
<agent_white> I was growing fond of the pigs until one ate a new chicken last week. Now, "Pete" and "Polly" are dead to me.
<agent_white> ;P
badabim has quit [Ping timeout: 240 seconds]
<timgauthier> pete and polly gonna be tasty :D
<workmad3> timgauthier: or you give them *exactly* what they want, declare them as a sovereign nation and promptly refuse to deal with them
<timgauthier> i'd never want to raise pigs though, goats and cows sure
oo_ has quit [Remote host closed the connection]
<timgauthier> workmad3 that sounds clever actually
<agent_white> timgauthier: "We 'gunna eat Pete!"
<timgauthier> yeehawww!
<agent_white> 16 goats, 8 cows, 2 pigs, 40 chickens, 2 horses.
<agent_white> Good fun :)
tstark has joined #ruby
<timgauthier> olivier_bK you get an email that says no subject?
<agent_white> Goat farm primarily, the others are for fun.
<timgauthier> sounds time consuming and expensive agent_white
<workmad3> agent_white: do sausages taste better when they have names?
<timgauthier> are you the farmer? or you just live there?
<agent_white> timgauthier: I'm the ranch hand ;)
<olivier_bK> yes
<timgauthier> ah, but you spend so much time on here... :P
<_pingu> how can I execute rspec tests with mvn test?
oo_ has joined #ruby
<agent_white> workmad3: I think so... more goes "Damnit, this bacon is good but we should've given that pig more feed."
Xeago has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 265 seconds]
<workmad3> agent_white: 'dammit, this bacon tastes like chicken'...
<agent_white> timgauthier: Hahah there's nothing else to do when I'm done doing ranch stuff!
<timgauthier> olivier_bK can't you pass a subject too it?
<agent_white> workmad3: ;D
<olivier_bK> timgauthier, but in the content mail i have my subject
<timgauthier> agent_white true :P i'd enjoy doing some of that stuff on the side of my design life, but i'm afraid that there are likely farr to many regulations i would need to follow
freerobby has quit [Ping timeout: 264 seconds]
<timgauthier> i don't know how that function works olivier_bK sorry, just spitballing ideas.
<olivier_bK> timgauthier, thanks
zoraj has joined #ruby
<timgauthier> isn't content the "body" and the subject a different thing?
tgkokk has joined #ruby
<agent_white> timgauthier: I think it is fun to visit, not to stick around with :P Been here for only ~6 months... I enjoy it, but I enjoy actually seeing people more!
<timgauthier> haha what brought you there?
<timgauthier> i mean, why would a programmer go become a ranch hand?
* agent_white shrugs
<timgauthier> i'm guessing you are fairly young?
<workmad3> agent_white: bah, people are weird... and they don't have the advantage of being edible
<workmad3> at least, I'm told it's socially unacceptable to view them as such...
<timgauthier> people have opinions and such as well
<agent_white> I needed a change of pace! And yes, I am! So... I guess while I still have the ability to do such a thing without consequences :P
<timgauthier> its easy to deal with a disagreeable pig, not so much when the pig is a 300 pound receptionist
<agent_white> workmad3: Just gotta have the right steak knife!
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<timgauthier> agent_white there still are consequences, you just find em at 30
<agent_white> ;D
<timgauthier> i am only 27 now, but i used to do lots of downhill cycling about 10-14 years ago
fabrice31 has quit [Remote host closed the connection]
<timgauthier> the shit that is broken or screwed up now is far too much, and the fiancee just doesn't get it sometimes. lol
senayar has quit [Remote host closed the connection]
tgkokk has quit [Remote host closed the connection]
tstark has quit [Quit: leaving]
robustus has quit [Ping timeout: 252 seconds]
Thanatermesis has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
senayar has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
adlerdias has joined #ruby
robustus has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
funburn has joined #ruby
<timgauthier> tstark :O!
<timgauthier> thats my other online name
<timgauthier> tstarke
<metamaterial> hi tony starke
<timgauthier> :P
tjsousa has joined #ruby
<timgauthier> Tim Stake
ktun has joined #ruby
<timgauthier> starke*
<timgauthier> It is tempting to take the fiancee's last name and have a kid named anthony just for that
himsin has quit [Quit: himsin]
dima__ has joined #ruby
SteveBenner09 has quit []
oo_ has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
oo_ has joined #ruby
yubrew has joined #ruby
sparrovv has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Quit: WeeChat 0.4.3]
dima__ has quit [Ping timeout: 265 seconds]
xcv has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
<timgauthier> horyshitaru
<timgauthier> you can use bonjour.local addresses to access localhost:port addresses that web brick is hosting!
* timgauthier *donces*
pu22l3r has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
<timgauthier> doesn't seem to live reload though
fabrice31 has joined #ruby
mercwithamouth has joined #ruby
dyoko has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
twiceaday has quit [Read error: Connection reset by peer]
twiceday has joined #ruby
funburn has quit [Quit: funburn]
dyoko has left #ruby [#ruby]
tagrudev has quit [Remote host closed the connection]
nihils has quit [Quit: Linkinus - http://linkinus.com]
postmodern has quit [Quit: Leaving]
yfeldblum has joined #ruby
dangerousdave has joined #ruby
funburn has joined #ruby
larsam has quit [Read error: Connection reset by peer]
danshult_ has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 265 seconds]
danshultz has joined #ruby
oo__ has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
ce_afk is now known as cescalante
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
florianb_ has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
dyoko has joined #ruby
bradhe has joined #ruby
kaffepanna has joined #ruby
funburn has quit [Quit: funburn]
oo__ has quit [Ping timeout: 264 seconds]
funburn has joined #ruby
florianb_ has quit [Client Quit]
rdark has quit [Ping timeout: 255 seconds]
funburn has quit [Client Quit]
pu22l3r_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
fannye has joined #ruby
phansch has quit [Ping timeout: 240 seconds]
pdtpatrick has joined #ruby
cescalante is now known as ce_afk
phansch has joined #ruby
kitak_ has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 276 seconds]
tstark has joined #ruby
tstark has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
<shevy> we should sacrifice timgauthier to the blood god
<timgauthier> weird question, in javascript is there a way to render the contents of a page between the <body> tags in another page?
<timgauthier> MORE BLOOD FOR TEH BLOOD GOD
<timgauthier> SKULLS FOR THE SKULL THRONE!
<shevy> in javascript there are many ways
<shevy> but though shalt not use any of them
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
<timgauthier> but i want to make a modal window that pops up with the contents of another page in it with styling etc as if that modal window was the actual browser viewport
<timgauthier> how do?
<timgauthier> aka i want to be lazy and have to hand code examples of previous websites i've built, but show a working version hosted on my portfolio site (instead of the ever changing live versions )
Xiti has quit [Ping timeout: 252 seconds]
pu22l3r_ has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
Xiti has joined #ruby
pu22l3r has joined #ruby
ta has joined #ruby
BizarreCake has joined #ruby
emaxi has joined #ruby
noob101 has quit [Ping timeout: 240 seconds]
<timgauthier> shevy... don't make me go ask ##Javascript
sdouglas has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
<shevy> no
<shevy> you do not want to use javascript
<shevy> we'll establish an agnostic standard on the browsers instead
<timgauthier> ok :P
<timgauthier> but can we do that by tuesday?
ta_ has joined #ruby
zoraj_ has joined #ruby
zoraj has quit [Read error: Connection reset by peer]
emaxi has quit [Ping timeout: 255 seconds]
badabim has joined #ruby
ta has quit [Ping timeout: 240 seconds]
senayar_ has joined #ruby
red234324 has joined #ruby
freerobby has joined #ruby
zachallett has joined #ruby
<shevy> no
<shevy> there is no rush
<shevy> and please don't name your kid anthony
<shevy> name him fred
<shevy> fred zimmermann
senayar has quit [Ping timeout: 240 seconds]
badabim has quit [Ping timeout: 240 seconds]
terrellt has quit [Ping timeout: 240 seconds]
coder_neo has joined #ruby
coder_neo has quit [Client Quit]
freerobby has quit [Ping timeout: 276 seconds]
zachallett has quit [Ping timeout: 264 seconds]
Aaaal has quit [Quit: Aaaal]
Aaaal has joined #ruby
jamto11 has joined #ruby
maximski has joined #ruby
<timgauthier> well they are of no help on javascript :P i guess i may have to actually hand code examples :|
dyoko has quit [Quit: Leaving.]
yubrew has joined #ruby
<timgauthier> i just got distracted by pen and paper game :P
maximski has quit [Remote host closed the connection]
banister has joined #ruby
Milly_Bays has joined #ruby
Milly_Bays has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
<shevy> shows you how mighty javascript is
<shevy> even the most simple thing can distract you
<timgauthier> yup
yubrew has quit [Ping timeout: 252 seconds]
<timgauthier> that fight was so strong my little brother character levelled up twice!
_pingu has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140317233623]]
<shevy> I think you cheat
<shevy> also you should write a game in ruby runnable on the web
oo_ has quit [Remote host closed the connection]
<mnemon> timgauthier: why don't you just generate a static version and open it up in a frame or popup window or something ... much easier than making all the stylings static and making sure the current pages styles won't interfere.
<shevy> more popup windows
<timgauthier> mnemon it needs to be responsive, i was unable to make an iframe responsive and a popup window would be another window instead of a modal.. it wouldn't play nice on mobile, and most browsers would block it
subraminion_ has joined #ruby
subraminion has quit [Ping timeout: 255 seconds]
<mnemon> timgauthier: what's wrong with the responsiveness of iframe? i suppose you need to fetch the code from somewhere anyways?
subraminion_ has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
<timgauthier> the code would actually be local but when i say responsive i mean it doesn't resize and reflow with viewport
mikepack has joined #ruby
oo_ has joined #ruby
popl has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 264 seconds]
subraminion_ has joined #ruby
nari has joined #ruby
metamaterial has quit [Ping timeout: 272 seconds]
_justin has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
mengu has quit [Remote host closed the connection]
karthikselva has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
karthikselva has left #ruby [#ruby]
shevy has quit [Ping timeout: 252 seconds]
SubSignal has joined #ruby
karthikselva has joined #ruby
karthikselva has left #ruby [#ruby]
tjsousa has quit [Quit: Computer has gone to sleep.]
matchaw has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
matchaw has joined #ruby
lkba has joined #ruby
Stalkr^ has joined #ruby
ce_afk is now known as cescalante
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
SubSignal has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Excess Flood]
bradhe has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
r_rios has joined #ruby
chimmy has joined #ruby
saarinen has joined #ruby
<timgauthier> javascript always seems so hacky, but may be its because i don't understand the DOM
<timgauthier> the DOM itself to me seems like a hacky way to do things though
m3nTe has quit [Ping timeout: 252 seconds]
m00nlight has joined #ruby
cescalante is now known as ce_afk
yalue has joined #ruby
_justin has joined #ruby
emaxi has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
ta has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
sdouglas has joined #ruby
emaxi has quit [Ping timeout: 240 seconds]
akonny has quit [Quit: akonny]
tyll_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 240 seconds]
m3nTe has joined #ruby
m3nTe has joined #ruby
m3nTe has quit [Changing host]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
sambao21 has joined #ruby
pdtpatrick has quit [Ping timeout: 255 seconds]
workmad3 is now known as wm3|lunch
sdouglas has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
gp5st1 has joined #ruby
crzrcn has joined #ruby
Avahey_ has joined #ruby
m3nTe has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
<gp5st1> I'm working on something and I want to use ruby in my code examples, but for something like Array#push or << I also want to show the reällocation cost when adding to the end of an array (in the worst case, i.e. having to copy the array)
claymore has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 252 seconds]
poikon_ has joined #ruby
<banister> gp5st1 i think ruby has a bunch of optimizations that make predicting the cost difficult
kaspergr_ has joined #ruby
zachallett has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
<gp5st1> banister: I don't so much care about the actual cost, I want the runtime to be clear. I want the O(n) needed to reällocate and copy seen, if that makes any sense (I'm writing something on algos and don't want appending to an array to be seen as a single atomic instruction)
quantsini has quit [Ping timeout: 240 seconds]
dima__ has joined #ruby
<DefV> isn't it?
<gp5st1> << or .push (or .append in python) kind of hide it. Then again, so doea realloc :-\
eka has joined #ruby
ndrei has joined #ruby
<gp5st1> DefV: isn't it what?
danijoo has quit [Read error: Connection reset by peer]
WilfredTheGreat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
freerobby has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
emaxi has joined #ruby
zz_karupa is now known as karupa
agent_white has quit [Quit: night]
eka has quit [Client Quit]
s2013 has joined #ruby
yubrew has joined #ruby
sk87 has joined #ruby
mengu has quit [Remote host closed the connection]
zachallett has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
anarang has joined #ruby
phoo1234567 has joined #ruby
senayar_ has quit [Remote host closed the connection]
dima__ has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
simono has joined #ruby
joaoh82 has joined #ruby
noop has joined #ruby
quantsini has joined #ruby
sambao21 has joined #ruby
shevy has joined #ruby
pdtpatrick has joined #ruby
<timgauthier> that game is fun lol
_sambao21 has joined #ruby
WilfredTheGreat has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
<shevy> what game
<DefV> gp5st1: isn't array.push in constant time? O(1) ?
rocket has joined #ruby
<gp5st1> DefV: not always
rocket is now known as Guest14154
<gp5st1> DefV: what happens if the backing array is at it's max size? You need to allocate more memory. If you can't get the memory after the current segment, a new block needs to be allocated and the array copied to the new block (which is the O(n) part)
<DefV> makes sense
codabrink has joined #ruby
s2013 has quit [Remote host closed the connection]
<gp5st1> The implementation can double the size of the allocated array each time it needs more space, but that _can_ be wasteful, but if you're doing a lot of adding the drop in reallocations makes it worth it
razrunelord has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
oo_ has quit [Remote host closed the connection]
<shevy> timgauthier know what is funny in the german language as opposed to the english language?
<apeiros> doubling capacity is a common strategy. and a max of 50% unused capacity isn't that bad.
<Hanmac> DefV & gp5st1 there is also RARRAY_EMBED_LEN_MAX = 3 ... means arrays with size < 4 are stored differently
<gp5st1> apeiros: depends on the environment. On a μC it could be bad, or if you're array is only 50% full and 500MB in size
oo_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ta_ has joined #ruby
_2_MsWi has joined #ruby
<shevy> that's one big array
KeiKun is now known as Guest89535
Guest89535 has quit [Disconnected by services]
KeiKun_ has joined #ruby
<_2_MsWi> what's this channel about?
razrunelord has quit [Ping timeout: 255 seconds]
<tobiasvl> _2_MsWi: http://ruby-lang.org
ta has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
bradhe has joined #ruby
Night-hacks has joined #ruby
<gp5st1> shevy: I like big arrays and I cannot lie
<shevy> gp5st1 lol
<_2_MsWi> well.i hope to find a guy in here
<apeiros> gp5st1: it can also be more hurtful to copy over the whole 500MB array a dozen times because finding consecutive space is contested
<gp5st1> _2_MsWi: there are lots of guys in here statistically. anyone in particular?
elico has quit [Quit: Leaving.]
joaoh82 has quit [Remote host closed the connection]
<gp5st1> apeiros: def. It depends on the environment. As I said, if you're appending a lot and have the space, it's the obvious strategy
blandflakes has joined #ruby
<_2_MsWi> well.i am just a simple asian :p
anarang has quit [Ping timeout: 276 seconds]
joaoh82 has joined #ruby
noop has quit [Ping timeout: 264 seconds]
<apeiros> gp5st1: general purpose implementations can also include limits to capacity increase
<apeiros> i.e. min/max increases
<apeiros> so after a certain size, it'd no longer double
jeremy_w_rowe has joined #ruby
<_2_MsWi> when i choose this freenode , I saw the flag in 3 colours.what country is it?
<gp5st1> _2_MsWi: I'm not sure to what you're refering
<_2_MsWi> in dalnet.never this crowded
<tyll_> Hi, is there an easy way to download a list of gems including all their dependencies?
bradhe has quit [Ping timeout: 240 seconds]
<_2_MsWi> well. i am using whatschat irc on my android. the server has its own flag.
funktor has joined #ruby
_tpavel has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
<_2_MsWi> e.g. dalnet has US flag . no wonder that room is filled with jerks
kaffepanna_ has joined #ruby
joaoh82 has quit [Ping timeout: 265 seconds]
<shevy> lol
Stalkr^ has quit [Quit: Leaving...]
danshultz has joined #ruby
<shevy> _2_MsWi I think there are several different routes
<_2_MsWi> ok.the flag of this freenode is blue white red. Belongs to what country is it?
<alex88> someone knows a library similar to https://github.com/chadrem/workers ? I'm a bit afraid of using it since it has no tests
thumpba has quit [Ping timeout: 252 seconds]
OliverJAsh has quit [Quit: Connection closed for inactivity]
Squarepy has joined #ruby
puzanov__ has joined #ruby
mr_snowf1ake has joined #ruby
thumpba has joined #ruby
funktor has quit [Ping timeout: 252 seconds]
kaffepanna has quit [Ping timeout: 276 seconds]
rvraghav93 has quit [Read error: Connection reset by peer]
senayar has joined #ruby
ce_afk is now known as cescalante
s00pcan has quit [Quit: Lost terminal]
Stalkr^ has joined #ruby
s2013 has joined #ruby
puzanov_ has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
<_2_MsWi> no one knows?
vpretzel|email is now known as vpretzel
<apeiros> _2_MsWi: seems to me you have a fundamental misunderstanding how IRC works
<apeiros> which nation the server you connect to is absolutely irrelevant
<apeiros> freenode consists of a rather large network of servers
anarang has joined #ruby
noop has joined #ruby
<_2_MsWi> really. thats what whatschat IRC configuration showed me.
<alex88> _2_MsWi: should be france, however, it has no meaning
<_2_MsWi> perhaps its the marker.e.g dalnet was created and owned by US person
rebelshrug has joined #ruby
<tobiasvl> it just showed you what country the server you connected to resides in. you still connect to the same network and all channels and users are shared in the network
<alex88> or you're connected to a french node
zoraj_ has quit []
mengu has quit []
anaeem1_ has quit [Remote host closed the connection]
<_2_MsWi> thx guys
sdwrage has joined #ruby
<apeiros> wait, no, if his client shows a french flag, we should only talk in french now.
anaeem1_ has joined #ruby
<DefV> m'enfin
<DefV> ca c'est du merde eh
<DefV> croissant
pika_pika has joined #ruby
oo_ has quit [Remote host closed the connection]
dblessing has joined #ruby
cescalante is now known as ce_afk
SlvrDragn has quit [Quit: Peace & Protection 4.22.2]
tkuchiki has joined #ruby
<alex88> lol
oo_ has joined #ruby
<alex88> btw, I've this code for downloading a file https://gist.github.com/alex88/4a59be180089166617d0 on ruby 2.1.1 and it increases the memory usages as big the image is, however it shouldn't read the whole input in ram isn't it?
phoo1234567 has quit [Quit: Leaving]
gp5st1 has quit [Quit: Leaving.]
anaeem1_ has quit [Remote host closed the connection]
<timgauthier> whats funny between german and english shevy ?
fijimunkii has joined #ruby
<_2_MsWi> I dont know that room can consists of hundreds of nickname.
<timgauthier> SHWARTZ ROTT UND GELB!
karupa is now known as zz_karupa
dblessing has quit [Client Quit]
subraminion_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
schaary|afk is now known as schaary
<timgauthier> DAS IS DIE BESTE LAND!
dblessing has joined #ruby
dblessing has quit [Client Quit]
dblessing has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<_2_MsWi> in several famous room in dalnet. Filled of bots. and several voiced people keep talking in room with this fucking and swearing words
evenix has joined #ruby
<timgauthier> dreidel dreidel dreidel, i made you out of clay
<timgauthier> dreidel dreidel dreidel now lets go out and play...
<tobiasvl> _2_MsWi: so do you have a ruby question or what
<timgauthier> lol tobiasvl
<_2_MsWi> i dont know what is ruby
sdouglas has joined #ruby
<_2_MsWi> i wonder western can chat politely like this. i am gonna observe a little bit more
tsnfoo has quit [Quit: tsnfoo]
phoo1234567 has joined #ruby
klaut has quit []
Thanatermesis has quit [Ping timeout: 252 seconds]
wald0 has quit [Ping timeout: 252 seconds]
<timgauthier> be... very... quiet... we are... being... watched...
ce_afk is now known as cescalante
sdwrage has joined #ruby
klaut has joined #ruby
shevy has quit [Ping timeout: 255 seconds]
compleatang has quit [Read error: Operation timed out]
<_2_MsWi> wow..really surprise to find people has adult and serious talk like this
<timgauthier> woah, shevy is gone? :O!
ocher has quit [Ping timeout: 250 seconds]
<timgauthier> anyone know, what are alternative frameworks to rails to build an interactive web-app?
sdouglas has quit [Ping timeout: 240 seconds]
ocher has joined #ruby
<_2_MsWi> i know how to make different type of fried chicken
<rdark> timgauthier: little tiny sinatra + bootstrap
<timgauthier> bootstrap as in that terrible .less web framework? :P
<tobiasvl> _2_MsWi: how old are you?
<timgauthier> or is it a ruby thing?
<_2_MsWi> why? u are gonna hit me?
oo_ has joined #ruby
<rdark> timgauthier: no, that's the one :) sintra + whatever else then :)
<timgauthier> lol there are some definite language barriers to that conversation tobiasvl :P
yubrew has joined #ruby
freerobby has joined #ruby
<timgauthier> i'll have to look into this sinatra stuff sometime
<DefV> timgauthier: but really, Rails should cover all your needs
oo_ has quit [Remote host closed the connection]
<DefV> timgauthier: specific reason you're looking for an alternative?
<timgauthier> yeah it probably has better newb support
badabim has joined #ruby
<timgauthier> cause i've tried rails a long time ago, it was neat and i'm not against it
_justin has joined #ruby
<_2_MsWi> tim: try if u can talk in my language. I made my thesis in english
<timgauthier> i figure once i finish my portfolio and start on my next project i could perhaps fiddle on the side with trying to make my recipe sharing site project idea
<rdark> sinatra is super lightweight. Rails is great and all but it can be a little heavy sometimes
saarinen has quit [Quit: saarinen]
<DefV> rdark: you can have a lightweight rails too
<timgauthier> what i want to build is fairly simple of an idea, but i know quite a bit more difficult in execution
compleatang has joined #ruby
<DefV> I never understand the whole lightweight-reasoning. What makes something lightweight?
<timgauthier> less to load?
<timgauthier> i don't know what it means in ruby but for me lightweight frameworks are things that don't bring a lot with them
rudisimo has joined #ruby
<DefV> I don't see the appeal :-)
<rdark> less code, don't have to deal with MVC etc
<timgauthier> so bootstrap is heavy because it brings not only the grid system and layout functions, but also pre flavoured styling, and javascript. a complete set of everything, but you may not need everything, you may only want that cool modal window and the grid system... so instead of adding them in, you have to remove all the other stuff, and then things are interdependant
donnoc has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 264 seconds]
<rdark> timgauthier: That's true. It is a reasonable default position though, and there are likely a lot of other choices, but JS/front-end stuff isn't really my area of expertise, I only dabble :)
<timgauthier> where as the bourbon framework for sass is lightweight because it gives you a bunch of functions you can use, but when you compile it, it doesn't add any code you didn't write directly (well it adds to the code you wrote but you call those things in) and it doesn't tell you how to do anything. You want to make grids by saying "2 col ,4 col" etc then sure, do it that way, or whatever you want
Kruppe has quit [Ping timeout: 258 seconds]
momomomomo has joined #ruby
joaoh82 has joined #ruby
<timgauthier> rdark yeah, and for you thats awesome, use bootstrap or foundations because its better to have something
<timgauthier> but for myself i do the front end stuff regularly so why not just build it :P
cpruitt has joined #ruby
<timgauthier> _2_MsWi ruby is https://www.ruby-lang.org
<_2_MsWi> ? i dont understand..but as long as manner eng.talks..i think i am gonna learn the gramm
<timgauthier> (he's pm'ing me)
badabim has quit [Ping timeout: 264 seconds]
<_2_MsWi> ar
<_2_MsWi> ou. this is rude
<_2_MsWi> i dont know u are blind to call me he
northfurr has joined #ruby
jack_rabbit has joined #ruby
roolo has joined #ruby
<_2_MsWi> that's it. conclusion: in every irc..i will meet sicks western only. doesnt worth it.
<timgauthier> so sinatra makes you build more then rails does? but it has less of an opinion?
_2_MsWi has quit [Quit: WhatsChat IRC Android APP]
northfurr has quit [Client Quit]
cescalante is now known as ce_afk
Kruppe has joined #ruby
<rdark> yeah - I'd guess it's analagous to bourbon vs bootstrap above
<timgauthier> neat
<timgauthier> i'm still quite in over my head when it comes to programming
jamto11 has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
<tobiasvl> not as much as _2_MsWi
<timgauthier> hahaha
<timgauthier> it scares me how many people who can't write english have written their thesis in english
jamto11 has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
_justin has quit [Quit: _justin]
AndChat| has joined #ruby
<timgauthier> i had a korean roommate who thought he spoke english, he said english words but it was complete gibberish and i Had no clue what he was saying whenever he talked to me. luckily we had another guy who was a korean who had gone to an international school who could translate for us. but man that was a weird experience
kaspergrubbe has joined #ruby
<momomomomo> English is a hard language to learn :O
<timgauthier> it was like not knowing what the heck the person was saying and thinking, crap have i had a stroke, i don't understand english!
kaspergrubbe has quit [Remote host closed the connection]
<timgauthier> yes momomomomo
lkba has quit [Read error: Connection reset by peer]
<timgauthier> so is german
__djo__ has joined #ruby
mikepack has joined #ruby
<timgauthier> and ruby, and javascript, and every language :D
zoraj has joined #ruby
<momomomomo> I'd always heard that English was one of the most difficult to learn if your'e not coming from a romance language
kaspergrubbe has joined #ruby
<timgauthier> probably yeah
<timgauthier> my fiancee learned it in school, but really learned to speak and understand it by watching friends
tjsousa has joined #ruby
<momomomomo> aye
crystal77 has joined #ruby
tjsousa has quit [Remote host closed the connection]
__djo__ has left #ruby ["Textual IRC Client: www.textualapp.com"]
_justin has joined #ruby
kevind has joined #ruby
tjsousa has joined #ruby
larissa has quit [Quit: Leaving]
rrios has joined #ruby
r_rios has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
bigkevmcd has quit [Ping timeout: 252 seconds]
beef-wellington has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
crystal77 has quit [Client Quit]
polysics has joined #ruby
seaned has quit [Quit: …was abducted by aliens.]
<polysics> hello
<olivier_bK> i pass multiple argument in my module and i need them in send_mail method
<polysics> when using RSpec, can I match an argument in a should_receive by value of a property?
instantaphex has joined #ruby
<polysics> should_receive(:foo).with(:object_that_has_method(:bar, 3))
bradhe has joined #ruby
<polysics> I obv made up object_that_has_method
<olivier_bK> theyre is another solution for recover the variable
kristiandelay has joined #ruby
instantaphex has quit [Client Quit]
kaspergrubbe has quit [Read error: Operation timed out]
cg433n has joined #ruby
ws2k3 has quit [Ping timeout: 246 seconds]
mrnugget has quit [Quit: mrnugget]
rrios has quit [Ping timeout: 255 seconds]
bigkevmcd has joined #ruby
cg433n has quit [Client Quit]
cg433n has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
doodlehaus has joined #ruby
Zai00 has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
Zai00 has joined #ruby
havenwood has joined #ruby
paulfm has joined #ruby
Lewix has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
clevermatt has joined #ruby
clevermatt is now known as mattk
eka has joined #ruby
Guest14154 has quit [Ping timeout: 252 seconds]
sillywizard has joined #ruby
beef-wellington has joined #ruby
wald0 has joined #ruby
Hanmac has joined #ruby
donnoc has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
KeiKun_ is now known as KeiKun
Hanmac1 has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
alexju has quit [Remote host closed the connection]
VinceThePrince has joined #ruby
VinceThePrince has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
havenwood has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
jespada has joined #ruby
ffranz has joined #ruby
havenwood has joined #ruby
cg433n has quit [Quit: Lingo - http://www.lingoirc.com]
lukec has joined #ruby
perldork has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
moritzs has joined #ruby
cg433n has joined #ruby
dANOKELO_ has joined #ruby
_tpavel has quit [Quit: Leaving]
_tpavel has joined #ruby
cina has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
mattk has left #ruby [#ruby]
tsnfoo has joined #ruby
cina has quit [Remote host closed the connection]
wm3|lunch is now known as workmad3
dANOKELOFF has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
meatherly has joined #ruby
donnoc has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
jamto11 has joined #ruby
tacos1de has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mackwic has joined #ruby
mackwic has quit [Client Quit]
nateberkopec has joined #ruby
cina has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
dapz has joined #ruby
mackwic has joined #ruby
<mackwic> HI there !
rudisimo has quit []
alekst has joined #ruby
havenwood has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mackwic> How's that a lot of gems can't be compiled on osx ? They use a deprecated flag with clang
ndrei has quit [Ping timeout: 252 seconds]
red234324 has quit [Quit: Leaving]
dima__ has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dapz has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
dik_dak has joined #ruby
sdouglas has joined #ruby
yubrew has joined #ruby
foooobear has quit [Ping timeout: 252 seconds]
philoserf has joined #ruby
<mackwic> it's not even deprecated, it just doesn't exist…. How the extconf can be so wrong ?
sdwrage has quit [Quit: This computer has gone to sleep]
dima__ has quit [Ping timeout: 252 seconds]
fijimunk1i has joined #ruby
fijimunkii has quit [Read error: Connection reset by peer]
SonicX has joined #ruby
<Hanmac> mackwic: because OSX is shitty?
jeregrine has joined #ruby
alekst has quit [Ping timeout: 276 seconds]
sdouglas has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
akonny has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
narcan has joined #ruby
ndrei has joined #ruby
<mackwic> Hanmac: you mean, the extconf.rb build system ?
foooobear has joined #ruby
<mackwic> cause a decent build file will use CC, CXX, and so if we provide them
gfunc has quit [Remote host closed the connection]
fijimunk1i has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
yubrew has joined #ruby
shevy has joined #ruby
philoserf has quit [Quit: Yep. Gotta run. Later.]
cg433n has quit [Quit: Lingo - http://www.lingoirc.com]
vpretzel is now known as vpretzel|1343
arturaz has quit [Remote host closed the connection]
gfunc has joined #ruby
ascarter has joined #ruby
makara has quit [Read error: Operation timed out]
danijoo has quit [Read error: Connection reset by peer]
crzrcn has quit [Quit: Leaving.]
arturaz has joined #ruby
danijoo has joined #ruby
kristiandelay is now known as SubSignal
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
cina has quit [Remote host closed the connection]
obscured has joined #ruby
lxsameer has quit [Quit: Leaving]
lmickh has joined #ruby
jobewan has joined #ruby
IceDragon has joined #ruby
yfeldblum has joined #ruby
bthesorceror has joined #ruby
SCommette has joined #ruby
badabim has joined #ruby
bradhe has joined #ruby
perldork has quit [Remote host closed the connection]
alexju has joined #ruby
polysics has left #ruby [#ruby]
arietis has quit [Quit: Computer has gone to sleep.]
meatherly has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<timgauthier> why isn't anything on the internet straightforward and easy lol
agarie has joined #ruby
<canton7> timgauthier, http://www.xkcd.com/1349/
jherbst has joined #ruby
<timgauthier> yea
<timgauthier> thanks :D
arietis has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
badabim has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
meatherly has joined #ruby
nevans has joined #ruby
razrunelord has joined #ruby
cina has joined #ruby
treehug88 has joined #ruby
elico has joined #ruby
<elico> anyone is willing to think with me?
lukec has quit [Quit: lukec]
noop has quit [Ping timeout: 240 seconds]
<tobiasvl> think aloud
<tobiasvl> that way EVERYONE can think with you
<elico> tobiasvl: thanks!
momomomomo has quit [Quit: momomomomo]
mansi has joined #ruby
heftig has quit [Quit: Quitting]
cluelesss has joined #ruby
razrunelord has quit [Ping timeout: 276 seconds]
cjbottaro has joined #ruby
andikr has quit [Remote host closed the connection]
joaoh82_ has joined #ruby
<elico> I want to filter traffic using squid proxy server.
<elico> They have two methods: url_rewrite and external_acl. now the difference is that external_acl had cache options and this is why I want to use it for filtering.
<elico> Now I think about of "how to filter the urls", what algorithm?and what DB to use for the filtering. I have an idea but I am not sure about it.
cina has quit [Remote host closed the connection]
<elico> s/had/has/
apeiros has quit [Remote host closed the connection]
__djo__ has joined #ruby
snath has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
<elico> db can be mongodb or any other key-value DB.
apeiros has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
evenix has quit [Remote host closed the connection]
pdiniz has joined #ruby
evenix has joined #ruby
beef-wellington has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<elico> tobiasvl: what do you think?
cina has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
servatoo has quit [Remote host closed the connection]
servatoo has joined #ruby
__djo__ has left #ruby [#ruby]
apeiros has quit [Ping timeout: 265 seconds]
natewalck has joined #ruby
<natewalck> Morning
<natewalck> I have a n00b question
<natewalck> I am working with http://net-ldap.rubyforge.org/Net/LDAP.html
<natewalck> and when I pass the password as a string 'thisisapassword'
<natewalck> it works
<natewalck> but if I store the password in a variable
havenwood has joined #ruby
<natewalck> it does not work
wjlafrance has joined #ruby
<natewalck> :password => "opensesame" vs :password => mypassword
<natewalck> what is the proper way to pass mypassword into :password?
pdiniz has quit [Quit: BitchX: it's magically delicious!]
moritzs has quit [Ping timeout: 255 seconds]
tekaos has joined #ruby
KeiKun has left #ruby ["Leaving"]
<canton7> there should be no difference. pastie both versions of your code
emaxi has quit [Remote host closed the connection]
freerobby has joined #ruby
einarj has joined #ruby
nateberkopec has quit [Quit: Leaving...]
emaxi has joined #ruby
servatoo has quit [Ping timeout: 252 seconds]
_axx has joined #ruby
timonv has quit [Remote host closed the connection]
andy___ has joined #ruby
sdwrage has joined #ruby
aganov has quit [Quit: Leaving]
freezey has joined #ruby
<tekaos> #joinunex
<natewalck> canton7: Ok, I ruled out that string vs variable
<natewalck> something is not getting passed right
Hanmac has quit [Ping timeout: 252 seconds]
<natewalck> I'll sanitize and post the relevant code
cina has quit [Quit: leaving]
s2013 has quit [Ping timeout: 240 seconds]
emaxi has quit [Ping timeout: 276 seconds]
pcorliss has joined #ruby
tekaos has quit []
pu22l3r has quit [Read error: Operation timed out]
Hanmac has joined #ruby
pu22l3r has joined #ruby
blackmesa has joined #ruby
spyderman4g63 has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
<natewalck> That is all the relevant code
havenwood has quit [Remote host closed the connection]
geggam has joined #ruby
<canton7> natewalck, and a pastie with your "manually putting in the password"?
<canton7> natewalck, also, use 'p password' instead of 'puts "#{password}"', just in case
shinobi_one has joined #ruby
<natewalck> canton7: updated the gist
<natewalck> that is faster for sure
<natewalck> is there a difference between how those operate?
t_p has joined #ruby
<canton7> I'm worried about there being unprintable characters or something in the password var
timonv has joined #ruby
<natewalck> the password is letters/numbers
<natewalck> no symbols
_justin has quit [Quit: _justin]
<canton7> #{...} calls #to_s on the variable. 'p' call #inspect
<natewalck> just for troubleshooting
<canton7> also worried about trailing whitespace, etc
<canton7> newlines
<canton7> you name it
<natewalck> ahhhh
<natewalck> there is a newline
<natewalck> DIAF!
<natewalck> .chomp
<canton7> your puts would have been hiding those
<natewalck> TIL
<natewalck> so in general, is 'p variable' better than "puts #{whatever}"
<natewalck> as in, is there a reason to even use puts over 'p'
<canton7> for debugging, yes
<canton7> observe
<canton7> for printing things to the user, you'll want puts
<natewalck> k
<natewalck> makes sense
zz_karupa is now known as karupa
<natewalck> I tend to use logger for most things
<canton7> i.e. you'll want newlines to be displayed as a newline rather than a literal '\n'
havenwood has joined #ruby
<natewalck> Thanks!
<natewalck> I've been doing a ton of Python
<canton7> :P
<natewalck> trying to get my ruby chops up to date :)
<canton7> hehe
anarang has quit [Quit: Leaving]
<natewalck> amazing what a simple /chomp can do for you ;)
bthesorceror has quit [Remote host closed the connection]
<natewalck> .chomp*
<natewalck> even
<natewalck> canton7: thanks a ton!
<canton7> no worries
tjbiddle has quit [Quit: tjbiddle]
mcrmfc has joined #ruby
sdouglas has joined #ruby
_tpavel has quit [Quit: Leaving]
andy____ has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
andy____ has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
Celm has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
servatoo has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Remote host closed the connection]
jacobsmith has joined #ruby
centrx has joined #ruby
vpretzel|1343 has quit [Remote host closed the connection]
karupa is now known as zz_karupa
sdwrage has quit [Quit: This computer has gone to sleep]
terrellt has joined #ruby
zoraj has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
mikepack has joined #ruby
vpretzel|1343 has joined #ruby
gigetoo has joined #ruby
claymore has joined #ruby
bean has joined #ruby
mrmargolis has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
jeremy_w_rowe has quit [Ping timeout: 265 seconds]
Night-hacks has quit [Quit: Leaving.]
emaxi has joined #ruby
einarj has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 255 seconds]
jacobsmith has quit [Ping timeout: 240 seconds]
emaxi has quit [Client Quit]
roolo has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 252 seconds]
<shevy> test
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<workmad3> Test run completed: passed: 0, failed: 1, pending: 1000
freezey has quit [Remote host closed the connection]
anaeem1 has joined #ruby
bradhe has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
gfunc has quit [Remote host closed the connection]
testcore has joined #ruby
<shevy> wtf
<shevy> 1000???
fredmacedo has joined #ruby
nateberkopec has joined #ruby
<workmad3> hehe
Deejay_ has joined #ruby
tibounise has quit [Quit: WeeChat 0.4.3]
chipotle has quit [Quit: cya]
crzrcn has joined #ruby
<hypnosb> i have some gems that are from git, how can I find out which is the latest one being used?
m1lt0n has quit [Quit: leaving]
<apeiros> /kick test failed, please reconnect
bluOxigen has joined #ruby
<apeiros> dang, forgot "shevy" in that
<DefV> poor test
beef-wellington has joined #ruby
yfeldblum has joined #ruby
malida has joined #ruby
Night-hacks has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
<shevy> kick all tests
malida has quit [Quit: Bye]
caiges has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> hypnosb did you try to add github to your repository?
<olivier_bK> i pass multiple argument in my module and i need them in send_mail method
<olivier_bK> theyre is another solution for recover the variable
<olivier_bK> ?
malida has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy> hypnosb, something like "gem sources -a http://gems.github.com" or rather the www.github.com or something like that should work, I assume
<shevy> olivier_bK is there a question? :)
<shevy> you already pass several arguments right?
Night-hacks has quit [Client Quit]
Deejay_ has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 264 seconds]
<olivier_bK> yes
<olivier_bK> and yes it's a question
hamakn has quit [Remote host closed the connection]
patteh has quit [Quit: leaving]
<shevy> I don't see the question
patteh has joined #ruby
akonny has quit [Quit: akonny]
aagdbl has quit [Quit: Connection closed for inactivity]
<shevy> you can "recover" only something that is passed into your method
<shevy> OR you dont depend on arguments given at all
<shevy> then you could store in @ivars
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<olivier_bK> okai but the best way to recover is
<shevy> i.e. you store all information when you do Bla.new( { your_hash_with_all_the_info_here })
pcorliss has quit [Remote host closed the connection]
<shevy> well a hash is very versatile
<olivier_bK> args[1] for recover the first argument or theyre is another solution
ndrei has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
<shevy> eh?
<shevy> [1] is how you obtain usually for an array
<olivier_bK> yes
Fretta has joined #ruby
arubincloud has joined #ruby
dima__ has joined #ruby
emaxi has joined #ruby
freerobby has left #ruby [#ruby]
ephemerian has quit [Ping timeout: 265 seconds]
shevy has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
OliverJAsh has joined #ruby
maestrojed has joined #ruby
donnoc has quit [Read error: Operation timed out]
kevind_ has joined #ruby
MacTrash has quit [Quit: This computer has gone to sleep]
kevind has quit [Ping timeout: 240 seconds]
kevind_ is now known as kevind
aspires has joined #ruby
Gearbox has joined #ruby
<timgauthier> welcome back sheepman
evenix has joined #ruby
<timgauthier> wow, shevvy is gone again, nm
freezey has joined #ruby
BWStearns has joined #ruby
s2013 has joined #ruby
benzrf|offline is now known as benzrf
EminenceHC has joined #ruby
_maes_ has joined #ruby
<EminenceHC> How can I convert this array: [3, 3, 9] into [3], [3], [9] ?
<canton7> >> [3, 3, 9].map{ |x| [x] }
<eval-in__> canton7 => [[3], [3], [9]] (https://eval.in/141290)
Es0teric has joined #ruby
<canton7> is one way
joaoh82_ has quit [Remote host closed the connection]
<EminenceHC> canton7: Thanks
joaoh82 has joined #ruby
jxf has joined #ruby
kalusn has joined #ruby
martisj has joined #ruby
paolooo has joined #ruby
donnoc has joined #ruby
michaeldeol has joined #ruby
Sawbones has joined #ruby
<benzrf> >> [3, 3, 9].combination 1
<eval-in__> benzrf => #<Enumerator: [3, 3, 9]:combination(1)> (https://eval.in/141294)
<benzrf> hmm
wallerdev has joined #ruby
<benzrf> >> [3, 3, 9].combination(1).to_a
<eval-in__> benzrf => [[3], [3], [9]] (https://eval.in/141295)
<benzrf> >> [3, 3, 9].product []
<eval-in__> benzrf => [] (https://eval.in/141296)
<benzrf> neh
tjsousa_ has joined #ruby
hamakn has joined #ruby
maletor has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
enebo has joined #ruby
<EminenceHC> benzrf: Thanks :)
shredding has joined #ruby
tjsousa has quit [Ping timeout: 276 seconds]
<s2013> anyone installed linalg gem?
<benzrf> timtowtdi
bthesorceror has joined #ruby
cbreeze has joined #ruby
bthesorceror has quit [Remote host closed the connection]
funktor has joined #ruby
testcore has quit [Quit: BitchX-1.3-git © 1996-2013 Colten Edwards et al]
cbreeze has quit [Client Quit]
malida has quit [Read error: Connection reset by peer]
malida has joined #ruby
chipotle has joined #ruby
popl has quit [Ping timeout: 252 seconds]
anaeem1__ has joined #ruby
donnoc has quit [Quit: WeeChat 0.4.3]
geoffw8_ has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
goleldar has joined #ruby
<Hanmac> EminenceHC & benzrf
<Hanmac> >> [3, 3, 9].each_slice(1).to_a
<eval-in__> Hanmac => [[3], [3], [9]] (https://eval.in/141299)
<apeiros> s2013: bummer, I think anyone just left a couple of minutes ago
brucelee_ has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
W0rmDr1nk has quit [Quit: Leaving]
s2013 has quit [Ping timeout: 265 seconds]
<EminenceHC> hanmac: thanks
<havenwood> >> [3, 3, 9].map &:rect
<eval-in__> havenwood => [[3, 0], [3, 0], [9, 0]] (https://eval.in/141301)
<certainty> what's rect?
AndChat|185600 has joined #ruby
Slavox is now known as Slavox|AFK
bline79 has joined #ruby
jeremy_w_rowe has joined #ruby
shredding has quit [Quit: shredding]
<havenwood> Returns an array; [num, 0]
<EminenceHC> havenwood: Would it be possible to map a named value in place of the 0?
fredmacedo has quit [Remote host closed the connection]
paolooo has quit [Ping timeout: 240 seconds]
<havenwood> rect is kinda silly
<arubincloud> What is the purpose of rect? How does it relate to a rectangle?
<workmad3> >> 1.rect
<eval-in__> workmad3 => [1, 0] (https://eval.in/141302)
<havenwood> EminenceHC: what is your second value going to be?
favrot has joined #ruby
malida has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
beef-wellington has quit [Ping timeout: 255 seconds]
<benzrf> srsly whats the point of rect
<benzrf> ?!?!
robustus has quit [Ping timeout: 252 seconds]
<centrx> It turns it into 2d coordinates
echevemaster has joined #ruby
<havenwood> benzrf: the primary purpose of Ruby is creating battleship games
<timgauthier> woah i just realized i was hearing a siren in this village... thats weird..
<workmad3> centrx: I'd guess they're 2d rectangular co-ords at that
UForgotten has left #ruby [#ruby]
<jxf> Is there a way to write a method that takes a block such that a variable declared in that method's body is in scope for everything in the block?
<arubincloud> centrx: That much seems obvious, but what does that have to do with a rectangle?
iceden has joined #ruby
<centrx> one-dimensional scalar -> two-dimensional coordinates with the same magnitude/dot product
<workmad3> arubincloud: rectangular co-ordinates maybe? :)
<centrx> arubincloud, Rectangles are two dimensions
<hoelzro> jxf: sort of, using instance_exec (iirc)
<apeiros> jxf: ruby knows 5 different kinds of variables - which ones would it be?
<hoelzro> but that just sets the "self" for the block
<benzrf> jxf: local vars are ALWAYS lexically scoped
<centrx> "Cartesian coordinates are rectilinear two- or three-dimensional coordinates (and therefore a special case of curvilinear coordinates) which are also called rectangular coordinates."
<jxf> benzrf, Ah, then I think I'm out of luck.
<benzrf> jxf: wait
<benzrf> idea
<benzrf> >> proc {}.binding
sputnik13 has joined #ruby
<eval-in__> benzrf => #<Binding:0x420a63dc> (https://eval.in/141304)
<hoelzro> yikes
<workmad3> arubincloud: more likely, .rect has more use in providing a unified numeric interface that expands into vectors
lsmola has quit [Ping timeout: 240 seconds]
<benzrf> >> def inject_var(&blk); blk.binding.eval {n = 3}; blk.call; end; inject_var {n + 2}
<eval-in__> benzrf => wrong number of arguments (0 for 1..3) (ArgumentError) ... (https://eval.in/141305)
<havenwood> >> -1.polar
<eval-in__> havenwood => [1, 3.141592653589793] (https://eval.in/141306)
<benzrf> yo what
<benzrf> >> def inject_var(&blk); blk.binding.eval 'n = 3'; blk.call; end; inject_var {n + 2}
<eval-in__> benzrf => undefined local variable or method `n' for main:Object (NameError) ... (https://eval.in/141307)
<maestrojed> I still am in need of help getting some ruby gems to run and version conflicts fixed. Someone was helping me a lot yesterday but we never came to a working solution. I hope I don't offend by I am going to ask my question again.
cpruitt has joined #ruby
<benzrf> eh
<apeiros> jxf: those would be local variables. and no, can't do that.
<maestrojed> I am trying to get Compass and sass working. Everyone on the team is using ruby gems for this. But I am getting a slew of errors. To start, "Compass Watch" give me errors about failed to activate toolkit because of sass version issues https://gist.github.com/maestrojed/11244911
<workmad3> arubincloud: rather than it being of much use when you're dealing with normal scalars :)
<workmad3> havenwood: fun :D
<benzrf> jxf: one popular trick
<jxf> apeiros, OK, thanks!
<benzrf> jxf: evaluate the block within a wrapper object with methods named what u want
<benzrf> a la sinatra
<apeiros> benzrf: "this one weird trick, which every developer will hate you for"?
<jxf> benzrf, "circumvent lexical scopes with this one weird trick... Rubists HATE him"
tobago has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 276 seconds]
<benzrf> hue
goleldar has quit []
<jxf> apeiros, +1
<apeiros> ^5
Slavox|AFK is now known as Slavox
paolooo has joined #ruby
<benzrf> >> Wrapper = Object.new; def Wrapper.fake_var; 10000; end; def inject_fv(&blk); Wrapper.instance_eval &blk; end; inject_fv {fake_var + 3}
<eval-in__> benzrf => 10003 (https://eval.in/141308)
<certainty> >> [1,2,3].map(&method(:Array))
<eval-in__> certainty => [[1], [2], [3]] (https://eval.in/141309)
<benzrf> jxf: ^^
<jxf> benzrf, Ah, I think I see what you mean.
<certainty> was that mentioned already?
<timgauthier> that doesn't look very ruby
s00pcan has joined #ruby
goleldar has joined #ruby
aspires has quit []
aspires has joined #ruby
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
blandflakes has quit [Ping timeout: 240 seconds]
beef-wellington has joined #ruby
iliketurtles has joined #ruby
Kricir has joined #ruby
dima__ has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
<havenwood> maestrojed: Have you installed the most recent Xcode? (To get build tools.)
aspires has quit []
robustus has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<havenwood> maestrojed: A popular option for dependency resolution is Bundler.
dangerousdave has joined #ruby
pu22l3r has joined #ruby
funktor has quit [Remote host closed the connection]
<havenwood> maestrojed: You should get build tools working though. Installing latest Xcode should provide a working: xcode-select --install
<maestrojed> havenwood We do have Xcode installed. It acts like its up-to-date.
snath has joined #ruby
dima__ has joined #ruby
<maestrojed> havenwood though some errors imply CLI is not up-to-date. X-code says it is.
funktor has joined #ruby
omosoj has joined #ruby
<maestrojed> havenwood we have tried to implement bundler. It throws errors too. I can paste bin those if you think you can help
<havenwood> maestrojed: Under `Xcode < Preferences < Locations` do you see Xcode 5.1.1 selected?
<maestrojed> let me check
<Hanmac> man i totally hate XCode ...
pu22l3r has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<maestrojed> havenwood yes, for CLI specifically its 5.1.1
crystal77 has quit [Quit: Computer has gone to sleep.]
caleb_io has joined #ruby
timonv has quit [Remote host closed the connection]
<havenwood> maestrojed: one thing to do: edit your `/etc/paths` file and put `/usr/local/bin` above `/usr/bin`
<workmad3> havenwood: with the very latest xcode, they've pulled out installing the command line tools, I believe... instead you have to download them from developer.apple.com
the_f0ster has joined #ruby
Hobogrammer has joined #ruby
lkba has joined #ruby
crystal77 has joined #ruby
caleb_io has quit [Client Quit]
snath has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
<havenwood> workmad3: really? you sure?
funktor has quit [Ping timeout: 264 seconds]
<havenwood> workmad3: its always not worked once they're installed. doesn't seem to be gone.
evenix has quit [Ping timeout: 255 seconds]
<jxf> benzrf, apeiros: I wound up doing it this way, stealing a little from benzrf's suggestion: https://gist.githubusercontent.com/fj/11260367/raw/05e62ad052822d02427a2f523c532c98bc9dcd23/gistfile1.txt
snath has joined #ruby
<jxf> hoelzro, benzrf, apeiros: Thank you for the advice!
arturaz has quit [Remote host closed the connection]
s2013_ has joined #ruby
b2nary has quit [Read error: Connection reset by peer]
<maestrojed> havenwood do I do that in ~/.bash_profile?
<havenwood> maestrojed: do a: brew update && brew upgrade
<havenwood> maestrojed: nope, edit `/etc/paths` file
<maestrojed> havenwood okay, I have before but will certainly try again. (brew update) on sec.
<maestrojed> havenwood agh, gotcha. Sorry.
ffranz has quit [Ping timeout: 252 seconds]
<workmad3> havenwood: ah, that could be it... I'd installed just the command line tools... then v8 informed me it required the full xcode install, so I did that
s2013 has quit [Ping timeout: 264 seconds]
<havenwood> workmad3: aha
<workmad3> havenwood: brew doctor then proceeded to tell me to install the command line tools from xcode because mine were out of date, couldn't find the download in xcode and did some googling, where I came across an article saying that latest xcode removed it :)
<workmad3> havenwood: and as my local xcode install was agreeing with that, I believed it ;)
<havenwood> workmad3: they probably got confused because it removes the install files after installing them, then when you try to reinstall it says they aren't there
<havenwood> indeed confusing
<apeiros> gaaah, fuck, string keys don't work with **kwargs :-S
<apeiros> (of course)
<apeiros> there goes my superduperplan
phinfonet has joined #ruby
<workmad3> wow... I just did a 'brew update' and I had nothing to upgrade!
ffranz has joined #ruby
<workmad3> apeiros: hash.symbolize_keys!; method(**hsh)
bousquet has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> workmad3: not an option
<workmad3> apeiros: not surprising :)
<apeiros> :)
davedev24 has quit [Read error: Connection reset by peer]
s2013_ has quit [Ping timeout: 276 seconds]
aspires has joined #ruby
davedev24 has joined #ruby
<apeiros> good old def foo(*args); hsh = args.pop if args.last.is_a?(Hash)
<workmad3> apeiros: surely you know by now that when you ask a question, I reply with something useluss? :)
wwkeyboard has joined #ruby
<workmad3> *useless
snath has quit [Ping timeout: 252 seconds]
<shevy> down with the pants down with the pants down with the pants
<apeiros> who broke shevy again?
<workmad3> dunno... reality?
<shevy> hey, I am just happy that my connection works *right now*
<shevy> let's see how long I am on this time
<shevy> workmad3 it's damn boring to code without internet connection available :(
<workmad3> shevy: I didn't think it was possible to code without an internet connection
nvrch has quit [Quit: nvrch]
MatthewsFace has joined #ruby
<workmad3> shevy: how do you write any code if you can't google around to copy it from some blog article?
Es0teric has quit [Quit: Computer has gone to sleep.]
<workmad3> err... I mean 'research the problems and potential solutions'...
<katlogic> Don't people just procrastinate on irc/reddit/4chan/youtube when online?
<katlogic> Maybe I'm just projecting but offline is the most productive :>
anaeem1__ has quit [Remote host closed the connection]
zeropx has quit [Ping timeout: 240 seconds]
<shevy> workmad3 well it's not the code part, I have almost everything locally too, it is just no fun at all :(
snath has joined #ruby
<shevy> yeah katlogic
acrush has joined #ruby
zeropx has joined #ruby
<shevy> workmad3 and I can't be on IRC either without connection!
maletor has joined #ruby
<workmad3> shevy: wat? you can't get on IRC when you have no internet connection? but surely IRC uses your IRC connection!
<shevy> no man I swear, I was down for almost 3 hours in the last 5 hours or something
mackwic has quit [Quit: Leaving.]
razrunelord has joined #ruby
ws2k3 has joined #ruby
mcrmfc has quit [Ping timeout: 255 seconds]
acrush_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
acrush has quit [Ping timeout: 240 seconds]
dima___ has joined #ruby
funktor has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
favrot has quit [Ping timeout: 252 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
chrisja has joined #ruby
SvenOostenbrink has joined #ruby
dima__ has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
philoserf_ has joined #ruby
freezey has joined #ruby
bluenemo has quit [Ping timeout: 252 seconds]
tjsousa_ has quit [Remote host closed the connection]
s2013 has joined #ruby
robbyoconnor has quit [Excess Flood]
tjsousa_ has joined #ruby
acrush_ has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
shock_one has joined #ruby
<shevy> say I have a directory with 3 entries libunique-1.1.6.tar.xz libunique-2.91.4.tar.xz libunique-3.0.2.tar.xz
philoserf_ has left #ruby [#ruby]
<shevy> is there a convenient way to find out (and retrieve) what is the "most recent version" of that?
<shevy> in that example, libunique-3 as it would have the highest version
<canton7> grab a library which can parse versions
r_b00f has joined #ruby
<canton7> I wrote one called semversion which can handle semantic versions (which your versions look like they're a subset of)
pwh has quit []
kaspergrubbe has quit [Remote host closed the connection]
ce_afk is now known as cescalante
kaspergrubbe has joined #ruby
favrot has joined #ruby
wallerdev has quit [Quit: wallerdev]
timonv has joined #ruby
<shevy> hmm
<certainty> benzrf: does Data.Array.IArray share structure?
<shevy> canton7 is yours available somewhere?
<canton7> shevy, it's on rubygems, and https://github.com/canton7/sem_version
<shevy> kk \o/
<elico> i am looking for a tokyotyrant alternative please.
<canton7> don't confuse it with the 'semver' gem, which does different things
<benzrf> certainty: HUH?
<benzrf> oops caps
<benzrf> o sorry i dont know much about arrays in haskell
<benzrf> :I
<certainty> benzrf: oki :)
<canton7> shevy, looks like I called it sem_version on rubygems
<benzrf> haskellwiki is generally p good
r_b00f has quit []
<benzrf> and #haskell on freenode is the single most helpful channel ive ever been to
<Hanmac> shevy use Gem::Version
<certainty> benzrf: i know, i know :) i'll ask there
anaeem1 has joined #ruby
alex88 has quit [Quit: Leaving...]
tris has quit [Read error: Connection reset by peer]
qba73 has quit []
mikecmpbll has joined #ruby
ascarter has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
<shevy> hmm 431413738 bytes is 411.43 MB right? 2 times / 1024.0 in ruby code
<atmosx> hello
<shevy> hey atmosx!
<shevy> there comes the biorubyman
<atmosx> shevy: Finished the first version of my thesis PoC program
<atmosx> shevy: I need to write some tests...
Hanmac1 has joined #ruby
acrush has joined #ruby
* Biohazard ruby man
<shevy> ewwww tests
<shevy> I hate tests
robbyoconnor has quit [Excess Flood]
kalusn has quit [Remote host closed the connection]
tvw has quit []
robbyoconnor has joined #ruby
<atmosx> me too, I hate them with a passion
bluenemo has joined #ruby
<atmosx> shevy: you listen to these guys? http://ruby5.envylabs.com/ they are 90% rails-driven anyway
<benzrf> tests r dumdedum
<benzrf> *dum
Spami has joined #ruby
i_s has joined #ruby
tris has joined #ruby
SlvrDragn has joined #ruby
_m_g_ has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
eynj has joined #ruby
<Hanmac1> shevy:
<Hanmac1> >> Gem::Version.new("1.2.13") > Gem::Version.new("1.2.2")
<eval-in__> Hanmac1 => true (https://eval.in/141322)
<benzrf> i can imagine writing tests for something that really needs to not be broken
<benzrf> but for every little class??
<atmosx> benzrf: theoritically I should write the tests first, but I leave them alwyas in the end... which doesn't make much sense to test virtually something that you have already tested manually.
<atmosx> benzrf: but it's good for further dev, when you break things up
GaryOak_ has joined #ruby
SlvrDragn has quit [Client Quit]
_m_g_ is now known as SlvrDragn
<certainty> atmosx: how do you know your test is correct?
Vovko has joined #ruby
<apeiros> atmosx: nonsense @ "doesn't make much sense to test virtually something that you have already tested manually"
<dumdedum> unittests are for regressions and maintenance
<certainty> you really want automated tests
<apeiros> atmosx: unless all your code is static and never to be touched again (which is almost 100% certainly not the case)
pu22l3r has joined #ruby
<dumdedum> without them, good luck with your mental health in the future
mikecmpbll has quit [Ping timeout: 255 seconds]
<katlogic> The problem with tests is that those are usually typical american style, all-too-optimistic. They expect to succeed.
<certainty> dumdedum: not only for that but they help there as well
<apeiros> atmosx: oh, I forgot - additional condition in the unless: and forever and ever used in the same environment, i.e. same ruby version and dependencies
<katlogic> Fail-driven development is the next big thing. Regressions tests come close but kinda not there.
<apeiros> katlogic: that's red-green testing
Rollabunna has joined #ruby
Es0teric has joined #ruby
klaut has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
badabim has joined #ruby
mikepack has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
<atmosx> apeiros: yeah that's what I said above.
nomenkun has joined #ruby
<certainty> shevy: why do you hate tests? (serious question)
badabim has quit [Client Quit]
yfeldblum has joined #ruby
freezey has quit [Remote host closed the connection]
<apeiros> atmosx: I'd like to turn it around: if you test it manually (which means you write some code) - why don't you write that very same check not straight as an automated test?
<katlogic> apeiros: I thought in those are written where green state is the desired end result.
<katlogic> Only regressions test for failures (and usually just for regression, it usually does not drive actual development).
<apeiros> katlogic: yes. maybe I misunderstood what you intended to say.
<katlogic> I guess fuzzers would come close.
jamto11 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
eynj has left #ruby [#ruby]
danshultz has joined #ruby
iliketurtles has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
favrot has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
jacobsmith has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
<atmosx> apeiros: By manually I mean testing by manually following all the paths, adding erroneous data and so forth.
nomenkun has quit [Ping timeout: 240 seconds]
paolooo has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Saliendo]
poikon_ has quit []
servatoo has quit [Remote host closed the connection]
<atmosx> apeiros: it's a web application.
<apeiros> atmosx: should say that you speak about system tests and not unit tests :-p
servatoo has joined #ruby
<certainty> katlogic: what would that look like? What is the desired state of the tests you describe?
<apeiros> for me, "tests" without further details means "unit tests"
<certainty> for me too
<apeiros> atmosx: have fun then clicking through your whole web app all the time then
Hanmac1 has quit [Ping timeout: 240 seconds]
<katlogic> certainty: To always seek test for error states. Basically write regression tests by default. (normaly regtests come from bugreports)
bricker`LA has quit [Quit: leaving]
kevinykchan has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 255 seconds]
<atmosx> apeiros: I'm writing the tests anyway...
<katlogic> (I'm not saying its actually viable; just that it would provide much better coverage than "this particular case works, so it is sure all correct"
lazyguru has quit [Quit: ZNC - http://znc.in]
<certainty> katlogic: ah i see so instead of driving out features you focus on correctness only by trying to find the missbehavior. That's usually part of most unit test suites though
funktor has quit [Remote host closed the connection]
<apeiros> a good unit test suite tests happy path + for each positive test at least one negative test
<katlogic> certainty: No, those check for accordance to spec. Finding misbehavior is way more trickier.
<katlogic> There is entire science on model checking :
johncjensen has joined #ruby
<certainty> katlogic: i know model based checking. Don't know if that's what you mean
<katlogic> certainty: In most naive implementation, the tests (which basically tries to crash your app) comprise of domain parameters for fuzzers
<certainty> where fuzzers are just sources of input for your functions?
<Hanmac> apeiros: https://i.chzbgr.com/maxW500/8154181632/hA8FBEAA5/ << "Canadian Pizza Cake" ;P
<katlogic> There is more to be had when actual automata are involved but even mere fuzzers can go a long way.
servatoo has quit [Ping timeout: 252 seconds]
acrush has quit []
<katlogic> certainty: It's how JS implementations are actually tested. It's humanly impossible to envision all the rough corners where JIT implementation can go wrong.
<katlogic> (granted, those rough corners are then translated to regular tests, but fuzzer basically "writes" those, not people)
s2013_ has joined #ruby
<certainty> katlogic: generate input -> feed to function -> test if it crashed/misbehaved ... is that the way it's done?
SvenOostenbrink has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 240 seconds]
<katlogic> certainty: For hours and hours
<certainty> sounds like property based testing taken to the extreme
<katlogic> The test written by human is only specification of domain for randomly generated parameters.
dima___ has quit [Remote host closed the connection]
<katlogic> (just to illustrate how helpful this is)
MatthewsFace has quit [Quit: This computer has gone to sleep]
m00nlight has quit [Quit: Konversation terminated!]
favrot has joined #ruby
dANOKELO_ has quit []
phansch has quit [Quit: WeeChat 0.4.2]
<certainty> katlogic: i can imagine that it's helpful. I already use a somewhat similar approach for pure parts of my code. Much in the spirit of quickcheck
mikecmpbll has joined #ruby
fredmacedo has joined #ruby
Di has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
fredmacedo has quit [Client Quit]
fredmacedo has joined #ruby
Night-hacks has joined #ruby
djbkd has quit [Remote host closed the connection]
funktor has joined #ruby
meatherly has quit [Remote host closed the connection]
nanoyak has joined #ruby
<atmosx> fuck it, I'm bored now. I'll write the tests tomorrow.
lazyguru has joined #ruby
dangerousdave has quit [Ping timeout: 276 seconds]
<atmosx> I need to write capybara tests to upload, submit and test results of an upload... then run a match and tests results again. hm
freezey has joined #ruby
dima__ has joined #ruby
jottr has quit [Read error: Operation timed out]
djbkd has joined #ruby
WilfredTheGreat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dorei has joined #ruby
fredmacedo has quit []
rokob has joined #ruby
timonv has quit [Remote host closed the connection]
rokob has quit [Client Quit]
evenix has joined #ruby
blandflakes has joined #ruby
servatoo has joined #ruby
mikecmpb_ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
jespada has quit [Ping timeout: 252 seconds]
servatoo has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
servatoo has joined #ruby
<certainty> http://lisp-unleashed.de/2014/04/11/testing_your_chicken_code/ my take on testing in CHICKEN scheme ... (shameless selfplug)
mikecmpbll has quit [Ping timeout: 264 seconds]
horrorvacui has joined #ruby
servatoo_ has joined #ruby
rokob has joined #ruby
evenix_ has joined #ruby
funktor has quit [Remote host closed the connection]
<RubyPanther> testing is for chickens, that much I already knew
<certainty> :)
jespada has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
servatoo has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
anaeem1 has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving :)]
pel_daniel has joined #ruby
SvenOostenbrink has joined #ruby
fannye has quit [Read error: Connection reset by peer]
aniM has joined #ruby
anaeem1 has joined #ruby
evenix_ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
johncjensen has quit [Remote host closed the connection]
bradhe has joined #ruby
<mostlybadfly> does anyone here use Caret text editor?
acrush has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty> apropos text editors: http://www.sabi.co.uk/xirc/C/humEditorLearnCurve.jpg :D
dkamioka has joined #ruby
<centrx> dead link
funktor has joined #ruby
<mostlybadfly> wat
Rollabunna has quit [Quit: Leaving...]
<shevy> atmosx haha THAT'S the right attitude! :-)
<shevy> mostlybadfly never heard of it before
<atmosx> shevy: hahah ty
freezey has quit [Remote host closed the connection]
<Hanmac> shevy: https://i.chzbgr.com/maxW500/8154181632/hA8FBEAA5/ << "Canadian Pizza Cake" ;P
ace_striker has joined #ruby
vpretzel_ has joined #ruby
robbyoconnor has joined #ruby
ace_striker is now known as Guest15869
endash has joined #ruby
<mostlybadfly> shevy: it is a sublime clone that runs as a chrome extension for free
Doc_X is now known as dylannorthrup
Guest15869 is now known as ace_striker_
s2013_ has quit [Ping timeout: 252 seconds]
<mostlybadfly> it's pretty good, but i'm trying to get it to auto close tags, i can do it but wanted to see if that was possible
ikaros has quit [Quit: Ex-Chat]
blackmesa has quit [Quit: WeeChat 0.4.3]
acrush_ has joined #ruby
reset has joined #ruby
ace_striker_1 has joined #ruby
<Morrolan> certainty: The emacs' learning curve looks like the Debian logo. :)
blackmesa has joined #ruby
<Morrolan> s/The//
<certainty> Morrolan: heh true, i didn't notice that
danshultz has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<shevy> mostlybadfly hmm can it be only run when one has chrome?
danshultz has joined #ruby
vpretzel|1343 has quit [Ping timeout: 265 seconds]
acrush has quit [Ping timeout: 240 seconds]
<mostlybadfly> i believe so since it is found under extensions
reset has quit [Read error: Connection reset by peer]
<mostlybadfly> but you dont need to run chrome to actually us it
reset has joined #ruby
jxf has joined #ruby
Asher has quit [Quit: Leaving.]
<mostlybadfly> i have it because i use my chromebook to work on stuff and it is a great resource
sdwrage has joined #ruby
jamto11 has joined #ruby
danshult_ has joined #ruby
<mostlybadfly> i have a chroot of ubuntu running in a terminal prompt so i can write a ruby file in caret and then run it in terminal :)
ace_striker_ has quit [Ping timeout: 240 seconds]
lazyguru has quit [Ping timeout: 252 seconds]
<certainty> if it weren't chrome it would probably be cool :)
ankov has joined #ruby
favrot has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
vpretzel_ is now known as vpretzel
<mostlybadfly> haha it's just what i've always used, i dont have a particular favorite i guess
carraroj has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
<certainty> it's a google product, so you better think twice if you want to use it
papercode has joined #ruby
malida has joined #ruby
enebo has quit [Quit: enebo]
reset has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
ekinmur has joined #ruby
meatherly has joined #ruby
<zellio> Is there a way to print out the name spaces ruby is searching through when it is dereferenceing?
AndChat|185600 has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
emaxi has quit [Remote host closed the connection]
<shevy> certainty well that is only one part of the problem, for me the much larger one is that I would have to include chrome into my daily work stack and I don't use chrome right now, just as I don't use or need java
<shevy> I think in the end I am more a C and C++ user :\
emaxi has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
dkamioka has quit [Remote host closed the connection]
metamaterial has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
akonny has joined #ruby
benzrf|offline is now known as benzrf
reset has joined #ruby
CorpusCallosum has joined #ruby
lazyguru has joined #ruby
<rdark> I thought you could put chomebooks in developer mode and get an actual local terminal?
CorpusCallosum has quit [Client Quit]
CorpusCallosum has joined #ruby
reluctantlove has joined #ruby
<mostlybadfly> rdark: you can
MatthewsFace has joined #ruby
<mostlybadfly> but you still need a linux environment to run ruby
zellio has quit [Quit: leaving]
x77686d has joined #ruby
<mostlybadfly> it otherwise just gives you a shell into chromeos
<mostlybadfly> you won't have apt-get or anything, etc
emaxi has quit [Ping timeout: 252 seconds]
<mostlybadfly> and i dont know what the google warning is about, i mean most things we do online is visible
<mostlybadfly> with any produce or service there are always people like "oh you better think twice about that" but based on whatever formed opinion on the matter
<rdark> you can also just install a real distro on it :)
<mostlybadfly> yeah, i have 12.04 running
<mostlybadfly> i just don't need to actually dual boot
jprovazn has quit [Quit: Odcházím]
<mostlybadfly> it's hard to describe, its done through crouton
pwh has joined #ruby
<mostlybadfly> some more info https://github.com/dnschneid/crouton
acrush_ has quit [Quit: Page closed]
ace_striker_1 has quit [Quit: Page closed]
<rdark> ah - looks cool, you just mount + chroot the other filesystems
yfeldblum has joined #ruby
<apeiros> MAN!
<apeiros> ruby 2.1 still doesn't have Struct#from_hash
anaeem1 has quit [Remote host closed the connection]
* apeiros grumbles
<sweeper> there's always Hash#to_struct
linduxed has quit [Read error: Connection reset by peer]
<miah> Hasbro#to_struct
dkamioka has joined #ruby
<apeiros> sweeper: errr… what world do you live in?
<apeiros> >> Hash.method_defined? :to_struct
<eval-in__> apeiros => false (https://eval.in/141328)
bklane has joined #ruby
marc_online_ has joined #ruby
bluenemo has quit [Read error: Operation timed out]
<wwkeyboard> Why do you want to build a struct from a hash? If you already have that memory allocated wouldn't it be better to stick with a hash?
qba73 has joined #ruby
<apeiros> wwkeyboard: no
danshult_ has quit [Remote host closed the connection]
<mostlybadfly> rdark: yep and it has access to the Downloads directory which is the only real directory in chromeos that is used
<apeiros> wwkeyboard: that's a rather poor logic
<mostlybadfly> for reading/writing that is
JacquesW has joined #ruby
<apeiros> wwkeyboard: lets not "upgrade" any primitive datastructure because we already occupy the memory…
<mostlybadfly> so even when in the chroot you can save your ruby or rails files there and run them from there
danshultz has joined #ruby
KanKava has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 252 seconds]
<wwkeyboard> apeiros: I'm still curious what properties of a struct you are looking for.
danshultz has joined #ruby
<miah> "You have a hash that stores several different types of objects, and is passed around and used for more than one purpose.
<miah> "Replace the hash with an object that has a field for each key"
<sweeper> apeiros: the one where I'm a bastard who sends people digging through docs in false hope?
<apeiros> wwkeyboard: the struct is much more revealing about the purpose of the data
<apeiros> hash is "whatever"
<apeiros> sweeper: lucky I know core mostly by heart
robbyoconnor has quit [Ping timeout: 252 seconds]
funktor has quit [Read error: Connection reset by peer]
razrunelord has joined #ruby
<apeiros> sweeper: though, that one is obvious without knowing too. the method wouldn't make much sense.
funktor has joined #ruby
<apeiros> hi miah
gfunc has joined #ruby
<miah> hi
<wwkeyboard> apeiros: OK, I buy that, you are getting the hash from somewhere else and converting it to your struct.
<apeiros> wwkeyboard: correct
AlSquire has quit [Quit: This computer has gone to sleep]
<wwkeyboard> But what happens when the incoming hash has extra attributes?
<apeiros> I raise
<wwkeyboard> You can't change the struct,
<apeiros> yes
<sweeper> apeiros: if you love it so much, monkeypatch I guess :P
terrellt has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> sweeper: have that since… 2005?
<sweeper> haha nice
<wwkeyboard> But that seems like it's your logic, you were asking if there was a method in the STDlib that did the conversion for you.
<sweeper> and a PR?
terrellt has joined #ruby
<apeiros> sweeper: only disappointed it's not in core yet :(
<wwkeyboard> And I think thats is the problem, it's undefined if there are extra attributes.
<apeiros> sweeper: I might try again.
<apeiros> wwkeyboard: errr, that's not a problem. that's a feature.
<apeiros> "dude, you have random stuff in that hash which does not belong in there. you have a bug!"
<miah> yup
<apeiros> opposed to "oh, lets just silently ignore that trash"
<miah> hash passing is a big problem in the Chef world
terrellt has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Ping timeout: 255 seconds]
<miah> not to mention that all sorts of data lives in this huge, dynamic, 'node' hash
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> miah: I guess you're happy about kwargs then? I think they'll help a lot with that issue
robbyoconnor has joined #ruby
djbkd has joined #ruby
<sweeper> yay kwargs
<miah> the only people i see using kwargs are python programmers
terrellt has joined #ruby
crystal77 has joined #ruby
<wwkeyboard> isn't that where the mass assignment issues in Rails came from last year?
<apeiros> I'm currently working on something which is 2.1+ only. so I'll explore all those shiny new things :D
<wwkeyboard> Just passing around extra attributes
<apeiros> miah: yeah, I guess too many have to consider <2.0
<apeiros> which is fine, but might change in ~3-5y
<miah> also, chef omnibus is still Ruby 1.9 iirc
<apeiros> (at least iirc that was about the time it took for 1.9 features to be used more dominantly)
LadyRainicorn has joined #ruby
<miah> heh. still trying to get people to notice things like Ruby 1.9 Hash Syntax
<shevy> don't forget the encoding switch!
<apeiros> wwkeyboard: oh don't get me started about attr_accessible
<apeiros> good intention. utterly broken approach.
<miah> rubocop helps there though
etqqkoiflwhb has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> miah: hm, I'm still deeply suspicious about metric tools. my experience wasn't exactly stellar. (maybe my code is just shit, though :-p)
<miah> hah
<miah> so, i dont see rubocop as a metric tool
<miah> more of a, style enforcement
sdwrage has quit [Quit: This computer has gone to sleep]
<miah> having everybody on your team writing in the same style is good
gfunc has quit [Remote host closed the connection]
<apeiros> agreed
<miah> now, tools like `reek`, `flay, `codeclimate` are a bit more.. tricky. because they deal with things like cyclomatic complextity
<apeiros> maybe I should try it again
<miah> but i still try to follow them
<apeiros> maybe I just didn't have enough patience to configure it for our style guide
<miah> 'configure'. i just run rubocop, with no rules. and fix the errors it produces.
* Hanmac 's system is gaining more "trust" ;P
deens has quit []
<apeiros> last time I tried it, I didn't like its idea of good style :)
<miah> rubocop is all about the 'ruby-style-guide'
<miah> ya, well. its not about your opinion
<miah> its about ensuring that the programmers around you can easily pickup your code and digest it
<miah> and not have to ingest your style as well
favrot has joined #ruby
rdark has quit [Quit: leaving]
<apeiros> miah: yes. but as long as there's no universally accepted "correct" style, I'll use my style, or the company/team agreed style in those places
agjacome has joined #ruby
<miah> its about minimizing mental processing when exploring code that is new to you, or stuff you haven't touched in ages.
<miah> sure
<apeiros> miah: but I did e.g. switch to 2-space indent, even though I dislike it. exactly for the reason you cite.
bklane_ has joined #ruby
<shevy> \o/
<apeiros> convention is more important in this case than personal preference.
<miah> i tend to follow RSG because it seems to be.. community standard.
<miah> yes
dfinly has joined #ruby
<apeiros> anyway, back at reinventing wheels! :D
<miah> =)
<miah> enjoy
<apeiros> heh, I do. nothing more fun than reinventing wheels ^^
<apeiros> (of course, mine is rounder than any wheel before it!)
Hanmac1 has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
davedev24 has quit []
eynj has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
x1337807x has joined #ruby
<miah> ya
<miah> shit, all i do is rewrite everything in chef because its all a horrible mess
<benzrf> sdifuchiewufhnewosidcnlsidj
<miah> sadly few op's people understand the logic of programming
Hanmac has quit [Ping timeout: 265 seconds]
<benzrf> what the fuck is wrong with my code
favrot has quit [Ping timeout: 252 seconds]
bklane has quit [Ping timeout: 245 seconds]
<miah> they'll learn though (or somebody will replace them)
<shevy> benzrf perhaps you use too complicated features
phantasm66 has joined #ruby
<apeiros> miah: I wished we had more time to collab with our ops guy. he is interested to learn. though he'd use python (fine by me, he has good arguments why).
<benzrf> ive tested a simpler case of what seems to be the same thing
<benzrf> and it works fine
<benzrf> T_T
blackavr has joined #ruby
<centrx> >> "T_T".to_sym
<eval-in__> centrx => :T_T (https://eval.in/141332)
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has joined #ruby
marc_online_ has quit [Quit: Leaving]
kirun has joined #ruby
omosoj has quit [Ping timeout: 255 seconds]
johncjensen has joined #ruby
<shevy> benzrf that's how ruby brings you to true simplicity
Nogbit has joined #ruby
<apeiros> *sob* postgres is nice. but also still sooo much to learn about it :-S
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby
bklane_ has quit [Quit: Leaving...]
JacquesW has left #ruby ["ruby"]
<miah> ya
<miah> postgres is fantastic
bluOxigen has quit [Ping timeout: 240 seconds]
<miah> quite a bit more complex than mysql
<miah> and for sure more standards compliant =)
iliketurtles has quit [Quit: zzzzz…..]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
freezey has joined #ruby
<apeiros> miah: got a book recommendation?
phansch has joined #ruby
djbkd has joined #ruby
sdwrage has joined #ruby
Shidash has joined #ruby
timonv has joined #ruby
ekinmur has quit []
RubyDubyDoo has joined #ruby
nari has quit [Ping timeout: 252 seconds]
bean has joined #ruby
x1337807x has joined #ruby
djbkd has quit [Remote host closed the connection]
sepp2k has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
holomorph has joined #ruby
baweaver has joined #ruby
bluOxigen has joined #ruby
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
pwh has quit []
Night-hacks has quit [Quit: Leaving.]
razrunelord has left #ruby [#ruby]
kith has quit [Quit: kith]
Hanmac1 has quit [Quit: Leaving.]
kith has joined #ruby
Hanmac has joined #ruby
emaxi has joined #ruby
terrellt has quit [Remote host closed the connection]
emaxi has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
djbkd has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
iliketurtles has joined #ruby
terrellt has joined #ruby
reluctantlove has quit [Ping timeout: 265 seconds]
zeropx has quit [Remote host closed the connection]
akonny has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
thumpba__ has joined #ruby
akonny has joined #ruby
dkamioka has quit [Remote host closed the connection]
ankov has quit [Remote host closed the connection]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
carlyle has joined #ruby
aniM has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 264 seconds]
Squarepy has joined #ruby
<j416> apeiros: the class_eval things from the other day worked fantastically by the way
<j416> thank you again
Hanmac1 has joined #ruby
<j416> :)
<apeiros> yw
Vovko has quit [Remote host closed the connection]
timgauthier has joined #ruby
pel_daniel has quit [Ping timeout: 264 seconds]
funktor has quit []
marc_online_ has joined #ruby
Vovko has joined #ruby
jacobsmith has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cya]
dkamioka has joined #ruby
<RubyPanther> I've always found the postgres online documentation to be really good, usually whatever I want to do has an example in the SQL reference for the command
reluctantlove has joined #ruby
jxf has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
pel_daniel has joined #ruby
<apeiros> RubyPanther: the docs are quite good. I'm currently scouring them. but some things are (IMO) needlessly difficult. e.g. getting the create statement for an existing table.
<RubyPanther> I learned PL/SQL and MTI and all that from the old manual, that was in the 90s
zachallett has joined #ruby
<apeiros> (programmatically of course)
mikepack has joined #ruby
afex has joined #ruby
<shevy> man RubyPanther
<shevy> are you bringing again the origin of earth
tum_ has joined #ruby
<RubyPanther> apeiros: pg_dump -t 'table' --schema-only # is the normal way
<shevy> IT'S OVER
<shevy> the 90s ARE LIKE 30 YEARS PAST
tvw has joined #ruby
<apeiros> found that one. I'd like to do that without having to shell out.
<RubyPanther> I know, but that's how long ago I was a db consultant. Even as a postgres professional I never did find an actual book on it. But I never quite needed it. I did use a general standards-based SQL book
ephemerian has joined #ruby
<apeiros> well, that situation at least seems to have gotten better: http://www.postgresql.org/docs/books/ :)
razrunelord has joined #ruby
<RubyPanther> apeiros: I'm suspicious of a use case where the shell is bad or expensive but you're dumping tables
* myke adds 90 + 30
ankov has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mikepack has quit [Ping timeout: 264 seconds]
Fretta has quit [Ping timeout: 252 seconds]
jxf has quit [Ping timeout: 240 seconds]
<apeiros> heh, found that one too. but thanks for trying to help me! :)
Xeago has joined #ruby
<apeiros> (those were the only two I found)
terrellt has quit [Remote host closed the connection]
<apeiros> I have yet to see how well that function works, I somewhat doubt it covers all of http://www.postgresql.org/docs/9.3/static/sql-createtable.html
reluctantlove has quit [Remote host closed the connection]
dima__ has quit [Remote host closed the connection]
tum_ has quit [Quit: Leaving]
<RubyPanther> far more common is doing CREATE ... AS SELECT ... and so most people don't need to know all that stuff
shock_one has quit [Read error: Operation timed out]
<RubyPanther> apeiros: yeah, if you really want every last detail you might as well write it in C too so that you don't have to install languages to use it
qba73 has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
<RubyPanther> presumably much of that could be pasted from pg_dump
<apeiros> RubyPanther: install languages? as in pgplsql and pgruby etc.?
<RubyPanther> pgplsql yeah
sepp2k1 has joined #ruby
<apeiros> well, being able to do it from plain sql would be nice
sepp2k has quit [Ping timeout: 265 seconds]
goleldar has quit [Remote host closed the connection]
<apeiros> pgplsql is acceptable, even if not too nice
AlexRussia has joined #ruby
terrellt has joined #ruby
timonv has joined #ruby
<RubyPanther> pl/ruby is lots of fun, but I never actually use it
<apeiros> :)
ndrei has quit [Ping timeout: 255 seconds]
thumpba__ has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
* timgauthier screams and runs under his desk
<shevy> RubyPanther what else do you do to interface with postgre?
<timgauthier> So i was just reading about this Awesome, amazing new CMS that all of the designers are raving about
<timgauthier> how amazing it is, how easy to use it is, how it has no parsing order
<timgauthier> how it uses twig as a template engine (looks like liquid syntax) and how amazing it is for designers
<shevy> sounds awful
malida has quit [Read error: Connection reset by peer]
<timgauthier> and i go to the website, i go to click on download
malida has joined #ruby
<timgauthier> it requires php5 :|
<crome> shevy: I noticed a pattern
<crome> you hate everything you dont know
<LadyRainicorn> lolphp
<crome> which does not necessarily mean you are not right
<shevy> crome nope, I hate php
<crome> of course
<crome> ;>
<katlogic> php is awesome
<RubyPanther> shevy: I just use the REPL and the CLI and AR
<katlogic> for wordpress
<katlogic> why people keep reinventing wordpress :(
<timgauthier> wordpress is terrible
<shevy> haha
<timgauthier> wordpress isn't a CMS
qba73 has joined #ruby
<katlogic> well, when we're confined to scope of php
<timgauthier> and its too bloated to be a blogging platform
<timgauthier> it falls apart and costs my customers money, intact I now make money moving people away from wordpress!
<RubyPanther> today I'm writing a GUI reports tool for SQL Server, though. Thankfully AR will hide the details.
<timgauthier> and this Craft thing truly looks amazing and very nice
<katlogic> timgauthier: die octopress hippy!
<timgauthier> but why is it PHP :(
<shevy> because it is the language of the world wide web
AndChat|185600 has joined #ruby
<LadyRainicorn> http://codepad.org/0C0GivUF is my new favorite PHP snippet.
<timgauthier> i don't use octopress either, most people don't need a blogging engine, they need a CMS
<katlogic> indeed, php is the official language of internet.
holomorph has left #ruby [#ruby]
<crome> just rename all the files to .rb and rescue ScriptError
<katlogic> mmm
tjsousa_ has quit [Quit: Computer has gone to sleep.]
<shevy> LadyRainicorn that is so awful
<apeiros> RubyPanther: does pg have something akin to oracle's packages to organize procedures/functions?
tjsousa_ has joined #ruby
<LadyRainicorn> Yes.
<RubyPanther> Last time I need weblahhging I used hobix https://github.com/hobix/hobix
omosoj has quit [Ping timeout: 252 seconds]
<LadyRainicorn> PHP's horribleness has an infinite surface area.
<timgauthier> lol LadyRainicorn
CodeBunny has joined #ruby
<crome> :D
<timgauthier> the good news with craft is that you are not writing php for it, you write in twig which is like liquid which isn't any better then .erb and i think likely gives you less control
<Morrolan> So it's basically intestines after infinite years of evolution? :)
<timgauthier> but the upside is that i can just install craft on almost any host package
Hanmac has joined #ruby
<crome> brb, kernel upgrade
crome has quit [Quit: leaving]
yfeldblum has quit [Remote host closed the connection]
<LadyRainicorn> Yes, except without the deliciousness.
malida has quit [Ping timeout: 240 seconds]
levity_island has joined #ruby
<j416> if I want to infinitely loop until a condition is true, should I: next until <condition> -or- nil until <condition>
<j416> next until sounds more natural but logically nil makes a bit more sense, perhaps
<apeiros> j416: that's a busy loop and generally a bad thing
<apeiros> j416: at the very least perform a sleep, even of only for 0.01
<j416> I'm waiting for user input
<apeiros> j416: then you don't need such a loop
<j416> then what?
<shevy> j416 use loop {}
<apeiros> j416: use a blocking method
<j416> ah, loop {}
<j416> thanks
<timgauthier> shevy i've yet to find a ruby based thing i can use for client work sadly
<j416> apeiros: hm?
<apeiros> *sob*
<RubyPanther> apeiros: I haven't use oracle more than a few times, but postgres just uses schemas. so for example an addon package of functions would provide its own schema
ndrei has joined #ruby
<shevy> timgauthier you mean for web-content creation stuff?
tjsousa_ has quit [Ping timeout: 240 seconds]
<shevy> timgauthier rails!!!!!!
<apeiros> RubyPanther: ok, I guess that makes sense
<shevy> you can do PHP like shops in RAILS
<j416> apeiros: I'm waiting for user input and I'm asking the user over and over again until input is valid
<apeiros> j416: e.g. IO#gets already blocks for you
<j416> gets is what I'm using
<timgauthier> rails doesn't work for my clients, they can't be installing rails to update their own site
Night-hacks has joined #ruby
<shevy> j416 gets() should suffice, there is also select() though
<j416> no
<j416> I failed to explain
<RubyPanther> apeiros: the downside is that in the client you often have to set the schema search path in order to avoid explicitly naming the schema over and over
<apeiros> j416: in that case, I don't think I see how your question makes sense, because neither would work
<j416> <condition> is not "user input something"
<apeiros> I mean, neither of your two options would work
<j416> well, I'm doing next until <condition> now and it works
<apeiros> get_input until valid_input?
<shevy> j416, like select( [$stdin], nil, nil, 1.1 ) - I use that for my IRC bot, so it can listen to input but I can also talk through it from the commandline
<j416> apeiros: hm maybe
chrisja has quit [Quit: leaving]
<j416> apeiros: right now I'm just calling a method in the condition that asks the user
<timgauthier> shevy i need something that i can install that the client can log in and update content easily. sadly that doesn't exist unless i build it from scratch with rails.
<j416> apeiros: simplified: next until gets.chomp == 'blergh'
senayar has quit [Remote host closed the connection]
noocode has quit [Ping timeout: 246 seconds]
flowerpot has quit [Ping timeout: 246 seconds]
justinxreese has quit [Ping timeout: 246 seconds]
hoelzro has quit [Ping timeout: 246 seconds]
lele has quit [Ping timeout: 246 seconds]
hanikazmi has quit [Ping timeout: 246 seconds]
kartouch has quit [Ping timeout: 246 seconds]
artmann has quit [Ping timeout: 246 seconds]
phrozen77 has quit [Ping timeout: 246 seconds]
jaffery has quit [Ping timeout: 246 seconds]
justinxreese has joined #ruby
SegFaultAX has quit [Ping timeout: 246 seconds]
kalleth has quit [Ping timeout: 246 seconds]
bpgoldsb has quit [Ping timeout: 246 seconds]
Norrin has quit [Ping timeout: 246 seconds]
ohcibi has quit [Read error: Connection reset by peer]
arubincloud has quit [Ping timeout: 246 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
Mapley has quit [Ping timeout: 246 seconds]
zenojis has quit [Ping timeout: 246 seconds]
<apeiros> j416: you're not really asking the user for input then, though
<j416> I don't
<j416> I'm... not?
<apeiros> as in, you don't tell him/her that the input was wrong
<Morrolan> timgauthier: Sounds like you're looking for one of the many CMSes out there? ;)
<j416> and I don't want to
schaary has quit [Ping timeout: 246 seconds]
eataix has quit [Ping timeout: 246 seconds]
m3nTe has quit [Ping timeout: 265 seconds]
maestrojed has joined #ruby
EminenceHC has quit [Remote host closed the connection]
<RubyPanther> timgauthier: You have to build it from scratch to the needs of each client because including all the features all the clients need gives you a kitchen sink that few of them can use without handholding, and the minimum feature sets often conflict
<shevy> I think you two should continue detailing this!
<j416> I just wanted to know if "next until" had some implication
s2013 has joined #ruby
<apeiros> rephrasing: you're just waiting for input, not asking for input
<j416> I'm asking earlier
<j416> but it's not important :)
<j416> it's obvious by the context
<apeiros> well, your app :-)
<j416> this is more like a confirmation
<apeiros> meh
cschneid has quit [Ping timeout: 247 seconds]
geoffw8_ has quit [Quit: Connection closed for inactivity]
<shevy> I cant recall having seen "next until" before :P
<timgauthier> Morrolan yes, i have a couple of CMS's to use, the problem is that shevvy hates the php based ones :P. I'd love to use a ruby based one but i don't know of any
<Morrolan> timgauthier: Ah. :)
RubyDubyDoo has quit [Quit: Leaving.]
<RubyPanther> What you want is a rails-based CMS of your own design that you know well and can easily plug new features into
<timgauthier> RubyPanther maybe :P
<shevy> nonono
<shevy> timgauthier that is totally not true
<timgauthier> i'm not advanced enough to do that though ;)
<Morrolan> Don't listen to shevy when it comes to PHP. ;)
<shevy> Morrolan you can listen to me but only if you quote correctly, not incorrectly as timgauthier
eataix has joined #ruby
SonicX has quit [Ping timeout: 252 seconds]
HashNuke has quit [Ping timeout: 246 seconds]
<shevy> timgauthier I want that too!
davedev24 has joined #ruby
timonv has quit [Remote host closed the connection]
marc_online_ has joined #ruby
<timgauthier> i actually want a ruby based cms rendering engine and content API
gchristensen has joined #ruby
<shevy> there are some amazing pieces of software written in php
razrunelord has quit [Remote host closed the connection]
marc_online_ has quit [Quit: Leaving]
blackavr has quit [Quit: blackavr]
<RubyPanther> What most consultants out there do is set up wordpress, blame anything hard on wordpress' big name and certain suitability, and then just end up doing the handholding. Of course "most consultants" are failed PHP programmers who now setup wordpress for a living...
bjeanes has quit [Ping timeout: 247 seconds]
<katlogic> RubyPanther: but but ... what about poor joomla? drupal? nucleus?
artmann_ has joined #ruby
kalleth has joined #ruby
* j416 leaves having learnt little :(
hoelzro_ has joined #ruby
timmow has quit [Ping timeout: 246 seconds]
<RubyPanther> j416: Learn faster!
benzrf has left #ruby [#ruby]
benzrf has joined #ruby
Sammael has quit [Ping timeout: 246 seconds]
meinside has quit [Ping timeout: 246 seconds]
dioms_ has quit [Ping timeout: 246 seconds]
antonishen has quit [Ping timeout: 246 seconds]
<shevy> j416 you learnt much!
<RubyPanther> katlogic: I'm sure they have their share of failures ready to sell and configure
<j416> it looks cleaner
<katlogic> You're treating php crapware unequally.
<j416> shevy: user
<shevy> j416 you learned that you should use loop {} and that you can also use select and that you should not use next
levity_island has joined #ruby
<j416> shevy: no I didn't
noocode has joined #ruby
<shevy> :\
<shevy> and where from comes input the first time
<timgauthier> RubyPanther yeah, thats what i call not doing it the right way :P
<j416> shevy: you don't even know my use case so stop :/ing :)
<j416> because loop has no condition
<j416> I will do: input = get_input until valid?(input)
<timgauthier> i'm just a designer, i really don't want to have to build a complete back end repeatedly, i want a system i can reuse that lets me have a front end that matches my needs for each project. the backend should let me plug the stuff i need into it! I am going to give sinatra a serious try with my personal project when i can
guilleiguaran_ has quit [Ping timeout: 246 seconds]
gyre007___ has quit [Ping timeout: 246 seconds]
hfp is now known as hfp`offline
levity_island has quit [Quit: levity_island]
tekacs has quit [Ping timeout: 246 seconds]
JStoker has quit [Ping timeout: 246 seconds]
bedouin has quit [Ping timeout: 246 seconds]
CJD14__ has quit [Ping timeout: 246 seconds]
<shevy> I commented on that code
<RubyPanther> conditions are optional. in CS 1 they taught me the basic application lifecycle: input, process, output, loop forever
<CodeBunny> timgauthier: drupal
<shevy> I did not comment on your use case
malida has joined #ruby
<shevy> :/
<j416> what code?
supershabam has quit [Ping timeout: 246 seconds]
cmaxw_____ has quit [Ping timeout: 246 seconds]
<shevy> <j416> I will do: input = get_input until valid?(input)
<j416> why is it bad?
<shevy> I don't see code like that often
<shevy> x = 5 until something?(x)
<RubyPanther> timgauthier: No, the strategy is to build a complex backend once, and then hide the details mostly by only designing in the parts you want for each client
<shevy> no thanks
<j416> (fwiw the methods don't have those exact names, but no matter)
schaary|afk has joined #ruby
<shevy> it's your code anyway
Norrin has joined #ruby
OliverJAsh has quit [Quit: Connection closed for inactivity]
<j416> shevy: what would you suggest?
eataix has quit [Changing host]
eataix has joined #ruby
<j416> shevy: loop has no condition
bpgoldsb has joined #ruby
eataix has joined #ruby
Devanon has joined #ruby
<shevy> valid? will return a condition too, so you already work with conditions
marc_online_ has joined #ruby
arubincloud has joined #ruby
<shevy> it is your requirement that it all must happen in one line, not mine
<shevy> nonono that is your code, not mine
<katlogic> Clearly it is patented. That would be patent infrigment.
<shevy> j416 already did, you rejected it, no problem, it's your code
<timgauthier> RubyPanther yeah thats the dream :S
im0b has quit [Ping timeout: 246 seconds]
<katlogic> RubyPanther: Isn't that approach patented by 37signals?
<shevy> j416 so?
marc_online_ has joined #ruby
<RubyPanther> They didn't need a patent, they have a solid early-mover advantage. Anyways rails is their free advertising. If they had a patent they'd have to hire marketing people and stop saying F* U
crome has joined #ruby
<shevy> in ruby everyone is free to use what he or she prefers
<apeiros> j416: loop is IMO always a poor choice.
<j416> shevy: well, I need to stop looping when condition is met
<j416> shevy: if you don't have anything good to say I'll just return to the project
<shevy> j416 it's a bit hard to generalize because in some code I use things differently, for instance: in games I like to refer to an ivar called @game_over
<shevy> loop is perfect
eataix has joined #ruby
<shevy> j416 well, in principle yes, but I usually split it up into separate methods
servatoo has joined #ruby
kartouch has joined #ruby
postmodern has joined #ruby
<j416> I never said it's a requirement for it to be one line
meinside has joined #ruby
hanikazmi has joined #ruby
bjeanes has joined #ruby
<shevy> but you use only one line :)
antonishen has joined #ruby
* j416 gets back to project, thanks all.
<j416> I have a single condition and there will never be less nor more
kapowaz has quit [Ping timeout: 246 seconds]
<j416> shevy: I was just interested in what you may suggest
zenojis has joined #ruby
supershabam has joined #ruby
timmow has joined #ruby
dioms_ has joined #ruby
<katlogic> wow, irccloud zergrush
SegFaultAX has joined #ruby
<j416> shevy: loop and break?
<apeiros> j416: use until, not loop.
gyre007___ has joined #ruby
<shevy> loop {}
<timgauthier> i have an omnifile list with my wish list on it as it grows
<j416> apeiros: thanks.
dnyy has joined #ruby
<j416> shevy: where do you suggest i put valid?(input)?
ohcibi has joined #ruby
<j416> nevermind then
jaffery has joined #ruby
HashNuke has joined #ruby
guilleiguaran_ has joined #ruby
<RubyPanther> katlogic: I hope not since they released rails! lol
<j416> why loop and not until?
lele has joined #ruby
tekacs has joined #ruby
dnyy has quit [Ping timeout: 246 seconds]
marc_online_ has quit [Client Quit]
crystal77 has quit [Quit: Computer has gone to sleep.]
marc_online_ has quit [Client Quit]
AndChat|185600 has quit [Ping timeout: 240 seconds]
octarine has quit [Ping timeout: 249 seconds]
servatoo_ has quit [Remote host closed the connection]
bline79 has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
jack_rabbit has quit [Quit: Leaving]
alol has quit [Ping timeout: 247 seconds]
lectrick has quit [Ping timeout: 247 seconds]
kapowaz has joined #ruby
<s2013> how do i upgrade ruby2 to ruby 2.1 on ubuntu? apt-get doesnt work
flowerpot has joined #ruby
JStoker has joined #ruby
lectrick__ has joined #ruby
cmaxw_____ has joined #ruby
eataix has quit [Ping timeout: 246 seconds]
Spitfire has quit [Ping timeout: 246 seconds]
<s2013> do i use rvm then?
octarine has joined #ruby
<RubyPanther> it doesn't matter if you use loop or until or whatever, as long as the work inside is only a single method call, and the loop block is in its own method
phrozen77 has joined #ruby
bedouin has joined #ruby
mnemon has quit [Read error: Connection reset by peer]
sebastianb has joined #ruby
bline79 has joined #ruby
im0b has joined #ruby
eataix has joined #ruby
mnemon has joined #ruby
<RubyPanther> then you can just return from the method when ready and not worry about the loop
CJD14__ has joined #ruby
danshultz has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
rezzack has joined #ruby
servatoo has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
<Morrolan> s2013: If you rely on the system's package manager, you'll have to wait until your distribution's maintainers package Ruby 2.1, yea. That's one of the reasons why, for development, people use tools like RVM or chruby.
alol has joined #ruby
johncjensen has joined #ruby
pwh has joined #ruby
<s2013> k cool jus twondering
<s2013> thanks
<Morrolan> (Another reason being that those tools allow you to easily have different versions of Ruby installed)
<shevy> Morrolan don't hate on debian!!!
yfeldblum has joined #ruby
<RubyPanther> system ruby is only used for system packages that need it
<shevy> they consider ruby 2.1 as WAY too unstable to package it!
Spitfire has joined #ruby
<Morrolan> shevy: I think Debian stable is actually on 1.9 by now!
likemike has quit [Read error: Operation timed out]
<shevy> man that's a risky move
<shevy> I would have stayed on 1.8.x for longer
nanoyak has quit [Quit: Computer has gone to sleep.]
<timgauthier> shevy lol
likemike has joined #ruby
cschneid has joined #ruby
<Night-hacks> can anyone explain whats the difference bet  instance variable, local variable , and class variable ?
crucify_me has joined #ruby
rezzack has quit [Client Quit]
<RubyPanther> 1.9 has only been stable for what, 4 years? That is like, new and scary. Barely enough time to shake out a heartbleed. I sympathize with the BOFH.
<shevy> Night-hacks local variable is like: x = 5
danshult_ has joined #ruby
<shevy> Night-hacks the other two variants have a broader scope, and at least one @
rezzack has joined #ruby
<shevy> Night-hacks in a class you usually want to use a @ivar if it is important for that class in question, like class Person; def initialize; @age = 15; end; end
<RubyPanther> instance variable belongs to the instance, local variable belongs to the method, class variable belongs to the class
decoponio has quit [Quit: Leaving...]
<apeiros> local variable belongs to the local lexical context
danshultz has quit [Read error: Connection reset by peer]
<apeiros> and possible to closures closing over it
<apeiros> *possibly
schaary|afk is now known as schaary
Trynemjoel has quit [Ping timeout: 245 seconds]
<RubyPanther> sure, I was sloppy on locals
<Night-hacks> i got local variables
<shevy> \o/
alvaro_o has joined #ruby
<shevy> we have 33% covered then
<Night-hacks> yes
<shevy> Night-hacks @@class variables are awful, you can forget them
<shevy> then we have 50% covered!
kevinykchan has joined #ruby
mark_locklear has quit [Quit: Leaving]
<Night-hacks> about @age
<RubyPanther> You can't forget @@classvars, Matz knows best
<shevy> @age is an instance variable
<shevy> hopefully it keeps track of the age of a Person
<gchristensen> I'm using open-uri on an HTTPS resource, and I'm getting an OpenSSL::SSL::SSLError SSL_connect exception about certificate verify failed, meanwhile chrome and curl do fine, running 2.0.0p353 -- here's a gist (with a sample URL, and output) https://gist.github.com/grahamc/a05e6e1d80524e694807 -- any tips on resolving this? I tried updating the ca bundle, that didn't seem to make an effect. I don't want to
<gchristensen> disable SSL peer verification.
kitak has quit [Remote host closed the connection]
<Night-hacks> it's reachable in a class bet different methods right ?
<Night-hacks> i mean @age
<RubyPanther> Some people are frightened of class variables and hide under skins wielding spears
Trynemjoel has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
kitak has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<RubyPanther> gchristensen: You generally disable peer verification, or else only connect to correctly configured peers
Mapley has joined #ruby
bluenemo has joined #ruby
<Night-hacks> am i right shevy ?
baroquebobcat has joined #ruby
<RubyPanther> for things like web spiders you disable for sure because it's the wild west out there
<shevy> well
<shevy> Night-hacks if you wish to access @age, you need to use a method
<shevy> Night-hacks but yes, inside your class you can use @age freely
<shevy> it will keep track of what was stored there
<RubyPanther> good idea to check @age before accepting bets
<shevy> it is like a local variable but it is local to your whole class
<gchristensen> RubyPanther: are you able to point to an issue with that host which makes it not configured properly? because I definitely haven't ever really needed to disable SSL verification for anything reasonable.
AlexRussia has joined #ruby
<RubyPanther> gchristensen: because they self-issue
<gchristensen> this is /not/ a self-issued certificate, this is via GoDaddy with a valid chain of trust.
afex has quit [Ping timeout: 240 seconds]
<Night-hacks> shevy: nice so i got the class @variables too ;)
Aaaal has quit [Quit: Aaaal]
<shevy> excellent
<RubyPanther> writing a web spider you're guaranteed to smash into that error on day 1 if you use live sites
<shevy> Night-hacks @@class variables are not so useful
sebastianb has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
mansi_ has joined #ruby
<Night-hacks> shevy: what's their scope ?
<shevy> Night-hacks it is basically a counter for the class you define it in
<shevy> like class Person; @@foo = 5; end
qba73 has quit []
<shevy> or rather
<shevy> like class Person; @@foo = 5; def initialize; @@foo +=1; end; end
sebastianb has joined #ruby
<gchristensen> RubyPanther: you're not looking at my issue, but making recommendations based on general cases.
<gchristensen> I'm not helping my case here, I know, but just putting that out there.
<Night-hacks> shevy: is it a shared memory if i create different instance so this @@var points to the same memory address ?
<gchristensen> I appreciate your feedback, though.
<RubyPanther> gchristensen: L O L
gchristensen has left #ruby ["WeeChat 0.4.1"]
<RubyPanther> or, lots of experience with this EXACT ERROR
<shevy> Night-hacks no idea what you mean with memory address, you can't easily manipulate memory stuff from within ruby
<RubyPanther> like I said, if you're written Ruby web spiders, this error is old hat
<Night-hacks> shevy: let me explain
<shevy> Night-hacks but @@var will be unique to all classes like that
lkba has quit [Ping timeout: 264 seconds]
<shevy> or rather, global for all these classes haha
echevemaster has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 240 seconds]
<Night-hacks> shevy: like static vars in java
<arubincloud> Not quite.
<shevy> I think static vars in java are another concept
<arubincloud> Use of @@ is strong discouraged.
jespada has quit [Ping timeout: 276 seconds]
<shevy> Night-hacks but keep in mind what I wrote above, @@ is awful, don't use it
<arubincloud> @@ will look all the way up the class hierarchy looking for an existing variable first.
crystal77 has joined #ruby
<RubyPanther> Use of @@ is not "discouraged" by Ruby, only by a few hipsters who actually think they can design a better language than Matz, but instead of doing so, they pee on Ruby features
<arubincloud> RubyPanther: There are very good reasons not to use @@.
saarinen has joined #ruby
<RubyPanther> Sure, and there are very good reasons TO use it!
servatoo has joined #ruby
<arubincloud> And it does not do what most people think that it does.
<RubyPanther> Not your favorite feature, or not how you do it, that is NOT the same as something being considered dangerous, it is not an excuse to try to teach people your own favs instead of normal Ruby
<shevy> people who have to use @@ are doing something wrong
<RubyPanther> Matz isn't wrong, period.
<RubyPanther> That would be not-Ruby.
<bricker> RubyPanther: I think I've read that matz has said if he was designing the language today he would leave out class variables. Don't ask me for a source, it was probably someone talking about it in this channel.
<shevy> at this point people who defend @@ should show some code where they use @@ in production in one of their projects
RubyDubyDoo has joined #ruby
<shevy> come on guys!
<arubincloud> Specifically, @@ might act like static instance variables in Java most of the time, until it does not.
<LadyRainicorn> So you believe Ruby is perfect and Matz is infallible?
sebastianb has quit [Ping timeout: 246 seconds]
<shevy> don't let the pro @@ group down
<RubyPanther> bricker: I've heard people recycle that "he would leave out ___" for a bunch of different features, always without a source
<RubyPanther> Ruby doesn't need to be "perfect" to be RUBY
<horrorvacui> What is the reason they say not use @@ over class instance variables again?
<RubyPanther> horrorvacui: their favorite design patterns are from language ____
<shevy> :(
<LadyRainicorn> You realize you can defend, say, PHP with that, right?
sebastianb has joined #ruby
chipotle has joined #ruby
hfp`offline is now known as hfp
<RubyPanther> Yes, PHP is just the right PHP for PHP
Trynemjoel has quit [Ping timeout: 245 seconds]
<RubyPanther> if it sucks, use Ruby. If Ruby sucks, use something else.
Trynemjoel has joined #ruby
<arubincloud> RubyPanther: You are being ridiculous.
<shevy> well
afex has joined #ruby
DouweM has joined #ruby
danshult_ has quit [Remote host closed the connection]
<LadyRainicorn> So smallpox is just right for smallpox as well?
<shevy> he defends @@ but still has not shown production code where he uses it
<LadyRainicorn> Your argument applies to literally everything.
<RubyPanther> Don't just teach people not to use the parts of the language you don't like and leave them thinking you're giving them serious advice. It is totally lame. Teach them Ruby-ish Ruby, or make a new language
danshultz has joined #ruby
<shevy> yeah yeah now show some of your code with @@
<RubyPanther> shevy: I would make the same case against propagandizing newbs even if I didn't or don't like @@ and don't use it
treehug8_ has joined #ruby
<RubyPanther> it has nothing to do with @@ itself
<shevy> perfect. now where is the code hmmmmm
servatoo has quit [Remote host closed the connection]
<shevy> oh really
<shevy> so you advocate for it but have no code where you yourself use it?!
<RubyPanther> it is an important part of the language to learn if you're using Ruby
<shevy> no it is not
<shevy> you can have a million features and never have to use them
servatoo has joined #ruby
nanoyak has joined #ruby
<RubyPanther> Ruby doesn't have a million features, this isn't Perl
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has quit [Read error: Connection reset by peer]
<arubincloud> Sure it does.
<arubincloud> And half of them came from Perl.
danshultz has joined #ruby
reset has quit [Quit: Leaving...]
nanoyak has quit [Max SendQ exceeded]
<horrorvacui> I think half of them are happy accidents.
s2013 has joined #ruby
crucify_me has quit []
s2013 has quit [Max SendQ exceeded]
bradhe has quit [Remote host closed the connection]
<shevy> it's ok to mix in new ideas
nanoyak has joined #ruby
<tobiasvl> what are you kids fighting about
<horrorvacui> Ruby is just more introspective than most so it allows it to be viewed in what ever light you want. Therefore it seems to be extensive while in reality it is simple.
jackneill has quit [Quit: WeeChat 0.4.3]
<shevy> tobiasvl we need to find code with @@ in production
dkamioka_ has joined #ruby
<tobiasvl> shevy: why? oh god, why
<horrorvacui> lol
<RubyPanther> There is a difference between a new idea, and claiming that the canon is wrong.
goleldar has joined #ruby
<RubyPanther> Features that exist in Ruby are the right features for Ruby, because Ruby is a language designed by Matz, not by an IRC vote
bline79 has quit [Ping timeout: 252 seconds]
treehug88 has quit [Ping timeout: 264 seconds]
<shevy> matz added autoload?
<shevy> matz advocates its removal?
<centrx> Only matz can do the impossible like that
<shevy> rightfully so! it's his language after all
<benzrf> autoload?
havenwood has joined #ruby
bline79 has joined #ruby
<shevy> benzrf yeah it's still used quite a lot
<RubyPanther> ruby]$ grep -r '@@' . | wc -l
<RubyPanther> 959
<centrx> It's fixed
<benzrf> no what is autoload
<centrx> >> @@i
<eval-in__> centrx => /tmp/execpad-8fddccc14367/source-8fddccc14367:2: warning: class variable access from toplevel ... (https://eval.in/141364)
gchristensen has joined #ruby
jespada has joined #ruby
<shevy> RubyPanther cool number, can you show some code as well?
mr_snowf1ake has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
<RubyPanther> shevy: ruby is open source, you can read the code without my help
<gchristensen> RubyPanther: for the record, updating cacert.pem with a more recent version (this one, ex: http://curl.haxx.se/ca/cacert.pem) and setting it with SSL_CERT_FILE=path-to-that-file.pem resolves the issue. see you!
gchristensen has left #ruby ["WeeChat 0.4.1"]
<shevy> RubyPanther I am interested in your code, not in ruby code
dkamioka has quit [Ping timeout: 265 seconds]
larsam has joined #ruby
<shevy> after all you use @@
timgauthier has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
CodeBunny has quit [Ping timeout: 252 seconds]
<centrx> cat file_with_double_at_signs
<RubyPanther> shevy, if I do or do not use @@ is not relevant to anything
<timgauthier> what are whitespace errors?
carraroj has quit [Ping timeout: 255 seconds]
<shevy> timgauthier probably when you added ' '
<etqqkoiflwhb> anyone, autoload query, I've monkeypatched a class in mikel/mail to lazy parse, how do i autoload the monkeypatched Mail::ReceivedField, after it autoloads the original class? https://github.com/mikel/mail/blob/2-4-stable/lib/mail/fields.rb#L21
<shevy> or perhaps \t
<timgauthier> i'm looking at the sinatra about page and they thanked someone for removing the whitespace errors
<shevy> timgauthier hmm
<RubyPanther> good design doesn't have a bunch of shared state between members of a class. When you do have such shared state, @@ is perfectly acceptable. Being against sharing amongst siblings should not cause people to get confused and think that @@ is bad. @@ isn't good or bad, it is the normal way of doing that sharing.
Asher has joined #ruby
<Night-hacks> why amir is nil in my plusplus method invocation ? http://paste.ubuntu.com/7324738/
s2013_ has joined #ruby
<Night-hacks> in line 15
<centrx> timgauthier, It's not a general term, unless it means shabby whitespace usage in the file
<RubyPanther> What is really lame is when people are against @@, but then they use the same shared state and hide it behind class methods and instance vars on the class instance. d'oh!
<shevy> Night-hacks put the first @amire inside def initialize
<centrx> timgauthier, extra spaces at the end of lines, wrong indentation
<centrx> timgauthier, Or it is related to something in sinatra
<Night-hacks> shevy: but it's instance variable it belongs to my class
yfeldblum has quit [Remote host closed the connection]
<shevy> Night-hacks to the class, yeah, but you want your object to have it
<timgauthier> quote " Ryan Tomayko (rtomayko) for constantly fixing whitespace errors 60d5006"
<Night-hacks> shevy: it's inside my class why should i put it in initialize method
<shevy> Night-hacks simply add def initialize, put @amir into it, and your code should work fine
senayar has joined #ruby
sparrovv has joined #ruby
<atmosx> hell
<arubincloud> RubyPanther: My issue with @@ is its semantics, not the shared state, which is a separate issue.
<shevy> Night-hacks your class is another object than your instance, so self refers to different selves
s2013 has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
<RubyPanther> arubincloud: object semantics flow from Ruby, it is in error to have your own semantics
<horrorvacui> arubincloud: what about when you want to inherit the variable, to do that with class instance variables you'll have to do A LOT more to get the same usefulness.
<shevy> Night-hacks you need to look at the surrounding scope, inside of a method it is different than outside
robert_ has quit [Ping timeout: 276 seconds]
<arubincloud> The entire issue is the possibility that @@ will set a variable higher up the class hierarchy.
<arubincloud> @@ does not limit itself to the current class.
<RubyPanther> If everything "wrong" with @@ turns out to be personal opinions, then it is _objectively_ in error to claim it is "bad" which implies being objectively bad.
<arubincloud> It first looks up the class hierarchy for an existing @@ variable.
<horrorvacui> arubincloud: I know but sometimes you might want to use class variables just to save having to do a bunch of extra work to avoid class variables.
<RubyPanther> Right, @@ does not limit itself to your over-simplified misunderstanding of Ruby class semantics
<arubincloud> I do not claim to be an expert on Ruby class semantics.
<arubincloud> I do not understand why this behavior is desirable.
terrellt has quit [Remote host closed the connection]
<RubyPanther> It is actually rather useful when you're inheriting, for example from a framework, and you can just set a class var and have the parent class use the correct value. The correct class value for YOUR class, regardless of where the method is defined.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<horrorvacui> I've seen people use hooks and modules to get inheritable class instance variables. Why not just use a class variable and be cautious in its use.
<RubyPanther> You don't have to organize your code that way, but it is one of the Ruby ways things are done.
terrellt has joined #ruby
mehlah has quit [Quit: Leaving...]
<shevy> horrorvacui what if you want to include that module into different projects?
heftig has joined #ruby
djbkd has joined #ruby
elaptics is now known as elaptics`away
senayar has quit [Ping timeout: 265 seconds]
s2013_ is now known as s2013
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
<RubyPanther> I actually find it substantially surprising that "not my favorite" so quickly translates to "bad when other people use it as described by the manual"
skaflem has quit [Quit: Leaving]
ankov has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<RubyPanther> Some foos are bars. All bars are bazzes. All bazzes are foos. T/F?
<tobiasvl> I think most of the Ruby community has agreed in later years that @@ is bad and should be avoided though
<horrorvacui> shevy: You want to reuse a class variable you just use the class. If you want to reuse a class instance variable you define a module, add a singleton method, hook self.inherited, then include module.
terrellt has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
<tobiasvl> keep using it by all means, but there is at least some consensus that @@ is bad
<RubyPanther> if by "ruby community" you mean "IRC"
<horrorvacui> Seems a bit much doesn't it?
<tobiasvl> RubyPanther: yes and "blogs"
<tobiasvl> and "the internet"
<RubyPanther> Actually, blog comments and "the internet" both trash the concept that that is the consensus!
<arubincloud> RubyPanther: I was first alerted to its badness by Eloquent Ruby.
<timgauthier> what the heck does "get '/' do" mean?
agent_white has joined #ruby
sparrovv has quit [Remote host closed the connection]
<shevy> horrorvacui don't really know what you describe here, I meant what you would use. Would you recommend this here? module Foo; @@foo = 5; end; class Bar; include Foo; end
<etqqkoiflwhb> timgauthier: sinatra?
yfeldblum has quit [Remote host closed the connection]
george2 has quit [Read error: Connection reset by peer]
<timgauthier> etqqkoiflwhb yeah
<horrorvacui> no...
<shevy> timgauthier it refers to the main default URL you get for your app
<timgauthier> i'm looking at the getting started from digitaloceans
<tobiasvl> timgauthier: parentheses around args are optional in ruby so it's equivalent to `get('/') do` and also it's sinatra
<timgauthier> agh, so its URI ok
<horrorvacui> shevy: let me see if I can find an example somewhere
<shevy> yeah
<etqqkoiflwhb> timgauthier: get is a method, '/' is an argument, and finally do ... end is a block
<timgauthier> you guys all knew it was sinatra from that one snippet of code? wow...
sparrovv has joined #ruby
GaryOak_ has joined #ruby
<RubyPanther> timgauthier: get as in the HTTP verb
<timgauthier> so its saying, when this web app is at / (root url) then do this thing?
sparrovv has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<timgauthier> so if i put get '/asdf' then it would look for that URI?
<shevy> horrorvacui but only for @@class var please, not the alternative you described; I find that alternative awful as well ;P
<shevy> timgauthier well it probably was not rails!
<etqqkoiflwhb> timgauthier: yea, on a hit to /, run this piece of code
<tobiasvl> timgauthier: it says that when the client asks for '/' with a GET HTTP request, give it the block
<timgauthier> so its not ruby doing the get request, its when the browser does a get request then ruby does the response?
<horrorvacui> I'm complaining about this usage of class instance variables vs sometimes just using a class var
<canton7> yeah. this is a web server, not a web client
ankov has joined #ruby
servatoo has quit [Remote host closed the connection]
<shevy> I've also not seen it in rack
<RubyPanther> They've been crying about the feature they don't like for... 8 years! And still haven't convinced Matz to get rid of it.
servatoo has joined #ruby
<timgauthier> so when the client his the server at / do this thing, is what the app is thinking? i'm trying to get my head into the logic space that this app would use
<tobiasvl> timgauthier: yes
<tobiasvl> that is correct
<timgauthier> sweet
<tobiasvl> timgauthier: also read http://www.sinatrarb.com/documentation.html and also there's #sinatra
<etqqkoiflwhb> timgauthier: if you aren;t familiar with ruby blocks, read up on closures in wikipedia
<timgauthier> yeah i found a getting started from digital ocean and its pretty good so far, sometimes i just need to paraphrase to programmery people to get it into my head, if i read it it does shit all
<RubyPanther> Ruby blocks are _rarely_ used as closures, and studying closures is guaranteed to confuse you
EminenceHC has joined #ruby
<RubyPanther> and it will generally only matter if your methods are doing more than one thing
<tobiasvl> this channel is FULL of programmery people
<tobiasvl> we are all
<tobiasvl> programmery
<apeiros> RubyPanther: too sad, that SO procedure produces an incorrect create table statement :(
<RubyPanther> apeiros: :(
<RubyPanther> apeiros: what is the use case for needing it?
<apeiros> well, lucky it's not something I need right now
<apeiros> RubyPanther: doing something akin to phpmyadmin for postgres
<EminenceHC> Does that mean a place where professional grammar people hang out? programmery?
<RubyPanther> apeiros: So you're populating checkboxes or something based on another table?
<etqqkoiflwhb> RubyPanther: hmm.. is it 'coz blocks are used more like, passing a function as an argument?
<apeiros> RubyPanther: no, I show the table definition as sql
<RubyPanther> apeiros: so the use case is just for humans to look at the definition?
<tobiasvl> etqqkoiflwhb: yes blocks are more like anonymous methods (ruby doesn't have functions)
shevy has quit [Ping timeout: 240 seconds]
<apeiros> RubyPanther: yes, and to possibly execute it
<EminenceHC> I have a large array (this is just a sample) that looks like this: [[Mon, 21 Apr 2014, 3], [Mon, 14 Apr 2014, 3], [Mon, 17 Mar 2014, 9], [Mon, 17 Mar 2014, 10]] I am trying to get the total of all the second values grouped by common dates. How can I go about doing that?
<tobiasvl> etqqkoiflwhb: ruby has methods, lambdas, procs and blocks. good luck!
servatoo has quit [Ping timeout: 240 seconds]
<apeiros> RubyPanther: and to possibly create a schema dump
<arubincloud> EminenceHC: A university linguistics department.
<apeiros> RubyPanther: I guess I can use that procedure as a starting point anyway
<manacit> anyone know why rails console would give me `ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter` when I try to query a model, but will connect fine and show the proper settings when I printout `Rails.configuration.database_configuration[Rails.env]`
djbkd has quit [Remote host closed the connection]
jeremy_w_rowe has quit [Quit: Textual IRC Client: www.textualapp.com]
<EminenceHC> arubincloud: Knew it.
BizarreCake has quit [Ping timeout: 265 seconds]
<etqqkoiflwhb> tobiasvl: used all those :) was kinda comparing blocks to javascript's anonymous functions
<manacit> I know I've got the right environment and database settings because it won't even start up if I don't, but I can't figure out why active record won't connect
<manacit> it's like AR is looking for a different environment than it should be
shevy has joined #ruby
<RubyPanther> apeiros: sorry I don't use phpmyadmin so I'm trying to understand, when you say "possibly execute it" do you mean pasting it to another db, or changing the table name by hand and executing, or ... ?
<apeiros> RubyPanther: correct. copy & pasting the sql to reuse it.
<RubyPanther> I know it has often been said that people design a tool "like phpmyadmin"
<apeiros> RubyPanther: well, it's been a while since I used phpmyadmin too, since I don't use mysql anymore
<RubyPanther> desire
SvenOostenbrink has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<timgauthier> when they say that sinatra has no page rendering but rails does, what do they mean? I mean i am able to render a page right there with that fancy little get '/' do end block
<apeiros> hm, close to 10 years now even. time flies :(
<RubyPanther> apeiros: it seems like it would be useful to have it as a C function
<mikecmpb_> is array.push() threadsafe in ruby 2?
<apeiros> RubyPanther: I want it with as little dependency as possible. hence plain-sql favorited, pqplsql acceptable
<mikecmpb_> i've forgotten.
<apeiros> mikecmpb_: nothing is thread-safe unless explicitly stated to be.
<mikecmpb_> apeiros: what do you mean by that?
<RubyPanther> apeiros: generally it requires more permissions and access to add plsql than to add a .o
<apeiros> mikecmpb_: I mean if it doesn't say "this method is thread safe", it's not thread safe.
reset has joined #ruby
<RubyPanther> and then you can use the method from plain SQL
<mikecmpb_> say where? :|
<apeiros> in the docs
razrunelord has joined #ruby
<mikecmpb_> ah okay
chipotle has quit [Read error: Connection reset by peer]
<apeiros> RubyPanther: wah?
<mikecmpb_> yeah, i guess, so i should use a mutex around operations on the array?
<RubyPanther> mikecmpb_: Ruby was born from the *nix world of fork-and-IPC
<centrx> Threads are a Windows hack!
<apeiros> RubyPanther: even if it wasn't. it'd be a bad idea to try and make everything thread-safe by default.
chipotle has joined #ruby
<apeiros> thread safety is a) not free and b) rarely a blanket thing
relix has joined #ruby
<mikecmpb_> actually, i'm not relying on the state of the array at any point, so can i just ignore threadsafety?
<apeiros> mikecmpb_: if you don't have shared access, yes.
<mikecmpb_> i won't lose items or something
mrmargolis has quit [Ping timeout: 264 seconds]
<apeiros> mikecmpb_: if you have shared access, no
<mikecmpb_> okay
<RubyPanther> mikecmpb_: ignore it until you can't, yes
* mikecmpb_ shrugs.
<mikecmpb_> i read about this an understood it at one point, i've just forgotten
foooobear has quit [Quit: Computer has gone to sleep.]
<apeiros> shared read-only access is ok too, but only if you can guarantee that none of that happens before it becomes read-only.
<RubyPanther> from C extensions, ignore it less
<mikecmpb_> arr = []; 1000.times { Thead.new { arr < rand(1..10) } }
foooobear has joined #ruby
<mikecmpb_> will that always result in 1000 values?
<apeiros> centrx: forks don't free you from thread's issues
<mikecmpb_> << *
relix has quit [Client Quit]
<centrx> Threads are used because creating creating processes on Windows is so expensive!
<apeiros> hm, that said… a new thread-local variable type would actually be nice
bthesorceror has joined #ruby
<mikecmpb_> nvm, i got myself in a confusion, long day.
<RubyPanther> fork and never share! if you think you need to share, don't... instead, communicate.
puzanov_ has joined #ruby
<apeiros> centrx: ruby before 1.9 doesn't help in that regard. the GC would force the OS to copy the whole memory for the fork.
yfeldblum has joined #ruby
<apeiros> errr, ruby before 2.0
brunops has joined #ruby
<horrorvacui> apeiros: didn't COW go away after 2.0 though?
razrunelord has quit [Ping timeout: 255 seconds]
<RubyPanther> There were some COW patches for 1.9, though
<apeiros> horrorvacui: I thought I had read something to that account, yes. but I haven't really checked for the final release.
<RubyPanther> No 2.0 brought the COWs
reset has quit [Ping timeout: 264 seconds]
<apeiros> I'd hope they kept it, at least for the old-generation GC
<horrorvacui> Yeah but I was told by a guy that COW gc is going away.
mordocai has quit [Remote host closed the connection]
<RubyPanther> I mean the COWs were always there, but they used to run away really fast
Es0teric has quit [Quit: Computer has gone to sleep.]
<horrorvacui> That guy maybe stupid idk...
<RubyPanther> COW-killing GC went away, he must have meant
<apeiros> RubyPanther: yupp, because gc shat over the whole memory :)
arietis has quit [Quit: Computer has gone to sleep.]
treehug8_ has quit []
foooobear has quit [Ping timeout: 252 seconds]
<apeiros> no, I read something about 2.1's gc being COW killing again too. but that was prior to final version. and I never checked whether it was a) correct in the first place and b) still applied to the final release.
Gearbox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> oooooh this font is pretty nice http://st.suckless.org/patches/st-solarized-dark.png
<RubyPanther> I still wish I could control how things are grouped. I'd like to be able to say, "this new class will use separate pages"
<benzrf> im pretty attached to inconsolata but
<benzrf> im gonna say thats my runner up
<benzrf> o3o
<benzrf> what are these COWs
<AntelopeSalad> in a gemfile does there need to be a space in between the version operator and the version number?
<benzrf> i normally see one but i doubt it matters
puzanov__ has quit [Ping timeout: 276 seconds]
chrisseaton has joined #ruby
<apeiros> benzrf: copy on writes
<horrorvacui> Yeah 2.1 wasn't out yet when the guy told me so perhaps they finalized it with COW friendliness.
<benzrf> ah
<RubyPanther> COW-friendly is here to stay, even if some dev versions have die-backs
mordocai has joined #ruby
heftig has quit [Quit: Quitting]
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
marc_online_ has quit [Quit: Leaving]
<horrorvacui> I thought it had to do with them swapping the gc strategy again. So I'm out of date perhaps.
marc_online_ has joined #ruby
Asher has quit [Quit: Leaving.]
<horrorvacui> Idk I'll see if I can find a test to prove it because I don't trust people now :P
<RubyPanther> You can always change GC and still move flags out into bitmaps
relix has joined #ruby
<horrorvacui> I don't know how to do that.
<horrorvacui> Sounds awesome.
nari has joined #ruby
vpretzel is now known as vpretzel|gone
aspiers has quit [Ping timeout: 240 seconds]
<RubyPanther> well, that is what they did to keep the COWs at home
CorpusCallosum has quit [Quit: Textual IRC Client: www.textualapp.com]
heftig has joined #ruby
rokob has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
marc_online_ has quit [Client Quit]
nanoyak has joined #ruby
bradhe has joined #ruby
<RubyPanther> if GC wants to mark objects, putting the mark IN the object was screwing up memory management. Moving the mark out to another data structure fixes the problems. That technique can be recycled for any new sort of GC strategy; you just don't put the GC metadata right inside the object
mrmargolis has joined #ruby
Sammael has joined #ruby
carlyle has quit [Remote host closed the connection]
<RubyPanther> it was really more of an implementation bug than a limitation of Ruby GC
mansi has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
Gearbox has joined #ruby
<atmosx> guys do you use that thing to scan your gemfilefor sec bugs? https://hakiri.io/blog/ruby-security-have-you-not
pu22l3r has quit [Ping timeout: 264 seconds]
marc_online_ has joined #ruby
<agent_white> Good afternoon folks
<shevy> thankfully I have no gemfiles
<horrorvacui> RubyPanther: I see now. Interesting stuff.
yacks has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
yacks has joined #ruby
mansi has joined #ruby
<RubyPanther> atmosx: nope, I cross my fingers and trust Rubyists to be good people
<atmosx> RubyPanther: I figure you believe in heaven and hell too
<RubyPanther> why is that?
Devanon has quit [Quit: WeeChat 0.4.3]
reset has joined #ruby
<RubyPanther> it doesn't matter if a Buddhist believes in heaven and hell, because it is unskillful to think about what happens before or after this life from inside this life
iliketurtles has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
<atmosx> unskillful
ryanneufeld has joined #ruby
freezey has quit [Remote host closed the connection]
<atmosx> weird choice of words
alexherbo2 has quit [Quit: WeeChat 0.4.3]
bluenemo has quit [Quit: Verlassend]
<shevy> :D
Trynemjoel has quit [Ping timeout: 245 seconds]
<RubyPanther> No, it is standard terminology. It is only killing, stealing/lying, adultery, and drunkenness that are equal to "sins" that might hurt others. Every other rule in Buddhism is not a question of right/wrong but skillful/unskillful.
SHyx0rmZ has joined #ruby
happytux_ has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
<RubyPanther> There is no bad karma in being an idiot until it hurts somebody else! lol so it isn't "wrong" to think about heaven, unless you use the believe to hurt people. But it is not skillful, it distracts from beneficial thoughts about this life.
Trynemjoel has joined #ruby
<ryanneufeld> Can someone help me figure out how to resolve a scoping issue here: https://gist.github.com/ryanneufeld/11268340
ascarter has joined #ruby
djbkd has joined #ruby
<katlogic> Being a christian is always good karma.
kitak has quit [Remote host closed the connection]
<agent_white> Being agent_white is the best karma!
<agent_white> :D
kitak has joined #ruby
<atmosx> being a christian is easy, everything you have to do is already written, being a buddist seems to be a huge pain
<RubyPanther> The hard part about being Christian is probably all these churches all over the place that ignore the words of Jesus.
ikaros has joined #ruby
Night-hacks has quit [Quit: Leaving.]
ryanneufeld has left #ruby [#ruby]
ascarter has quit [Client Quit]
<timgauthier> RubyPanther it definitely is the most heartbreaking part
<shevy> it takes no skills to believe in old fantasy novels
<RubyPanther> atmosx: A Buddhist lay-person has very few rules other than the basic 4, and try to be good
<horrorvacui> RubyPanther: Like Apocrypha?
Vovko has quit [Remote host closed the connection]
CodeBunny has joined #ruby
sparrovv has joined #ruby
yalue has quit [Quit: Leaving]
mikepack has joined #ruby
<LadyRainicorn> There are 5 precepts, not 4, though we tend not to follow the last one so much.
<horrorvacui> Why and what is it?
ascarter has joined #ruby
<shevy> the tenet of free sex
<atmosx> So did Jesus really say thoese words after all didn't he?
mercwithamouth has quit [Ping timeout: 276 seconds]
<RubyPanther> LadyRainicorn: That is just for monks
<atmosx> Yeap, Ancient Greeks were never sex-hungry apparently
<atmosx> romans either
<LadyRainicorn> To refrain from intoxicants
<LadyRainicorn> And because intoxicants are so widely used.
<RubyPanther> Siddhartha even said that lay-people can eat meat
<horrorvacui> I see. I'm an atheist although fascinated by religion.
<LadyRainicorn> No, monks have a separate code.
momomomomo has quit [Quit: momomomomo]
djbkd has quit [Remote host closed the connection]
senayar has joined #ruby
<LadyRainicorn> (It has 111, I think, and nuns have another hundred)
<LadyRainicorn> Also vegetarianism isn't a prohibition at all.
<LadyRainicorn> The Buddha himself wasn't vegetarian.
<RubyPanther> In modern times stealing and lying are generally lumped together as a single rule of being honest, that is why it is common to talk about 4 instead of 5. There is no extra rule with 5.
<dorei> let's become breatharians :)
senayar has quit [Read error: No route to host]
<horrorvacui> wtf is breatharians?
<RubyPanther> Siddhartha wasn't a total vegetarian, but he was a moral vegetarian
senayar has joined #ruby
<dorei> horrorvacui: those that live only on breathing :D and maybe sun
djbkd has joined #ruby
<LadyRainicorn> Killing, theft, sexual misconduct, lying, intoxication
<LadyRainicorn> In that order.
<RubyPanther> Which is to say he would eat leftovers containing meat, but not if he suspected it might have been killed/purchased to feed to him.
<LadyRainicorn> (Though the precepts are not quite so cut and dry)
JohnBat26 has joined #ruby
<LadyRainicorn> Yes, that is the code for monksm
<horrorvacui> dorei: So I can't eat or drink? No wonder I've never heard of them. They die the moment they convert.
<horrorvacui> They*
jespada has quit [Ping timeout: 252 seconds]
<metamaterial> define this misconduct which is worse than a lie
geggam has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 265 seconds]
<metamaterial> oh hahah adultry ?
<LadyRainicorn> Adultery
<LadyRainicorn> Also sex with monks and nuns
<LadyRainicorn> Rape
<metamaterial> lol
<RubyPanther> "sexual misconduct" is a poor translation, it mostly covers adultery but does not cover premarital sex, which if the other party is not religious is not a violation of the precept, but violates Right Living and is unskillful
<LadyRainicorn> coercion, etc.
<dorei> horrorvacui: i think they have an entry @ wikipedia though :D
<metamaterial> sorry was laughing at the sex w/ nuns
mrmargolis has quit [Remote host closed the connection]
<LadyRainicorn> Sex with protected persons (children, mentally disabled)
<LadyRainicorn> That sort of thing.
sillywizard has quit [Quit: Leaving]
<metamaterial> that should have been writeen in the bible
<shevy> waaa
<RubyPanther> for example a Buddhist may not have sex with a Christian girl, even if she says yes, because her dhama, her religious teaching, forbids it. But if she is a pagan then it is not so bad, you're only hurting your OWN darma.
<shevy> they eat animals!
<LadyRainicorn> That is not really how sexual misconduct works.
<agent_white> I'm glad I'm athiest. I dont need no fancy shit to tell me how to be a good person.
omosoj has joined #ruby
<LadyRainicorn> The dhamma is universal.
<RubyPanther> it is also a violation if she has accepted ribbons from another man and wears them in her hair
burntbit has joined #ruby
dima__ has joined #ruby
<horrorvacui> RubyPanther: What about an atheist? Does that mean you can rape an atheist since there is no concepts adhered to technically?
<shevy> agent_white yay!
<LadyRainicorn> Literally, though that basically means "has a boyfriend"
jespada has joined #ruby
<RubyPanther> horrorvacui: No, consent is in there.
<horrorvacui> Okay just being a dummy, you covered that.
x77686d has quit [Quit: x77686d]
<horrorvacui> Buddhism sounds so accepting.
<LadyRainicorn> No, RP is misrepresenting it. It's not really dependent on the beliefs of the other person.
<LadyRainicorn> Generally speaking, yes.
Urocyon is now known as sfiggins
<RubyPanther> If she: is married, has a bf, is protected by her father or brothers, doesn't consent, can't consent, or it violates her religious beliefs, then it is banned
<agent_white> Buddhism just sounds like... "be a good dude, and all is good, dude."
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy> agent_white the big lebowski
<agent_white> I can get down with that.
<RubyPanther> dhamma means religious teaching, a Christian's dhamma is the Bible
<shevy> though he was often drunk
<horrorvacui> Does buddhism have a bad side?
<RubyPanther> there is also a different concept of universal dhamma
<metamaterial> so a girl can consent but a monk will turn her down because she thinks she's christian?
<horrorvacui> I mean seems like I remember some kind of warrior Buddhists who killed a lot of christians or something.
<shevy> horrorvacui the monthly blood sacrifice on an altar
<LadyRainicorn> Well the core of the dhamma is about enlightenment, but most Buddhists are mostly just trying to accumulate merit.
senayar has quit [Remote host closed the connection]
<RubyPanther> horrorvacui: as a religion there are certainly members of the religion that have done bad things in its name
senayar has joined #ruby
<LadyRainicorn> There are some extremists, for example in Myanmar.
<LadyRainicorn> Not terribly many though.
zachallett has joined #ruby
<metamaterial> TIL monks are karma whores
<agent_white> ^
<benzrf> metamaterial: heheheh
<horrorvacui> So they monks spend a lot of time on reddit
Alina-malina has quit [Read error: Connection reset by peer]
<LadyRainicorn> Monks are prohibited from sex, among many other things.
* metamaterial has seen Amish selling stuff on iPhones
<agent_white> LadyRainicorn: Because?
<LadyRainicorn> Also the goal is not to accumulate karma, but to reach liberation.
<metamaterial> good thing they're patient.
<horrorvacui> lol
<LadyRainicorn> Because nibhanna, the ultimate goal, is a very different path from accumulating meritm
<RubyPanther> Siddhartha said never to believe something because it is written, because a great person said, because he said it, or whatever. You only compare those teachings to your own experience and believe what matches your experience. So anything bad in Buddhism should be rejected.
carraroj has quit [Quit: Konversation terminated!]
Alina-malina has joined #ruby
dima__ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
<timgauthier> what the heck are we talking about here? :P
<agent_white> Oh no I mean why can't monks do the dirty?
<agent_white> timgauthier: Monk sex
<LadyRainicorn> It is a meditative thing, which requires more or less total concentration.
<timgauthier> haha nice
mehlah has joined #ruby
<shevy> timgauthier weed
djbkd has quit [Remote host closed the connection]
<horrorvacui> So does Buddhism believe in divinity and magical shit?
kirun has quit [Quit: Client exiting]
<RubyPanther> timgauthier: I was accused of believing in Heaven on account of the fact that I trust Rubyists to be good people and not harm me with malicious gems, so I was explaining that to a Buddhist worrying about heaven or talking about heaven is unskillful even if you believe in it
<LadyRainicorn> We believe in reincarnation and karma, but no gods really.
klaut has joined #ruby
<metamaterial> monks can't sex because Siddhartha catch 22 them
<RubyPanther> Siddhartha did believe in Heaven, but he told people not to even ask about it
<horrorvacui> LadyRainicorn: So you are almost atheists.
<LadyRainicorn> Well, no?
<horrorvacui> Atheists = no gods
<agent_white> RubyPanther: Heaven or enlightenment? Or are they interchangable in that sense?
<RubyPanther> There is no catch-22, it is a standard concept that monks cannot exist without laypeople
<horrorvacui> So you are atheists.
<LadyRainicorn> Atheists deny the existence of an objectivr moral framework.
<RubyPanther> agent_white: no
<horrorvacui> Thats a bit more than an Atheist.
<agent_white> ^
<horrorvacui> Some atheists believe that.
<LadyRainicorn> Buddhism posits the existence of karma, which is a physical law, albeit unlike field theories.
<timgauthier> from my experience with buddhism and buddhists is that none of them can actually objectively say what all of them believe as it is a very personal thing for each person. which i think is pretty cool. I say this as a Christian
<Hanmac1> LadyRainicorn: Shintoism is funny ... because every single shit is a god or has a god ;P
aspiers has joined #ruby
<LadyRainicorn> There are no gods, and the Buddha does notbhave the power to save everyone unilaterally.
djbkd has joined #ruby
guyz is now known as guest123123
<agent_white> LadyRainicorn: I would think it is a nihilist that doesn't believe in any existance of a moral framework.
<LadyRainicorn> So it is closer to atheism than Abrahamic religions I suppose, but really neither.
<horrorvacui> Sounds like buddhism is atheism + karma.
george2 has joined #ruby
<timgauthier> horrorvacui naw its not
Xeago has quit [Remote host closed the connection]
<LadyRainicorn> Yes basically?
guest123123 is now known as guyz
<timgauthier> someone could in theory be a buddhist christian
<RubyPanther> Siddhartha had no more power than any other human, his power was believed to be person; he was personally free from the cycle of life and death, and also able to teach
<LadyRainicorn> Not consistently.
servatoo has joined #ruby
<metamaterial> i think only assholes and lice don't believe in a moral framework. everything else cares, somewhat.
<dorei> what about buddhist magic?
<RubyPanther> You can consistently be a Buddhist Christian, no problem
<timgauthier> depends on the teacher you follow LadyRainicorn ;)
carlyle has joined #ruby
<metamaterial> maybe some viruses
<timgauthier> all parasites metamaterial
ankov has quit [Read error: Connection reset by peer]
<agent_white> metamaterial: And spiders
<timgauthier> and PHPDevs
<horrorvacui> just a reminder atheist don't have an agreement on morals
<agent_white> Goddamned PHP devs
<LadyRainicorn> The Christian god doesn't obey karma.
<RubyPanther> individual Buddhist and Christian temples/churches might reject you, but Siddhartha said to reject teachings that don't match your experience.
<LadyRainicorn> It would be incompatible.
<LadyRainicorn> Also we have reincarnation, which is incompatible.
Alina-malina has quit [Max SendQ exceeded]
<dorei> i think that tibetan buddhism is full of magic :)
<horrorvacui> Christianity forbids buddhism i'm told.
<LadyRainicorn> Yes, it is.
<RubyPanther> it is unskillful to think about reincarnation, you can be a Buddhist and not even believe in that
<LadyRainicorn> I am a Therevada Buddhist, which id quite different.
<RubyPanther> I am a Theravada Buddhist, that is why I know
<LadyRainicorn> There is a more or less omnipotent being in Mahayana.
Alina-malina has joined #ruby
<LadyRainicorn> That said, Mahayana is very different from what the Buddha taught in most of his lifetime, even as acknowledged by them.
<RubyPanther> In Theravada Buddhism it is expected to follow the teachings of Siddhartha, not whatever some random temple teaches
<timgauthier> LadyRainicorn not all buddhists believe in reincarnation
<LadyRainicorn> (They claim it was a precursor and he had a secret teaching later.)
rokob has joined #ruby
<LadyRainicorn> My answers are based on the Pali canon. There are, of course, numerous interpretatiobs that conflict with it.
Milly_Bays has joined #ruby
<shevy> LadyRainicorn is a rainbow buddhist with happiness rays
blackmes1 has quit [Ping timeout: 252 seconds]
<timgauthier> shevy :P
<LadyRainicorn> But the Pali canon is generally considered to be pretty accurate from a historical perspective, and it's pretty obvious reincarnation was a big part of the Buddha's teaching.
<RubyPanther> Siddhartha clearly believed in God, believed in demi-Gods, believed in Heaven/Hell, believed in reincarnation, but none of these are what he said to learn about. Instead you're supposed to learn about how to let go of attachment. Thinking about reincarnation reinforces attachment to life, desire to live again, it is unskillful.
<timgauthier> as i said earlier, my experience with buddhism and buddhists is that you can not speak for all buddhists as they differ
* Hanmac1 has seen the light in a dream ... it was very creepy
<LadyRainicorn> The Buddha didn't believe in anythibg like the Christian god.
Hanmac1 is now known as Hanmac
<timgauthier> my experience with the monks of tibet and discussions with them have shown me that
<timgauthier> LadyRainicorn yes, but he also did not say it was impossible
<LadyRainicorn> The canon mentions Brahma, but he is not really the same thing.
<RubyPanther> Siddhartha believed in a single over-powering God and Devil
<agent_white> LadyRainicorn: I'm not relgious, but I did go with my buddhist buddy to one of his prayer dealies (one where they chant that 'nam-myoho' thing)... it was pretty cool.
<LadyRainicorn> Mara was more of a metaphor.
phantasm66 has quit [Quit: *sleeeep….]
<LadyRainicorn> There are other entities that are physical, but Mara is obviously a personification of evil, at least mostly.
<timgauthier> from what i've understood LadyRainicorn these are more concepts
<LadyRainicorn> Brahma is much more likely to be a literal "deity", but it's still fuzzy there.
<timgauthier> and their actualization depends deeply on the personal practice of each buddhist
<RubyPanther> A lot of people don't know it, but Buddhists can make money grow on trees. http://stuff.rubypanther.com/images/wat.jpg
cpruitt has quit [Quit: cpruitt]
<timgauthier> RubyPanther ❤️ you man
<timgauthier> or woman
rokob has quit [Ping timeout: 265 seconds]
<timgauthier> or cat person
<horrorvacui> I love how its a money tree, with money tapped to it.
<LadyRainicorn> There are many takes on all religions, but again, just going from canon here.
<timgauthier> could you please fill out this form and describe to me in detail how you would like me to identify you?
<timgauthier> LadyRainicorn but from what i've learned there is no such thing as a canon
<RubyPanther> The problem with pinning down what he meant by Brahma is that when people asked about afterlife or gods, he consistently told them to focus on this life. Those details were only for the story-form teaching, not for the actual application
<Hanmac> timgauthier: why not both?
<timgauthier> there are buddhests who take things as canon, and there are buddhists who do not
Lewix has joined #ruby
<LadyRainicorn> The life of the historical Buddha is really well documented
<RubyPanther> timgauthier: that is Mahayana Buddhism, they still have the Pali Canon but they don't read it
<timgauthier> but then thats like the phrasees that we see today basing on the life of Christ, but completely ignoring the words he actually spoke
<LadyRainicorn> The Pali canon is the name of those teachings, along with some others.
* Hanmac saw some kind of afterlife in a dream ... was not worth it
<timgauthier> it is not about the letters of the law, it is the spirit that should be observed and lived.
<metamaterial> shhh
shevy has quit [Ping timeout: 240 seconds]
<RubyPanther> Pali Canon is the 30 years of earthly teachings of Siddhartha, as recorded by his scribes
<LadyRainicorn> Christianity is very different because it's not very well documented.
<timgauthier> LadyRainicorn i would disagree but thats fine
<RubyPanther> Jesus only taught for 3 years and didn't have scribes.
meatherly has quit [Remote host closed the connection]
<LadyRainicorn> Whereas the life of Siddharta Gautima is very well documented.
rokob has joined #ruby
carlyle has quit [Remote host closed the connection]
<metamaterial> i thought all Jesus did was throw some predatory lender banker out of the temple?
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<timgauthier> RubyPanther true, but his live was then documented by a great number of people of the time
shevy has joined #ruby
<metamaterial> the rest was folklore =P
<tobiasvl> come one #ruby I leave your for half an hour and this is what happens
zz_karupa is now known as karupa
<LadyRainicorn> (He was a prince, had an enormous following in his lifetime, had many people transcribing his teachings, etc)
<agent_white> tobiasvl: #rubyligion
<timgauthier> tobiasvl what? you think you can police this place? its like herding cats
alexju has quit [Remote host closed the connection]
<RubyPanther> Get a bible with only the words of Jesus, it is what, 3 pages? Words of Siddhartha is the size of Encyclopedia Britannica
<horrorvacui> FSM believes that pirates are nice.
<timgauthier> i don't tend to get into religious discussions, so i'm not sure why i am in one now lol
* agent_white runs in circles cackling
<myke> not lenders, money changers
<timgauthier> even worse myke
jottr has joined #ruby
<myke> fx traders basically...yeah
<RubyPanther> You don't have to be religious to be a Buddhist, you can be a secular Buddhist.
<LadyRainicorn> Anyway, Buddhism could still be totally made up, but the Buddha is definitrly real.
<LadyRainicorn> That's not really disputable historically.
MatthewsFace has quit [Quit: This computer has gone to sleep]
<RubyPanther> Siddhartha taught to reject religious belief, to believe what you understand not what you're told... teachings are ideas to consider
<myke> anything that happened thousands of years ago is disputable historically
<LadyRainicorn> It's just a really different levrl of documentation.
<timgauthier> RubyPanther wow, i like that
<LadyRainicorn> Julius Ceasar?
<timgauthier> RubyPanther it is what i try to follow in my own christen walk
<LadyRainicorn> The Buddha has similar levels of documentation.
<LadyRainicorn> It would be an enormous undertaking to fake it.
<horrorvacui> I wonder if you could ask for fridays off if you claim FSM.
meddle has joined #ruby
<RubyPanther> timgauthier: they asked the Dali Llama if Christians should convert to Buddhism, he said if they get comfort from their beliefs they should keep them.
<myke> because nobody ever changed things along the way to further current political purposes
crystal77 has quit [Quit: Computer has gone to sleep.]
paulfm has quit []
phantasm66 has joined #ruby
robbyoconnor has joined #ruby
danshultz has quit [Remote host closed the connection]
<agent_white> Isn't there some big deal with the Dalai Lama being held in China? -- something like China influencing the 'finding' of the Dalai Lama?
<LadyRainicorn> Yes, it is an issue.
<agent_white> It sounds sad :(
shevy has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
<RubyPanther> China claims to own Tibet because they were both ruled by Mongolia at the same time.
danshultz has joined #ruby
<LadyRainicorn> Anyway, those interested in the life of the Buddha should /r/AskHistorians for a secular perspective.
momomomomo has joined #ruby
<timgauthier> RubyPanther yah i remember reading that
<RubyPanther> If western governments would call them on the Mongolia part, it could free Tibet IMO. But instead they moralize about "freedom," and look naive to the Chinese.
<LadyRainicorn> But they will point you to oodles of documentation.
evenix has quit [Ping timeout: 255 seconds]
saarinen has quit [Quit: saarinen]
<timgauthier> RubyPanther what mongolia part.. maybe i need to go to /r/geography myself
akonny has quit [Quit: akonny]
<benzrf> warning: RubyPanther is full of shit
<metamaterial> what country is on the other side of the monks or dali lama or whatever
<Hanmac> about tibet, looking from the financial view ... is it worth it for china to be angry about it? (i mean losing tibet, would it break china?)
<metamaterial> it goes like, china, monk land, islam, right?
<LadyRainicorn> It would be bad politically.
<RubyPanther> benzrf: Only because I eat too much cheese, but my wife says I'll live a long time because I'm so regular
mansi has quit [Remote host closed the connection]
<metamaterial> so china is just helping out make sure the monks land doesnt get owned by al quaida
<benzrf> RubyPanther: lel
mansi has joined #ruby
<RubyPanther> Tibetan Buddhism is headquartered in India because of Chinese control of Tibet
kaspergrubbe has joined #ruby
<RubyPanther> so China will only be choosing a local fake-Llama
mansi has quit [Read error: Connection reset by peer]
<LadyRainicorn> The Dalai Llama did say he wasn't going to reincarnate into Chinese territory.
carlyle has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
mansi has joined #ruby
<metamaterial> way to hold a grudge, mr let go of everything.
<RubyPanther> metamaterial: If you look at Thailand and Burma, I'm not sure the Buddhists need that much protection. Terrorism just doesn't terrify Buddhists the way it does everybody else.
jack_rabbit has joined #ruby
<metamaterial> i'm saying those Buddhists are violent terrorists.
* LadyRainicorn sends loving kindness towards the terrorists.
<RubyPanther> if 50 people are killed by terrorists in southern Thailand, and 1 protester is killed in Bangkok, the Thai news mostly worries about the protester
danshultz has quit [Ping timeout: 252 seconds]
karupa is now known as zz_karupa
<metamaterial> dude a government killed a protestor? what?
blackmes1 has joined #ruby
<metamaterial> (=
<LadyRainicorn> haha
<RubyPanther> Dude, hundreds of protesters die every year in Thailand, good luck figuring out who shot them
terrellt has joined #ruby
popl has quit [Ping timeout: 255 seconds]
<LadyRainicorn> Hundreds may be an exaggeration, usually.
<RubyPanther> thousands are killed by terrorists, too
<timgauthier> designers are really... really.. really weird people
<timgauthier> and really opinionated
<RubyPanther> if we mean the last few years, hundreds per year is a precise measure
<timgauthier> like programmers are too, but in a different way
<LadyRainicorn> Many people are weird.
obscured has quit [Quit: leaving]
marc_online_ has quit [Quit: Leaving]
carlyle has quit [Remote host closed the connection]
<RubyPanther> timgauthier: if designers weren't weirdos, there would be a catalog of 1000 normal designs, and you'd just click on one, and there would be no new designers
<timgauthier> yeah thats true
<timgauthier> but what is weird is that they seem more like the 1000 normal designs
<RubyPanther> we have such catalogs, but clients want every rounded corner to be unique and artsy
<timgauthier> like, they are all clinging to wordpress
Deele has quit [Ping timeout: 255 seconds]
<timgauthier> saying how much money they've made and that if they even dared mention a different CMS they'ed magically lose their clients...
jespada has quit [Quit: Leaving]
<RubyPanther> timgauthier: wordpress allows designers to leverage programming features without being programmers, it is natural. It lets them be in the role of consultant, and move the programmer into a sub-contractor role
RubyDubyDoo has quit [Quit: Leaving.]
<timgauthier> like the very idea of mentioning "hey, wordpress isn't what i would recommend for your sites back end" would send them spiralling into the depths of mount bancrupt
<timgauthier> maybe thats it
<timgauthier> but the problem extends into the very act of design too i find in many cases designers have turned themselves into production artists. just drawing what the client asks for.
<RubyPanther> it is the difference between making logos for $20/hr or being a consultant making $200/hr
<RubyPanther> That is what the client wants
<timgauthier> Boring unoriginal and crappy design for 100$ an hour and calling it design.. no one thought out the process of using the site, or how much hosting is going to cost now due to overhead for bloatware you've installed to the server, or the fact that browsing your homepage kills my battery in 30 seconds
crystal77 has joined #ruby
<RubyPanther> the client either already knows what they want, so they don't need to hire a fancy consultant to charge them thousands of dollars to tell them to want something else
<timgauthier> yes, that *is* what the client wants, someone who just draws the picture they have in their head. But they NEED someone who take that picture, ponders it, and comes up with a perfect solution
<RubyPanther> or they don't have the money and know they have to trust some designer to plug in the right wordpress plugins
<timgauthier> but they would be happier if they had someone tell them what they want
testcore has joined #ruby
linduxed has joined #ruby
<LadyRainicorn> Pssh, clients.
<timgauthier> lol
MatthewsFace has joined #ruby
<RubyPanther> They wouldn't be happier, they'd pay $15k and their idiot website would still not be the facebook killer they imagined
<timgauthier> the truth is, my last hobby job was to tell people what they wanted and not sell them what they thought they wanted
<RubyPanther> the vast majority of those clients have a real non-web business and they just need a do-it-yourself level website, but aren't tech nerds so they can't do-it-themself
phansch has quit [Quit: WeeChat 0.4.2]
nari has quit [Ping timeout: 252 seconds]
Deele has joined #ruby
burgess has joined #ruby
<RubyPanther> a lot of the rest just need a simple "web store" to sell something, and they can build a real website later if they get a lot of sales
iliketurtles has quit [Quit: zzzzz…..]
SubSignal has quit [Remote host closed the connection]
<timgauthier> RubyPanther yeah, i like to imagine there is a market for people who WANT to have a good site and offer a good web product but think it will be way more expensive then it needs to be, or that they have no choice but to hire a shitty wordpress installing "designer"
<timgauthier> ruby aha! but they won't get lots of sales if their webstore sucks!
<RubyPanther> IMO the real problem is these designers should be leaning more heavily on OSCommerce instead of wordpress
<RubyPanther> timgauthier: if their product doesn't sell itself, their under-funded shoestrings project will fail anyways
shock_one has joined #ruby
<timgauthier> yes/no
brunops has quit [Ping timeout: 264 seconds]
<timgauthier> a product can be great, but a terrible webstore can hamstring quite easily
<RubyPanther> a lot of time what makes or breaks these guys is getting on the local news, or not
<timgauthier> now that said, a lot of the dedicated web commerce solutions do a good job at that for us
Vovko has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
<timgauthier> thats the area my brain focuses on though, do you go to the shitty supermarket where the staff are mean and the isles dark and you have no idea where shit is..
<RubyPanther> most of my clients have been saddled with such awful business plans they had no hope of success
<timgauthier> or do you go to the bright clean one
iliketurtles has joined #ruby
<RubyPanther> and anything that saves them money is less money they'll lose
Deele has quit [Ping timeout: 255 seconds]
<timgauthier> yeah
<timgauthier> see i'm not usually building an app, so thats not so much the same location for me
<RubyPanther> timgauthier: if all your products fit on one page, people will find them. And you won't even need a catalog, you can just use "buy now" type buttons generated by the payment processor
<timgauthier> yes
<timgauthier> definitely :)
dima__ has joined #ruby
rcoz has quit [Remote host closed the connection]
<timgauthier> my last project was a site that had been using wordpress to sell online video based training
<RubyPanther> and a wordpress page that is designed that way, then the designer just has to make the CSS pretty and the store is clean and bright... right?
<timgauthier> or a static page
<RubyPanther> I mean, until the plugins turn out to be crufty and buggy
<timgauthier> or something smaller and more simple then wordpress
<timgauthier> :P but yeah
<myke> wordpress has a lock on the mindset of corporate america
<timgauthier> myke naw
<myke> my boss wants to go with wordpress even though he's unable to formulate any reasons why
<timgauthier> wordpress has a lock on the lazy ass designers of america ;)
<katlogic> Is wordpress the godwin of #ruby?
<timgauthier> who don't want to do their job to sell a good solution
<katlogic> Are there any wordpress deniers?
<RubyPanther> a few years ago Ruby was inundated by designers trying to learn rails. I'm so glad something else is cool now!
<timgauthier> i don't know what godwin is... but i hate wordpress myself as a designer
<timgauthier> *cough* designer trying to learn rails...
<myke> the problem is non-technical people don't get the plugin mess that's hidden
rbenv has joined #ruby
<myke> so to them any other cms is just more work for same result
<atmosx> RubyPanther: railsis tricky, easy to learn hard to master
mrmargolis has joined #ruby
<RubyPanther> but they should go back to wordpress/OSCommerce
<katlogic> #node.js is all the rage and sorrov
<myke> because the backend/dev has no meaning and hence no value to them
<atmosx> s/rails is/rails are
<katlogic> thank god rails hype is over
<katlogic> now its just hurr durr rails so insecure or whatevs
cjbottaro has quit [Quit: Textual IRC Client: www.textualapp.com]
<timgauthier> the trick myke is to teach them the badness of their original decision and then show them the joy and how much easier a different solution is for them.
<atmosx> I'm going to bed, bbl
Deele has joined #ruby
<timgauthier> cya atmosx
<RubyPanther> rails sucks, ruby sucks, it is all true. If you don't <3 Ruby so much to use such a sucky language, you should be using PHP or Javascript.
<myke> timgauthier: what's weird is we had outsourced wp site that was months over due and schedule and had all kinds of problems...then the designer and i did a barebones site in a month that's nearly as feature complete...but boss still wants to forge ahead with wordpress
<timgauthier> RubyPanther programming sucks, but is really useful
<RubyPanther> I <3 Ruby so much when I started with rails we were deploying as CGI... and liking it!
crystal77 has quit [Quit: Computer has gone to sleep.]
<timgauthier> your boss is an idiot needing someone to tell him
<timgauthier> or someone needs to figure out the kickback he's getting from that outsource
<katlogic> Either is slow noone could really tell the difference.
geggam has joined #ruby
<katlogic> hurr durr is ruby2 real thing now?
<myke> timgauthier: i really think it's that wordpress has incredible "mindshare" these days...i mean everyone's using it so it must be great right??
<myke> i think this is also how tech stocks get hugely overvalued
<timgauthier> yeah that makes sense
<timgauthier> i intend to make my entire business out of being not wordpress
<deepy> I think I love you timgauthier
<myke> i tried to ferret out specific things that he thought were better in wp but every one we had in our homebrew system
<timgauthier> and i see these 'designers' telling new designers that it is a waste of time and doesn't make any business sense but to learn wordpress
<deepy> But I don't know if it's because of my feelings towards Wordpress
<timgauthier> deepy its okay man,
<timgauthier> we can bond
<katlogic> Porting wordpress to ruby is a noble goal.
<horrorvacui> designers are consumed by trends, what do you expect :P
<RubyPanther> No, it is an evil abomination
<myke> i think non-techs think wp is a separate thing at the level of a server
<RubyPanther> wordpress is awesome right where it is, it doesn't need to live in our garage
<myke> because boss keeps talking about "learn wordpress" like that's a thing
<deepy> Porting the WordPress admin panel to a ruby app would be cool though
cjbottaro has joined #ruby
<RubyPanther> if you want to port wordpress, port it to C and then you can add bindings for any language
alexherbo2 has joined #ruby
<timgauthier> haha nice
<RubyPanther> then you can rails as the delivery mechanism, and still have PHP plugins
<Hanmac> they its possible ;P
<timgauthier> lol
smoores has joined #ruby
<timgauthier> i don't suggest it
<katlogic> hue
freezey has joined #ruby
<timgauthier> i suggest you chop off all of your fingers on both of your hands
<deepy> Sure you can port WordPress, but why would you want to?
<timgauthier> toes too, just so you never program again
<RubyPanther> I could make a boatload of money, if I didn't jump off a cliff halfway through
s2013 has quit [Ping timeout: 265 seconds]
<mg^> wow I always look at this channel at exactly the wrong time
<katlogic> Wordpress is so perfect here are hardly viable ways to improve it :/
<mg^> I hate wordpress. It's like a curse.
<katlogic> You're bad christian mg^.
nateberkopec has joined #ruby
<mg^> Well, that's probably true as well.
<RubyPanther> Yeah, wordpress is the least among us... lolol
<katlogic> mg^: I thought this place was always like this, vipping nonsense.
<mg^> it is
<mg^> But talk of porting WP to Ruby? Crazy talk!
<deepy> mg^: I found a solution to that problem
<deepy> sectioning
<mg^> Much better to start with a series of lessons learned from WP implementations, and then create something better in Ruby.
jcs222 has joined #ruby
<RubyPanther> rb_funcall(r_vipping, rb_intern("nonsense"), 0);
blackmes1 has quit [Ping timeout: 240 seconds]
<horrorvacui> Lets port ruby to wp instead :P
hfp is now known as hfp`offline
<mg^> yeah there we go
<mg^> we should embed the Ruby interpreter into PHP...
<timgauthier> mg^ do it, make something based on what was learned from wordpress, it'll be great
<timgauthier> thats what craft did for their PHP thing
<RubyPanther> rb_funcall(r_vipping, rb_intern("nonsense"), 1, rb_str_new2("horrovacui"));
<timgauthier> mg^ that'd be nice actually
<RubyPanther> just stuff an mRuby in there
<mg^> timgauthier: I'm a terrible programmer, not the project for me
<katlogic> Well, maybe ruby inside that facebook php vm thing would actually run fast.
nateberkopec has quit [Client Quit]
<mg^> I do systems programming on text terminals :)
<RubyPanther> You don't need Ruby to embed Ruby, only C
<katlogic> I mean thanks to ruby people dont event complain that python is slow anymore.
Deele has quit [Ping timeout: 255 seconds]
<timgauthier> python is ugly
johncjensen has quit [Remote host closed the connection]
<horrorvacui> timgauthier: take it back
<horrorvacui> :P
<timgauthier> :P
<timgauthier> nope
KanKava has quit [Quit: leaving]
chrisseaton has quit []
<timgauthier> node is nicer looking
<RubyPanther> was python ever slow? I thought is sucked for strictly aesthetic reasons
<mg^> I'm going with timgauthier on that
<timgauthier> and that shits hieroglyphic
<horrorvacui> wtf is wrong with you?
<horrorvacui> node is nicer pssh
<timgauthier> :P
<timgauthier> at least its faster too :O!
<horrorvacui> true true
<timgauthier> is there any programming languages written in korean? that'd be rad!
<RubyPanther> People should have known Python would suck. COBOL already taught us not to have meaningful whitespace.
<horrorvacui> Twisted is nicer imo, so is eventmachine
<horrorvacui> I hate node :(
<mg^> someone embedded a PHP runtime inside of a Ruby runtime...
bthesorceror has quit [Remote host closed the connection]
sparrovv has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
jgrevich_ has joined #ruby
<mg^> Ada might as well be implemented in Korean.
<horrorvacui> Okay I don't hate node but it's hyped
<RubyPanther> I did embed Ruby in COBOL
<myke> COBOL has meaningful starting columns
<myke> not the same
sparrovv has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<katlogic> mmm, ROBOL has a nice ring to it
<myke> python only has relative offsets
<horrorvacui> COBOL has hoisting :P kinda
<mg^> I think it's Ada that has all of the unusual symbols
<katlogic> Sexist.
<mg^> Jeeze, that reminds me that I had to buy a commercial COBOL compiler for an organization just 3 years ago.
<horrorvacui> They probably still teach cobol at my uni
<horrorvacui> A lot of businesses still use it and beg my uni to keep the classes around.
<RubyPanther> yikes, I thought opencobol had taken over
<mg^> No, not Ada. I'll think of it.
Lewix has quit [Remote host closed the connection]
<mg^> This was for a public utility, they are running Banner for their customer info system.
<katlogic> horrorvacui: Can't they just switch over to excel tables / ms access / vb6 / sybase like normal people do?
<RubyPanther> I'd rather embed opencobol in a db procedure than get stuck with that crap
Deele has joined #ruby
crystal77 has joined #ruby
smoores has quit [Quit: Leaving]
<katlogic> Well, its the only way for an accountant to actually express paycheck processing
<katlogic> when you scrap cobol that is
<mg^> APL... that's the language that has all of the unusual symbols.
phantasm66 has quit [Ping timeout: 265 seconds]
aspires has quit []
<katlogic> Special keyboards, custom font banks yay.
doodlehaus has quit [Remote host closed the connection]
razrunelord has joined #ruby
JohnBat26 has quit [Ping timeout: 276 seconds]
<katlogic> I suppose APL was joke language who some misunderstood as serious attempt, like haskell today.
<mg^> could be
bradhe has quit [Remote host closed the connection]
<mg^> and I totally agree with that assessment of haskell
<agarie> Ada isn't a bad language imo
<mg^> People accuse me of having mashed on the keyboard to produce some of the Perl I've written.
<agarie> there are some cool ideas in it
sdwrage has joined #ruby
<mg^> Haskell is proof that you can mash on the keyboard and pass it off as a program.
<agarie> e.g. runtime value checking
kyb3r_ has joined #ruby
<horrorvacui> I know my COBOL instructor swore there was no replacement to this date for COBOL and I took it upon myself to write some python to replace her example.
<RubyPanther> APL was from Harvard, of course it looks like a joke to us serfs
<horrorvacui> She had it out for me from then on.
<RubyPanther> She's right, too
mrmargolis has quit [Remote host closed the connection]
mr_rogerz has joined #ruby
claymore has quit [Quit: Leaving]
<RubyPanther> There is no replacement for COBOL because python probably doesn't even compile on 70s minis
<metamaterial> heh
<horrorvacui> Well tbh this was some years ago. I made it sound recent.
tvw has quit []
tvw has joined #ruby
Hanmac1 has joined #ruby
<RubyPanther> Well it was even more true in the past
<horrorvacui> About 3-4 years ago
<RubyPanther> I only learned COBOL for Y2K, and I was already shocked how many people were still platform-locked into it
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
reset has quit [Quit: Leaving...]
<RubyPanther> most of the people who still had COBOL by 2001 probably still have it
etqqkoiflwhb has joined #ruby
cjbottaro has quit [Ping timeout: 265 seconds]
<horrorvacui> Yeah she learned it to fix the Y2K problem herself and was often contracted to do stuff for a lot of banks and corporations around the area.
Hanmac has quit [Ping timeout: 276 seconds]
endash has quit [Quit: endash]
ankov has joined #ruby
endash has joined #ruby
Sawbones has quit []
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: My MBP went to sleep.]
ndrei has quit [Ping timeout: 265 seconds]
Aaaal has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_snowf1ake has joined #ruby
razrunelord has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
pika_pika has quit [Ping timeout: 265 seconds]
razrunelord has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
Squarepy has quit [Quit: Leaving]
<alexherbo2> How add Ruby bindings to i3ipc-glib? https://github.com/acrisci/i3ipc-glib
<timgauthier> good night guys!
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
agjacome has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
nateberkopec has joined #ruby
mackwic has joined #ruby
SonicX has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Read error: Connection reset by peer]
locriani has joined #ruby
mansi has joined #ruby
johncjensen has joined #ruby
jobewan has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
locriani is now known as locriani|railsco
r_rios has joined #ruby
northfurr has joined #ruby
locriani|railsco is now known as locriani|railscn
bradhe has joined #ruby
cpruitt has joined #ruby
locriani|railscn is now known as locriani
reset has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
treehug88 has quit []
cpruitt has quit [Client Quit]
beef-wellington has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
cpruitt has joined #ruby
Di has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
jacobsmith has joined #ruby
simono has joined #ruby
aspires has joined #ruby
jsaak has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Es0teric has joined #ruby
bradhe_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Vovko has quit [Remote host closed the connection]
Hanmac has joined #ruby
AndChat|185600 has joined #ruby
evenix has joined #ruby
jack_rabbit has quit [Ping timeout: 276 seconds]
r_rios has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Hanmac1 has quit [Ping timeout: 264 seconds]
malida has quit [Ping timeout: 255 seconds]
bricker`LA has joined #ruby
mansi has quit [Read error: Connection reset by peer]
aspires has quit []
evenix has quit [Remote host closed the connection]
Vovko has joined #ruby
locriani has quit [Remote host closed the connection]
brunops has joined #ruby
<BraddBitt> I wish I were at Railsconf :(
locriani has joined #ruby
joaoh82 has quit []
shevy has joined #ruby
michaeldeol has joined #ruby
<banister> BraddBitt heard the pry talk was pretty epic
mikepack has joined #ruby
Azure has joined #ruby
aspires has joined #ruby
<BraddBitt> is the dhh keynote already up?
LadyRainicorn has quit [Quit: Bye]
sambao21 has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
CorpusCallosum has joined #ruby
skysploit has quit [Quit: This computer has gone to sleep]
AndChat|185600 has quit [Ping timeout: 276 seconds]
mikepack has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
ascarter has joined #ruby
admin-yhk has joined #ruby
<admin-yhk> New Lamborghini Gallardo 30 Seconds to Mars Edge of the Earth Music Video https://www.youtube.com/watch?v=HDj-hWV59N0
admin-yhk has quit [Killed (idoru (Spam is off topic on freenode.))]
sambao21 has quit [Client Quit]
dblessing_ has joined #ruby
aspires has quit [Client Quit]
aspires has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
cover has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
Shidash has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
benzrf is now known as benzrf|offline
sambao21 has quit [Client Quit]
jsaak has joined #ruby
dblessing has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
mackwic has left #ruby [#ruby]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
nfk has quit [Quit: yawn]
dblessing_ has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
jamto11 has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
skysploit has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
lkba has joined #ruby
bradhe_ has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
toastynerd has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj> Hey guys, I'm working on a project euler question. https://gist.github.com/josomo/11271822 Any pointers?
Aaaal has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
Aaaal has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
locriani has joined #ruby
servatoo has quit [Remote host closed the connection]
servatoo has joined #ruby
skysploit has quit [Quit: This computer has gone to sleep]
tacos1de has joined #ruby
jasonwebster has joined #ruby
shevy has quit [Ping timeout: 265 seconds]
brunops has quit [Ping timeout: 240 seconds]
shinobi_one has quit [Quit: shinobi_one]
<lagweezle> When in danger / or in doubt / run in circles / scream and shout.
servatoo_ has joined #ruby
servatoo has quit [Read error: No route to host]
dfinly has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
x77686d has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
dkamioka_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
jasonwebster has quit [Client Quit]
ascarter has joined #ruby
vpretzel_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
cpruitt has quit [Quit: cpruitt]
<omosoj> My answer seems to work with lower numbers.
<RubyPanther> omosoj: I see a problem and some code, but no questions
<LiquidInsect> without any real context (as I haven't started that problem yet), as is the case with most Project Euler problems, a naïve algorithm is going to take far too long
hfp`offline is now known as hfp
<LiquidInsect> and that looks at first glance to be a naïve algorithm
<omosoj> I'm trying to solve the question 'what's the first triangle number with >500 divisors?' with that script.
<havenwood> omosoj: nice to write `y += x` instead of `y = x + y` and `x += 1` instead of `x = x + 1`
cg433n has joined #ruby
<havenwood> omosoj: it's just too slow
dik_dak has quit [Quit: Leaving]
kaspergr_ has joined #ruby
vpretzel|gone has quit [Ping timeout: 265 seconds]
Asher has joined #ruby
senayar has quit [Remote host closed the connection]
adlerdias has quit [Quit: Leaving]
<LiquidInsect> The first thing I leanred from Project Euler is that I don't know much math
<omosoj> LiquidInsect, yeah I guess it's a pretty primitive solution.
ce_afk is now known as cescalante
djbkd has joined #ruby
senayar has joined #ruby
<omosoj> havenwood, ok, I'll change that stuff.
<omosoj> Aha, an answer was just returned. Lol. Took a few minutes.
SonicX has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
SCommette has joined #ruby
<omosoj> Nope... I lowered it from 500 to 200... so I have the answer to that.
<LiquidInsect> at that rate, think how long 500 will take
<LiquidInsect> you need to learn the theory behind the problem
nolic has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
<LiquidInsect> but take what I say with a grain of salt, I'm still working on #3
kaspergrubbe has quit [Ping timeout: 276 seconds]
<omosoj> Gah. Are there any other popular problem sets to practice Ruby on?
<LiquidInsect> ruby koans? if you're trying to learn programming and syntax, and not math or algorithms
senayar has quit [Ping timeout: 240 seconds]
<LiquidInsect> Euler is an awesome problem set but it depends on what you want to learn
<LiquidInsect> it's not the way to learn Ruby necessarily
<omosoj> I've done those.
<alpha123> Euler is great if you want to learn math, but pretty bad for actually learning languages.
<omosoj> K, maybe I should find something else to practice with.
wjlafrance has quit [Quit: This computer has gone to sleep]
michaeldeol has joined #ruby
<EminenceHC> How can I sum the integers in this array who have the same date? [[Mon, 21 Apr 2014, 3], [Mon, 14 Apr 2014, 3], [Mon, 21 Apr 2014, 3]] I would like the result to be: [[Mon, 21 Apr 2014, 6], [Mon, 14 Apr 2014, 3]]
stephenmac7 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
shevy has joined #ruby
brunops has joined #ruby
jsaak has quit [Ping timeout: 252 seconds]
banister is now known as banister`sleep
jottr has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
cg433n has quit [Quit: Lingo - http://www.lingoirc.com]
johncjensen has quit [Remote host closed the connection]
Guedes0 has left #ruby ["Saindo"]
treehug88 has joined #ruby
sailias has joined #ruby
terrellt has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Operation timed out]
mjsmith2 has joined #ruby
testcore has quit [Quit: BitchX: you'll have to speak up, I'm wearing a towel]
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
kevind_ has joined #ruby
blackmes1 has quit [Read error: Connection reset by peer]
AlexRussia has quit [Read error: Operation timed out]
Gnubie_ has quit [Read error: Operation timed out]
iaj has quit [Read error: Operation timed out]
chridal has quit [Read error: Operation timed out]
shaman42 has quit [Read error: Operation timed out]
iaj_ has joined #ruby
shaman42 has joined #ruby
tommylommykins has quit [Read error: Operation timed out]
markmarkmark has quit [Read error: Operation timed out]
jacobsmi1h has joined #ruby
tommylommykins has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
chridal has joined #ruby
rezzack1 has joined #ruby
lbwski has quit [Read error: Operation timed out]
Brando753 has quit [Read error: Operation timed out]
markmarkmark has joined #ruby
qubit has quit [Read error: Operation timed out]
Brando753 has joined #ruby
qubit has joined #ruby
rezzack has quit [Read error: Operation timed out]
alpha123 has quit [Read error: Operation timed out]
Gnubie_ has joined #ruby
BradPitt_ has joined #ruby
wookiehangover has quit [Read error: Operation timed out]
shevy has quit [Ping timeout: 255 seconds]
wookiehangover has joined #ruby
AlexRussia has joined #ruby
t_p has quit [Ping timeout: 252 seconds]
BraddBitt has quit [Ping timeout: 252 seconds]
bricker has quit [Ping timeout: 252 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
bradhe has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 240 seconds]
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
noocode has quit [Ping timeout: 265 seconds]
jacobsmith has quit [Ping timeout: 252 seconds]
s00pcan has quit [Ping timeout: 252 seconds]
geggam has quit [Ping timeout: 252 seconds]
Rylee has quit [Ping timeout: 252 seconds]
<EminenceHC> How can I sum the integers in this array who have the same date? [[Mon, 21 Apr 2014, 3], [Mon, 14 Apr 2014, 3], [Mon, 21 Apr 2014, 3]] I would like the result to be: [[Mon, 21 Apr 2014, 6], [Mon, 14 Apr 2014, 3]]
tvw has quit []
bricker has joined #ruby
lethjakman has joined #ruby
<lethjakman> is there an easy way to export an array to CSV?
lbwski has joined #ruby
noocode has joined #ruby
Rylee has joined #ruby
terrellt has joined #ruby
s00pcan has joined #ruby
funburn has joined #ruby
baweaver has joined #ruby
arubincloud has quit []
bradhe has joined #ruby
geggam has joined #ruby
nanoyak has joined #ruby
sailias has quit [Quit: Leaving.]
toastynerd has quit [Remote host closed the connection]
terrellt has quit [Remote host closed the connection]
johncjensen has joined #ruby
locriani has quit [Remote host closed the connection]
dblessing has joined #ruby
toastyne_ has joined #ruby
kyle__ has quit [Quit: leaving]
baweaver has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
<havenwood> EminenceHC: each_with_object(Hash.new 0) { |(date, n), hash| hash[date] += n }.to_a
yfeldblum has joined #ruby
aspires has quit []
apeiros has quit [Remote host closed the connection]
jgrevich_ has quit [Quit: jgrevich_]
apeiros has joined #ruby
<mg^> that's even better than what I thought of
ascarter has joined #ruby
<mg^> but I'm relatively new to Ruby
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
doodlehaus has joined #ruby
rezzack1 has quit [Quit: Leaving.]
jack_rabbit has joined #ruby
snath has quit [Ping timeout: 252 seconds]
<horrorvacui> I like the block parameter trick with (date, n) getting assigned from the array. I just never think of those awesome tricks sadly.
benzrf|offline is now known as benzrf
thomasxie has quit [Remote host closed the connection]
rezzack has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
aspires has joined #ruby
<EminenceHC> Thank you SO much havenwood!
<mg^> I knew there had to be a better way that didn't have to actually name the hash
kevind has quit [Quit: kevind]
<mg^> yeah that's a cool trick, too
<omosoj> So I created a new rails project and a model named people. I have a text file with a list of people. What is the best way to put them in the database?
andy___ has quit [Remote host closed the connection]
<benzrf> omosoj: why not manually load it up using a replay
<benzrf> *REPL
terrellt has joined #ruby
<benzrf> somethin like 'people_lines = File.read("peeps.txt").split("\n")'
<benzrf> etc
<benzrf> or use CSV.parse if its a csv
<horrorvacui> omosoj: production or what?
<omosoj> benzrf, I don't know what that is, but I'll look it up.
<omosoj> benzrf, ok I'll try that.
<omosoj> horrorvacui, sorry don't understand the question (I'm new).
chrisseaton has joined #ruby
meddle has quit [Ping timeout: 240 seconds]
joaoh82 has joined #ruby
<omosoj> benzrf, do I need to put the file in the assets directory to do this?
rezzack has quit [Ping timeout: 276 seconds]
agarie has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
toastyne_ is now known as toastynerd
treehug88 has quit []
felixjet_ has joined #ruby
bradhe has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
<benzrf> omosoj: wuh?
snath has joined #ruby
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
jcs222 has quit [Read error: Connection reset by peer]
jcs222 has joined #ruby
<lethjakman> horrorvacui: I don't know why I didn't think of that, thank you :)
Doppp has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
<lethjakman> only thing I could ask for is for it to automatically recognize rows based off of a hash.
<lethjakman> s/only/only other/
sparrovv has quit [Remote host closed the connection]
coyo has quit [Ping timeout: 252 seconds]
m00nlight has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
havenwood has joined #ruby
<omosoj> lol
iliketurtles has quit [Quit: zzzzz…..]
<horrorvacui> omosoj: is the data just test data?
kaspergrubbe has joined #ruby
<horrorvacui> omosoj: Are you working by yourself on the project?
<omosoj> I'd like to organize it and run some calculations on it, maybe do some data visualization, depending on what I'm capable of.
<omosoj> horrorvacui, yes, it's a personal project to learn.
<horrorvacui> The reason I ask is the database needs to be in a consistent state for others not to encounter problems.
Azure has quit [Quit: My MBP went to sleep.]
larsam has quit [Read error: Connection reset by peer]
<omosoj> Hmm. Well if it's relevant, the data wont change. I can upload it and there will be no new data streaming in or whatever.
rokob has quit [Remote host closed the connection]
sparrovv has joined #ruby
burgess has quit [Quit: ^zzz]
<horrorvacui> omosoj: Then I think the suggestion to use a simple repl method of inputting it would be useful. Also if the data is CSV you can use the std library CSV to parse and just simply Model.create!
brunops has quit [Ping timeout: 255 seconds]
kaspergr_ has quit [Ping timeout: 252 seconds]
frobrob_ has quit [Quit: HUP]
<horrorvacui> Just like benzrf said
Caius has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
rokob has joined #ruby
<omosoj> Ok, thanks.
<dorei> btw, is there some magic gem that would help me (automate ) with creating simple cli tools for adding/deleting to my Models ?
baroquebobcat has quit [Ping timeout: 265 seconds]
<centrx> dorei, thor?
andrewlio has quit [Quit: Leaving.]
sdwrage has joined #ruby
<dorei> let me check it
<centrx> dorei, With Rails, use rails runner
<centrx> You can run anything in your app's environment
<centrx> rake of course
Caius has joined #ruby
<centrx> dorei, What are you trying to do exactly
<horrorvacui> Yeah I'd think about doing that with rake + rails runner
bradhe has joined #ruby
mikecmpb_ is now known as mikecmpbll
Spami has joined #ruby
coyo has joined #ruby
coyo is now known as Guest37572
george2 has quit [Remote host closed the connection]
s2013 has joined #ruby
predator217 has joined #ruby
pel_daniel has left #ruby [#ruby]
<dorei> centrx: i have some sequel models and i want to be able to add/delete from there from the command line
ryanilg has quit [Quit: Lost terminal]
MatthewsFace has joined #ruby
<dorei> i guess i need some simple controllers and cli wrapper to them
<EminenceHC> What is the best way to convert all nil values to 0 in this simple array? [[Mon, 21 Apr 2014, nil], [Mon, 14 Apr 2014, nil]]
predator117 has quit [Ping timeout: 264 seconds]
frobrob has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<centrx> array.each { |x| x[2].to_i }
Vovko has quit [Remote host closed the connection]
<centrx> >> x[2] = x[2].to_i
<eval-in__> centrx => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/141451)
<centrx> or x = 0 if x.nil?
<centrx> x[2]
<horrorvacui> You can also give the array constructor a size and default value
<horrorvacui> EminenceHC: ^
Gearbox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<horrorvacui> or now that I see what you are asking that wouldn't be useful
shevy has joined #ruby
echevemaster has joined #ruby
chrisseaton has quit []
fijimunkii has quit [Ping timeout: 265 seconds]
chrisseaton has joined #ruby
hobodave has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
michaeldeol has joined #ruby
hobodave has joined #ruby
zachallett has joined #ruby
wjlafrance has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<postmodern> is there a library for parsing/comparing arbitrary version numbers?
iliketurtles has joined #ruby
<postmodern> Gem::Version is pretty powerful, but not sure it can handle none X.Y.Z versions
lmickh has quit [Remote host closed the connection]
jsaak has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<shevy> postmodern I think canton7 here had something
<shevy> gem install sem-var or something
<shevy> no, sem_var
BWStearns has quit [Ping timeout: 265 seconds]
s2013 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<postmodern> shevy, i need to compare non-semver versions though
<horrorvacui> versionomy?
onewheelskyward has quit [Quit: ZNC - http://znc.in]
sambao21 has quit [Quit: Computer has gone to sleep.]
jacobsmi1h has quit [Ping timeout: 265 seconds]
<shevy> hmm
<shevy> we really need gems that can handle meta-actions
<shevy> or perhaps we need aggregate-gems
phoo1234567 has quit [Quit: Leaving]
<shevy> which combine sub-gems to do that job
<centrx> Do you pronounce gem 'jem' or 'ghem'
<postmodern> or a versions gem that provides a basic API for specific version formats
bradhe has quit [Remote host closed the connection]
<postmodern> and build semver ontop of that
bogeyd6 has joined #ruby
onewheelskyward has joined #ruby