Bumptious has quit [Remote host closed the connection]
brunops has quit [Quit: leaving]
Bumptious has joined #ruby
deens has joined #ruby
Txandy|away is now known as Txandy
lukeholder has joined #ruby
Zunonia has joined #ruby
lukeholder has quit [Max SendQ exceeded]
[krisbulman|afk] is now known as krisbulman
<terabit>
so anyone know how to get my program working?
asmodlol has quit [Remote host closed the connection]
tauebel1 has joined #ruby
chipotle has quit [Quit: cya]
rjbs has left #ruby [#ruby]
Bumptious has quit [Ping timeout: 250 seconds]
tauebel has quit [Ping timeout: 250 seconds]
<lpvn>
terabit: it seems you're installing a nokogiri version incompatible with the ruby version you're using
<xybre>
wald0: The vast difference between Ruby and C seems like it would add a few layers to that decision process.
deens has quit [Ping timeout: 247 seconds]
<terabit>
it requires at least 1.9.2 and I have 2.0 , also if i just do "gem install nokogiri" it works
whatasunnyday has quit [Quit: whatasunnyday]
BackEndCoder has joined #ruby
ukd1 has joined #ruby
<terabit>
gem install nokogiri -v '1.6.1' works
estebistec has joined #ruby
vlad_starkov has joined #ruby
<lpvn>
terabit: specify the version of nokogiri in your Gemfile
heftig has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
<terabit>
what gemfile ? how ?
nari has joined #ruby
<lpvn>
the Gemfile in the directory of the application where you're running bundle install
<terabit>
sorry, I don't use ruby a lot , just installing snorby
<lpvn>
no problem
<terabit>
oh, cool thanks
Evenix has quit []
doodlehaus has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
bradhe has quit [Remote host closed the connection]
heftig has joined #ruby
kewjo has quit [Quit: WeeChat 0.4.1]
<wald0>
nobitanobi: xybre i dont get the point
<xybre>
wald0: Then use C
<wald0>
xybre: so is simply not possible to compile/obfuscate ruby code ?
<terabit>
yeah, it's not in the gemfile in the directory I'm running "bundle install"
<xybre>
wald0: It is, but if you don't see that there's more to the decision you're better off using C.
<wald0>
what you mean by "more to the decision" ?
* wald0
confused
nicos has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
<centrx>
wald0, what is the reason for wanting to compile the code?
<centrx>
wald0, You can use JRuby
<lpvn>
wald0: he means that if you can't see the obvious difference between using ruby or C, you can choose whatever you want
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has left #ruby ["Leaving"]
pranny has quit [Quit: Leaving.]
<terabit>
so..
pranny has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
vpretzel has joined #ruby
iamsean has joined #ruby
whatasunnyday has joined #ruby
Maitiu has quit [Ping timeout: 256 seconds]
phipes has joined #ruby
iamsean has quit [Client Quit]
ukd1 has quit [Quit: Leaving...]
Txandy is now known as Txandy|away
phipes has quit [Read error: Connection reset by peer]
phipes_ has joined #ruby
ryanuber has left #ruby [#ruby]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
ryanuber has joined #ruby
ryanuber has left #ruby [#ruby]
ryanuber has joined #ruby
Maitiu has joined #ruby
vpretzel has quit [Ping timeout: 246 seconds]
<wald0>
lpvn: that doesnt make sense, a C code can be compiled and so unreadable (of course that is not impossible, but! thousands times harder than give a wonderfully-readable ruby code)
<wald0>
centrx: selling software reasons
<wald0>
capitalism sucks, i know :)
<wald0>
in short, the app requires a payment step in order to continue
<wald0>
if the source is open, 99% of ppl will comment that line, if the code is compiled, 1% will comment that line
tauebel1 has quit [Quit: Leaving.]
phipes_ has quit [Ping timeout: 269 seconds]
alvaro_o has quit [Quit: Ex-Chat]
SCommette has joined #ruby
<centrx>
Will they?
doodlehaus has joined #ruby
rm_ has quit [Ping timeout: 272 seconds]
Bira has quit [Remote host closed the connection]
whatasunnyday has quit [Quit: whatasunnyday]
aspires has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
mansi has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
iamdoo2 has joined #ruby
jrobertf_ has quit [Quit: Take it easy.]
jrobertfox has joined #ruby
IceDragon has joined #ruby
jtdowney has joined #ruby
SilentHobo has quit [Ping timeout: 250 seconds]
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
araujo has quit [Remote host closed the connection]
iamdoo2 has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 250 seconds]
Voodoofish430 has quit [Quit: Leaving.]
iamsean has joined #ruby
sambao21 has joined #ruby
pranny1 has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
mansi has joined #ruby
Wolland has joined #ruby
iamsean has quit [Client Quit]
yfeldblu_ has joined #ruby
Hanmac has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
thesheff17 has joined #ruby
Alina-malina has joined #ruby
speakingcode has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
aspires has quit []
<bnagy>
wald0: just write your license validator in .. whatever C, sure
[gmi] has quit [Read error: Connection reset by peer]
endash has joined #ruby
tylersmith has joined #ruby
<bnagy>
it's all stupid, but it's a minimal bar
bleak2 has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
dx7 has quit [Remote host closed the connection]
iamsean has joined #ruby
dx7 has joined #ruby
<bnagy>
but fundamentally, copy protection just doesn't work against anyone who cares
<bnagy>
well unless you control every single step of the hardware / firmware / os
Celm has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 250 seconds]
ctp_ has quit [Ping timeout: 260 seconds]
ctp has quit [Ping timeout: 246 seconds]
dx7 has quit [Ping timeout: 250 seconds]
iamsean has quit [Quit: iamsean]
enape_101 has quit [Ping timeout: 246 seconds]
bleak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
shabgard has joined #ruby
nanoyak has joined #ruby
<wald0>
bnagy: ok so... ruby app will ask C "license validator" app about to validate it, right?
<centrx>
Why don't you have them pay before they get the software...
<centrx>
Is this IN APP PURCHASES
<wald0>
so... ruby app does: if C app answers 23984 == 23984 ; continue
<wald0>
so easy to hack
<centrx>
Compiled programs with sophisticated DRMs are easy to hack too
<centrx>
They all have cracks online
fuhgeddaboudit has joined #ruby
<wald0>
centrx: that was how it worked in the past, but only from screenshots and promises it doesn't offer much, i want to tell them how this app REALLY rocks better than the other ones, and the best is to try by themself, not promises, also, i dont like suprises so this is a really sincere "see, this is what you have, nothing more"
Lewix has joined #ruby
tauebel has joined #ruby
Bira has joined #ruby
krz has joined #ruby
Dude007 has quit [Remote host closed the connection]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
wald0 has quit [Quit: Lost terminal]
Bira has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby
nanoyak_ has joined #ruby
dx7 has joined #ruby
Spami has joined #ruby
nanoyak has quit [Ping timeout: 250 seconds]
Spami has quit [Client Quit]
vlad_starkov has joined #ruby
troyready has quit [Ping timeout: 272 seconds]
pen has joined #ruby
mocfive has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 245 seconds]
quidnunc has joined #ruby
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has joined #ruby
axsuul has joined #ruby
ctp has joined #ruby
<quidnunc>
If I have many keyword params to a function, how do I place them over multiple lines?
<quidnunc>
foo :a => 1, \n :b => 2 <---- \n designates new line
diegoviola has quit [Quit: WeeChat 0.4.2]
maximski has quit []
vpretzel has joined #ruby
reset has quit [Quit: Leaving...]
Salve has joined #ruby
<Salve>
How do I "fetch" a method name?
reset has joined #ruby
<centrx>
quidnunc, Press enter?
mando has quit [Remote host closed the connection]
Celm has joined #ruby
<centrx>
quidnunc, Use a hash instead of naming every keyword argument in the method signature?
<quidnunc>
centrx: Are line breaks allowed according to syntax rules?
phipes has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<centrx>
Salve, I think the design looks odd overall, but this is what send does
<centrx>
quidnunc, yes
ctp has quit [Ping timeout: 272 seconds]
<centrx>
comma new line rest of line
<Salve>
centrx: Why does it look odd?
vpretzel has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 250 seconds]
dayepa has joined #ruby
<centrx>
Salve, Why use methods instead of setting the internal variables of whatever is being initialized?
nobitanobi has joined #ruby
mando has quit [Ping timeout: 250 seconds]
<Salve>
centrx: Because I want to build a class based on an object I'm initalizing an object with
aspires has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<centrx>
All this is is:
<centrx>
def initialize(object)
<centrx>
@attributes = object.attributes
<centrx>
end
gja has quit [Quit: This computer has gone to sleep]
<centrx>
object should prepare its own attributes
danijoo has joined #ruby
Noldorin has quit []
phipes has quit [Ping timeout: 245 seconds]
<Salve>
centrx: That will just build a bunch of attributes from the object. I want a sepcific type of attributes
Noldorin has joined #ruby
ehc has quit [Quit: ehc]
<centrx>
object.custom_attributes
<nobitanobi>
Hi guys. I am trying to test a method that uses Nokogiri::HTML(open(current_url)) - If I pass current_url = 'adsadsadsadsa' ~ I get an Errno::ENOENT
Davey has quit [Quit: Computer has gone to sleep.]
Amart41 has quit [Ping timeout: 272 seconds]
fieldfirst has joined #ruby
bnmrrs has joined #ruby
danshultz has quit [Ping timeout: 250 seconds]
ohcibi has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
byprdct has joined #ruby
magbeat_ has quit [Ping timeout: 252 seconds]
Blue_Ice has quit [Ping timeout: 252 seconds]
matti has quit [Ping timeout: 252 seconds]
magbeat has joined #ruby
matti has joined #ruby
Blue_Ice has joined #ruby
gabriham_lincoln has quit [Ping timeout: 265 seconds]
drPoggs has quit [Ping timeout: 246 seconds]
<bnmrrs>
Hey! I'm trying to create an asset rollup gem. I'd like to include font awesome, compass, foundation and a few others in my rollup gem. I'd like the methods from font awesome available whenever the rollup gem is installed. How would I do that?
Bumptious has joined #ruby
araujo has joined #ruby
vjt has quit [Remote host closed the connection]
estebistec has quit [Remote host closed the connection]
anshin has joined #ruby
anshin has left #ruby [#ruby]
vjt has joined #ruby
drPoggs has joined #ruby
tauebel1 has quit [Quit: Leaving.]
yasushi has joined #ruby
<centrx>
bnmrrs, I don't know. Also try #ruby-lang, and during the daytime.
<centrx>
bnmrrs, Right now it night in both U.S. and Europe
<bnmrrs>
Thanks centrx!
w1zeman1p has joined #ruby
yasushi has quit [Remote host closed the connection]
gyre008 has joined #ruby
fourchanfag has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fourchanfag>
can someone please tell me dafuq is wrong with my code?
yfeldblum has quit [Remote host closed the connection]
x1337807x has joined #ruby
gabriham_lincoln has joined #ruby
x1337807x has quit [Client Quit]
<lagweezle>
yes
<centrx>
fourchanfag, It uses fancy slang and has been hacked by 4chan
<centrx>
Is this some kind of sick, perverted joke
<fourchanfag>
no i'm really trying to figure out why it's not running
<fourchanfag>
i replaced it with cat jokes because i think cats are adorable
<fourchanfag>
i love 4chan because 4chan popularized cat memes on the internet
<fourchanfag>
now let's get back on topic and if you care to help someone out :)
bklane has joined #ruby
<centrx>
use downcase not downcase!
<centrx>
downcase! modifies the receiver and does not necessary return anything
<centrx>
If downcase! makes no changes, it returns nil
<centrx>
downcase always returns a string
<w1zeman1p>
plus you dont need the puts =, just puts will do
<bnmrrs>
centrx: in case you were wondering all I had to do was require the gem inside of my lib/gemname.rb file
vlad_starkov has joined #ruby
<bnmrrs>
works beautifully now
<centrx>
Makes sense :)
k2md1 has quit [Remote host closed the connection]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
Es0teric has quit [Ping timeout: 272 seconds]
x77686d has quit [Quit: x77686d]
craigp has quit [Remote host closed the connection]
eligos has quit [Quit: leaving]
pen has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
<fourchanfag>
the ruby community is filled with a bunch of assholes
bklane has quit [Client Quit]
neosimago has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
<centrx>
There we go
Davey has joined #ruby
<lpvn>
fourchanfag: why do you say your code is wrong?
Es0teric has joined #ruby
gabriham_lincoln has quit [Remote host closed the connection]
pranny has joined #ruby
neosimago has joined #ruby
neosimago has quit [Max SendQ exceeded]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
iamsean has quit [Quit: iamsean]
Lewix has quit [Remote host closed the connection]
<fourchanfag>
lpvn: because it's not running :(
bnmrrs has quit [Quit: Page closed]
neosimago has joined #ruby
<lpvn>
it runs
kate_r has joined #ruby
<fourchanfag>
i just checked with repl.it
<fourchanfag>
it does run
<fourchanfag>
fuck code academy
<lpvn>
it's not giving you the output you expect because you're using downcase!
pranny has quit [Ping timeout: 250 seconds]
ctp has joined #ruby
yasushi has joined #ruby
<fourchanfag>
lpvn: i thought that i should use downcase! so the change is persistent and i won't have to capitalize the days of the week manually]
pranny has joined #ruby
pen has joined #ruby
gyre008 has quit []
<lpvn>
fourchanfag, ok but downcase! does not have the semantics you expect, type a = a.downcase after a = gets.chomp
<lpvn>
and it will work
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
<fourchanfag>
so i have to declare an assignment to a twice?
<centrx>
lpvn, I already told him that. His response was to call us a bunch of assholes
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
ctp has quit [Ping timeout: 246 seconds]
<lpvn>
centrx, let's give him the benefit of the doubt, he came from 4chan after all, he's probably a /b/tard lol
tyl has joined #ruby
<fourchanfag>
lpvn: i muted centrx for being a pompous asshole
neosimago has left #ruby [#ruby]
petey has quit [Remote host closed the connection]
nanoyak_ has quit [Quit: Computer has gone to sleep.]
<lpvn>
fourchanfag, you're not declaring it twice, use it like this if you prefer: a = (gets.chomp).downcase
<fourchanfag>
the first thing he said is <centrx> fourchanfag, It uses fancy slang and has been hacked by 4chan
<fourchanfag>
[20:35] <fourchanfag> http://pastebin.com/EefhZk5y [20:35] <centrx> Is this some kind of sick, perverted joke
petey has joined #ruby
<fourchanfag>
i really appreciate all your help lpvn :)
mikepack has joined #ruby
iamsean has joined #ruby
cpruitt has quit [Quit: cpruitt]
petey has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
petey has joined #ruby
<lagweezle>
fourchanfag: That may be the first thing he said, but then he did proceed to give you guidance as to why your code isn't behaving how you expect.
Deele has joined #ruby
gabriham_lincoln has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
araujo has quit [Remote host closed the connection]
Al___ has joined #ruby
zxq9 has joined #ruby
pfg has joined #ruby
centrx has quit [Quit: Leaving]
MJBrune has quit [Read error: Connection reset by peer]
Al___ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
MJBrune has joined #ruby
MJBrune has joined #ruby
MJBrune has quit [Changing host]
Al___ has joined #ruby
w1zeman1p has quit [Remote host closed the connection]
nanoyak has joined #ruby
Hanmac1 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 245 seconds]
phipes has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
iamdoo2 has quit [Remote host closed the connection]
whatasunnyday has joined #ruby
phipes has quit [Ping timeout: 245 seconds]
iamsean has quit [Quit: iamsean]
e^0 has quit [Quit: WeeChat 0.4.1]
ehc has joined #ruby
mikepack has joined #ruby
vpretzel has joined #ruby
Lewix has joined #ruby
mrnugget has joined #ruby
Lewix has quit [Remote host closed the connection]
gabriha__ has joined #ruby
Lewix has joined #ruby
Sid05 has quit [Quit: Leaving.]
mikepack has quit [Ping timeout: 272 seconds]
vpretzel has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
zenojis has joined #ruby
bigmac has joined #ruby
petey has quit [Remote host closed the connection]
phipes has joined #ruby
petey has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
gabriham_lincoln has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
pranny1 has quit [Quit: Leaving.]
jerius has joined #ruby
petey has quit [Ping timeout: 245 seconds]
jerius has quit [Client Quit]
coder_neo has joined #ruby
coder_neo has quit [Client Quit]
mikepack has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
aagdbl has joined #ruby
Vivekananda has joined #ruby
dik_dak has quit [Quit: Leaving]
arietis has joined #ruby
pen has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
apeiros has quit [Remote host closed the connection]
chrisramon has joined #ruby
stryek has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
vlad_starkov has joined #ruby
yasushi has quit [Remote host closed the connection]
lemonsparrow has joined #ruby
gozali has quit [Remote host closed the connection]
sdwrage has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
phansch has joined #ruby
riking_ has joined #ruby
<shevy>
fourchanfag your nick is kinda peculiar
shevy is now known as rubysucks
<rubysucks>
hey guys
<rubysucks>
anyone wanna help me
<rubysucks>
help me
<rubysucks>
HELP ME NOW!
<rubysucks>
WHY DON'T YOU GUYS HELP ME!!!!
rubysucks is now known as shevy
zxq9 has quit [Quit: Konversation terminated!]
<lagweezle>
^^
<shevy>
noone helped me :(
<pontiki>
cos we suk
<pontiki>
next!
phipes has quit [Remote host closed the connection]
fieldfirst has quit [Remote host closed the connection]
phipes has joined #ruby
zxq9 has joined #ruby
shevy has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
terabit has quit [Read error: Connection reset by peer]
dx7 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
ayaz has joined #ruby
Azure has joined #ruby
ayaz has quit [Changing host]
ayaz has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
BrixSat has quit [Remote host closed the connection]
Al___ has joined #ruby
BrixSat has joined #ruby
dx7 has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
bleak2 has joined #ruby
artm has joined #ruby
jfelchner has joined #ruby
Salve has quit [Remote host closed the connection]
<malthe>
I want to read lines from a file, reject some of them based on a regex, then "do" stuff with each line.
<malthe>
so I say .. File.readlines('foo').reject{...} do |line|
<apeiros>
malthe: you're missing the .each
chihhsin_ has quit [Quit: leaving]
bradhe has joined #ruby
<malthe>
apeiros, ah great ... I didn't know that each was a keyword
<malthe>
like its part of the gramamr
<apeiros>
it is not a keyword
<apeiros>
it's a method
<apeiros>
your reject returns an array. you use a method to iterate that array. the method being `each`.
<apeiros>
and you pass your block to that method.
fgo has joined #ruby
craigp_ has quit [Remote host closed the connection]
<malthe>
oh like an anonymous block
<malthe>
that's pretty smart.
<apeiros>
o0
<malthe>
sorry, ... python developer here ;-).
<malthe>
thx for the help.
dx7 has joined #ruby
<apeiros>
think of it this way - it's no different than if you'd assign it to an lvar:
<apeiros>
x = File.readlines('foo').reject{...}
<apeiros>
you can't just do `x do |line|` either.
<apeiros>
you need a method to pass the block to. hence `x.each do |line|`
browndawg has joined #ruby
<malthe>
right
dangerousdave has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
CourtJesterG has left #ruby ["Please Donate: Litecoin payments: LUJnwfYNhNVNeP7DCxrewbJD9zZNR1nZ3E"]
vlad_starkov has joined #ruby
Wolland has joined #ruby
<malthe>
its because the syntax suggests that the flow goes the other way ... but really its the method that consumes the block
dx7 has quit [Ping timeout: 245 seconds]
Al___ has joined #ruby
Amart41 has joined #ruby
karupanerura is now known as zz_karupanerura
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
marr has joined #ruby
Amart41 has quit [Ping timeout: 265 seconds]
coderhs has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
ols has joined #ruby
ols is now known as olss
tjad has joined #ruby
jeanlinux has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
nvrch has joined #ruby
jomofcw has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
<jomofcw>
Hello ! I know this is not totaly related with Ruby, but I can't find help in other place :/ So I try there. I'm trying to install Redmine, but it fail. Here is a thread that explain my problem : http://www.redmine.org/boards/2/topics/41201
<jomofcw>
Please... help !
fgo has quit [Remote host closed the connection]
klaut has joined #ruby
kung has quit [Quit: Bye!]
vlad_starkov has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 245 seconds]
<dseitz>
Have you tried upgrading Ruby itself?
workmad3 has joined #ruby
coder_neo has joined #ruby
rootshift has joined #ruby
<jomofcw>
dseitz hello ! Dunno how to do that and dunno to what version I should upgrade it...
<dseitz>
Judging by the path, I assume you're using some variant of UNIX; I would suggest 2.0.0
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
TheGreatDogesby has quit [Remote host closed the connection]
<jomofcw>
Yup, that's a linux server.
<jomofcw>
OK dseitz and what command to use please ?
Xeago has joined #ruby
<jomofcw>
gem install rails -v=2.0.0 ?
DaniG2k has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
<jomofcw>
or prehaps sudo apt-get install ruby2.0
<dseitz>
That's probably the one
<dseitz>
And if it's Debian-based, you may have configure alternatives; it has been awhile since I have used it
timonv_ has quit [Remote host closed the connection]
einarj has joined #ruby
<dseitz>
I would also recommend researching the use of rbenv/rvm/chruby depending on how much you're going to get into this
<atmosx>
rvm for the win!
<jomofcw>
Hm OK, i'll try this.
yfeldblum has joined #ruby
vlad_starkov has joined #ruby
olss has quit [Quit: Computer has gone to sleep.]
grn has left #ruby ["Leaving"]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
craigp has joined #ruby
popl has joined #ruby
popl has joined #ruby
noname001__ has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
sk87 has joined #ruby
Wolland has quit [Remote host closed the connection]
noname001__ has joined #ruby
fieldfirst has joined #ruby
<workmad3>
chruby + ruby-install ftw!
rmoriz has joined #ruby
Salve has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<rotor>
+1
olss_ has joined #ruby
<ep3static>
+1
vlad_starkov has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
iamdoo2 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
phansch: yeah I figure that ou tin chapter 7, but why all the fuss around rspec then? hmm. Minitest syntax seems more natural to me, but I'm accustomed with rspec too by now... (via sinatra)
greenarrow has joined #ruby
<atmosx>
Why would anyone use put.io is beyond me (as many other things, I might add).
<CourtJesterG>
Okay sorry it took so long was having problems
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
<as_>
canton7: my question was how to install ruby modules in cloud ? like koding.com service at terminal
nettoweb has joined #ruby
<canton7>
I have no idea what koding.com is or does
<apeiros>
install too many ruby modules in the cloud and it will rain diamonds…
iamdoo2 has joined #ruby
<as_>
canton7: it is a cloud service where in person can run a code in any language like ruby/python etc.. but i dont know how to install ruby librries/modules over there!!
Salve has quit [Ping timeout: 260 seconds]
<canton7>
ok, so you're looking for help with using koding.com?
<as_>
is there any other alternative/cloud/web based service wherein pre-loaded modules/libaries of ruby language are ready to compile with a code
<canton7>
"pre-loaded modules or ruby language are ready to compile with a code" - I appreciate that English probably isn't your first langauge, but I have no idea what you're asking
Hanmac has joined #ruby
DariusPHP has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
browndawg has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
<as_>
canton7: yes, english is poor. i am looking for such a website wherein ruby code (which requires support of libaries) can be compiled online!!! (at free of cost)
Wolland has quit [Remote host closed the connection]
<apeiros>
as_: just install ruby locally?
<canton7>
so just you can run them, not other people? look at things like eval.io, codepad.org, etc. Tbh the easiest thing to do is install ruby locally
vpretzel has joined #ruby
roolo has joined #ruby
popl has quit [Read error: Operation timed out]
ffranz has joined #ruby
mercwithamouth has joined #ruby
ffranz has quit [Remote host closed the connection]
ffranz has joined #ruby
krz has quit [Ping timeout: 272 seconds]
<as_>
canton7: thanks. just to correct you it is eval.in instead of .io. This seems nice let me check whehter there is ability to install/run libarry/module or not!!
IceyEC has joined #ruby
obs has left #ruby [#ruby]
IceyEC has quit [Client Quit]
vpretzel has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
banister has joined #ruby
nettoweb_ has joined #ruby
mercwithamouth has joined #ruby
nettoweb has quit [Ping timeout: 245 seconds]
nettoweb_ is now known as nettoweb
browndawg has joined #ruby
tvw has joined #ruby
maasha has joined #ruby
nhhagen has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
jonr22 has quit [Remote host closed the connection]
mikepack has joined #ruby
TMM has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
mikepack has quit [Ping timeout: 245 seconds]
juni0r has quit [Ping timeout: 265 seconds]
saltsa has quit [Ping timeout: 272 seconds]
rootshift has joined #ruby
wildroman2 has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 252 seconds]
yacks has quit [Quit: Leaving]
dx7 has joined #ruby
raphaelivan has quit [Quit: Leaving.]
juni0r has joined #ruby
griffindy has joined #ruby
Bira has joined #ruby
<AlexRussia>
How to correct convert Time.now in SQL type time, or maybe date?
nateberkopec has joined #ruby
lsmola has joined #ruby
asmodlol has quit [Remote host closed the connection]
asmodlol has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
solars has joined #ruby
solars has quit [Write error: Broken pipe]
wildroman2 has joined #ruby
solars has joined #ruby
zeeraw has joined #ruby
mercwithamouth has joined #ruby
ephemerian has quit [Ping timeout: 245 seconds]
craigp has quit []
ner0x has joined #ruby
craigp has joined #ruby
<apeiros>
AlexRussia: hit it until it accepts its new shape. alternatively, use something like Sequel with bind variables, which already does the conversion for you.
bcz has joined #ruby
IceyEC has joined #ruby
max96at has joined #ruby
<AlexRussia>
apeiros: bind variables?
jkamenik has joined #ruby
v0n has joined #ruby
chihhsin has joined #ruby
Bira has quit [Remote host closed the connection]
chihhsin has quit [Quit: leaving]
MrZYX|off is now known as MrZYX
<AlexRussia>
MrZYX: Hello!
<MrZYX>
hi
<AlexRussia>
apeiros: imho, me used sequel for application )
<AlexRussia>
MrZYX: how to convert Time.now in sql formats?
<AlexRussia>
format*
<MrZYX>
what apeiros said
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<AlexRussia>
MrZYX: but i'm not understand (
obs has joined #ruby
noop has quit [Ping timeout: 246 seconds]
[krisbulman] is now known as krisbulman
<MrZYX>
did you already search for sequel and bind variables?
Dude007 has joined #ruby
<AlexRussia>
MrZYX: I'm in process read sequel manual
<olivier_bK>
whit this code i get all file in the directory yml and after i try to read each file
<olivier_bK>
but i get only the file name and not the line of the file
<MrZYX>
and then never close it and leak file handles, but it still should assign the content of the current file to p
Amart41 has joined #ruby
<MrZYX>
with "line of the file" you mean contents?
noop has joined #ruby
ndrei has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.1]
iamdoo2 has joined #ruby
Salve has quit [Ping timeout: 245 seconds]
<railsmagnet>
use the method each_line on the file handle
ep3static has quit [Ping timeout: 246 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
userfoo has quit [Ping timeout: 245 seconds]
coder_neo has joined #ruby
<olivier_bK>
railsmagnet, i going to read some doc thanks
ndrei has quit [Read error: Operation timed out]
tkuchiki has quit [Remote host closed the connection]
yalue has joined #ruby
aagdbl0 has joined #ruby
iamdoo2 has quit [Ping timeout: 245 seconds]
jzigmund has joined #ruby
tkuchiki has joined #ruby
ahawkins_ has joined #ruby
mark_locklear has joined #ruby
yasushi has joined #ruby
ahawkins has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
aagdbl has quit [Ping timeout: 246 seconds]
aagdbl0 has quit [Client Quit]
<apeiros>
AlexRussia: after you bind a variable it becomes a bound variable ;-)
<apeiros>
sorry, was afk
<apeiros>
but backlog indicates MrZYX could fill you in
<AlexRussia>
apeiros: uhum
zachallett has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
rashila has quit [Remote host closed the connection]
petey has joined #ruby
vpretzel has quit [Ping timeout: 245 seconds]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
yacks has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
ahawkins_ has quit [Read error: Connection reset by peer]
IceyEC has quit [Quit: IceyEC]
sk87 has joined #ruby
browndawg has quit [Quit: Leaving.]
Amart41 has quit []
nateberkopec has quit [Quit: Leaving...]
petey has joined #ruby
ahawkins has joined #ruby
gja has quit [Ping timeout: 246 seconds]
kacperix has joined #ruby
noname001 has quit [Ping timeout: 245 seconds]
gja has joined #ruby
chihhsin has joined #ruby
petey has quit [Ping timeout: 245 seconds]
chihhsin has quit [Client Quit]
ndrei has joined #ruby
chihhsin has joined #ruby
wca has joined #ruby
himsin has quit [Quit: himsin]
<wca>
hello. anyone here that writes a gem, uses Gem::PackageTask, and is able to set up a dependency for 'rake gem' that actually runs before the gem build does?
ndrei has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
IceyEC has joined #ruby
JasmeetQA has joined #ruby
<wca>
alternatively, is there a way to specify a build task as a dependency in a .gemspec?
shabgard has quit [Ping timeout: 272 seconds]
tesuji has quit [Read error: Connection reset by peer]
JasmeetQA1 has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
fieldfirst has quit [Ping timeout: 272 seconds]
thomasxie has quit [Quit: Leaving.]
vpretzel has joined #ruby
chrisseaton has joined #ruby
nettoweb has quit [Quit: nettoweb]
chihhsin has quit [Quit: leaving]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
chihhsin has joined #ruby
<apeiros>
wca: you just define a new dependency: task :gem => :run_this_before_gem
dkamioka has joined #ruby
ep3static has joined #ruby
jsilver has quit [Read error: Connection reset by peer]
myoung has joined #ruby
<wca>
apeiros: I tried that, but 'rake gem' runs :gem before it runs :run_this_before_gem :(
Czupa has quit [Remote host closed the connection]
<apeiros>
wca: can't be
<myoung>
i have a series of tests that are kicked off via rake and work fine..'bundle exec rake' works. for my CI i need to pass a special option to rspec which is part of the rakefile
<wca>
apeiros: something about how Gem::PackageTask works seems to break rake's dependency mechanism
<myoung>
i can add it to the rakefile, but then that happens all the time, which i don't want
drumusician has quit [Ping timeout: 252 seconds]
<myoung>
how can i do it via CLI for Ci?
<myoung>
such as "bundle exec rake SOME_OPTS='--something-for=rspec'
agjacome has joined #ruby
agjacome has quit [Client Quit]
<MrZYX>
myoung: just let your CI run that or define another task that calls that and run that on CI
zz_jrhorn424 is now known as jrhorn424
drumusician has joined #ruby
bradhe has joined #ruby
sambao21 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
rmorello has joined #ruby
<wca>
apeiros: if I create a new task, e.g. task :build => ["foo", "gem"], then running that task works correctly. but task :gem => :foo doesn't.
chihhsin has quit [Quit: leaving]
agjacome has joined #ruby
chihhsin has joined #ruby
postmodern has quit [Quit: Leaving]
agjacome has quit [Client Quit]
agjacome has joined #ruby
<myoung>
that will work MrZYX
agjacome has quit [Client Quit]
sambao21 has quit [Client Quit]
<myoung>
i'm still getting my hands into ruby, so some of these rspec/cucumber/rake things are copy/paste for me
iamdoo2 has joined #ruby
<myoung>
the downside to scratching the surface of every language ever for work haha
wildroman2 has quit []
bradhe has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
ndrei has joined #ruby
dblessing has joined #ruby
yfeldblu_ has joined #ruby
CourtJesterG has joined #ruby
agjacome has joined #ruby
iamdoo2 has quit [Ping timeout: 260 seconds]
mikemac has quit [Remote host closed the connection]
crazymykl has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
agjacome has quit [Client Quit]
snooc has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
Salve has joined #ruby
monkegjinni has quit []
browndawg has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
coderhs has quit [Ping timeout: 246 seconds]
oz has joined #ruby
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
doodlehaus has joined #ruby
yottanami has joined #ruby
<yottanami>
Is any way to mine and export anniversaries of Wikipedia with Ruby?
<lpvn>
timmow, if you want to use blah in the context of class A you should create a module with it inside and mixin in class A and class B
<lpvn>
*mix it in
<timmow>
lpvn: thats exactly what i'd do if I controlled the code
<timmow>
thanks for your help everyone, I think I might understand things a bit more now
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<lpvn>
timmow, that code is wrong anyway since tim won't be found for B
<lpvn>
that's what your error message says anyway so nevermind lol
relix has joined #ruby
ndrei has joined #ruby
tyl has joined #ruby
jobewan has joined #ruby
<MrZYX>
timmow: so if B is a module you could do B.instance_method(:blah).bind(self).call but hey, that's probably more ugly than just inlining the code or doing A.send(:include, B)
shredding has quit [Quit: shredding]
<timmow>
ahhhh .bind is probably what I want - thanks very much!
Bira has joined #ruby
Bira has quit [Remote host closed the connection]
Nowaker has quit [Ping timeout: 252 seconds]
<MrZYX>
note that I wouldn't want to encounter that in production code...
AlSquirrel has joined #ruby
cburyta_ has joined #ruby
aryaching has joined #ruby
fgo has quit [Read error: Connection reset by peer]
sailias has joined #ruby
<lpvn>
MrZYX, that's a terrible practice since you're strong coupling two classes
coder_neo has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
<MrZYX>
lpvn: heh, I tried to put as many disclaimers around it as I could...
<lpvn>
MrZYX, lol
nari has quit [Ping timeout: 246 seconds]
sk87 has joined #ruby
cburyta_ has quit [Remote host closed the connection]
<timmow>
I know! the puppet codebase is "interesting"...
ehc has joined #ruby
cburyta has quit [Ping timeout: 245 seconds]
jedimind has joined #ruby
krisbulman is now known as [krisbulman]
<wca>
it's a giant ball of worms
fieldfirst has joined #ruby
maroloccio has joined #ruby
<krz>
(males_count / genders_count * 100).round, if genders_count is 0 i get: ZeroDivisionError: divided by 0. whats a good way to write something like: (males_count / genders_count * 100).round || 0
<krz>
so, if genders_count = 0. just return 0 and dont try to compute
enape_101 has joined #ruby
<tobiasvl>
rescue the error
<wca>
I would explicitly check that case and return 0
maroloccio has quit [Client Quit]
<krz>
i can do: genders_count > 0 ? (males_count / genders_count * 100).round : 0
mary5030 has quit [Remote host closed the connection]
coder_neo has quit [Client Quit]
pabloh has joined #ruby
snath has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has joined #ruby
mary5030 has joined #ruby
sambao21 has joined #ruby
sailias has joined #ruby
Nowaker has joined #ruby
danshult_ has joined #ruby
bricker`LA has joined #ruby
oso|away is now known as oso96_2000
kenndel_ has quit [Read error: Connection reset by peer]
nettoweb has quit [Ping timeout: 245 seconds]
kenndel_ has joined #ruby
mary5030_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
shaunbaker has quit [Remote host closed the connection]
brennanMKE has joined #ruby
nettoweb has joined #ruby
arctaruz has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
senj has joined #ruby
coderhs has joined #ruby
Xeago_ has joined #ruby
olss has quit [Quit: Computer has gone to sleep.]
petems has joined #ruby
mary5030_ has quit [Remote host closed the connection]
Xeago__ has joined #ruby
Xeago__ has quit [Remote host closed the connection]
mary5030 has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
tstand90 has joined #ruby
wsandin has joined #ruby
<g0bl1n>
this works on a cron job $(date -d "-2 days") but this doesn't $(date "+%C%y%m%d" -d "-2 days"). Any hint ?
<lagweezle>
Hmm. Huh. I guess that is one reason to stay with 1.9.3 ... Rubinius and JRuby only support up to there, at the moment, based on a quick skim.
<g0bl1n>
as an argument
<wsandin>
is there some way I can use wildcards for variables in Ruby? like: if ( $blabla_* == '' ) ?
<havenwood>
lagweezle: JRuby and Rubinius support 2.0.
<lagweezle>
havenwood: Huh. Shame they don't make that more obvious. :/
<havenwood>
lagweezle: I'd expect default to 2.1 in 1.8.
gmi_ has joined #ruby
zeeraw has joined #ruby
<havenwood>
lagweezle: But I dunno how you'd find out other than asking on #ruby or manually checking. :O
<havenwood>
lagweezle: I'm sure rbx would accept a pull request fix on 1.8.7, that is sad wrong. :P
Lewix has joined #ruby
maximski has joined #ruby
<havenwood>
lagweezle: JRuby does say on homepage.
[gmi] has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
<havenwood>
kinda
<havenwood>
"Ruby 1.8.7 & 1.9.3 compatible, Both versions in single install" but they could mention 1.9.3 default, 1.8 or 2.1 selectable.
<havenwood>
2.1 support isn't finished, so I'd guess they'll announce and change than with 1.8.0.
mikepack_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
troessner has quit [Quit: Leaving]
lmickh has joined #ruby
momomomomo has joined #ruby
maximski has quit [Ping timeout: 245 seconds]
malthe has joined #ruby
petems has joined #ruby
sree has quit []
Xeago has quit [Remote host closed the connection]
maxamillion has joined #ruby
ahawkins has quit [Quit: leaving]
<maxamillion>
is there a way to output the variable name of the element in the array from within the block on line 5? http://fpaste.org/74693/17436139/
<wsandin>
blockdevices => sda,sdb,sdc,sr0
mikepack_ has quit [Ping timeout: 260 seconds]
<MrZYX>
maxamillion: no
<wsandin>
what is the best way to loop through these values one at the time, rmeoving commas?
<MrZYX>
wsandin: not valid ruby, so hard to tell
<maxamillion>
MrZYX: I didn't think so but figured I would ask just in case, thanks for the info
Xeago has joined #ruby
p8952 has quit [Ping timeout: 250 seconds]
<MrZYX>
maxamillion: you probably want a hash instead
<maxamillion>
MrZYX: yeah, I think that's what I'm going to do
tonni has quit [Remote host closed the connection]
gmi_ has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
<lagweezle>
havenwood: Yeah. I just see 1.9.3 on the home page for JRuby. :/
<havenwood>
lagweezle: which is correct!
msuszczy has quit [Quit: leaving]
<lagweezle>
havenwood: It is very obnoxious that they don't state in a very obvious place the 2.0 support (or 2.1?)
[gmi] has joined #ruby
<havenwood>
lagweezle: it isn't finished yet, and isn't default, so not meant for people who don't find it :P
<lagweezle>
heh
<havenwood>
lagweezle: ^ my guess, i dunno
<lagweezle>
No worries. Time for me to crawl to work.
<havenwood>
lagweezle: *sooon*
<havenwood>
lagweezle: JRUBY 3000 ftw!
tylersmith has quit [Remote host closed the connection]
<jamto11>
do you guys use procs/lambdas often in real apps? i feel like u can just always pass code with methods
thesheff17 has quit [Quit: Leaving]
<MrZYX>
argh, thanks eval-in :/
<MrZYX>
phutchins: anyway, like this
<cout>
jamto11: coming from a java or C++ background?
wald0 has joined #ruby
x77686d has joined #ruby
<phutchins>
MrZYX: ah neat, that'll work perfectly
coderhs has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
Sid05 has joined #ruby
aryaching has quit []
<phutchins>
so i can just get at it with confog['bleh']
<MrZYX>
sure, it's a hash
aryaching has joined #ruby
jonno11 has joined #ruby
centrx has joined #ruby
Sid05 has quit [Client Quit]
user258467 has quit [Quit: Quitte]
kraM has joined #ruby
<kraM>
Hey guys... How do I express the following in Ruby? method_a if variable method_b otherwise
baroquebobcat has joined #ruby
<MrZYX>
if variable; method_a; else; method_b; end
<MrZYX>
replace ; with newlines
<kraM>
Huh. Okay. Thanks.
_maes_ has joined #ruby
<centrx>
or use the ternary conditional
<phutchins>
MrZYX: cool, but i think i am a bit lost on what exactly we're doing here... it looks to me like we're assigning a value to that attribute twice
<MrZYX>
no, don't use ternary for control flow
sambao21 has quit [Quit: Computer has gone to sleep.]
<phutchins>
once using json and once using the config variable, is that the case?
solars has quit [Ping timeout: 246 seconds]
<kraM>
I think, that's what I was looking for. Just know that from Python and other languages but didn't find anything related for Ruby.
momomomomo has quit [Quit: momomomomo]
<MrZYX>
phutchins: you mumbled something about json config files so I used json in the example, it's just a accessing the inner hash and changing it
dagobah has quit [Quit: Leaving...]
interactionjaxsn has quit [Remote host closed the connection]
<phutchins>
MrZYX: cool but its doing it both ways, yes?
<MrZYX>
no? (I might be misunderstanding your entire case, elaborate what your situation actually is, best with code)
GS has quit [Quit: Page closed]
snath has joined #ruby
<phutchins>
ok i'll patebin it :)
<phutchins>
one sec...
interactionjaxsn has joined #ruby
sambao21 has joined #ruby
fantazo has joined #ruby
aganov has quit [Remote host closed the connection]
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
<31NAAEFD9>
kraM: You can also do: variable ? method_a : method_b
<31NAAEFD9>
aka ternary. but some people don't like it. MrZYX is one :)
<phutchins>
MrZYX: http://pastebin.com/Cx6wa6xZ <- so this is the json that i'm trying to override. The encompasing bit at the top is simply { "chef_server": {
Sid05 has joined #ruby
<MrZYX>
31NAAEFD9: that's what ternary is (and IMO shouldn't be used for control flow)
31NAAEFD9 is now known as lectrick
aspires has joined #ruby
lectrick has quit [Changing host]
lectrick has joined #ruby
<lectrick>
how the heck did my name get changed to that??
Spami has quit [Quit: This computer has gone to sleep]
<MrZYX>
phutchins: eh, the ruby code you want to use to do it would be more interesting
<lectrick>
MrZYX: Does your argument against ternary for control flow not apply to things like assignment and whatnot? basically, what's the use case for ternary
<phutchins>
you see how i can siply override the others with bookshelf['listen']
iamdoo2 has joined #ruby
<phutchins>
which is waht kinda confuses me as bookshelf is at the root level... I might should go read the code that takes that file and munges it to the destination configs
olivier_bK has quit [Ping timeout: 272 seconds]
<MrZYX>
lectrick: IMO use it if you're interested in the value, as a shortcut to if var; foo = a; else; foo = b; end
<lectrick>
so foo = (var ? a : b)
<MrZYX>
phutchins: well this isn't enough context, I couldn't take the json and the code and try to run it
thesheff17 has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
<phutchins>
MrZYX: and i found the answer onilne... :)
<MrZYX>
phutchins: start with something simple, like reading in the json first
<phutchins>
so apparently it converts the dashes to udnerscores
<phutchins>
so i can use chef_server_webui['listen']
<phutchins>
that wasn't very intuitive :)
<phutchins>
MrZYX: thanks a ton for helping me out. much appreciated...
<MrZYX>
phutchins: hm, chef does too much in the background, #ruby might not be the best place to ask about it, you get ruby answers not chef ones
mehlah has quit [Quit: Leaving...]
yfeldblum has joined #ruby
<MrZYX>
lectrick: yes
<phutchins>
MrZYX: realizing that now :). i'd assumed it was a pure ruby issue...
terrellt has quit [Quit: Pull the pin and count to what?]
Spami has joined #ruby
marcgg_ has quit [Ping timeout: 272 seconds]
<havenwood>
Hanmac: Ha, settlers of catan 3d style
<havenwood>
played that last night (but 2d)
aelovikov has joined #ruby
alexherbo2 has joined #ruby
<evilbug>
yay, finished the ruby course on codecademy over 4 days!
lmg_ has joined #ruby
iliketurtles has joined #ruby
nomenkun has joined #ruby
iliketurtles has quit [Excess Flood]
kaldrenon has joined #ruby
<lpvn>
evilbug, congrats
<evilbug>
lpvn: thanks, i'm anxious to get on the rails train.
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
<cout>
havenwood: the 3d board I saw in the store looked basically the same to me as the 2d one, just popped out of the table more
<cout>
not like "3d chess" which is a completely different game
maroloccio has quit [Quit: WeeChat 0.4.2]
IceDragon has joined #ruby
ep3static has quit [Quit: WeeChat 0.4.2]
yarou has joined #ruby
danshultz has joined #ruby
greenarrow has quit [Quit: 500]
rippa has quit [Ping timeout: 248 seconds]
lmickh has joined #ruby
stryek has quit [Ping timeout: 245 seconds]
<viki>
in the lambda intro lesson on rubymonk, anybody know if there's some significance to the capitalized variable Increment in the exercise? I thought it'd have to be lower case unless it was a class or module name.
grzywacz has quit [Read error: Operation timed out]
allaire has joined #ruby
x77686d has quit [Quit: x77686d]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noname001 has joined #ruby
marcgg has joined #ruby
p8952 has joined #ruby
bricker_ has joined #ruby
shredding has quit [Quit: shredding]
Valesk has joined #ruby
mocfive has joined #ruby
<daxroc>
I've been getting an error with ssl, I think it's to do with using rvm and the ca certificates. I've tried setting :ssl_verify_mode: 0 in my home .gemrc file and no change. I've also tried using the rvm osx-ssl-certs update all to fix but it's still failing. With rvm , .ruby-version, gem files should the .gemrc file be local to the working directory?
<havenwood>
daxroc: Dunno, might see if #rvm has ideas.
agent_wh1te has quit [Quit: leaving]
agent_white has quit [Quit: leaving]
enebo has joined #ruby
saarinen has joined #ruby
devinus has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
mocfive has joined #ruby
yfeldblum has joined #ruby
pkrnj has joined #ruby
devinus has left #ruby [#ruby]
CaptainJet has joined #ruby
momomomomo has quit [Quit: momomomomo]
JustinAiken has joined #ruby
DrShoggoth has joined #ruby
<JustinAiken>
is there an error you can raise in a DRb object (on the server) that closes the connection?
<aloitius1>
Hey, all: I've been using the RubyMine IDE for development and find that it gets hung up pretty easily on debugging semi-large data, like a string of "1,2,3...1000000". Anyone got any suggestions for alternative IDEs?
* lagweezle
eyes eval-in and wonders what magic that is.
heidi has quit [Quit: Leaving.]
agjacome has joined #ruby
jonno11_ has quit [Client Quit]
TheGreatDogesby has quit [Remote host closed the connection]
<xybre>
pontiki: I think "require" is jsut a banned word
<bricker`work>
yes
<MrZYX>
nope, stdlib requires work
<bricker`work>
no
<bricker`work>
(at myself)
<pontiki>
bricker`work has become bit
SilentHobo has joined #ruby
<bricker`work>
:c
zachallett has joined #ruby
noname001 has quit [Quit: Konversation terminated!]
<havenwood>
pontiki: at least the moon is just waxing crescent, he wont turn for weeks
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
<bricker`work>
awooooo
arietis has quit [Quit: Computer has gone to sleep.]
whatasunnyday has quit [Quit: whatasunnyday]
e^0 has left #ruby ["WeeChat 0.4.1"]
nateberkopec has quit [Ping timeout: 240 seconds]
shabgard has joined #ruby
phansch_ has quit [Quit: Leaving]
<pontiki>
great. warren zevon earworm
<pontiki>
THANKSGUISE
fmcgeough has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
<xybre>
There's a OO principle that says you shouldn't distinguish between data accessors and method/function calls. And I can't remember what its called.
timonv has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
EngierkO_ has joined #ruby
casheew has joined #ruby
<xybre>
It's part of implementation hiding iirc.
rootshift has quit [Quit: rootshift]
EngierkO has quit [Ping timeout: 272 seconds]
jobewan has quit [Quit: Leaving]
<xybre>
The consumer shouldn't know/care if its a data attribute or a function.
klaut has quit [Remote host closed the connection]
oskarpearson has quit [Read error: Operation timed out]
Davey has joined #ruby
nettoweb has quit [Quit: nettoweb]
mocfive has quit [Ping timeout: 252 seconds]
marr has joined #ruby
<pontiki>
hmm
<pontiki>
i'm not good with names
<pontiki>
the concept is clear
deception has joined #ruby
<pontiki>
objects accept messages
<bricker`work>
xybre: what OO language makes accessors and methods different? Javascript I guess, in a way. person.name vs person.name()
rootshift has joined #ruby
<bricker`work>
python would be one too?
<RubyPanther>
clear, but not universal, not really OO, and not relevant to Ruby except in that accessors made with attr_* are faster and so should be used for that reason
jbueza has joined #ruby
<xybre>
bricker`work: Yeah quite a few do it anyway. But there's a principle against it (not like Ruby is fully complient either) but I can't remember what its called.
mehlah has joined #ruby
<RubyPanther>
as far as the OO philosophy, anything from outside is just sending messages ("smalltalk object semantics") and there is no distinction between accessors and other methods, the distinction is only in the business logic
reset has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
casheew_ has joined #ruby
rins has joined #ruby
nanoyak has joined #ruby
jprovazn has quit [Quit: Odcházím]
Sp4rKy_ has joined #ruby
Maitiu has quit [Ping timeout: 246 seconds]
<agent_white>
xybre: Is the term you're looking for 'delegation'?
EngierkO has joined #ruby
mikeg has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Sp4rKy has quit [Read error: Operation timed out]
pfg has quit [Read error: Operation timed out]
Es0teric has quit [Read error: Operation timed out]
reset has quit [Read error: Connection reset by peer]
_reset has joined #ruby
mocfive has joined #ruby
<agent_white>
As in sending messages that expect the receiver to know what to do? Like... "make me a sammich", instead of "make me a sammich by taking some bread, then some cheese..."
rm_ has quit [Remote host closed the connection]
<xybre>
agent_white: No, delegation happens when one class passes its work off to another.
mroth has quit [Ping timeout: 252 seconds]
lmickh has quit [Read error: Operation timed out]
randym_ has quit [Read error: Connection reset by peer]
ddd has quit [Quit: leaving]
mroth has joined #ruby
Salve has quit [Read error: Connection reset by peer]
SHyx0rmZ has joined #ruby
EngierkO_ has quit [Ping timeout: 260 seconds]
__main__ has quit [Read error: Operation timed out]
<xybre>
I'm thinking more how in ruby you shouldn't rely on @ivars everywhere but instead you'll have a method that can act as gatekeeper, even if its just an attr_reader.
__class__ has quit [Read error: Operation timed out]
Salve has joined #ruby
<xybre>
Early versions of Rails broke this principle with @params and @session among others and they said it was a nightmare.
ddd has joined #ruby
ddd has quit [Client Quit]
__main__ has joined #ruby
__class__ has joined #ruby
kirun has joined #ruby
hamakn has quit [Remote host closed the connection]
<agent_white>
Ohhh... couldn't tell ya! ;)
whatasunnyday has joined #ruby
lmickh has joined #ruby
randym_ has joined #ruby
Es0teric has joined #ruby
motto has joined #ruby
ddd has joined #ruby
pfg has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
enape_101 has quit [Read error: Operation timed out]
m8 has quit [Ping timeout: 260 seconds]
enape_101 has joined #ruby
poulson has quit [Remote host closed the connection]
Eran34 has joined #ruby
heftig has joined #ruby
zcreative has joined #ruby
mikeg has quit [Remote host closed the connection]
Advocation has joined #ruby
Hanmac1 has joined #ruby
pitzips has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
fedesilva has quit [Read error: Connection reset by peer]
<agent_white>
Coffee and TV is a great song to start the day.
FifthWall has joined #ruby
fedesilva has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
baordog has quit [Remote host closed the connection]
<diegoviola>
i was just fired today
<havenwood>
diegoviola: uh ohh! have a new job yet?
mikepack has quit [Remote host closed the connection]
<diegoviola>
not yet :)
<lagweezle>
diegoviola: :(
fedesilva has quit [Read error: Connection reset by peer]
<xybre>
diegoviola: party time!
<Skelz0r>
dam
<atmosx>
a good movie?
<atmosx>
any ideas?
<atmosx>
something that I can find on DVD
<diegoviola>
a good movie sounds good
fedesilva has joined #ruby
rezzack has joined #ruby
<diegoviola>
atmosx: Eraserhead
<diegoviola>
the guy mentioned something about budget, but i was just hired 15 days ago, he said i didn't perform that well in that time
f0ster has joined #ruby
<diegoviola>
but i don't get it, i delivered two features and worked in 2 different projects in that time (15 days)
burlyscudd has quit [Read error: Connection reset by peer]
<xybre>
atmosx: "something you can find on DVD"? isn't that like almsot everything, or does that phrase mean something else?
<diegoviola>
i can't just jump and deliver 50 features in a single day when i don't know their code yet
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
<atmosx>
xybre: it means at least 3 to 4 months old
pfg has joined #ruby
<centrx>
diegoviola, Hard to say. You can't necessarily believe what they tell you is the "reason".
<agent_white>
diegoviola: My buddies who work in dev have said they get ~1 month just to learn the frameworth and everything they're working with. 15 days is ridiculous.
<xybre>
atmosx: well, Metropolis was released in 1927 and it can also be found on DVD
<agent_white>
framework even.
drumusician has joined #ruby
<centrx>
diegoviola, Maybe they just didn't like you :)
<diegoviola>
agent_white: yeah it is, that's why i don't understand it
SCommette has joined #ruby
<diegoviola>
centrx: ok
<diegoviola>
that sounds more credible
<agent_white>
diegoviola: Sounds like you're better off leaving there anyways! ;D
<agent_white>
Fuck that place.
<diegoviola>
sure
<diegoviola>
thanks
<diegoviola>
:)
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xybre>
Most companies have an unofficial 1-month familiarity period with the codebase. But if people don't like you in the first 2 weeks you're pretty much hosed, but they almost never say that.
<centrx>
You can join agent_white in my unpaid internship program
<agent_white>
^ JOIN ME
<lpvn>
diegoviola, how long have you been a programmer?
<Guest48581>
has anyone else had conflict with rbenv and tmux?
<diegoviola>
lpvn: i can't remember for sure, i recall starting with bash scripts and php after i switched to linux (that was in 1999/2000 i think), how about you?
Al___ has quit [Quit: Al___]
<Guest48581>
eval "$(rbenv init -)" seems to not add shims back into the PATH if it's already there, but the path gets appended again. which removes shims from it.
<atmosx>
Guest48581: bash or zsh?
jfelchner has quit [Ping timeout: 240 seconds]
<atmosx>
Guest48581: tru adding 'cd .' in your .zshrc / .bashrc file remove all options from .tmux.conf
Adawerk has quit [Ping timeout: 245 seconds]
iamdoo2 has joined #ruby
<RubyPanther>
diegoviola: in Oregon if they fire you for poor performance you can't get unemployment benefits, which they have to partially pay for, so lame employers will try to blame you even if they just hired too many people
<lagweezle>
RubyPanther: That explains a great deal. Is that part of the horribly named, "Right to work" stuff?
<centrx>
"Right to work" is only about unions
<diegoviola>
i didn't even sign a contract with them
<RubyPanther>
lagweezle: Oregon is "right to work" but we actually have strong worker rights, too, and in a situation like this you can still get unemployment because the employer can fire you for any reason BUT they have to prove poor performance or other excuses that would interfere with unemployment benefits
<lpvn>
diegoviola, I asked this because if you're an experienced programmer it's hard to imagine you're undeperformant enough to be fired in the first 15 days
e^0 has joined #ruby
<diegoviola>
they said i will be working with them for 3 months as a trial or something, and if they liked my work we would go with permanent hiring or something
DaniG2k has joined #ruby
<RubyPanther>
as "right to work" is understood in the South and Mountain states, it is evil, but on the west coast it very different
<DaniG2k>
im having so many problems with postgresql -_-
<DaniG2k>
i ran brew install postgresql
<DaniG2k>
and then gem install pg
<diegoviola>
lpvn: i don't buy their underperformant excuse
<lpvn>
diegoviola, yeah neither do I
thesheff17 has quit [Quit: Leaving]
Valesk has joined #ruby
Steve445 has quit [Quit: Steve445]
<DaniG2k>
when I run psql I get psql: FATAL: database "blah" does not exist
<atmosx>
DaniG2k: why do you need postgresql anyway?
<DaniG2k>
what gives???
timonv has joined #ruby
<catepillar>
deinkabouter: i was fed the same line at my work
<DaniG2k>
atmosx: because it's what heroku uses, etc
<lagweezle>
I'm in California ... Not sure how right to work is /good/ here..
<agent_white>
DaniG2k: Did you create that database?
<atmosx>
DaniG2k: then use it on heroku
<catepillar>
the 3 months and we will evalutae you
ace_striker has quit [Ping timeout: 245 seconds]
<catepillar>
they never did evaluate me, so i kept on working
<diegoviola>
lpvn: i did pairing with a few members of their team, i set up a virtual machine in my Linux computer with KVM/QEMU, installed arch on it, we did some pairing with tmux, I migrated their 300 models from attr_accessible to strong parameters (some rails 4 app), and did a bunch of other things
<catepillar>
on month #5 right now
<DaniG2k>
agent_white: I can't even start up psql to create it
<atmosx>
DaniG2k: use sqlite3 locally and pg on heroku, will work fine with ActiveRecord (I think you're on rails on something)
<agent_white>
DaniG2K: What happens when you try to psql?
<aloitius1>
So, what IDEs is everyone using?
<diegoviola>
lpvn: i would have appreciated if they were more honest, since i want to know what the real reason for them firing me is
<catepillar>
VIM!
<DaniG2k>
$ psql
burlyscudd has quit [Quit: Leaving.]
<DaniG2k>
psql: FATAL: database "blah" does not exist
<MrZYX>
DaniG2k: try createdb
<atmosx>
vim <3
<agent_white>
vim :)
<RubyPanther>
DaniG2k: you can't run psql command without a database, you got the expected result because it tries to open a database that matches your system user name if you don't specify one
<catepillar>
diegoviola: how many people were hired around the time you were?
<slash_nick>
looks like ponbiki is a character in some anime
iamdoo2 has quit [Ping timeout: 252 seconds]
<daxroc>
Has anyone any pointers on how to fix http://pastebin.ca/2629558 i've tried #rvm no answer. But i've also tried rvm osx-ssl-certs update to no avail
vlad_starkov has quit [Remote host closed the connection]
<lpvn>
diegoviola, hmmm yeah it really seems they probably didn't need you there so they came with this half-assed excuse
<agent_white>
DaniG2k: Have you switched to your postgres user and created the roles and all that jazz first-and-foremost?
<DaniG2k>
MrZYX: ok now it lets me drop to psql
<RubyPanther>
you don't need to run the command line interface unless you have a db anyways, there are other commands like "createdb" and "createuser" for administration
<aloitius1>
VIM, huh?
<RubyPanther>
aloitius1: emacs
<daxroc>
I've even used brew o install the latest version of openssl and ca-certs and forced linking
<DaniG2k>
MrZYX: but now when I try rake db:create it says Couldn't create database for {"adapter"=>"postgresql", "database"=>"minsho", "encoding"=>"unicode", "pool
<DaniG2k>
"=>5, "timeout"=>5000}
stonevil_ has joined #ruby
<DaniG2k>
agent_white how do I do that?
<agent_white>
vim or emacs is the way to go. If you're an ide-user, when you ssh into a box and attempt to edit a text file it goes "WHERE IS YUR GOD NOW."
<lpvn>
diegoviola, just for curiosity's sake where do you live?
<MrZYX>
DaniG2k: you're sure that's the only output? no proper error message?
towskidistress has quit [Ping timeout: 250 seconds]
<billiam>
aloitius1: I'll be the dissenting opinion. I like rubymine. I use vim and sublime regularly, but they're not my primary project editors.
Shidash has joined #ruby
Speed is now known as Guest64842
<RubyPanther>
on a multi-user box or server it would normally be sent to "ident" which restricts the database user to the same name as the system user (the db user still has to be created by createuser)
<MrZYX>
DaniG2k: looks weird, you're sure your database.yml is sane?
<DaniG2k>
MrZYX: yea
<aloitius1>
billiam: I've been using RM but it just chokes on moderate data size
<diegoviola>
catepillar: 1 or 2 i think
<diegoviola>
catepillar: they were like "we need to hire more people" and they hired 2 or 3 more devs
<RubyPanther>
vim is the best text editor, I use that for system files like pg_hba.conf but mode-based editing is awful for dev IMO
<billiam>
aloitius1: like editing a 300mb sql file or something?
<diegoviola>
catepillar: but when the guy fired me today he also mentioned that he had to fire another guy
<billiam>
I've needed to turn things like inspections off for large files.
carraroj has joined #ruby
<diegoviola>
lpvn: Brazil
Guest64842 has quit [Changing host]
Guest64842 has joined #ruby
<DaniG2k>
what ownership does my /usr/lib need to have?
Guest64842 is now known as Speed
<lpvn>
diegoviola, hahaha I could tell
<DaniG2k>
drwxr-xr-x 268 root wheel 9112 Jan 8 00:15 lib
<RubyPanther>
diegoviola: some places use the 3 month trial period to churn through lots of devs until they find the one that washes the bosses car, or works 80 hour weeks, or whatever their "thing" is, try not to take it hard
andikr has quit [Remote host closed the connection]
<DaniG2k>
drwxrwxr-x 16 root admin 544 Feb 5 00:32 local
<agent_white>
diegoviola: If he said that, it's even better that you left. No good employer will say "oh you're fired, but not the only one today!"
<agent_white>
Sounds like terrible management.
<aloitius1>
billiam: I've got a list of integers, stored as a Bitwise. It's < 400K records. I turn it into a string and post it. RM chokes on that string.
failshell has joined #ruby
<aloitius1>
billian: It should be nowhere near 300MB. It should be 2-3MB.
hiall_ has quit [Ping timeout: 245 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<aloitius1>
billiam: But I've had RM run out of memory when debugging pretty regularly. Which it actually handles pretty well. Sometimes, though, it just hangs.
chrisseaton has quit []
efra has joined #ruby
towskidistress has joined #ruby
bklane has quit [Quit: Leaving...]
towskidistress has quit [Max SendQ exceeded]
thesheff17 has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
<diegoviola>
RubyPanther: haha i see
<diegoviola>
agent_white: yeah i get that
<diegoviola>
thanks guys
<diegoviola>
:-)
burlyscudd has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
jrobertfox has joined #ruby
bricker__ has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
danman has quit [Quit: danman]
jlast_ has joined #ruby
Valesk has joined #ruby
jlast has quit [Read error: Connection reset by peer]
bricker_ has quit [Ping timeout: 245 seconds]
alvaro_o has joined #ruby
towskidistress has joined #ruby
sepp2k has joined #ruby
towskidistress has quit [Max SendQ exceeded]
rootshift has joined #ruby
Adawerk has joined #ruby
cocotton has joined #ruby
jfelchner has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
allaire has quit []
elaptics is now known as elaptics`away
Adawerk has quit [Client Quit]
yarou has quit [Remote host closed the connection]
mven has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
DaniG2k has quit [Ping timeout: 265 seconds]
kate_r has joined #ruby
towskidistress has joined #ruby
yarou has joined #ruby
towskidistress has quit [Max SendQ exceeded]
<cocotton>
Hey guys, got a little script here that compare 2 numbers (let's say 1 and 2). Now, the script can take the comparison operator in argument as a string ("l" = <, "g" = >). Is there a way to do something like : if 1 case operator when "l" do < when "g" do > end 2 end?
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
mikepack has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
<centrx>
case operator when "l" then "<" when "g" then ">" else "x" end
<MrZYX>
cocotton: everything is an object, numbers too! operators = {'l' => :<}; 1.send(operators['l'], 2)
<cocotton>
Ruby is so great :)
towskidistress has joined #ruby
<atmosx>
cocotton: indeed!
towskidistress has quit [Max SendQ exceeded]
craigp has quit [Remote host closed the connection]
Asher has quit [Remote host closed the connection]
towskidistress has joined #ruby
Advocation has quit [Quit: Advocation]
e^0 has quit [Quit: WeeChat 0.4.1]
cashnguns has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
aspires has quit []
towskidistress has quit [Max SendQ exceeded]
Asher has joined #ruby
joelio has quit [Ping timeout: 264 seconds]
e^0 has joined #ruby
mikepack has quit [Read error: Operation timed out]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
<LadyRainicorn>
except methods *cough*
<MrZYX>
LadyRainicorn: we do have a Method class though :P
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
<LadyRainicorn>
And yet methods are not instances of it.
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
wald0 has quit [Quit: Lost terminal]
craigp has joined #ruby
TheGreatDogesby has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
_2_thaleja has joined #ruby
jrhorn424 is now known as zz_jrhorn424
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
mihail has quit [Ping timeout: 260 seconds]
jonr22 has joined #ruby
olivier_bK has joined #ruby
towskidistress has joined #ruby
dik_dak has joined #ruby
towskidistress has quit [Max SendQ exceeded]
<cocotton>
Let's say I have operator = 'g' and operators = {'l' => :<, 'g' => :>} (plz don't mind the variable names). I do not understand why "if 1 #{operators[operator]} 2" returns true
DrCode has joined #ruby
stryek has quit [Ping timeout: 245 seconds]
<cocotton>
shouldn't it return false since 1 is not greater than 2? :/
<MrZYX>
you're defining a string and that's always true
<MrZYX>
everything except nil and false is
towskidistress has joined #ruby
tauebel has joined #ruby
towskidistress has quit [Max SendQ exceeded]
albertgrala has joined #ruby
apeiros has quit [Remote host closed the connection]
<benzrf>
is there a way to treat scp uris as regular file uris and use the stdlib file stuff with em?
<benzrf>
i cant get sshfs working :\
nanoyak has quit [Quit: Computer has gone to sleep.]
nszceta has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 260 seconds]
<Zhann>
hi all, can anyone help me get started with minitest? I'm having a hard time grasping (conceptually) how to get started on testing something as simple as this: https://github.com/bailiff/bailiff/blob/feature/chef-zero/lib/bailiff/chef_zero.rb if anyone knows a good link to some guide or a nice example file with tests, that would be MUCH appreciated! :3
apeiros has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
jamto11 has quit []
dtcrshr has joined #ruby
dtcrshr has joined #ruby
dtcrshr has quit [Changing host]
mihail has joined #ruby
<Hanmac>
shevy: rwx has "Up +215 (1075%) from previous 12 months"
jonr22 has quit []
<shevy>
Hanmac hehe
apeiros has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamdoo2 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
jlast_ has quit [Remote host closed the connection]
switchspan has joined #ruby
<shevy>
well
<shevy>
they all wanna build stuff with ruby
<shevy>
at work I have to use a fucking windows computer
<shevy>
but at least I have ruby there
<shevy>
english keyboard :\
<centrx>
shevy, I thought they used Perl?
mikepack has joined #ruby
iamdoo2 has quit [Ping timeout: 260 seconds]
jlast has joined #ruby
<shevy>
centrx yeah, on their machines
nomenkun has quit [Ping timeout: 260 seconds]
<shevy>
I got the only windows machine in the whole room \o/
<shevy>
the cluster runs some modified debian thingy, via "module load ruby" I can enable ruby after login
<shevy>
perl is available without "module load perl" though :(
<shevy>
funny thing is, they have a bunch of random gems installed... including pry and activerecord (???)
phansch has joined #ruby
phansch has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
rdark has quit [Quit: leaving]
craigp has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
ciuppy has joined #ruby
ciuppy has quit [Client Quit]
Hanmac1 has joined #ruby
dkamioka has joined #ruby
jonah has joined #ruby
jonah is now known as jonah_k
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Ping timeout: 246 seconds]
Bira has quit [Remote host closed the connection]
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
bthesorceror has quit [Remote host closed the connection]
Hanmac has joined #ruby
bthesorceror has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
gamingrobot has joined #ruby
asmodlol has quit [Remote host closed the connection]
gamingrobot has left #ruby [#ruby]
Hanmac1 has quit [Ping timeout: 260 seconds]
krisbulman is now known as [krisbulman]
<pontiki>
ruby is a kernel module now?
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<slowcon>
hey guys. just started to learn ruby and i ran across rubytoolbox. im looking to build a webscraper using nokogiri. when i visit this site, https://www.ruby-toolbox.com/categories/Web_Content_Scrapers , i dont see it listed. is it because nokogiri is a html parser and can do way more than those listed in the web scraping section?
ctp has quit [Ping timeout: 272 seconds]
asmodlol has joined #ruby
<pontiki>
i'd say you pretty much nailed it, slowcon
<pontiki>
nokogiri is a parser/builder
<slowcon>
ok cool, thanks pontiki
<shevy>
pontiki they built some loadable add-on stuff
<pontiki>
scraping is rather more specialised than that, to my mind
<shevy>
pontiki a bit like loading and unloading a whole bunch of environment + programs
<centrx>
slowcon, Yeah, that listing is very specific about what "Web Content" is
stonevil_ has quit [Read error: Operation timed out]
snooc has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
whatasunnyday has quit [Quit: whatasunnyday]
Bira has quit []
vky has joined #ruby
burlyscudd has quit [Read error: Operation timed out]
apeiros has quit [Read error: Connection reset by peer]
cocotton_ has quit [Quit: Page closed]
<slowcon>
centrx: yeah i found that one after searching nokogiri
bradhe has quit [Remote host closed the connection]
<slowcon>
centrx: leading the pack HEAVY
Jetchisel has joined #ruby
bradhe has joined #ruby
<centrx>
Yes, Hpricot was the only other one, which is better at dealing with broken markup, but is currently unmaintained
<AntelopeSalad>
i have a regex question for you guys, i managed to set this up and it works as intended but http://rubular.com/r/d40gTaPElK
<AntelopeSalad>
what i'd like to do is match on that regex but somehow only really match what's inside of the ' '
<AntelopeSalad>
basically i want to search for that regex, but replace only the contents in between the apos
<centrx>
AntelopeSalad, The parentheses define a match group
<slowcon>
centrx: ahh true true. im basically looking to go to a forum where each post has a download link in it. click through each and download the file
LuvLinuxOS has joined #ruby
<AntelopeSalad>
centrx: i'm using parens to match the key = ' part
xrq has joined #ruby
<slowcon>
centrx: i learned ALOT from Joe Nguyen, who wrote the bastards book
<AntelopeSalad>
lpvn: imagine this scenario, let's say you have: key = '128_char_hash' and foo = '128_char_hash' , and you want to change the contents of each of those hashes with a different value
<AntelopeSalad>
MrZYX: perfect, thanks
enape_101 has joined #ruby
stonevil_ has quit [Ping timeout: 260 seconds]
<AntelopeSalad>
MrZYX: what would you classify (?=') as? regex variable replacement?
<lpvn>
AntelopeSalad, /\w* = '(?<key>\w*)'/
pkrzywicki has joined #ruby
<AntelopeSalad>
so i know what to google for in the future
<MrZYX>
AntelopeSalad: lookaround expressions
<AntelopeSalad>
even the termonology of explaining what it does is complicated haha
<slowcon>
i could read github all day long
<slowcon>
so much to learn from there
<MrZYX>
?= is positive lookahead, ?<= is positive lookbehind
apeiros has joined #ruby
coderhs has joined #ruby
<AntelopeSalad>
thanks
bthesorceror has quit [Remote host closed the connection]
<Asitha>
<apeiros> yo, dudes! stop heatedly discussing! your peeps spill over to #ruby desperately looking for answers!
zoscoy has joined #ruby
<shevy>
lol
<shevy>
Asitha can you relais to the rubyonrails guys that I suspect they have fleas, please?
stonevil_ has joined #ruby
geggam has joined #ruby
tauebel has quit [Quit: Leaving.]
jsilver has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<lagweezle>
hehe
mando has quit [Ping timeout: 245 seconds]
EngierkO_ has joined #ruby
vlad_starkov has joined #ruby
cpruitt has joined #ruby
pkrnj has joined #ruby
EngierkO has quit [Ping timeout: 245 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
jgrevich has joined #ruby
<slowcon>
i just got intellij IDEA, started a ruby project just to see what the interface looks like. question i have is why so many folders? http://tinypic.com/view.php?pic=20pet5i&s=8#.UvKlQPnbPms Most of the github projects ive been looking at only have a .rb, readme, sometimes a lib
nettoweb has quit [Quit: nettoweb]
LadyRainicorn has quit [Quit: Bye]
nszceta has joined #ruby
craigp has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 260 seconds]
<pontiki>
slowcon: you just created a rails app
snooc has joined #ruby
e^0 has joined #ruby
SilentHobo is now known as Hobogrammer
<slowcon>
ponbiki: when IDEA asks me to specify my ruby sdk, i point it to the install dir at /usr/bin/ruby
Alina-malina has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
<slowcon>
ponbiki: then when i click next to the last step on the project, it gives me options for java, rails, and sql support
<slowcon>
ponbiki: basically just choose none of em?
Alina-malina has joined #ruby
<pontiki>
idk, i don't use IDEA
sski has joined #ruby
<apeiros>
yay! my nick isn't the only one which gets mutilated :D
<havenwood>
slowcon: You might want to ask about Rails app's directory hierarchy in #rubyonrails. If a Rails app choose Rails.
<apeiros>
bonsigi, you approve of your new nick? :)
iamdoo2 has joined #ruby
<MrZYX>
apeiros: I frequently get MrXYZ or MrZYK
<apeiros>
MrYYY is nicer…
vlad_starkov has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 265 seconds]
<AntelopeSalad>
slowcon: if you're not creating a rails app then just make an empty project?
vlad_starkov has joined #ruby
<AntelopeSalad>
when you select new project, there is a project type drop down, just select empty
<havenwood>
MrXXX
e^0 has quit [Quit: WeeChat 0.4.2]
<MrZYX>
blergh, I should just change
<slowcon>
AntelopeSalad: i installed the ruby plugin
MrZYX is now known as jhass
charliesome has joined #ruby
<AntelopeSalad>
slowcon: oh, so you're not using rubymine?
tyl has quit [Quit: Computer has gone to sleep.]
<slowcon>
AntelopeSalad: nope, using IntelliJ IDEA, which is pretty much all of the jetbrains stuff together
<AntelopeSalad>
it's probably similar, just choose empty ruby project?
<slowcon>
AntelopeSalad: and you can install plugins for other languages
iamdoo2 has quit [Ping timeout: 260 seconds]
<werdnativ>
Is there a breakdown of the ruby changelog that shows which fixes landed in each patchlevel release?
<jhass>
apeiros: yep, more hate for the world is always good, isn't it?
<bricker`work>
Rylee: yes, pry is the "enhanced" version of the built-in IRB, and is quite good
<Rylee>
apeiros, not quite. bpython has live syntax highlighting, drop-down code completion, etc -- an enchanced version of the normal Python interpreter
smtp_ has quit [Ping timeout: 265 seconds]
<apeiros>
Rylee: can have that for both I mentioned
<apeiros>
so yes, quite
rickruby has joined #ruby
mando has joined #ruby
<Rylee>
Hmm
<Rylee>
Okay
DariusPHP has joined #ruby
<apeiros>
ok, don't know about the drop-down code completion. but code-completion they even have by default.
timonv has joined #ruby
Megtastique has joined #ruby
DariusPHP has quit [Client Quit]
Alina-malina has quit [Read error: Connection reset by peer]
<Rylee>
if pry is better than irb I'll give it a look.
<AntelopeSalad>
slowcon: hmm, i never used intellij idea, only the rubymine editor for a little bit
<AntelopeSalad>
seems weird that it only lets you pick a rails app
gizmore has joined #ruby
<slowcon>
AntelopeSalad: thats what i thought
<AntelopeSalad>
what if you just create a directory on your own and then open that directory?
<AntelopeSalad>
then it will convert that directory in a project (afaik)
<AntelopeSalad>
*into
<gizmore>
how do i represent human duration... like 86.human_duration() => "1m 26s"
<slowcon>
AntelopeSalad: empty directory?
<AntelopeSalad>
slowcon: wait a sec, the empty choice screenshot is good
<AntelopeSalad>
that is an empty dir ready to go with nothing extra at all except for the .idea folder
<shevy>
gizmore I think there are some gems that help here like chronos and a few more
<AntelopeSalad>
which contains the necessary junk so that the editor knows it's a project folder
stonevil__ has joined #ruby
<slowcon>
so thats what a standard ruby prject looks like in IDEA
<AntelopeSalad>
yeah, it's an empty project
<gizmore>
shevy: thank you
daxroc has quit [Ping timeout: 260 seconds]
<AntelopeSalad>
you can ignore the .idea folder completely, it's only used internally by the editor, most people add it to their gitignore folder
<AntelopeSalad>
*file
daxroc has joined #ruby
<Rylee>
apeiros, thanks for the pry suggestion, I'll look into it
<AntelopeSalad>
the external library panel is just idea trying to help you by showing the sources of what's on its path, it's not included in your project folder at all
<slowcon>
AntelopeSalad: thanks man, much better overview of whats going on
<slowcon>
AntelopeSalad: any idea on the .iml file?
stonevil_ has quit [Ping timeout: 252 seconds]
<AntelopeSalad>
that's still inside of the .idea folder
phansch has joined #ruby
<AntelopeSalad>
click the triangle to close the idea folder and will disappear
TheGreatDogesby has quit [Remote host closed the connection]
<slowcon>
its outside
craigp has joined #ruby
<AntelopeSalad>
did you move it outside since you linked the screenshot?
<gizmore>
shevy: btw... my own rfc... new unixtimestamp format..... not "seconds from 1970"... BUT: "PLANCK SECONDS SINCE THE BIGBANG!"
<AntelopeSalad>
because in the screenshot it's certainly outside
<AntelopeSalad>
i mean inside (damn it)
yalue has quit [Quit: Leaving]
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
gizmore: you mean planck units
<slowcon>
AntelopeSalad: totally collapsing the idea folder leaves that untitled.iml file there. collapsing the untitled project folder removes it
<gizmore>
apeiros: there are multiple planck units
<apeiros>
true
<gizmore>
apeiros: lengths, durations... i mean planck second
<AntelopeSalad>
slowcon: in fact, that idea folder is hidden from the project panel all together
<RubyPanther>
big bang is a theory, 1970 is a fact
<apeiros>
and 2^128 is much smaller than 10^44
<slowcon>
AntelopeSalad: yeah i checked the paths of both files. one like compiler.xml is inside the project/.idea/ folder
allaire has joined #ruby
<apeiros>
RubyPanther: I wasn't there, so 1970 is just a theory too!
<slowcon>
AntelopeSalad: .iml file just in the /project
<gizmore>
apeiros: you are right... 1s == 10^45 plancks.... and still 2^128 is enough for seconds since bigbang
<RubyPanther>
apeiros: I'm sure you can access the measurements ;)
zachallett has quit [Remote host closed the connection]
<AntelopeSalad>
slowcon, i guess add it to gitignore and move on but i would still goto their irc channel and ask why
<apeiros>
gizmore: 2^128 doesn't even give you 1 second
burlyscudd has joined #ruby
<AntelopeSalad>
it looks like a bug or something because there's no way it should pollute your real project files
<apeiros>
gizmore: so unless your rfc suggests the big bang was less than 1s ago…
timonv has quit [Remote host closed the connection]
Eran34 has quit []
<slowcon>
AntelopeSalad: gonna go check it out, will let you know what they say
<RubyPanther>
"being there" isn't a help, humans have no direct sensory capability. Everything we process and comprehend is an abstraction largely from a black box
<gizmore>
apeiros: you are right :O
<AntelopeSalad>
slowcon: i don't have that file in my project's folders either, try deleting it and reopen your project
<slowcon>
AntelopeSalad: you see the pastebin with the contents of that file?
<apeiros>
gizmore: 2^256 get you somewhere
<RubyPanther>
I just wish you people would consider the historical importance of Y2K for software consultants, and wait until jan 2038 to try fiddling with the End of Epoch
<gizmore>
apeiros: good comment!
<apeiros>
2^203 gets you ~seconds since big bang
<RubyPanther>
Time.at(0x7fffffff) is my retirement plan!
<AntelopeSalad>
slowcon: yeah, it's probably important but there's no harm in trying
<gizmore>
apeiros: so 256 bits should be enough until 2030?
* wca
wonders why one would want to manage time in Planck units
<apeiros>
a bit longer actually
jgrevich has quit [Quit: jgrevich]
heidi-chaat is now known as heidi
<gizmore>
damn my math is so bad... i thought 2^128 is way more than 10^45 -.-
<slowcon>
AntelopeSalad: found it on their website
TheGreatDogesby has quit [Remote host closed the connection]
<gizmore>
thanks apeiros :)
<wca>
gizmore: irb can help you with that :P
<RubyPanther>
wca: as technology improves, it is less likely to become obsolete?
<gizmore>
wca: i use "rails c" for that now
* gizmore
hides
* shevy
pulls gizmore out of the shadows
<slowcon>
AntelopeSalad: Module Library: the library classes are visible only in this module and the library information is recorded in the module *.iml file.
jgrevich has joined #ruby
<wca>
RubyPanther: hell, I don't know very many applications that can make effective use of bintime
terrellt has joined #ruby
<slowcon>
AntelopeSalad: The information about modules the project includes is stored in <%module name%>.IML files. Module files are created for each module.
mikepack_ has joined #ruby
<AntelopeSalad>
slowcon: what is idea's definition of a module?
<RubyPanther>
wca: the edge cases would be things like physics experiments and space ships
TheGreatDogesby has joined #ruby
<apeiros>
gizmore: hm, not sure now whether I made a mistake when calculating…
<slowcon>
AntelopeSalad: I think its just telling the IDE what im trying to program in
<apeiros>
might need more than 256bits
habanany has joined #ruby
<AntelopeSalad>
slowcon: yeah, that would explain why i don't have one in rubymine
<slowcon>
AntelopeSalad: their Def. A module is a discrete unit of functionality which you can compile, run, test and debug independently
<shevy>
do you guys prefer (and use more oftenly) Dir.glob() or Dir[] ?
<gizmore>
apeiros: lets use 512 bits then.... some of the timestamps will be even prime
<AntelopeSalad>
i would still bring it up on their channel though
<gizmore>
apeiros: like "2" ... even prime!
yasushi has quit [Remote host closed the connection]
<slowcon>
AntelopeSalad: Configuration information for a module is stored in a .iml module file. By default, such a file is located in the module's content root folder.
<apeiros>
gizmore: 64byte for a time… nice :D
<wca>
RubyPanther: Still... probably not very many can do something useful with that kind of resolution.
<AntelopeSalad>
"by default" sounds like maybe there's an option to give it a path to this file
<slowcon>
AntelopeSalad: Development teams, normally, share the .iml module files through version control.
<gizmore>
apeiros: the advantage: "all past dates covered"... "all granularity you will ever need" ... "Easily convertable to unix timestamp"... the list goes on
railsmagnet has joined #ruby
<RubyPanther>
wca: not many do something "useful" with web apps, either ;)
araujo has joined #ruby
<apeiros>
gizmore: doesn't yet cover multiverse time. so sad.
VTLob has quit [Quit: VTLob]
stryek has quit [Ping timeout: 245 seconds]
<AntelopeSalad>
slowcon: ok, it seems important then -- i guess keep it around and in version control
<gizmore>
apeiros: it does according to my theorem
<RubyPanther>
kinda hard without more stable multiverse theories
fschuindt has joined #ruby
<slowcon>
AntelopeSalad: basically what i got from this is, ignore it hahahaha
<apeiros>
gizmore: also don't forget that there is only time cube, everything else is a lie!
bklane has joined #ruby
<wca>
RubyPanther: I'm not getting your joke -- I was referring to applications making effective use of the time resolution.
<AntelopeSalad>
yeah, it's totally managed by the editor
<gizmore>
apeiros: your flee just suggests my rfc is great
tauebel has joined #ruby
<apeiros>
wca: what's bintime?
<AntelopeSalad>
i would still add it to gitignore because that has nothing to do with your ruby project
Bumptious has quit [Remote host closed the connection]
<slowcon>
AntelopeSalad: noted
<RubyPanther>
wca: parse it at face value instead of as a joke, and then the joke is either funny, or not
<AntelopeSalad>
slowcon: if it's a closed source project you're working on and everyone is using idea then let it go in version control
mikepack_ has quit [Ping timeout: 245 seconds]
<slowcon>
AntelopeSalad: ive never programmed in ruby before. trying to build a web scraper, most likely no one else will work on this
jgrevich has quit [Quit: jgrevich]
<AntelopeSalad>
then just keep it in version control for yourself, it's not a big deal
carraroj has quit [Quit: Konversation terminated!]
shevy has quit [Quit: ""]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
shevy has joined #ruby
snooc has quit [Ping timeout: 265 seconds]
<wca>
apeiros: it's a time API that represents time in units of 2^-64 seconds.
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
<apeiros>
ah
<apeiros>
yeah, there aren't too many applications for such a resolution
<gizmore>
movie db
<gizmore>
god´s selfie with bigbang
bthesorceror has quit [Remote host closed the connection]
prc has joined #ruby
bthesorceror has joined #ruby
jhass is now known as jhass|off
nettoweb has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
alvaro_o has quit [Quit: Ex-Chat]
shabgard has quit [Quit: Aji maji la taraji]
Megtastique has quit []
`MArceLL` has quit [Ping timeout: 246 seconds]
towskidistress has joined #ruby
towskidistress has quit [Max SendQ exceeded]
`MArceLL` has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Ping timeout: 265 seconds]
jonah_k has quit [Remote host closed the connection]
phansch has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
DrCode has quit [Remote host closed the connection]
IceyEC has quit [Quit: IceyEC]
sambao21 has joined #ruby
rickruby has quit [Remote host closed the connection]
stryek has joined #ruby
JustinAiken has quit [Read error: Operation timed out]
JustinAiken has joined #ruby
dtcrshr has quit [Quit: poff]
Megtastique has joined #ruby
popl has quit [Read error: Operation timed out]
aryaching has quit [Ping timeout: 265 seconds]
postmodern has joined #ruby
fmcgeough has joined #ruby
nettoweb has quit [Quit: nettoweb]
jbueza has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
rickruby has joined #ruby
seoNinjaWarrior has joined #ruby
JustinAiken has quit [Ping timeout: 260 seconds]
craigp has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
stonevil__ has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
IcyDragon has quit [Quit: Space~~~]
lmickh has quit [Remote host closed the connection]
x77686d has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Al___ has quit [Client Quit]
jerius has quit [Ping timeout: 260 seconds]
kcombs has joined #ruby
tkuchiki has joined #ruby
iamdoo2 has quit [Ping timeout: 260 seconds]
enape_101 has joined #ruby
<xybre>
You shouldn't need the negation if you're using lazy repition
sambao21 has joined #ruby
cashnguns has quit [Ping timeout: 252 seconds]
geggam has quit [Remote host closed the connection]
Megtastique has quit []
<RubyPanther>
You either need it or not depending on the data you expect and how strict/forgiving you want to be, not based on lazy repetition
sambao21 has quit [Client Quit]
IceyEC has joined #ruby
<xybre>
RubyPanther: do you have any data where it doesn't work as intended? I figure you only need one or the other.
IceyEC has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
<RubyPanther>
xybre: That is trivial and boring to produce, what matters is how strict/forgiving you want to be
pkrnj has quit [Quit: Computer has gone to sleep.]
<xybre>
So.. in other words you have no data.
Megtastique has joined #ruby
<RubyPanther>
no, if my point is correct and indeed the examples are trivial, then it is just a false nit
CaptainJet has quit []
v0n has quit [Quit: WeeChat 0.4.2]
venkat has quit [Read error: Connection reset by peer]
v0n has joined #ruby
x77686d has quit [Quit: x77686d]
bradhe has quit [Remote host closed the connection]
venkat has joined #ruby
<RubyPanther>
what matters is not the exact data, but how strict or forgiving you want to be. It should take you 0 effort to come up with edge cases, 'foo='bar' foo'='bar' 'foo'=='bar' 'foo'=''bar'
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
ehc_ has joined #ruby
ehc has quit [Ping timeout: 246 seconds]
ehc_ is now known as ehc
ehc has quit [Remote host closed the connection]
bradhe has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<RubyPanther>
parsing multiple quoted substrings is a lot trickier than coming up with data examples
LuvLinuxOS has quit [Quit: Leaving]
habanany has quit [Quit: Leaving.]
habanany has joined #ruby
mando has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
allaire has quit []
<shevy>
is there a way to query whether a method exists
<shevy>
puts "Hi there "+bye_there()
<xybre>
Real world data is the best source of information on what your parser should actually do.
<shevy>
^^^ and bye_there() may sometimes not exist
SCommette has joined #ruby
<xybre>
shevy: respond_tp?
<xybre>
er, respond_to?
<shevy>
lemme test quickly
mikepack_ has joined #ruby
zeropx has joined #ruby
freggles has quit [Remote host closed the connection]
jamto11 has joined #ruby
<AntelopeSalad>
can someone throw out a few use cases for using inner classes in ruby?
<jamto11>
does ruby allow me to define a method that has a #{} in its method signature?
<shevy>
hmm
<shevy>
xybre but that means the method must exist on the target object?
<xybre>
jamto11: sorta, you can use define_method to dynamically create methods, or eval them.
<xybre>
shevy: ...yes?
<shevy>
like if you start a new file foo.rb, there you do: def foo; end, then you want to check whether foo() exists or not
<jamto11>
def reset
<jamto11>
send("reset_#{self.name}")
<jamto11>
end
<jamto11>
i have something like that currently. how can i do something like def reset_#{self.name} end
snooc has joined #ruby
<RubyPanther>
xybre: No, specifications that are carefully written based on real-world data is the best thing
<xybre>
shevy: all methods are namespaced in some object, you msut tell it where to find them.
ner0x has joined #ruby
<shevy>
hmmm
<RubyPanther>
if you don't define how strict/forgiving you're being, just testing against some data leaves a lot to be desired
* xybre
writes all the specifications <3 waterfall, wait no
<RubyPanther>
I don't think saying "waterfall" really tosses out the whole engineering process, or the value of specs
<RubyPanther>
What if you can change the spec whenever you need to? Oh, that's called agile, right
robbyoconnor has joined #ruby
kirun has quit [Quit: Client exiting]
<xybre>
No, that isn't "agile" :)
mikepack_ has quit [Ping timeout: 265 seconds]
kenrick has quit [Read error: Operation timed out]
<RubyPanther>
You can't even _claim_ it's always in a working state if you don't have specs. Agile without engineering is just mishmash wandering in the dark
platzhirsch has joined #ruby
<platzhirsch>
Pudú!
sailias has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
snooc has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
apeiros has joined #ruby
<shevy>
peefall
railsmagnet has left #ruby ["#RubyOnRails, #weechat"]
<platzhirsch>
shevy: have you seen the cover of the newest Titanic issue?
<shevy>
nope, I stopped looking at them after they ranted against fefe