<bahar>
bricker`LA: hunh. that's weird. the count stays at 0 the entire way through. and User.all displays 0 results. but i still get the "email has already been taken" error. WTF: https://gist.github.com/wasafiri/fe3aad82bc0d36e9e8e0
Noob101 has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
ta has quit [Read error: Connection reset by peer]
<bricker`LA>
bahar: can you gist your new spec_helper
ta has joined #ruby
<bricker`LA>
bahar: maybe you found a bug in your email validation :)
aspires has quit []
bradhe has joined #ruby
<bahar>
bricker`LA sure but i didn't move the database cleaner stuff in yet
<bahar>
let me do that first. sec
<bricker`LA>
bahar: oh, lol
<bricker`LA>
bahar: this is the dumbest circular logic problem
<bricker`LA>
bahar: you're creating a user, and then trying to create a user with the info you just created
<bricker`LA>
use FactoryGirl.build(:user)
<bricker`LA>
well, at least your learned some debugging techniques :)
<bricker`LA>
you*
<bahar>
oh, ha
<bahar>
blimey
<bahar>
yes... i think the debugging techniques alone were very much worth it =D
aspires has joined #ruby
<bahar>
error goes away by using build
benlieb has quit [Read error: Connection reset by peer]
dapz has joined #ruby
benlieb has joined #ruby
<bahar>
thanks for the help bricker`LA
Hanmac1 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Noob101 has joined #ruby
<bricker`LA>
no problem
lw has quit [Quit: s]
<bricker`LA>
oh hey we're in #ruby
<bricker`LA>
how did that happen
Zenigor has quit [Remote host closed the connection]
<bahar>
i have no idea =D
<bricker`LA>
haha
britneywright has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
<bahar>
bricker`LA have you ever used something like email_spec before?
<bricker`LA>
no, what's it supposed to do?
Prandium has joined #ruby
<Noob101>
Hello everyone, I hope you're having a wonderful day.
gnfz has quit [Quit: Leaving]
<bahar>
what i'm trying to use it for (and saw it suggested on stackoverflow for such a purpose) is to open a confirmation email that's sent out after a user signs up, and click the confirmation link
dapz has quit [Client Quit]
Hanmac has quit [Ping timeout: 272 seconds]
sandbags has quit [Remote host closed the connection]
<bahar>
bricker`LA but i'm not even sure if that's a good spec, or even an useful way to test something like that
<bricker`LA>
bahar: I've never tried feature testing a confirmation e-mail to that extent *shrug*
wallerdev has joined #ruby
sandbags has joined #ruby
<bahar>
setting aside that i can't seem to get the gem working, is there a more idiomatic way to test that kind of stuff, or is it just unnecessary?
<bricker`LA>
bahar: usually I just asset that e-mail body contains the right stuff
<benzrf>
Noob101: i try
<bricker`LA>
assert*
ddv has quit [Ping timeout: 245 seconds]
<bahar>
bricker`LA ok
phoo1234567 has quit [Quit: Leaving]
<Noob101>
benzrf: It's ok, we all do. I'll pray for you if I remember to.
ddv has joined #ruby
<bahar>
im new to rspec too and i get feedback like, don't test the database, dont test rails, but i'm not yet completely sure what those things mean
lw has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
GriffinHeart has joined #ruby
<bahar>
anyone got any advice on that front? :)
sandbags has quit [Ping timeout: 252 seconds]
<bricker`LA>
bahar: Just remember that almost every gem, library, piece of software your app is using already has a full suite of passing tests. And the most important thing to test is the API - that your methods and controllers are returning the expected result. Your tests shouldn't care how they do it.
linduxed has quit [Ping timeout: 264 seconds]
xcv_ has joined #ruby
charlied3 has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
<pipework>
bricker`LA: Well, not all of the gems do, but hopefully so.
<bricker`LA>
pipework: yeah I was being optimistic
<bricker`LA>
the point is that they *should*
kireevco has joined #ruby
<bahar>
bricker`LA how do you TDD then? it's a concept struggle for me
<bricker`LA>
and if they don't, your app isn't where they should be
GriffinHeart has quit [Ping timeout: 255 seconds]
<pipework>
bahar: Depends, are you BDD'ing or TDD'ing?
CorpusCallosum has joined #ruby
wallerdev has quit [Quit: wallerdev]
<bahar>
some of both
<pipework>
Write a test from the user's perspective given your definition of user and the interface they'll make use of.
xcv has quit [Ping timeout: 248 seconds]
<bricker`LA>
bahar: you write code to make a test pass. I don't like it, personally.
Hanmac1 has quit [Ping timeout: 264 seconds]
<bahar>
correct bricker`LA
<bahar>
that's how i've been instructed to do it.... it pretty much just slows down development 3x.
<bahar>
ha
<pipework>
Then when you step in and need to integrate with another library, you should wrap that library into an interface to keep your system isolated from dependencies.
<pipework>
bahar: It only slows down those who don't do it well.
zorak has quit [Ping timeout: 248 seconds]
nfk has quit [Quit: yawn]
<pipework>
Your wrapper should just assert that the wrapping library calls the library appropriately. That's the API test that will fail if something changes, which is the exact kind of failure you want to be aware of.
<bahar>
pipework so the better test is just to make sure your code is using the gem properly?
<pipework>
The rest is just behaviour testing that your app gets reasonable things from the wrapper like any other kind of behaviour ducktype test.
lw has quit [Quit: s]
<pipework>
bahar: Only if you're going to write a wrapping interface. Otherwise, go with whatever feels best.
Hanmac has joined #ruby
<bahar>
Practice makes perfect. this is the first suite of tests i've written (24 so far). The last few apps, I didn't TDD. Now it feels like a slog, but absolutely it will get faster the more I do it.
beak has quit []
oo_ has joined #ruby
dapz has joined #ruby
enebo has quit [Quit: enebo]
yubrew has joined #ruby
lw has joined #ruby
nasj has joined #ruby
linduxed has joined #ruby
gabmorg has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<gabmorg>
hey ruby
tectonic has quit []
nasj has quit [Ping timeout: 272 seconds]
<gabmorg>
jekyll is not finding my installation of rdiscount. any idea why?
sgen has joined #ruby
zz_karupa is now known as karupa
oo_ has quit [Remote host closed the connection]
Jam_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has joined #ruby
jxf has joined #ruby
CorpusCallosum has quit [Ping timeout: 264 seconds]
Wolland_ has quit [Remote host closed the connection]
linduxed has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has quit [Client Quit]
linduxed has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Wolland has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
stytown has quit [Quit: stytown]
chipotle has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
chipotle has joined #ruby
eka has joined #ruby
iamjarvo has joined #ruby
aemeredith has joined #ruby
CodeLicker has quit [Excess Flood]
Dr3amc0d3r|away has quit [Ping timeout: 260 seconds]
xcv_ has quit [Remote host closed the connection]
CodeLicker has joined #ruby
endash has quit [Quit: endash]
mercwithamouth has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
CorpusCallosum has joined #ruby
kies has quit [Ping timeout: 264 seconds]
iamcalledrob has joined #ruby
LexicalScope has quit [Ping timeout: 260 seconds]
Dr3amc0d3r|away has joined #ruby
linduxed has quit [Ping timeout: 272 seconds]
rkazak_ has joined #ruby
linduxed has joined #ruby
kireevco has quit [Quit: Leaving.]
Darkchaos has quit [Ping timeout: 272 seconds]
iamcalledrob has quit [Ping timeout: 272 seconds]
brunops has quit [Ping timeout: 260 seconds]
brunops has joined #ruby
User458764 has joined #ruby
sputnik13 has joined #ruby
<bricker`LA>
gabmorg: bad path?
larsam has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
awkwords has joined #ruby
mercwithamouth has joined #ruby
<mjuszcza1>
I have an attribute hash defined like so: http://pastebin.com/QggkRMQS -- I need to somehow pass a list into a template of only users that have "true" set. What's the easiest way to break that down in ruby so that my template simply gets: user1, user3
mgberlin has quit [Remote host closed the connection]
sputnik13 has quit [Client Quit]
<pipework>
#select
kies has joined #ruby
LexicalScope has joined #ruby
simoz1111115 has joined #ruby
<bricker`LA>
hsh.select
<bricker`LA>
oops
<bricker`LA>
hsh.select { |_, v| v }
SouL___ has quit [Remote host closed the connection]
badhatter has quit [Remote host closed the connection]
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<godd2>
is this inside a hand class? where is @full_hand coming from?
jxf has joined #ruby
<luckyruby>
refresh the gist
Channel6 has quit [Quit: Leaving]
aemeredith has joined #ruby
nasj has quit [Remote host closed the connection]
Georg3 has joined #ruby
srnty has joined #ruby
srnty has quit [Client Quit]
nateberkopec has joined #ruby
oo_ has quit [Remote host closed the connection]
larsam has joined #ruby
saarinen has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
theharshest has quit [Quit: This computer has gone to sleep]
<godd2>
that looks like it will work, but you haven't left much room for growth
aemeredith has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Max SendQ exceeded]
Georg3 has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
sputnik13 has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
theharshest has joined #ruby
<luckyruby>
godd2: yea, for now I plan on adding methods to detect 4 of a kind, full house, 3 of a kind, etc. Then I'll reorganize it into a diff class.
<godd2>
also, on line 22 you have a puts, but the return from flush? is nil since extract_flush's last command is to puts something. when you want to puts the result of a method call, youll want that method to eventually return a string
thesheff17 has quit [Quit: Leaving]
nateberkopec has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 264 seconds]
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
sputnik13 has quit [Client Quit]
thesheff17 has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
chipotle has joined #ruby
CaptainJet has quit []
<luckyruby>
yea, that puts shouldn't be there. rewritten the code a few times already and that got left behind
oo_ has joined #ruby
sputnik13 has joined #ruby
mgberlin_ has joined #ruby
mehlah has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
mgberlin has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
FarLight has quit [Changing host]
FarLight has joined #ruby
sigurding has joined #ruby
arya_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
nasj has joined #ruby
Wolland has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
yubrew has joined #ruby
sputnik13 has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
ARCADIVS has quit [Ping timeout: 260 seconds]
simoz1111115 has quit [Ping timeout: 272 seconds]
chihhsin_ has quit [Ping timeout: 264 seconds]
<luckyruby>
godd2: nice
sputnik13 has quit [Client Quit]
chihhsin has joined #ruby
timonv has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
yubrew has quit [Ping timeout: 264 seconds]
<luckyruby>
godd2: for your deal method, any reason why you didn't just go with @card.shift(n)?
<luckyruby>
@cards.shift(n)
lulzmachine has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
lulzmachine_ has joined #ruby
aganov has joined #ruby
saarinen has quit [Quit: saarinen]
GriffinHeart has joined #ruby
lulzmachine_ has quit [Client Quit]
lulzmachine has quit [Client Quit]
codabrink has joined #ruby
<luckyruby>
I really like what you have.
ta has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
brunops has joined #ruby
oo_ has quit [Remote host closed the connection]
User458764 has joined #ruby
lulzmachine has joined #ruby
lulzmachine has quit [Client Quit]
<godd2>
in this case pop and shift do the same thing, since we expect the cards to be in a random order.
<godd2>
plus, pop is two letters fewer than shift, so less typing
<luckyruby>
but 1 line vs 3
dumdedum has joined #ruby
<godd2>
oh just change it to @cards.pop n
stytown has joined #ruby
sputnik13 has joined #ruby
oo_ has joined #ruby
Morkel has joined #ruby
nasj has quit [Remote host closed the connection]
Slarv has joined #ruby
nasj has joined #ruby
nasj has quit [Remote host closed the connection]
FarLight has left #ruby ["Leaving"]
nasj has joined #ruby
_maes_ has joined #ruby
nasj has quit [Remote host closed the connection]
sputnik13 has quit [Client Quit]
aemeredith has joined #ruby
aemeredi_ has joined #ruby
aemeredith has quit [Read error: Connection reset by peer]
Azure has quit [Quit: My MBP went to sleep.]
qpls has quit [Ping timeout: 240 seconds]
<luckyruby>
godd2: learned a lot from your gist
qpls has joined #ruby
<luckyruby>
didn't know about Comparable mixin and that you can omit {} for string interpolation of instance variables
<godd2>
yea don't ever be afraid to make a new class for something. there will be a time when you make too many classes, but then youll learn to trim it back
Georg3 has joined #ruby
<godd2>
yea Comparable is pretty sexy. I used it in a musical gem Im making to compare pitches and notes for 'free'
JasmeetQA has joined #ruby
idiocrash has quit [Ping timeout: 255 seconds]
User458764 is now known as User458764_NotHe
<luckyruby>
what's the purpose of your music gem? Is it to make music?
User458764 has joined #ruby
<luckyruby>
or analyze
Georg3 has quit [Ping timeout: 260 seconds]
echevemaster has quit [Quit: Leaving]
dc_ has quit [Remote host closed the connection]
pontiki has joined #ruby
<pontiki>
hi
User458764_NotHe has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
techsethi has joined #ruby
tagrudev has joined #ruby
ARCADIVS has joined #ruby
dc_ has joined #ruby
why_away is now known as whyy
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
starkhalo has quit [Ping timeout: 272 seconds]
relix has joined #ruby
tonini_ is now known as tonini
EasyCo has quit [Quit: Connection closed for inactivity]
_justin has joined #ruby
User458764 is now known as User458764_NotHe
alem0lars has joined #ruby
aemeredi_ has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
<Slarv>
hello pontiki
chipotle has quit [Quit: cya]
<pontiki>
hi Slarv
User458764_NotHe has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
heftig has quit [Quit: Quitting]
bluOxigen has joined #ruby
dc_ has quit [Remote host closed the connection]
theharshest has quit [Quit: This computer has gone to sleep]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frankjpinto>
do you have a model on your end of things? if so you can prob rip the model -> url functionality out of rails w/o too much effort
<Cork>
frankjpinto: nope, no models
<Cork>
just a tiny .rb file
<Cork>
with 5 urls based on parameters
havenwood has quit [Remote host closed the connection]
aemeredith has quit [Remote host closed the connection]
<frankjpinto>
so unless you wanna build a lil mock object that reponds to all the params the rails router uses for that conversion...i'd suggest just making your own function
<Cork>
hmm i might have gone about this the wrong way, what i'm really looking for is a template solution
<frankjpinto>
def generate_url(id); "http://example.com/user/#{id}/member_name; end .... there you go! function written, desired functionality achieved B-)
<frankjpinto>
haha
<Cork>
frankjpinto: that is actually very close to what i do today :)
<relix>
"You can get UTF-8 encoded output by making sure that the XML encoding is set to "UTF-8" and that the $KCODE variable is set to "UTF8"."
<apeiros>
$KCODE is <1.9 only
duncannz has joined #ruby
<relix>
apeiros that's the thing I'm using a ruby which does not allow KCODE anymore
<relix>
this library requires KCODE to be set
ponga has joined #ruby
<ponga>
IDE recommendation for ruby & JS ?
<Edelwin>
vim
<Edelwin>
+ nerdtree
<apeiros>
relix: patch the lib
<apeiros>
finding all instances of $KODE in it shouldn't be that hard
<relix>
apeiros yeah
<apeiros>
alternatively: don't use it. use one which works well with current rubies.
<apeiros>
e.g. nokogiri's builder.
<relix>
that's what I wish I had time for :)
schaerli has joined #ruby
<relix>
I'll just patch the lib for this one thing
<relix>
(famous last words, eh)
<apeiros>
though it seems to me it doesn't directly use $KCODE
<apeiros>
so you either need ruby 2.0+, where source code defaults to utf-8, or you set the `# encoding: utf-8` comment. might also need Encoding.default_internal, _external
<relix>
apeiros I'm pretty sure it just checks if $KCODE == options.xml_encoding or something
yubrew has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
obs has quit [Quit: Konversation terminated!]
<relix>
which would explain why it doesn't work - I'm in ruby 2
RurouniJones has joined #ruby
obs has joined #ruby
<relix>
"(@encoding != 'utf-8' or $KCODE != 'UTF8')"
<relix>
:/
wildroman2 has joined #ruby
ephemerian has quit [Ping timeout: 260 seconds]
<apeiros>
relix: *or*
<apeiros>
use the @encoding then
aemeredith has joined #ruby
<relix>
apeiros it needs to be false
lolmaus has quit [Ping timeout: 255 seconds]
<relix>
the feature works if @encoding == utf-8 and kcode == UTF8
railzForDaiz has joined #ruby
<relix>
it's just defined weirdly
<apeiros>
:-/
<apeiros>
patch time
<relix>
dammit jim why did you have to die on us
Dr3amc0d3r is now known as Dr3amc0d3r|away
lolmaus has joined #ruby
obs has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
<frankjpinto>
ponga, vim +1...ctrlp instead of nerdtree though ;)
<ponga>
ok
aemeredith has quit [Ping timeout: 264 seconds]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
Takle has joined #ruby
yfeldblum has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
jw is now known as Guest58962
Wolland has quit [Ping timeout: 260 seconds]
roolo has quit [Quit: Leaving...]
arya_ has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railzForDaiz has quit [Ping timeout: 248 seconds]
sigurding has joined #ruby
drawingthesun has joined #ruby
sigurding has quit [Client Quit]
drawingthesun has quit [Max SendQ exceeded]
<relix>
oh god
<relix>
rails (= 3.2.17) ruby depends on
<relix>
builder (~> 3.0.0) ruby
dc__ has quit [Remote host closed the connection]
<relix>
I'm doomed
sandbags has joined #ruby
<relix>
can't even upgrade the builder gem to 3.2 to support the encoding
drawingthesun has joined #ruby
frank_____ has quit [Quit: Connection closed for inactivity]
<relix>
dependency hell nooo
drawingthesun has quit [Max SendQ exceeded]
drawingthesun has joined #ruby
obs has joined #ruby
<shevy>
why
<shevy>
what is your builder and rails version
warprobot has quit [Remote host closed the connection]
drawingthesun has quit [Max SendQ exceeded]
drawingthesun has joined #ruby
bradleyprice has joined #ruby
warprobot has joined #ruby
aemeredith has joined #ruby
mengu has joined #ruby
nateberkopec has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
Takle has quit [Remote host closed the connection]
karupa is now known as zz_karupa
anarang has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
uresu has quit [Quit: uresu]
havenwood has quit [Ping timeout: 264 seconds]
ephemerian has joined #ruby
Neomex has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
sandbags has quit [Ping timeout: 264 seconds]
ephemerian has left #ruby [#ruby]
yalue has quit [Read error: Connection reset by peer]
descala has joined #ruby
<olivier_bK>
how can insert multiple value in mysql with apostrophe i do that connection.query("INSERT INTO ser (epName, epSurname) VALUES ('#{args[0]}', '#{args[1]}')")
<Mon_Ouie>
Don't substitute strings in a query like that
<Mon_Ouie>
Use prepared queries instead
<olivier_bK>
?
phinfonet has joined #ruby
guinslym has quit [Ping timeout: 264 seconds]
<olivier_bK>
i dont really see what you mean can i have a short example
<Mon_Ouie>
What happens if args[0] == "'; drop table ser %"? ;)
Hobogrammer has joined #ruby
wildroman2 has quit [Remote host closed the connection]
fluve has quit [Remote host closed the connection]
sevenseacat has joined #ruby
ringarin has joined #ruby
Hobogrammer_ has quit [Ping timeout: 248 seconds]
<olivier_bK>
i dont want to dropt the table
_justin has quit [Quit: _justin]
<shevy>
hehehe
<shevy>
you french folks are a lot of fun
<Mon_Ouie>
I know, the point is your code is vulnerable to sql injections
obs has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby
<shevy>
I looked up to you ever since I watched you in the movie "The Holy Grail"
yubrew has joined #ruby
<shevy>
Fetchez la vache!
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
codecodecode123 has joined #ruby
<shevy>
C'est un lapin, un lapin de bois.
codecodecode123 has left #ruby [#ruby]
<shevy>
Un Cadeau!
torstein has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
Takle has joined #ruby
iamcalledrob has joined #ruby
Joulse has quit [Quit: Joulse]
RandyT has joined #ruby
Morkel has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
ValicekB has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<olivier_bK>
shevy ...
<olivier_bK>
:)
yubrew has quit [Ping timeout: 255 seconds]
<olivier_bK>
shevy, la vache lol..
Hobogrammer_ has joined #ruby
<olivier_bK>
shevy, your french is not bad biloute
<olivier_bK>
!
<olivier_bK>
Mon_Ouie, thanks
Lewix has joined #ruby
iswell has joined #ruby
iswell has quit [Remote host closed the connection]
JasmeetQA has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 255 seconds]
warprobot has quit []
iamcalledrob has quit [Ping timeout: 264 seconds]
Hobogrammer_ has quit [Ping timeout: 264 seconds]
obs has joined #ruby
britneywright has joined #ruby
<olivier_bK>
shevy, i going to watch if
RurouniJones has quit [Remote host closed the connection]
Lewix has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
ValicekB has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
britneywright has quit [Client Quit]
mercwithamouth has joined #ruby
craigp has joined #ruby
AntelopeSalad has quit [Read error: Connection reset by peer]
ValicekB has quit []
yfeldblum has joined #ruby
AntelopeSalad has joined #ruby
roolo has joined #ruby
joonty has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
iswell has joined #ruby
jarray52 has left #ruby [#ruby]
moritzs has joined #ruby
mehlah_ has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
ValicekB has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ringarin has quit [Quit: Leaving]
roolo has quit [Quit: Leaving...]
Lewix has quit [Remote host closed the connection]
iswell has quit [Remote host closed the connection]
maximski has joined #ruby
roolo has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jespada has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
phutchins has joined #ruby
AntelopeSalad has quit [Remote host closed the connection]
AntelopeSalad has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
andrewlio has joined #ruby
nateberkopec has joined #ruby
User458764 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
Hanmac1 has joined #ruby
p0sixpscl has joined #ruby
Soda has joined #ruby
<olivier_bK>
shevy, i see the passage get the cow lol...
nateberkopec has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s34n_ has quit [Ping timeout: 252 seconds]
whyy has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
iamjarvo has joined #ruby
havenwood has joined #ruby
mercwithamouth has joined #ruby
yubrew has joined #ruby
uresu has joined #ruby
User458764 is now known as User458764_NotHe
yubrew has quit [Ping timeout: 252 seconds]
frankjpinto has quit [Ping timeout: 264 seconds]
s34n has joined #ruby
zegerjan has joined #ruby
dorei has joined #ruby
User458764_NotHe has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
yfeldblum has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
forkyou has joined #ruby
<forkyou>
Python is better than Ruby!
iamcalledrob has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olivier_bK>
shevy, the entrax castel
<olivier_bK>
lol
ponga has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
JasmeetQA has joined #ruby
<dorei>
forkyou: and COBOL is better than Python ;-)
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
_whitelogger_ has joined #ruby
mroth has joined #ruby
daxroc_ has joined #ruby
drager_ has joined #ruby
dacamp_ has joined #ruby
comma8 has quit [Ping timeout: 252 seconds]
bauruine has quit [Ping timeout: 252 seconds]
Nightmare has quit [Ping timeout: 252 seconds]
nighter has quit [Ping timeout: 252 seconds]
nifty has joined #ruby
gyre007 has joined #ruby
andrewcarter has joined #ruby
cbetta has joined #ruby
adambeynon has joined #ruby
maloik_ has joined #ruby
nighter has joined #ruby
destructure has joined #ruby
Nightmare has joined #ruby
yo61 has joined #ruby
metadave has joined #ruby
jeffreybaird_ has joined #ruby
zzak__ has joined #ruby
haroldwu_ has joined #ruby
pdtpatr11k has joined #ruby
pipework has quit [Ping timeout: 245 seconds]
Nilium has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 264 seconds]
tacos1de has quit [Ping timeout: 264 seconds]
Kovensky has quit [Ping timeout: 245 seconds]
jso has quit [Ping timeout: 245 seconds]
jaredrhine has quit [Ping timeout: 245 seconds]
spacemud has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
seanmarcia has quit [Ping timeout: 245 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
atmosx has quit [Ping timeout: 264 seconds]
nuck has quit [Ping timeout: 245 seconds]
stopbit has quit [Ping timeout: 245 seconds]
kaichanvong has quit [Ping timeout: 245 seconds]
go|dfish has quit [Ping timeout: 245 seconds]
emdub_ has quit [Ping timeout: 245 seconds]
kiki_lamb has quit [Ping timeout: 245 seconds]
isomorphismes has quit [Ping timeout: 245 seconds]
jwang has quit [Ping timeout: 245 seconds]
joast has quit [Ping timeout: 245 seconds]
gregf_ has quit [Ping timeout: 245 seconds]
sarlalian has quit [Ping timeout: 245 seconds]
Pro| has quit [Ping timeout: 245 seconds]
end_guy has quit [Ping timeout: 264 seconds]
exgf has quit [Ping timeout: 264 seconds]
pdtpatr1ck has quit [Ping timeout: 245 seconds]
jameyd has quit [Ping timeout: 245 seconds]
maloik has quit [Ping timeout: 245 seconds]
rblackwe has quit [Ping timeout: 245 seconds]
drager has quit [Ping timeout: 245 seconds]
destruct1re has quit [Ping timeout: 245 seconds]
dacamp has quit [Ping timeout: 245 seconds]
haroldwu has quit [Ping timeout: 245 seconds]
Schmidt has quit [Ping timeout: 245 seconds]
mumblerit has quit [Ping timeout: 245 seconds]
pipecloud is now known as pipework
skmp has joined #ruby
im0b has joined #ruby
alol__ has quit [Changing host]
alol__ has joined #ruby
ramblinpeck has joined #ruby
ramblinpeck has quit [Changing host]
leslie has joined #ruby
mroth has quit [Changing host]
mroth has joined #ruby
daxroc_ has quit [Changing host]
vlad_sta- has joined #ruby
daxroc_ has joined #ruby
sumark has joined #ruby
nifty has quit [Changing host]
nifty has joined #ruby
yo61 has quit [Changing host]
yo61 has joined #ruby
gyre007 has quit [Changing host]
gyre007 has joined #ruby
adambeynon has quit [Changing host]
adambeynon has joined #ruby
cbetta has quit [Changing host]
cbetta has joined #ruby
andrewcarter has joined #ruby
andrewcarter has quit [Changing host]
zzak__ has quit [Changing host]
zzak__ has joined #ruby
jeffreybaird_ has joined #ruby
metadave has joined #ruby
jeffreybaird_ has quit [Changing host]
metadave has quit [Changing host]
skmp has quit [Changing host]
skmp has joined #ruby
im0b has quit [Changing host]
im0b has joined #ruby
Nilium has joined #ruby
Schmidt has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
l3kn has joined #ruby
jameyd has joined #ruby
LBRapid has joined #ruby
DarkFoxDK has joined #ruby
K3dare has joined #ruby
bubbajones has joined #ruby
canton7 has joined #ruby
jso has joined #ruby
Affix has joined #ruby
RoryHughes has joined #ruby
go|dfish has joined #ruby
ndrei has joined #ruby
bauruine has joined #ruby
stopbit has joined #ruby
mumblerit has joined #ruby
sarlalian has joined #ruby
seanmarcia has joined #ruby
ValicekB has joined #ruby
mumblerit is now known as Guest25761
snath has quit [Ping timeout: 248 seconds]
Kovensky has joined #ruby
nisstyre has joined #ruby
jwang has joined #ruby
nuck has joined #ruby
kaichanvong has joined #ruby
spacemud has joined #ruby
Norrin has joined #ruby
ggherdov has joined #ruby
xcv has joined #ruby
chipotle has joined #ruby
comma8 has joined #ruby
poimen has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dwarf has joined #ruby
Channel6 has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
vifino has joined #ruby
iamjarvo has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
vifino has quit [Remote host closed the connection]
vifino has joined #ruby
wildroman2 has quit [Remote host closed the connection]
arya__ has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jokke has quit [Ping timeout: 260 seconds]
jokke has joined #ruby
himsin has quit [Quit: himsin]
syedasad has joined #ruby
syedasad has left #ruby [#ruby]
RandyT has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
wildroman2 has joined #ruby
vadzimt has joined #ruby
rdark has joined #ruby
Takle has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
mconnolly has quit [Quit: mconnolly]
RandyT has joined #ruby
mconnolly has joined #ruby
mconnolly has quit [Client Quit]
mconnolly has joined #ruby
starkhalo has joined #ruby
bmurt has joined #ruby
DivineEntity has quit [Quit: leaving]
camilasan has quit [Ping timeout: 240 seconds]
gruz0[russia] has joined #ruby
mconnolly has quit [Client Quit]
mconnolly has joined #ruby
doritostains has joined #ruby
techsethi has quit [Quit: techsethi]
Sammael has joined #ruby
ndrei has joined #ruby
doritostains has quit [Read error: Connection reset by peer]
doritostains has joined #ruby
dblessing has joined #ruby
iamcalledrob has joined #ruby
Takle has joined #ruby
qwyeth has joined #ruby
yubrew has joined #ruby
stylus has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
mconnolly has quit [Quit: mconnolly]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mconnolly has joined #ruby
mengu has quit [Remote host closed the connection]
Zenigor has joined #ruby
joast has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
lw has joined #ruby
snath has joined #ruby
fwaokda has quit [Ping timeout: 264 seconds]
philevans_ has joined #ruby
binaryhat has quit [Ping timeout: 264 seconds]
<philevans_>
I am using Ruby 2.1.2 in Linux. I am writing 1MB of data at a time to a file using File.write. It keeps using up all of the memory. I have narrowed it down to the File.write using up the memory. The memory used seems to tally with the amount of data being written. Any ideas?
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
craigp has quit [Remote host closed the connection]
<bmurt>
philevans_: all of the memory?
<bmurt>
what do you mean
yfeldblum has joined #ruby
<philevans_>
bmurt: Well it uses up about 6-8GB and then craps out with an out of memory exception
<philevans_>
bmurt: It's a 128GB machine with nothing else running on it
<bmurt>
are you closing after each write?
<philevans_>
bmurt: No
<philevans_>
I do a seek before every write
<philevans_>
but I've confirmed that does not affect memory
kirun has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
kaspergrubbe has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
doritostains has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
doritostains has joined #ruby
whowantstolivefo has quit [Ping timeout: 255 seconds]
<philevans_>
if you make an empty file and run that with "-f <filename>" it will create a 16GB file but also fills up memory
<philevans_>
used about 12GB RAM on mine
mrmargolis has joined #ruby
<philevans_>
although -buffers/cache was OK - but it still eventually craps out with too much
Takle has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Quintus_q has joined #ruby
devdazed has joined #ruby
failshell has joined #ruby
nateberkopec has joined #ruby
sevenseacat has quit [Remote host closed the connection]
workmad3 has joined #ruby
bradleyprice has quit [Ping timeout: 272 seconds]
SilverKey has joined #ruby
haroldwu_ is now known as haroldwu
haroldwu has quit [Changing host]
haroldwu has joined #ruby
CorpusCallosum has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
alem0lars has joined #ruby
freerobby has joined #ruby
Takle has quit [Remote host closed the connection]
Quintus_q has quit [Quit: WeeChat 0.4.3]
eka has joined #ruby
SBoolean has joined #ruby
eka has quit [Client Quit]
atmosx has joined #ruby
Takle has joined #ruby
<shevy>
wow
<shevy>
12 gig
<shevy>
your machine is on steroids philevans_
volk_ has joined #ruby
<Edelwin>
:')
andrewhl has joined #ruby
_justin has quit [Quit: _justin]
zkay11 has joined #ruby
duggiefresh has joined #ruby
guinslym has joined #ruby
whyy has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 272 seconds]
<bmurt>
shevy: he gets paid the big bucks
mattstratton has joined #ruby
Takle has quit [Remote host closed the connection]
dacamp_ is now known as dacamp
britneywright has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
yeah
Joulse has quit [Quit: Joulse]
<shevy>
damn those ferrari drivers
britneywright has joined #ruby
iamjarvo has joined #ruby
tus has joined #ruby
yubrew has joined #ruby
lemur has joined #ruby
<shevy>
I'm gonna replace all my shell scripts with ruby scripts
Joulse has joined #ruby
vyorkin has quit [Ping timeout: 248 seconds]
kevind has joined #ruby
orlyyy has joined #ruby
ntz has joined #ruby
<ntz>
hello
GeraldoRamos has joined #ruby
<orlyyy>
hi
yubrew has quit [Ping timeout: 264 seconds]
<orlyyy>
any web application developers here?
mikesplain has joined #ruby
SilverKey has quit [Quit: Halted.]
<ntz>
I can't programme in ruby (yet) but now I need to write do some analysis .. can you please show me a ruby equivalent of this perl's >>perl -e 'print join("\n", stat("/etc/hosts"))'<< one-liner ?
<ntz>
s/do some/some/
maximski has quit []
<wasamasa>
orlyyy: think about it, how unlikely is it that there is not a single one web application developer in here
<orlyyy>
I need someone who is willing to do some freelance work
CorpusCallosum has joined #ruby
<orlyyy>
i have a small app/website that I need to be looked at
theharshest has joined #ruby
_justin has joined #ruby
GeraldoRamos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
treehug88 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
RaCx has joined #ruby
acconrad has quit [Quit: acconrad]
yfeldblum has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
<Mattias>
is Net::FTPTLS gone in ruby 2.0.0? What could I use instead for FTP with TLS?
nanodano has quit [Quit: Leaving.]
CingulateCortex has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
SilverKey has joined #ruby
<workmad3>
Mattias: looks like it went in 1.9.3
doritostains has quit [Quit: Leaving...]
<wasamasa>
ntz: you can do something like `ruby -e 'puts File.stat("/etc/hosts").inspect'`
CorpusCallosum has quit [Read error: Connection reset by peer]
<wasamasa>
ntz: which isn't an exact equivalent of the perl oneliner
<toretore>
philevans_: works fine here. writes the 16gb without problems with 4gb ram
krz has joined #ruby
yubrew has joined #ruby
alem0lars has quit [Quit: Going AFK...]
tagrudev has quit [Quit: Me = Awesome]
tus has quit [Remote host closed the connection]
<ntz>
wasamasa: okay, thanks
yfeldblum has quit [Ping timeout: 252 seconds]
<ntz>
wasamasa: lemme test your command
tobago has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<ntz>
wasamasa: okay, it's almost what i'd wanted :) however I'd prefer c-like stats without any postprocessing
britneywright has quit [Ping timeout: 272 seconds]
<ntz>
gregf__: pff .. nice, your output is great .. may I request only changing that postprocessing of date strings to human readable format to the form as it is raw read from the file ?
<wasamasa>
ntz: it's not postprocessed
craigp has joined #ruby
britneywright has joined #ruby
<wasamasa>
at least not voluntary :P
<ntz>
it must be .. C/perl returns just what ``perl -e 'print join("\n", stat("/etc/hosts"))''' prints out
Zenigor has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 264 seconds]
jaimef has quit [Excess Flood]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has joined #ruby
SBoolean has quit [Ping timeout: 240 seconds]
nasj has quit []
jaimef has joined #ruby
RaCx has joined #ruby
<olivier_bK>
how i can gsub this ’ because when i try with ( ' ` ) or another one its 's but with this thing i get an error
<Mattias>
workmad3: Yeah, looks like it. Couldn't find anything else which could also ignore certs. Python seems to have ftp with tls support built-in so I went with that and it works now :)
<olivier_bK>
.gsub( / [ ' ] / , " ") it's okai
<workmad3>
Mattias: don't ignore certs
_justin has joined #ruby
<ericwood>
I always ignore certs for one-off scripts
claymore has quit [Ping timeout: 248 seconds]
<ericwood>
open-uri ignores certs by default iirc
<Mattias>
workmad3: it's a self-signed cert, and I only download from my own ftp server.
_justin has quit [Remote host closed the connection]
<workmad3>
Mattias: so install the cert into the local cert repository
rayners has joined #ruby
aganov has quit [Remote host closed the connection]
<ericwood>
Mattias: do it, workmad3 will MitM you D:
<workmad3>
ericwood: ^^ :D
<ericwood>
we take teaching people a lesson very seriously here
<Mattias>
workmad3: Don't you need a CA which also costs?
<ericwood>
we will destroy you
<workmad3>
Mattias: no
ntz has left #ruby [#ruby]
<Mattias>
So there is something I don't know yet :) Tell me more
<ericwood>
Mattias: if you add your self-signed certs to the certs repo on your machine you're fine
CingulateCortex has joined #ruby
<ericwood>
you have to say "HEY I trust this one"
<Mattias>
Ah, I fully understand now
<Mattias>
Of course I could do that :) kind of like how /etc/hosts works for domains
<ericwood>
if you're on OS X you can do that via the keychain app
<ericwood>
well
<ericwood>
eh I forget ignore me
volk_ has quit [Quit: volk_]
<workmad3>
Mattias: the only thing 'special' about a CA is that they have root certificates that are already in most certificate bundles ;)
oo_ has joined #ruby
volk_ has joined #ruby
<workmad3>
Mattias: what you pay for with a commercial CA is then mostly insurance ;)
CingulateCortex is now known as CorpusCallosum
SBoolean has joined #ruby
Guest25761 is now known as mumblerit
<Mattias>
Still, couldn't find a working ftp tls lib for ruby 2 :)
<workmad3>
Mattias: could be they removed it in favour of people just using sftp ;)
<Mattias>
Might be ^.^
<ericwood>
sftp plz
<workmad3>
Mattias: any reason not to use sftp on your own server?
<Mattias>
I'm 50% sftp
<Mattias>
sftp I don't know how to make virtual servers on
<Mattias>
Some servers I have uses only sftp
<Mattias>
virtual users on***
<ericwood>
tbh all servers should only use sftp ever
<shevy>
can we use ruby + sftp?
<Mattias>
Tell me how to create a virtual user in sftp and I'll switch :)
<ericwood>
you can do whatever you want
<workmad3>
Mattias: pam
Zenigor has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
<Mattias>
pam can do that? O.o *investigates*
thesheff17 has joined #ruby
alexherbo2 has joined #ruby
obs has quit [Ping timeout: 255 seconds]
<workmad3>
Mattias: I don't know exactly *how*... but sftp is over SSH, SSH uses (or can use) PAM, and PAM can do pretty much anything you want with user management ;)
<upsell5>
ok map is more to modify each item correct?
<ericwood>
yes
nanoyak has joined #ruby
<ericwood>
tl;dr ruby
pontiki has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
synfin has joined #ruby
roolo has quit [Quit: Leaving...]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
<synfin>
Noob question, rubygems.org frontpage says '78145 gems cut since....', but when you browse 'all gems', there are 4951 gems, which I presume is the real total. So what does 'gems cut' mean for Ruby?
workmad3 has quit [Ping timeout: 252 seconds]
bricker`work has quit [Ping timeout: 240 seconds]
axisys has quit [Quit: leaving]
dwts has quit [Ping timeout: 252 seconds]
<havenn>
synfin: 4951 gems begin with the letter 'a'
<havenn>
synfin: "all gems starting with A"
<synfin>
havenn: lol, thanks :)
<synfin>
I figured it was easy
bradhe has quit [Remote host closed the connection]
<havenn>
:)
User4587_ is now known as User458764_NotHe
dwts has joined #ruby
bricker`work has joined #ruby
axisys has joined #ruby
Zesty has joined #ruby
gigetoo has quit [Remote host closed the connection]
axisys has quit [Changing host]
axisys has joined #ruby
klaut has joined #ruby
gigetoo has joined #ruby
User458764 has joined #ruby
cocotton has quit [Quit: Leaving...]
Jon` has quit [Ping timeout: 240 seconds]
Zebroid has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
testcore has joined #ruby
<Sou|cutter>
I'm not sure what it counts in there either - e.g. yanked gems?
<Sou|cutter>
or gems for which all versions are yanked
User458764_NotHe has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
disorder20 has joined #ruby
dapz has joined #ruby
sigurding has joined #ruby
maletor has joined #ruby
<maletor>
Is there something like %w() that returns ints instead of strings?
<maletor>
Is there something like %w() that returns ints instead of strings?
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
xcv has quit [Remote host closed the connection]
aspires has joined #ruby
mikepack has quit [Remote host closed the connection]
fresham has joined #ruby
timfoo has quit [Ping timeout: 255 seconds]
uffs has quit [Ping timeout: 264 seconds]
sailias has quit [Quit: Leaving.]
rrva has joined #ruby
jxf has quit [Ping timeout: 256 seconds]
<rrva>
oj json parser cannot parse form stdin pipe, I get ESPIPE
yetanotherdave has joined #ruby
bluenemo has joined #ruby
<rrva>
yajl can... what could be wrong?
<eam>
rrva: ESPIPE means it's trying to seek()
bradhe has joined #ruby
<rrva>
ah, I see fixes on github
dc_ has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 260 seconds]
pontiki has joined #ruby
alvaro_o has joined #ruby
ereslibre_laptop has quit [Quit: No Ping reply in 180 seconds.]
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ereslibre has joined #ruby
ereslibre has joined #ruby
icarus_ has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
M-Technic has joined #ruby
shredding has quit [Quit: shredding]
spider-mario has quit [Read error: Connection reset by peer]
stytown has joined #ruby
brunops has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
aspires has quit []
pontiki has quit [Ping timeout: 252 seconds]
shredding has joined #ruby
nanoyak has joined #ruby
alem0lars has quit [Quit: Going AFK...]
m8 has joined #ruby
pontiki has joined #ruby
kfs has quit [Quit: Connection closed for inactivity]
jerius has quit []
timfoo has joined #ruby
terrell_t has joined #ruby
aspires has joined #ruby
jerius has joined #ruby
mike24 has joined #ruby
jprovazn has quit [Quit: Odcházím]
Eiam has joined #ruby
benzrf is now known as benzrf|offline
aspires has quit [Client Quit]
aspires has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has quit [Ping timeout: 260 seconds]
bigkevmcd has quit [Ping timeout: 252 seconds]
eka has joined #ruby
Zebroid has joined #ruby
benzrf|offline is now known as benzrf
cearls has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 260 seconds]
cearls has joined #ruby
sailias has joined #ruby
pontiki has joined #ruby
olivier_bK has joined #ruby
maximski has joined #ruby
Soda has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 255 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
nathamanath has joined #ruby
JBreit has joined #ruby
phinfonet has quit []
wildroman2 has joined #ruby
maximski has quit []
carraroj has quit [Quit: Konversation terminated!]
subraminion_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has quit [Client Quit]
x1337807x has joined #ruby
Notte has joined #ruby
failshe__ has quit [Remote host closed the connection]
subraminion__ has joined #ruby
Guest27310 has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
subraminion has quit [Read error: Connection reset by peer]
failshell has joined #ruby
bradhe has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
charliesome has joined #ruby
xcv has joined #ruby
mikepack has joined #ruby
wallerdev_ has joined #ruby
subraminion_ has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
ericwood has quit [Quit: Changing server]
x1337807x has quit [Ping timeout: 255 seconds]
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev_ is now known as wallerdev
mikeg has joined #ruby
tjr9898 has joined #ruby
terrell_t has quit [Remote host closed the connection]
treehug88 has joined #ruby
lolmaus_ has joined #ruby
terrellt has joined #ruby
subraminion___ has joined #ruby
subraminion___ has quit [Remote host closed the connection]
Morkel has joined #ruby
RedPunch has quit [Remote host closed the connection]
sdegutis has joined #ruby
jfran_ has joined #ruby
jfran_ has quit [Client Quit]
<sdegutis>
What kind of algorithm would you use to find all items of an array that match a predicate and keep the immediately surrounding items (if present)?
Vivekananda has joined #ruby
aspires has quit []
subraminion___ has joined #ruby
subraminion__ has quit [Ping timeout: 272 seconds]
<sdegutis>
For example, with an array of all numbers, if you wanted those divisible by 10 or their immediate neighbor, you'd get -1, 0, 1, 9, 10, 11, 19, 20, 21, etc
ericwood has joined #ruby
lolmaus has quit [Ping timeout: 255 seconds]
<sdegutis>
I almost want to do something with take_while or drop_while.. I dunno
xcv has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
jfran has quit [Ping timeout: 272 seconds]
banister has joined #ruby
<godd2>
sdegutis there's no built in method for that, but you can find a member, get its index, and then get the members of the array at index+1 and index-1
<sdegutis>
sure sure, thanks.
<apeiros>
sdegutis: .each_cons(3).select { …
<sdegutis>
apeiros: <3
tjr9898 has quit [Remote host closed the connection]
wallerdev_ has joined #ruby
<sdegutis>
apeiros: Your solution is so beautiful, it's unfortunate that I can't use it directly.
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sdegutis>
I had forgotten that it could be a range, not just one element.
<sdegutis>
For example, if "9 and 10" matched my algorithm, I would need 8 and 11 too.
vyorkin has joined #ruby
<godd2>
>> arrays = [];(-1..41).each_cons(3) {|a| arrays << a if a[1]%10==0 };p arrays.flatten
<goganchic>
dangerousdave add this line at the beginning of your script: # -*- encoding : utf-8 -*-
<dangerousdave>
goganchic, trying
Wolland has joined #ruby
<goganchic>
dangerousdave I think you have ruby 2.0 or ruby 2.1 installed locally and ruby 1.9.3 on aws
fresham has quit [Quit: fresham]
Morkel has quit [Quit: Morkel]
<dangerousdave>
goganchic, didn't work
<dangerousdave>
goganchic, yes, thats spot on! how did you know?
<goganchic>
dangerousdave, you you passed exactly the same string as I wrote? It should be the first line of your script and it should start with # char
<dangerousdave>
goganchic
<goganchic>
if it does not work, try this one: # encoding: utf-8
shredding has quit [Quit: shredding]
<dangerousdave>
goganchic, i did, i will try again
nanoyak has quit [Quit: Computer has gone to sleep.]
brunops has quit [Ping timeout: 256 seconds]
nanoyak has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceyEC has joined #ruby
bradhe has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
maoko has joined #ruby
brunops has joined #ruby
nanoyak has quit [Client Quit]
wallerdev has joined #ruby
olivier_bK has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
lemur has joined #ruby
nanoyak has joined #ruby
shredding has quit [Quit: shredding]
lemur has quit [Remote host closed the connection]
klue has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brunops has quit [Changing host]
brunops has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
goganchic has quit []
bradhe has quit [Remote host closed the connection]
dontwork has joined #ruby
Asher has quit [Quit: Leaving.]
fjfish has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
mikeg has quit [Remote host closed the connection]
stytown has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 260 seconds]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
charliesome has joined #ruby
mudtose has quit [Ping timeout: 246 seconds]
andrewjanssen has joined #ruby
brunops has quit [Ping timeout: 255 seconds]
stytown has quit [Client Quit]
AntelopeSalad has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
dscrd has quit [Remote host closed the connection]
bradhe has joined #ruby
brandon has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Ankhers has quit [Remote host closed the connection]
jfran has joined #ruby
brunops has joined #ruby
CrAzOiD has joined #ruby
StephenA1 has joined #ruby
mary5030 has joined #ruby
decoponio has quit [Quit: Leaving...]
olivier_bK has joined #ruby
claymore has quit [Ping timeout: 248 seconds]
mike24 has quit [Ping timeout: 256 seconds]
gemmy_ has left #ruby [#ruby]
bdnelson has joined #ruby
isthisreallife has joined #ruby
shredding has joined #ruby
isthisreallife has left #ruby [#ruby]
Fire-Dragon-DoL has quit [Quit: Leaving.]
SJR is now known as SJr
aspires has quit []
ldnunes has quit [Remote host closed the connection]
aspires has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
testcore has quit [Remote host closed the connection]
wildroman2 has joined #ruby
djbkd has quit [Remote host closed the connection]
xcv has joined #ruby
mconnolly has quit [Quit: mconnolly]
ldnunes has joined #ruby
djbkd has joined #ruby
lw has quit [Quit: s]
tyfighter has joined #ruby
Zenigor has quit [Remote host closed the connection]
IceyEC has quit [Quit: iceyec]
mattstratton has joined #ruby
IceyEC has joined #ruby
cearls has quit [Remote host closed the connection]
yfeldblum has joined #ruby
cearls has joined #ruby
jfran_ has joined #ruby
claymore has joined #ruby
bradhe has quit [Remote host closed the connection]
tcstar has joined #ruby
bmurt has quit []
mikeg has joined #ruby
paulfm has quit []
jfran has quit [Ping timeout: 255 seconds]
shredding has quit [Quit: shredding]
bradhe has joined #ruby
schaerli has quit [Remote host closed the connection]
tcstar has quit [Remote host closed the connection]
jezen has joined #ruby
cearls has quit [Ping timeout: 240 seconds]
jezen is now known as jgt
theharshest has joined #ruby
StephenA1 has quit [Quit: StephenA1]
dapz has joined #ruby
SBoolean has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 264 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
lemur has joined #ruby
djbkd has quit [Remote host closed the connection]
IceyEC has quit [Quit: iceyec]
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
brasten has quit [Ping timeout: 256 seconds]
brasten_ has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
jgt has quit []
volk_ has quit [Quit: volk_]
blackmesa has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
mikeg has quit [Remote host closed the connection]
andrewjanssen has quit [Ping timeout: 245 seconds]
foo-bar- has quit [Remote host closed the connection]
duper has joined #ruby
grieg has joined #ruby
ramfjord has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit []
bradhe has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
cearls has joined #ruby
claymore has quit [Quit: Leaving]
endash has quit [Quit: endash]
wildroman2 has quit [Remote host closed the connection]
endash has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
kireevco has left #ruby [#ruby]
endash has quit [Client Quit]
tcstar has joined #ruby
NinoScript has joined #ruby
nowthatsamatt has joined #ruby
ldnunes has quit [Quit: Leaving]
bluOxigen has quit [Ping timeout: 248 seconds]
stytown has joined #ruby
treehug88 has joined #ruby
ekinmur has joined #ruby
edgarjs is now known as edgarjs_afk
linoge has joined #ruby
endash has joined #ruby
lxsameer has joined #ruby
andrewhl has quit [Quit: andrewhl]
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Zebroid has joined #ruby
edgarjs_afk is now known as edgarjs
x1337807x has joined #ruby
endash has quit [Client Quit]
linoge has quit [Client Quit]
edgarjs is now known as edgarjs_afk
<fwaokda>
if im declaring an object in my ruby script should i name it "myobject" or "@myobject" to access it within a method defined later in the script file?
freerobby has quit [Quit: Leaving.]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m8 has quit [Quit: Sto andando via]
olivier_bK has quit [Ping timeout: 240 seconds]
jobewan has quit [Ping timeout: 256 seconds]
mikespla_ has quit [Ping timeout: 245 seconds]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
failshel_ has joined #ruby
alexju has quit [Remote host closed the connection]
jfran_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
momomomomo has quit [Quit: momomomomo]
snath has quit [Ping timeout: 264 seconds]
edgarjs_afk is now known as edgarjs
mary5030 has quit [Remote host closed the connection]
djbkd has joined #ruby
whyy has joined #ruby
<toretore>
fwaokda: you should pass the object when running the method
failshell has quit [Ping timeout: 248 seconds]
<fwaokda>
toretore, k thanks!
failshel_ has quit [Ping timeout: 248 seconds]
moritzs has joined #ruby
ohwhoa has joined #ruby
djbkd has quit [Remote host closed the connection]
frankjpinto__ has quit [Ping timeout: 264 seconds]
<havenwood>
jimbow: also, the variable is out of scope anyways
<wallerdev>
you gotta run the method for it to do anything
<wallerdev>
youre just defining a block of code to run
frankjpinto has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
<jimbow>
don't i call it in the if statement?
<havenwood>
jimbow: where do you see `counter` in the if statement?
jdj_dk has joined #ruby
<jimbow>
oh that's how it works
<havenwood>
jimbow: don't assign the local variable `chars` at all
<jimbow>
i thought that since chars is inside counter it would be called
<havenwood>
jimbow: no
bradhe has joined #ruby
<havenwood>
jimbow: that isn't how it works :P
nateberkopec has quit [Quit: Leaving...]
<jimbow>
it would be nice if that's how it worked
<havenwood>
nuh uh
<jimbow>
now i feel like i'm completely incompetent
<jimbow>
i thought i was getting somewhere until now :(
<wallerdev>
yeah just think of how cool thatd be, you have some method that calculates pi for example, then you just access the pi value and the program figures out what method to run to get you the answer
<ericwood>
he's alive and well, but his persona is dead
dontwork has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: Leaving]
<havenwood>
i'm not sure the persona is dead so much as he isn't personally personifying it any longer
Vivekananda has quit [Ping timeout: 264 seconds]
<havenwood>
though the printer spool stuff last year was a re-awakening
alem0lars has quit [Quit: alem0lars]
<pontiki>
the persona is a legend, and legends don't die
<havenwood>
or closure, depending on how you look at it
<havenwood>
pontiki: i feel like we should fight zombies now
stytown has quit [Quit: stytown]
jfran_ has quit [Client Quit]
<havenwood>
klabnik argues it's a mantle to be picked up
<pontiki>
it could be
<havenwood>
who is the next _why??
<pontiki>
i like thinking of it as a closure as well :)
<jimbow>
i'm going to be the next why!
mehlah has joined #ruby
<ericwood>
there shouldn't be a next _why, but we should have people living some of his teachings
<havenwood>
jimbow: then shhhhh, cause the `_` in _why is for anonymous :P
<pontiki>
one does not simple call the closure _why!
jespada has joined #ruby
<zenspider_>
wallerdev: people weren't cool to _why?
AntelopeSalad has quit [Remote host closed the connection]
<ericwood>
at least we as a community still have friday hugs
<jimbow>
why and i seem like we're almost identical…. but don't worry havenwood… i haven't learned ruby yet
<wallerdev>
well he left when people posted his identity and personal info about him on pastebin and various other places
AntelopeSalad has joined #ruby
<jimbow>
once i do i shall have an _ in my name and change it to something else so no one knows it's me
<wallerdev>
most people liked him i imagine
<wallerdev>
the community was upset he left and took down all his stuff
<jimbow>
i can completely relate to why, i think we're nearly identical
nateberkopec has quit [Quit: Leaving...]
<jimbow>
we like the same stuff
dontwork_ has joined #ruby
<zenspider_>
oh, I thought it was mostly precipitated by tenderlove poopooing on hpricot w/ nokogiri :D
<pontiki>
oh, stop it, now you're acting like an ass
<wallerdev>
hah
<ericwood>
poor hpricot :(
<ericwood>
and camping
<zenspider_>
to be fair, hpricot was a horrible mess and was really incompatible
<ericwood>
...as was most _why software
<havenwood>
i blame Dostoyevsky
<ericwood>
but in a loveable way
<zenspider_>
yeah
<wallerdev>
i really enjo¥ed his stories about teaching kids to code
<zenspider_>
it needed competition. esp given that he really wasn't maintaining it or taking patches (I tried to speed it up ~40% and he just gave me the most cryptic response back)
<wallerdev>
there was one about like a music program where people could write code to make notes play out of the computer and the kids really enjoyed that and did some cool stuff
awkwords has quit [Ping timeout: 252 seconds]
divbell has left #ruby [#ruby]
Connie has quit [Quit: Connie]
<ericwood>
hackety hack has all of that stuff
<ericwood>
klabnik took over that project, iirc it and shoes were migrated over to JRuby recently
<theharshest>
I have two classes defined under same module but in different files. So I have two files with that start with same module same XYZ, and one has definition of class ABC1 and other has definition of class ABC2, but when I try to create an object of class ABC2 in ABC1, it gives an error that uninitialized constant ABC2.
andrewjanssen has joined #ruby
buub has quit [Remote host closed the connection]
<jimbow>
theharshest: code?
Takle has quit [Remote host closed the connection]
<dorei>
jimbow: it's an implemantion of automaton110 in pure css3/html, it's been proved that automaon 110 is turing complete
<jimbow>
i have no idea what that means but i do know that turing complete is the idea where computers
<havenwood>
theharshest: does the ABC1 code require the code where ABC2 is defined?
<theharshest>
jimbow: Let me share it
<theharshest>
havenwood: yes ABC1 need an object of ABC2
<theharshest>
jimbow: can't share the code, sorry. I'm not permitted to do that. you can ask me if you need to diagnose the issue.
<jimbow>
wow really?
<jimbow>
why is code some sacred commodity?
<havenwood>
theharshest: so you `require` the necessary file then?
<jimbow>
can't everything be reversed engineered anyways?
<jimbow>
i don't think there isn't anything a debugger can't handle
<theharshest>
havenwood: I would try that. I was under an impression that if classes are under same module, they know about each other.
xcv has quit [Remote host closed the connection]
<theharshest>
havenwood: thanks
<havenwood>
theharshest: nope, no auto-require
vyorkin has joined #ruby
enebo has quit [Quit: enebo]
Deele has quit [Ping timeout: 255 seconds]
whyy has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
nateberkopec has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
octarine_ is now known as octarine
jespada has quit [Quit: Leaving]
<theharshest>
havenwood: it doesn't work, it says - cannot load such file -- ./abc2.rb
yeltzooo4 is now known as yeltzooo
<havenwood>
theharshest: provide the relative path, consider using `require_relative` instead of `require` unless you have $LOAD_PATH configured
simoz1111115 has joined #ruby
<theharshest>
havenwood: worked, thanks! :)
whyy has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
peret has quit []
simoz1111116 has joined #ruby
Aryasam_ has joined #ruby
kireevco has left #ruby [#ruby]
brunops has joined #ruby
havenwood has quit []
<theharshest>
jimbow: I'm absolutely new to ruby and working for a company. To provide the code, I would need to REDACT a lot of stuff before sharing it with you. If it would have been my personal code I would love to share it and I agree with all you said :)
dontwork_ has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 248 seconds]
subraminion_ has joined #ruby
simoz1111115 has quit [Ping timeout: 245 seconds]
<jimbow>
i don't want to come across as a boaster, but i've used a debugger before and cracked software, i was also able to understand some statements they used to create a few things in code
jdj_dk has quit [Quit: Leaving...]
subraminion_ has quit [Client Quit]
<jimbow>
but programming does not equal cracking
<jimbow>
and if i can do it so can you :)
nateberkopec has quit [Ping timeout: 240 seconds]
disorder20 has quit [Quit: Konversation terminated!]
terrell_t has joined #ruby
subraminion has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
nathan1 has quit [Quit: WeeChat 0.4.2]
dapz has joined #ruby
bradhe has joined #ruby
absolutezeroff has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ciao.]
jimbow has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 264 seconds]
LadyRainicorn has quit [Ping timeout: 260 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
NinoScript has quit [Read error: Connection reset by peer]
andrewjanssen has joined #ruby
NinoScript has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 264 seconds]
eladmeidar has joined #ruby
<eladmeidar>
Hi kids.
<pontiki>
hi dad
<eladmeidar>
Top of the morning for ya!
mikepack_ has joined #ruby
<apeiros>
hi mom
<toretore>
hi uncle elad
dwts has quit [Ping timeout: 252 seconds]
<eladmeidar>
you!
<eladmeidar>
i actually missed you.
xargoon has quit [Ping timeout: 240 seconds]
<zenspider_>
theharshest: you can strip it down to a minimal repro that doesn't show any IP. generally working through that will often answer your question
nateberkopec has quit [Ping timeout: 240 seconds]
dwts has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
<theharshest>
zenspider_: sure
<toretore>
eladmeidar: missed you too buddy
absolutezeroff has joined #ruby
NinoScript has joined #ruby
<toretore>
u no online :/
<zenspider_>
sounds like a simple require problem to me
<eladmeidar>
toretore: m iz. just across the big blue thing.
cpruitt has quit [Quit: cpruitt]
peret has joined #ruby
<toretore>
what blue thing?
mikepack has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
<pontiki>
i'm guessing a body of water
mikepack_ has quit [Ping timeout: 240 seconds]
<toretore>
oh
Wolland has joined #ruby
apeiros has joined #ruby
<toretore>
mediterreanean, which separates camel land from civilization
<eladmeidar>
exactly that.
<eladmeidar>
i haven't seen a camel in a while actually
NinoScript has quit [Read error: Connection reset by peer]
<eladmeidar>
where are those pointy backed bastards?
<toretore>
so how do you get to work?
<eladmeidar>
pfft
<eladmeidar>
a magic carpet maybe?
<eladmeidar>
you know nothing tore tore.
x1337807x has joined #ruby
NinoScript has joined #ruby
shevy has joined #ruby
<toretore>
at least im not a wildling
<pontiki>
oo, GoT references
<toretore>
i still remember that night in the cave fondly, eladmeidar
crocket has joined #ruby
<crocket>
hi
<eladmeidar>
oh.. the night in the cave... does your cave still burn?
<eladmeidar>
(k)
<eladmeidar>
crocket: hello!
<crocket>
I want to manage app config in a SQLite3 database that is managed by database versioning tool.
<crocket>
I think active record or standalone-migration would do the job.
<crocket>
How do you think
<crocket>
How do you think?
<toretore>
don't need ar for that
<crocket>
I need data manipulation and data definition in database migration scripts.
v0n has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
<toretore>
why are you making it so complicated?
<eladmeidar>
AR seems to be an over kill.
<crocket>
For data manipulation, I may need something beyond AR.
<eladmeidar>
^^
<crocket>
toretore, Tell me a better solution, then.
<eladmeidar>
go ahead toretore, do your thing
<crocket>
toretore, A set of environment variables will lead to spaghetti configuration.
<toretore>
i don't know anything about your problem, that's why i'm asking
JoshGlzBrk has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
<ramfjord>
crocket: can you just use the sqlite3 driver directly without activerecord?
sepp2k has quit [Read error: Connection reset by peer]
lolmaus has quit [Ping timeout: 240 seconds]
<crocket>
toretore, I want people to know the exact set of configurations, and it's hard to manage if I have to notify environment variables via documentation.
T_Hunt has joined #ruby
<crocket>
ramfjord, sqlite3 doesn't provide database migration.
<crocket>
Plus, its API is crude at best.
NinoScript has quit [Read error: Connection reset by peer]
<crocket>
What about standalone-migration?
<toretore>
crocket: what makes your program different from all the others that are doing fine with env vars/whatever?
<ramfjord>
or yaml config files
NinoScript has joined #ruby
<ramfjord>
if you're loading it with migrations, you'll still have to keep passwords in version control
<ramfjord>
but I see no problem with activerecord
<Eiam>
can I coerce a type in a block into something else?
<crocket>
ramfjord, I just don't want people to commit changes to config values.
<toretore>
Eiam: elaborate
<crocket>
People keep commiting little changes to config values, and that's annoying.
<eladmeidar>
Eiam: a type in a block?
<Eiam>
e.g. if i have blah = {"hello" => ["stuff"], "world"=>["stuff"]} and i want to blah.inject({}) {|sum,val|} I want Val to be the hash, not an array of it broken down
<eladmeidar>
crocket: what would stop them from changing the db.
<crocket>
eladmeidar, Changing the db requires changes to config keys.
<ramfjord>
db perms
<Eiam>
as it stands, Val is an array of [hello,["stuff"]]
narcan has joined #ruby
<toretore>
Eiam: you probably want |sum, (key, value)|
<crocket>
eladmeidar, They won't accidentally commit changes to config values.
* eladmeidar
whispers "ask for ruby version..."
<crocket>
ramfjord, What about standalone-migration?
<Eiam>
hmm i guess that works yeah
<Eiam>
that'll do
<eladmeidar>
crocket: why are the config values, assuming they are currently in a file - are even in git?
<toretore>
crocket: why is the config in the repo in the first place?
<Eiam>
i can just reconstruct the object myself
<Eiam>
thanks
<toretore>
damnit elad
<eladmeidar>
WHAT?
<crocket>
toretore, I just want to specify config schema in the repo.
<toretore>
you asked my question before me
dik_dak has joined #ruby
<toretore>
crocket: what does that mean?
<crocket>
toretore, My coworkers have put config in the repo because it's fast and cheap.