apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
<matti> joshu: 'corse its deep ;p
<joshu> matti haha
jimg has joined #ruby
<matti> But +1 for latin use.
<matti> Not many people do it nowadays.
<matti> Ehm.
<matti> I am somewhat bored.
<joshu> I can probably change that
<joshu> +1 for mintiest "Unfortunately Rspec doesn’t even add lib to your path for you. You can fix this with:"
Trynemjoel has quit [Quit: Trynemjoel]
<joshu> I have a question about logger.
jimg has quit [Ping timeout: 248 seconds]
<matti> Yesss?
<matti> ;p
<matti> What about it?
<joshu> In my bin/ffm I have this courtesy of apeiros_
TheFuzzball has quit [Ping timeout: 264 seconds]
<joshu> FFM.config do |ffm|
<joshu> ffm.logger = Logger.new('log/ffm.log', 'daily')
<joshu> end
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<matti> Oh, handling rotation with logger.
<joshu> Now my question is where to require 'logger'. I've tried in bin/ffm or lib/ffm.rb and it works in both places.
<joshu> matti is that bad?
<apeiros_> matti: during our 5y of latin, we got one little booklet, which contained 2 pages with famous quotes, and our latin teacher was like: "and if you don't remember ANYTHING from these 5y, at least remember this, with this you can look smart" :)
TheFuzzball has joined #ruby
<matti> apeiros_: Haha
<apeiros_> joshu: require loads a file once
<apeiros_> it's perfectly fine to require something in multiple places
<apeiros_> my basic rule is: every file requires *all* it depends on
<apeiros_> so if you reference Logger in both lib/ffm.rb and bin/ffm, then you should require it in both.
postmodern has joined #ruby
bigrb has quit [Quit: bigrb]
jamesfung14 has quit [Ping timeout: 256 seconds]
johnkary has quit [Quit: @johnkary]
incorvia has joined #ruby
colonolGron has joined #ruby
<joshu> apeiros_ oh ok
Trynemjoel has joined #ruby
<joshu> apeiros_ and by referencing Logger you mean wherever a new Logger object is created as in this case Logger.new?
incorvia has quit [Read error: Connection reset by peer]
<apeiros_> wherever you have the text `Logger` in your code
<joshu> btw apeiros_ 5yrs of latin was this at university or before?
<joshu> ok
<apeiros_> I never know how to call it in english. it's called "Gymnasium" in switzerland. I think it's similar to high-school+lower grads university
<matti> Its like that in Poland since some time too.
<joshu> apeiros_ yeah before university
<matti> Primary, Gymnasium and University
<apeiros_> our school system is age 7-12 (6y) elementary school, 13-18 (6y) gymnasium, and then university which depends on the course (usually 3y bachelor, 4.5y master)
<joshu> yeah same here more or less
<matti> I was educated in pre-reformed system.
<apeiros_> and latin is 14-18 there
<joshu> but no latin
justsee has quit [Ping timeout: 264 seconds]
<joshu> mandatory?
<matti> 8 years primary, 4 years high school and 3 or 5 years university.
<apeiros_> of course, that's the academical way
<apeiros_> type dependent - back in my time we had type A,B,C,D,E and some variations. I took B, which includes latin.
<apeiros_> C would have had no latin and more maths
<matti> C -- Cool Kids ;p
<apeiros_> A was with ancient greek, E modern languages. forgot D.
* matti had English and Russian ;p
colonolGron has quit [Ping timeout: 245 seconds]
<matti> Haha
<joshu> davi davi matti
<joshu> haha
<matti> LOL
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
johnkary has joined #ruby
Matip has joined #ruby
yacks has joined #ruby
<joshu> so apeiros_ just checking but in my test_helper.rb I don't require anything but ffm. But according to apeiros_ 's rule 53 "thou shall require *all* a file depends on"…as I have this in test_helper.rb Mail.defaults do delivery_method :test end then I should require 'mail'?
Michael has joined #ruby
Michael is now known as Guest31624
<apeiros_> ah, rule 53 applies to bin/lib only I think
<apeiros_> with tests, test_helper specifically exists to reduce boiler-plate in the test-files
<joshu> apeiros_ ok
cherrypeel has quit [Quit: Leaving]
<joshu> apeiros_ I'm compiling apeiros_ 's ruby rules :D
<joshu> look you've been cloned...
<joshu> haha
<joshu> matti you still bored?
<matti> Maybe.
<matti> Watching ST: TNG.
<matti> ;d
<matti> apeiros_ has Ruby rules?
Mattix has quit [Ping timeout: 256 seconds]
<apeiros_> plenty
<apeiros_> didn't know they were numbere, though
<apeiros_> *numbered
<matti> Is there a rule like : Rule 1: Never talk about Ruby Rules
<matti> ?
<joshu> haha
<matti> ;D
<apeiros_> nope
DomKM has quit [Quit: Leaving.]
<joshu> ok more about logger. I've noticed that when I run my tests the logging is written to stdout with the test results as opposed to the log file when not testing. I now understand that as testing does not run the binary that my config is not loaded. is this ok?
Nisstyre-laptop has joined #ruby
<apeiros_> that's something you need to know
<apeiros_> generally I'd consider logging to be part of the behavior of your library
<apeiros_> in other words: something you should write tests against too
<apeiros_> so I'd configure it to log into e.g. a StringIO, so you can test it
yacks has quit [Ping timeout: 264 seconds]
matt_ has joined #ruby
yacks has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<joshu> and for that to happen I would define the StringIO in my test_helper.rb?
LennyLinux has quit [Remote host closed the connection]
matt_ is now known as Guest54104
Guest54104 has quit [Client Quit]
postmodern has quit [Ping timeout: 246 seconds]
jimg has joined #ruby
ivanoats has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
freerobby has joined #ruby
marr has quit [Ping timeout: 256 seconds]
arquebus has quit [Quit: Konversation terminated!]
paolooo has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
freerobby has quit [Ping timeout: 256 seconds]
jds_ has joined #ruby
grnman has quit [Quit: leaving]
ereslibre has quit []
cj3kim has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
jztech101_ has joined #ruby
<joshu> ok apeiros_ matti I'm going to bed. Have to sort out my tests tomorrow which aren't fully working and then gemify and hopefully deploy this before Monday.
JZTech101 has quit [Ping timeout: 256 seconds]
<joshu> good night guys ;)
<matti> Night joshu
Proshot is now known as statarb30
statarb30 has quit [Quit: Leaving]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slyv has joined #ruby
kil0byte has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
GeissT has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby
<apeiros_> n8 joshu
mklappstuhl has joined #ruby
whowantstolivefo has joined #ruby
postmodern has joined #ruby
[WRD]Nakilon has joined #ruby
Guest31624 has quit [Remote host closed the connection]
<[WRD]Nakilon> the shortest way to swap top 2 elements on Array?
timmow has joined #ruby
<[WRD]Nakilon> *last
<apeiros_> ary[a],ary[b] = ary[b],ary[a]
<[WRD]Nakilon> omg, really
<[WRD]Nakilon> thx
cj3kim has quit [Remote host closed the connection]
* [WRD]Nakilon was thiking about stack << stack.pop.tap{ __ = stack.pop } ; stack << __
<[WRD]Nakilon> ..D
<[WRD]Nakilon> i should communicate with rubyist more
timkohrumel has joined #ruby
<bnagy> if you were doing it that way then you would do stack.push( *stack.pop(2).reverse )
timmow has quit [Ping timeout: 252 seconds]
<bnagy> also underscrore as a variable isn't used much, but when it _is_ used it normally means "I have to assign to this, but I'm never going to use it, forget about it"
<[WRD]Nakilon> yeah i use it in this way
ivanoats has joined #ruby
<[WRD]Nakilon> like... .group_by{ |_| _ }.
<bnagy> no, because that's using it
<[WRD]Nakilon> ..\
<Spooner> bnagy: stack.push stack.pop, stack.pop works too ;)
senayar has quit [Quit: Quitte]
timkohrumel has quit [Ping timeout: 252 seconds]
<[WRD]Nakilon> btw i stil dream about the method, which returns object itself, for such cases as with my group_by
paolooo has quit [Quit: Page closed]
cj3kim has joined #ruby
darthdeus has quit [Quit: Leaving...]
<bnagy> Spooner: yeah true, and probably faster your way
<bnagy> less transparent code though
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<Spooner> Maybe. I just like the fact that it looks like you aren't actually doing anything ;)
timkohrumel has joined #ruby
timkohrumel has quit [Read error: Connection reset by peer]
ivanoats has quit [Ping timeout: 246 seconds]
timkohrumel has joined #ruby
DomKM has joined #ruby
takeru has joined #ruby
<Spooner> I think ary[-1], ary[-2] = ary[-2], ary[-1] is probably clear enough, as apeiros_ suggested.
bsaboia_ has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
<apeiros_> class Array; def swap(a,b); self[a],self[b] = self[b],self[a]; end; end
timkohrumel has quit [Ping timeout: 248 seconds]
<apeiros_> ary.swap(-1,-2)
<apeiros_> makes it obvious what you do
<Spooner> stack[-2..-1] = stack.last(2).reverse ( I think we could go on all night with alternatives!)
* [WRD]Nakilon was just implementing "\" operator for befunge interpreter
Ortuna has joined #ruby
kofno has joined #ruby
<apeiros_> stack[-2,2] = stack.last(2).reverse
<apeiros_> I prefer Array#swap or ary[a],ary[b] = ary[b],ary[a], though
banister`shop has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
<apeiros_> IMO more clear
razi has quit [Quit: Leaving.]
freerobby has quit [Client Quit]
syntaxritual has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
greenarrow has joined #ruby
mercwithamouth has joined #ruby
nfk has quit [Quit: yawn]
ybart has joined #ruby
<Spooner> I like: stack = stack.shift(stack.size - 2).push(stack.pop).concat(stack)
<Spooner> Couldn't be clearer.
<apeiros_> job security device… :-)
Michael has joined #ruby
pinpin404 has quit [Quit: Screw you guys i'm going home ! KMP ! WeeChat 0.3.9.2]
Michael is now known as Guest55200
becom33 has joined #ruby
becom33 has joined #ruby
<becom33> http://pastebin.com/ci4NQtdk I'm having a issue how can I add values into the same key in the hash ?
jztech101_ has quit [Quit: Hmm... What to do now?]
<Spooner> I believe you want to set the default on the hash.
<bnagy> and Hash doesn't have <<
<Spooner> becom33, http://pastebin.com/xvwLz2XM
<becom33> alright lemme see Spooner
whowantstolivefo has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby
<[WRD]Nakilon> can i, calling "ruby my.rb 1.in 2.in" read the 1.in contents into variable, and then read 2.in line by line with gets?
<apeiros_> [WRD]Nakilon: ARGV contains ["1.in", "2.in"] in that case
<apeiros_> you can do with it whatever you want.
<apeiros_> just beware that Kernel#gets is ARGF.gets, not $stdin.gets (you probably want the latter - or mutate ARGV)
pskosinski has quit [Ping timeout: 256 seconds]
jokke has quit [Quit: WeeChat 0.4.1]
<Spooner> becom33, Or don't mess around with a special method and use: http://pastebin.com/dsvH2uvr
yshh has joined #ruby
jokke has joined #ruby
cj3kim has quit [Remote host closed the connection]
<[WRD]Nakilon> apeiros_, but while i can do File.read(ARGV[0]), how can i do smth like filename_to_stream(ARGV[1]).gets
<apeiros_> File.open(path)
Hanmac1 has quit [Ping timeout: 246 seconds]
<[WRD]Nakilon> ah, ok
<apeiros_> use the block-form of IO::open if possible
<bnagy> File.each{|line| also
<apeiros_> (File.open is IO::open)
dankest has quit [Quit: Linkinus - http://linkinus.com]
phipes has quit [Quit: phipes]
ivanoats has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
<bnagy> File.open('blah').each {|l| man I am pre coffee
<bnagy> I should just shut up and do some work
urbanmonk has joined #ruby
jonathanwallace has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
justsee has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
Cultofme_ has quit [Remote host closed the connection]
daniel_- has quit [Read error: Operation timed out]
krombr has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
havenwood has quit [Remote host closed the connection]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest55200 has quit [Remote host closed the connection]
aces1up has quit [Ping timeout: 260 seconds]
snearch_ has joined #ruby
aces1up has joined #ruby
phipes has joined #ruby
Iszak has quit [Ping timeout: 248 seconds]
snearch has quit [Ping timeout: 248 seconds]
<becom33> Spooner, works awesome
<becom33> thanks bro
Cultofmetatron has joined #ruby
danslo has quit [Quit: danslo]
Cultofmetatron has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
freerobby has joined #ruby
jimg has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
jurbat has joined #ruby
ephemerian has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
Michael has joined #ruby
Michael is now known as Guest90727
snearch_ has quit [Quit: Verlassend]
bradhe has joined #ruby
Spooner has quit [Quit: Leaving]
incorvia has joined #ruby
<incorvia> Question about TracePoint: Does the new Tracepoint API in Ruby 2.0 use the same probes that dtrace uses for monitoring code execution?
Cultofmetatron has joined #ruby
Drewch has quit [Ping timeout: 260 seconds]
ivanoats has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
sqa_bm has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
sqa_bm has joined #ruby
ivanoats has quit [Ping timeout: 248 seconds]
sqa_bm has quit [Ping timeout: 256 seconds]
jds_ has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
timkohrumel has joined #ruby
v0n has joined #ruby
bradhe has quit [Remote host closed the connection]
splittingred has joined #ruby
Nisstyre has quit [Quit: Leaving]
areil has joined #ruby
wu_lmao has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
darkc0met has joined #ruby
johnkary has quit [Quit: @johnkary]
Guest90727 has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
Cache_Money has joined #ruby
timkohrumel has quit [Remote host closed the connection]
timkohrumel has joined #ruby
slash_nick has quit [Ping timeout: 256 seconds]
yashshah has quit [Ping timeout: 246 seconds]
takeru has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
incorvia has quit [Remote host closed the connection]
Animawish has quit [Quit: Animawish]
johnkary has joined #ruby
redbaritone has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
ariedler has quit [Remote host closed the connection]
sixtenei1hty has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
chrishough has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Cultofmetatron has joined #ruby
syntaxritual has quit [Quit: leaving]
JoseeAntonioR has joined #ruby
yashshah has joined #ruby
TomRone has quit [Ping timeout: 256 seconds]
kil0byte has joined #ruby
chipotle has joined #ruby
Michael has joined #ruby
davetherat has quit [Remote host closed the connection]
Michael is now known as Guest38695
davetherat has joined #ruby
apeiros_ has quit [Remote host closed the connection]
TomRone has joined #ruby
kofno has quit [Remote host closed the connection]
havenwood has joined #ruby
bradhe has joined #ruby
Cultofmetatron has quit [Ping timeout: 246 seconds]
takezawa has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
takezawa has joined #ruby
DomKM has joined #ruby
jkline has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
billy_ran_away has quit [Read error: Connection reset by peer]
jkline has quit [Client Quit]
Nanuq has quit [Read error: Operation timed out]
ivanoats has joined #ruby
ARCADIVS has joined #ruby
slainer68 has quit [Remote host closed the connection]
Beoran_ has joined #ruby
Cultofmetatron has joined #ruby
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freakazoid0223 has quit [Ping timeout: 256 seconds]
kevinykchan has quit [Ping timeout: 256 seconds]
Beoran__ has quit [Ping timeout: 256 seconds]
kevinykchan has joined #ruby
ivanoats has quit [Ping timeout: 248 seconds]
kil0byte has quit [Remote host closed the connection]
Nanuq has joined #ruby
becom33 has quit [Remote host closed the connection]
timkohrumel has joined #ruby
dhruvasagar has joined #ruby
jimg has quit [Remote host closed the connection]
lyanchih has joined #ruby
cjs226 has quit [Quit: cjs226]
sqa_bm has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
Guest38695 has quit [Remote host closed the connection]
sqa_bm has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Remote host closed the connection]
thomasle_ has joined #ruby
jimg has joined #ruby
JumpMast3r has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
chipotle has quit [Quit: cya]
madb055 has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
pipework has joined #ruby
banghouse has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 246 seconds]
fixl has joined #ruby
brianstorti has joined #ruby
Michael has joined #ruby
Michael is now known as Guest69356
brianstorti has quit [Remote host closed the connection]
brianstorti has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
Guga_ has joined #ruby
bradhe has joined #ruby
Hanmac has joined #ruby
havenwood has quit [Remote host closed the connection]
r0bglees0n has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
Cultofme_ has joined #ruby
redbaritone has quit [Quit: redbaritone]
Cultofmetatron has quit [Read error: Connection reset by peer]
thesheff17 has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 246 seconds]
cj3kim has quit [Remote host closed the connection]
apeiros has joined #ruby
kofno has joined #ruby
Targen has joined #ruby
lushious has joined #ruby
alfredpp has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
Opettaja has quit [Quit: WeeChat 0.4.1]
ivanoats has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
ivanoats has quit [Ping timeout: 245 seconds]
<alfredpp> hai
<alfredpp> I need to install ruby on rails on my ubuntu 12.04
<alfredpp> using RVM
<alfredpp> is there any alternate methods other than RVM?
cj3kim has joined #ruby
<Senjai> alfredpp: yes, if you want 2.0 you have to compile from source
<Senjai> alfredpp: otherwise you can use apt to get 1.9 or 1.8
<Senjai> alfredpp: you also need to make sure any other ruby that's installed on your system is removed and purged first
yshh has quit [Remote host closed the connection]
havenwood has joined #ruby
<alfredpp> Senjai, I heard apt get installation is corrupted
<bnagy> Senjai: I don't agree with that at ALL
<Senjai> alfredpp: ... I don't think so.
<Senjai> bnagy: is it/?
<bnagy> no need to remove old system rubies
<alfredpp> havenwood, Hai
<Senjai> bnagy: I would, just to be clean.
<Senjai> alfredpp: there is also rbenv, though I haven't used it
<bnagy> alfredpp: I'd recommend against trying to do an RVM system install
<havenwood> alfredpp: hey, how goes it?
<Senjai> alfredpp: I think he was asking to avoid RVM entirely. Like i have :)
<alfredpp> havenwood: I am back
<bnagy> alfredpp: and the 1.9 apt packages are OK
<alfredpp> Senjai: what about RVM?
<Senjai> alfredpp: you were asking for alternatives
<Senjai> bnagy: that ping was for you sorry.
<postmodern> alfredpp, the 1.9 packages in ubuntu 12.10 are good
<alfredpp> havenwood: I need that RVM command u sent me last time
<alfredpp> postmodern, I am using ubuntu 12.04
<Senjai> alfredpp: curl -L https://get.rvm.io | bash -s stable --ruby ??
<Senjai> alfredpp: is that the one?
* bnagy shudders
<Senjai> bnagy: Am I that frightful?
<alfredpp> Senjai, I think so.. But it only installs ruby no?
<bnagy> no I just hate that install concept
<bnagy> one of the many reasons I hate rvm
Cyrus has quit [Quit: Cyrus.close()]
<alfredpp> bnagy, why you hate RVM?
jonathanwallace has quit [Ping timeout: 256 seconds]
hogeo has joined #ruby
<bnagy> it's anti-unix
<postmodern> RVM is a bit to magical for experienced developers and can cause problems during development
<Senjai> bnagy: how is it anti unix?
Cyrus has joined #ruby
<postmodern> however RVM "just works" (tm) for installing Rubies for users
<Senjai> bnagy: you use a command line to install a program, thats unix.
<Senjai> bnagy: not everything has to be git or apt :/
<postmodern> for example, i got a ruby newbie from romania setup with RVM in 5 minutes
<bnagy> Senjai: cd hooks, magic .bashrc changes, and curl | bash is just IN SANE
<alfredpp> bnagy, true.. I agree wuth Senjai
fixl has quit [*.net *.split]
<bnagy> well both of your opinions are very dear to me
<havenwood> alfredpp: Take a look at https://rvm.io/ for an install script one-liner.
<Senjai> bnagy: :P
<bnagy> so I am crushed now
<Senjai> bnagy: if you want to get picky, anything that isn't compiled by source is anti unix :P
<bnagy> no
* Senjai compiled his version of ruby. Mad props all around.
<alfredpp> bnagy, hey dont be
<alfredpp> havenwood, Thanks, Will take a look
<[WRD]Nakilon> what about
<[WRD]Nakilon> nvm
<alfredpp> havenwood, Which version should i install?
<alfredpp> havenwood, Which version should i install? 1.9.3 or 2
<postmodern> alfredpp, 1.9.3
<havenwood> alfredpp: 2.0.0-p195
<postmodern> alfredpp, or 2.0.0 :)
<havenwood> alfredpp: or 1.9.3
<havenwood> ha
Hanmac1 has joined #ruby
<Senjai> alfredpp: 2,
<r0bglees0n> 2.1.0-dev
<Senjai> alfredpp: it's really like a 1.9.4 tbh
<postmodern> alfredpp, both should work, 2.0.0 is the new version and I only ran into a few libraries that had bugs on with 2.0.0
<havenwood> r0bglees0n: +1
<alfredpp> havenwood, postmodern , the command will be "\curl -L https://get.rvm.io | bash -s stable --rails # Or, --ruby=2.0.0
<postmodern> alfredpp, try with --ruby=2.0.0
Hanmac has quit [Ping timeout: 256 seconds]
<alfredpp> havenwood, postmodern ,Senjai, I am a newbie
<Senjai> alfredpp: yeah, you can install all your gems after you get the base installed
<Senjai> I dont use rvm because it is a bitch to use with CGI applications..
<Senjai> Well, it gave me enough trouble to chuck it out the window
brianstorti has quit [Quit: brianstorti]
<alfredpp> Senjai, what would you suggest?
<Senjai> alfredpp: just use rvm
<Senjai> unless you have a reason not to
<alfredpp> Senjai, I dont know ant methods.. so.......
fixl has joined #ruby
<Senjai> alfredpp: just use rvm, it's the safe bet
hogeo has quit [Read error: Connection reset by peer]
<alfredpp> any methds
<Senjai> any methods?
slainer68 has joined #ruby
<alfredpp> Senjai, the command i gave above.. is that enough? can u go through it?
fierycatnet has joined #ruby
<Senjai> alfredpp: it's fine..... geeze.
splittingred has quit [Quit: splittingred]
Guga_ has quit [Quit: ~]
hogeo has joined #ruby
<alfredpp> Senjai, OK... let me check
<alfredpp> Senjai, that command will download ruby and rails same time na
<Senjai> alfredpp: ugh.
<Senjai> no comment
freerobby has quit [Quit: Leaving.]
<alfredpp> Senjai, why?
<Senjai> There is no reason to not install rails..
<Senjai> it doesnt change ruby..
<alfredpp> Senjai, I know that. I need to know will that command install ruby and rails both
lyanchih has quit [Quit: lyanchih]
<Senjai> alfredpp: it doesnt matter. You can install rails with 'gem install rails' after ruby is installed anyway.
<alfredpp> havenwood, what do you think? will the command i typed above will install both ruby and rails?
<alfredpp> Senjai, what will happen if i run the command i gave ?
<Senjai> alfredpp: try it, find out
<alfredpp> Senjai, I am now.. Still I need to know what I am doing right>=?
<havenwood> alfredpp: You can take a read of the install script here: https://github.com/wayneeseguin/rvm/blob/master/binscripts/rvm-installer
<havenwood> alfredpp: If you really want to fully understand the tool, I'd suggest chruby.
<alfredpp> havenwood, OK
<havenwood> alfredpp: But if you're going to run the install script, do read it. :)
<alfredpp> havenwood, What is the difference between RVM and chruby?
slainer68 has quit [Ping timeout: 252 seconds]
<havenwood> alfredpp: The difference between chruby and rbenv is easier to answer.
<alfredpp> havenwood, both are tools to install ruby no? then why different methods?
<postmodern> alfredpp, rbenv uses ruby-build and chruby can use ruby-build or ruby-install
<bnagy> well technically speaking rbenv doesn't use ruby-build
<bnagy> it _can_
philcrissman has quit [Remote host closed the connection]
<havenwood> alfredpp: RVM handles many things, like installing, selecting, managing gemsets. Whilst chruby does one thing, select the current Ruby.
<bnagy> I use it with hand compiled stuff, mainly
<postmodern> bnagy, correct, ruby-build actually plugins into rbenv
<bnagy> cause there wasn't ruby-build for jruby-head at the time
<havenwood> bnagy: Have you taken a look at chruby? Uses env vars instead of shims.
<bnagy> yeah I looked, it's clean
JoseeAntonioR has left #ruby ["Leaving"]
<bnagy> but rbenv is pretty clean too, and shims are also fine as an approach
<bnagy> so it would just be make-work to migrate my stuff
<alfredpp> havenwood, so what you are saying is, rvm does everything at once while chruby we need to do that all
<alfredpp> one by one
<havenwood> alfredpp: Kinda. The Unix philosophy is to do one thing, and do it well. So ruby-install to install Ruby and chruby to change the selected Ruhy.
philcrissman has joined #ruby
<havenwood> alfredpp: Mix and match with tools that play nice.
<bnagy> does rvm still require a system ruby to bootstrap?
<havenwood> bnagy: Nope.
<havenwood> bnagy: RVM 2.0 may.
<postmodern> yeah RVM 2.0 is part bash and part ruby
<alfredpp> havenwood, I am running the rvm script now
<r0bglees0n> RVM 2.0 seems nuts
<postmodern> less nuts than writing all that complex code in bash
<r0bglees0n> doesn't it install a package manager(homebrew) for you, and use that to install packages?
<r0bglees0n> yeah, but the nuts is how complex it has become
<postmodern> r0bglees0n, yep just like ruby-install
<postmodern> r0bglees0n, i prefer that method instead of downloading openssl.tar.gz and compiling that somewhere
<r0bglees0n> i dont see the benefit in doing all that. if i need packages i can source them myself(maybe package manager, maybe not).
<bnagy> amen to that
<bnagy> because I really want my scripting language messing with my OS package management, rite? :<
<r0bglees0n> postmodern: id prefer to see "openssl X.XX is missing."
<r0bglees0n> instead of a bunch of missing heads
<r0bglees0n> headers*
<postmodern> r0bglees0n, yeah just let ./configure catch it
<r0bglees0n> but if RVM can do all that crazy, im sure it can pull that message off
<postmodern> r0bglees0n, however all the libraries are required for cexts, so it will compile ruby without ssl support
<alfredpp> havenwood, postmodern ,bnagy, why don't create an installer package for ruby?
Hanmac has joined #ruby
<bnagy> no ssl should break gem
<bnagy> alfredpp: postmodern did
wallerdev has quit [Quit: wallerdev]
<alfredpp> bnagy, and?
<postmodern> alfredpp, too many new versions of ruby to create packages for each one
<r0bglees0n> rubinius has prebuilt binaries of rbx & llvm itself
<r0bglees0n> llvm one being very handy
<alfredpp> postmodern, can't we create a package that automatically installs the latest of them? Pardon me since I am newbie to Ruby as well as linux
DomKM has quit [Quit: Leaving.]
<bnagy> alfredpp: the problem is that there are at least four 'mainstream' interpreters
<postmodern> alfredpp, that would be ruby-install https://github.com/postmodern/ruby-install#readme
<bnagy> so 'latest' doesn't really apply
Hanmac1 has quit [Ping timeout: 276 seconds]
<bnagy> imo all you slackers should just get on board jruby and call it job done
alem0lars has joined #ruby
<r0bglees0n> postmodern: so ruby-install is ruby-build with the added bonus that it integrates with your package manager
<postmodern> r0bglees0n, correct :)
<postmodern> r0bglees0n, also you can specify arbitrary versions
<havenwood> bnagy: I was pretty impressed with Closure STM being so easily made available in JRuby.
<postmodern> r0bglees0n, so no waiting for a new version of ruby-build so you can install 2.0.0-pXXX
<r0bglees0n> insane amount of tooling around installing ruby :p
codecop has joined #ruby
<r0bglees0n> postmodern: thats cool
<r0bglees0n> postmodern: i didnt realize i even had to update to do that
<postmodern> r0bglees0n, ruby-install -i ~/.rbenv/version/2.0.0-pXXX ruby 2.0.0-pXXX
bradhe has joined #ruby
<r0bglees0n> postmodern: but i dont like the package manager aspect, so i will create a fork and call it ruby-install++.
<havenwood> r0bglees0n: ruby-install--
<bnagy> havenwood: ok that's cool in a hipsterish kinda way :)
<postmodern> r0bglees0n, in 0.2.0 i'll add options to skip the package manager
cj3kim has quit [Remote host closed the connection]
<r0bglees0n> postmodern: fair :)
<r0bglees0n> postmodern: can ruby-install print a list of available rubies?
adkron_ has quit [Ping timeout: 256 seconds]
<postmodern> r0bglees0n, it has a list of version aliases but not the full list
<r0bglees0n> postmodern: so that's the trade you off you pay.
<postmodern> r0bglees0n, i could add a list of all versions, but that would be giant
<postmodern> r0bglees0n, and most of the time you want the latest version of some version family
<r0bglees0n> postmodern: ruby-build has --definitions
<postmodern> r0bglees0n, it does however have a complete list of md5s for every download
<havenwood> r0bglees0n: I guess there could be an optional all-versions list.
ehaliewicz has quit [Ping timeout: 245 seconds]
<r0bglees0n> postmodern: it sounds like thats maybe why rbenv did that, to have a complete list of possible downloads available.
<r0bglees0n> erh
<r0bglees0n> ruby-build*
mikepack has joined #ruby
<postmodern> r0bglees0n, ruby-build was designed with a 1:1 mapping between version and recipe
bradhe has quit [Ping timeout: 248 seconds]
<postmodern> r0bglees0n, despite that every recipe is almost identical
<r0bglees0n> postmodern: i guess it wouldn't be that hard to add either feature to -build/-install. it could even be remote, fallback to local cache.
<r0bglees0n> so you dont need to update if you have internet
<r0bglees0n> postmodern: i find it useful though because for example im never sure which version of jruby is out
<postmodern> r0bglees0n, ha right, or whats the latest patch-level
dopie has joined #ruby
<dopie> hey all
<r0bglees0n> yeah, i thought 2.0.0 was still on -p0 to this morning.
<r0bglees0n> til
bugg has joined #ruby
<r0bglees0n> postmodern: does ruby-install 2.0.0 work?
<havenwood> They need a bat signal.
<dopie> can anyone help me add a html class to markdown
<postmodern> r0bglees0n, yep
<dopie> <%= markdown @article.description, :html => :class => "active" %>
<dopie> isnt working
<r0bglees0n> postmodern: pulls the latest i guess? how does it know?
<postmodern> r0bglees0n, `ruby-install RUBY [VERSION]`
kofno has joined #ruby
jimg has quit [Remote host closed the connection]
<postmodern> r0bglees0n, there's a versions.txt file it uses for aliaes
<r0bglees0n> so that part is tied to updates?
adkron has joined #ruby
<r0bglees0n> yeah, so i'd need to update ruby-install to get new aliases.
<postmodern> r0bglees0n, yep, but you can override them
ivanoats has joined #ruby
<r0bglees0n> thats true, i wish it was magically automatic >_>
<postmodern> r0bglees0n, automagic is hard :)
ehaliewicz has joined #ruby
<r0bglees0n> postmodern: so now that you have these two tools(chruby+ruby-install), you've replaced both rbenv & ruby-build :p
<postmodern> r0bglees0n, everything goes according to play :)
kofno has quit [Ping timeout: 248 seconds]
<postmodern> r0bglees0n, yeah the hardcoded versions and no package manager integration caused me to write ruby-install
<r0bglees0n> yeah, more tools the better
<r0bglees0n> i think you would have met some resistence on the hardcoded versions
<r0bglees0n> if you just did a PR
kofno has joined #ruby
<r0bglees0n> and probably package managers too
<postmodern> r0bglees0n, but it takes a couple weeks for someone to accept the PR into ruby-build
<postmodern> r0bglees0n, would be nice if MRI etc just rolled their own .debs and .rpms
ivanoats has quit [Ping timeout: 248 seconds]
<postmodern> r0bglees0n, and that rubygems defaulted to --user-install
<r0bglees0n> totally
freerobby has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
<r0bglees0n> prebuilt packages would make life so much easier for newbies and windows users
<r0bglees0n> getting my brother setup with ruby on windows was tough because of his inexperience with programming and computers, so I ended up setting up jruby + rubymine, which is like one environment he could get stuff done.
<postmodern> half the reason we install rubies, is so they are in /home/ and writtable by users
<r0bglees0n> no switching between writing+running the file
<r0bglees0n> which apparently is confusing with ruby files
<postmodern> if rubygems finally switched to --user-install, this would reduce the need to install a custom version
danneu has quit [Quit: Leaving.]
<r0bglees0n> yeah
<r0bglees0n> seems like you coulv solve that problem with information as well
<r0bglees0n> just tell people to put it in .gemrc :)
<postmodern> and also put ~/.gem/.../bin in their $PATH
Dummies_freelanc has quit [Quit: Leaving.]
<r0bglees0n> there's going to be people who hate that
<r0bglees0n> but i think those are better defaults
diadara has joined #ruby
<r0bglees0n> there's people who like to roll without any kind of rbenv/ruby-build
<postmodern> i think a couple distros already support $HOME/bin
<r0bglees0n> im not sure what zenspider uses
<postmodern> yeah i do that for servers
<postmodern> install into /usr/local
freerobby has quit [Ping timeout: 252 seconds]
diadara has quit [Client Quit]
yshh has joined #ruby
<r0bglees0n> for development, ~ makes total sense, but on a server you'd need to undo the defaults because it wouldn't make as much sense
<r0bglees0n> i use /opt
<r0bglees0n> well, it'd just mean whoever runs bundler installs to ~
<r0bglees0n> i could live with that
v0n has joined #ruby
<r0bglees0n> has anyone used webmachine to render sinatra-like or rails-like views?
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<r0bglees0n> erb, haml etc support
keppy has joined #ruby
Godd2 has quit [Quit: Page closed]
<dopie> can anyone help me here...
<dopie> im trying to add a html class="main_text" to this
<dopie> and everything im doing is not woring
<r0bglees0n> don't call html_safe from that method
<r0bglees0n> call it from the view
<r0bglees0n> markdown isn't html safe
<r0bglees0n> article.description could be safe, and if it is just call it there
<r0bglees0n> dopie: add it where?
<r0bglees0n> just wrap it around
<r0bglees0n> <div class="main_text"> <%= markdown(…) %> </div?
<r0bglees0n> </div>*
<dopie> i did
<dopie> markdown creates its own <p>
yshh has quit [Ping timeout: 276 seconds]
<r0bglees0n> that's for paragraphs
<r0bglees0n> in the markdown
jonathanwallace has joined #ruby
alfredpp has left #ruby ["Leaving"]
<dopie> howly fucking shitballs
<dopie> r0bglees0n,
<dopie> IM AN IDIOT
<dopie> $K#@L$K#@:L
kofno has quit [Remote host closed the connection]
<dopie> thank you so much
<dopie> i was wrapping my head going wtf
lyanchih has joined #ruby
IceDragon has quit [Quit: Space~~~]
jonathanwallace has quit [Ping timeout: 256 seconds]
jimg has joined #ruby
kil0byte has joined #ruby
Xabarus has joined #ruby
KarlHung1s has joined #ruby
Cultofme_ has quit [Read error: Connection reset by peer]
Nanuq has quit [*.net *.split]
Guest85414_ has quit [*.net *.split]
Liothen has quit [*.net *.split]
Hien has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
epitron has quit [*.net *.split]
erry has quit [*.net *.split]
alup has quit [*.net *.split]
Psy-Q has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
seich- has quit [*.net *.split]
bmn has quit [*.net *.split]
NsOmNiAc has quit [*.net *.split]
MarcWeber has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
akam-it has quit [*.net *.split]
jblack has quit [*.net *.split]
iaj has quit [*.net *.split]
ssvo has quit [*.net *.split]
peterhellberg has quit [*.net *.split]
vaicine_ has quit [*.net *.split]
hoelzro has quit [*.net *.split]
riku has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Nightmare has quit [*.net *.split]
kzrl has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
eighty4 has quit [*.net *.split]
cout has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
fumduq- has quit [*.net *.split]
diegok has quit [*.net *.split]
tris has quit [*.net *.split]
Quadlex has quit [*.net *.split]
zphobic has quit [*.net *.split]
dubios has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
stderr- has quit [*.net *.split]
Koshian__ has quit [*.net *.split]
trent has quit [*.net *.split]
epitron has joined #ruby
epitron has joined #ruby
epitron has quit [Changing host]
Killerkeksdose has joined #ruby
eighty4 has joined #ruby
vaicine has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has joined #ruby
justinmcp has joined #ruby
dubios has joined #ruby
jolleyjoe has joined #ruby
riku has joined #ruby
hoelzro has joined #ruby
f0ster has quit [Ping timeout: 252 seconds]
Hien has joined #ruby
sr78ger has joined #ruby
fumduq has joined #ruby
cj3kim has joined #ruby
Nightmare has joined #ruby
tris has joined #ruby
seich- has joined #ruby
Koshian__ has joined #ruby
kzrl has joined #ruby
rippa has joined #ruby
cout has joined #ruby
[WRD]Nakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
bmn has joined #ruby
stderr- has joined #ruby
MarcWeber has joined #ruby
erry_ has joined #ruby
Psy-Q has joined #ruby
phipes has quit [Quit: phipes]
jblack has joined #ruby
Senjai has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
akam-it has joined #ruby
mikepack has joined #ruby
erry_ is now known as erry
zphobic has joined #ruby
Quadlex has joined #ruby
DrShoggoth has joined #ruby
trent has joined #ruby
diegok has joined #ruby
peterhellberg has joined #ruby
ssvo has joined #ruby
iaj has joined #ruby
NsOmNiAc has joined #ruby
zphobic has quit [Read error: Operation timed out]
zphobic has joined #ruby
ssvo has quit [Read error: Operation timed out]
noname001 has quit [Excess Flood]
ssvo has joined #ruby
Animawish has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
bitcycle has joined #ruby
noname001 has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
harrymoreno_ has joined #ruby
alup has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
zmike has joined #ruby
peterhellberg has quit [Read error: Operation timed out]
dopie has quit [Read error: Connection reset by peer]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
sr78ger has quit [Quit: Qui]
peterhellberg has joined #ruby
eldariof has joined #ruby
Cultofmetatron has joined #ruby
dr0p has quit [Remote host closed the connection]
danneu has joined #ruby
slash_nick has quit [Ping timeout: 276 seconds]
rodasc has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
slash_nick has joined #ruby
crodas has quit [Write error: Broken pipe]
slash_nick has quit [Changing host]
slash_nick has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mljsimone has joined #ruby
philcrissman has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 246 seconds]
zphobic has quit [*.net *.split]
NsOmNiAc has quit [*.net *.split]
iaj has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
trent has quit [*.net *.split]
Quadlex has quit [*.net *.split]
diegok has quit [*.net *.split]
mklappstuhl has quit [Remote host closed the connection]
ivanoats has joined #ruby
bitcycle has quit [Remote host closed the connection]
dash_ has joined #ruby
ivanoats has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
<lewix> what's the return value of File.open called with a block
zphobic has joined #ruby
DrShoggoth has joined #ruby
iaj has joined #ruby
diegok has joined #ruby
trent has joined #ruby
Quadlex has joined #ruby
NsOmNiAc has joined #ruby
crazymykl has quit [Read error: Connection reset by peer]
mikemac has joined #ruby
<heftig> lewix: the return value of the block
<lewix> i get nil
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<heftig> File.open("/etc/fstab") { |f| f.read }
Cultofmetatron has quit [Remote host closed the connection]
<heftig> returns the value of f.read
<lewix> >> File.open("fetchtwitter.rb") {|file| puts "#{file}"}
<eval-in_> lewix => No such file or directory - fetchtwitter.rb (Errno::ENOENT) ... (http://eval.in/32467)
Cultofmetatron has joined #ruby
<heftig> lewix: puts returns nil, so File.open returns nil
<lewix> #<File:0x007fc28488e4d0>
<lewix> => nil
<lewix> oh
<lewix> stupid I
bradhe has joined #ruby
<r0bglees0n> also, use File.read(…).
<lewix> I always forget that
<lewix> r0bglees0n: why use File.read? i was just doing whatever
<r0bglees0n> if you're just reading from a file File.read is a shorthand.
<lewix> r0bglees0n: yea but then you have to close it
ariedler has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 252 seconds]
<r0bglees0n> lewix: no you dont
<r0bglees0n> lewix: File.read handles it for you, and if it didn't it'd be an insane public API
rickruby has quit [Remote host closed the connection]
yshh has joined #ruby
tonini has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<r0bglees0n> if you said,f = File.new "foo.txt", "r", you'd have to handle the close yourself.
yshh has quit [Read error: Connection reset by peer]
jimg has quit [Remote host closed the connection]
yshh has joined #ruby
Shirakawasuna has joined #ruby
bradhe has quit [Remote host closed the connection]
harrymoreno has joined #ruby
chrishough has quit [Quit: chrishough]
<lewix> r0bglees0n: thanks for the clarification
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
kofno has joined #ruby
<r0bglees0n> sure
krawchyk has quit [Quit: Leaving]
brianherman has quit [Quit: Leaving]
Neomex has joined #ruby
Neomex has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 252 seconds]
tonini has quit [Ping timeout: 248 seconds]
tonini has joined #ruby
yshh has quit [Remote host closed the connection]
leonidlm has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
timkohrumel has joined #ruby
takeru has joined #ruby
sixteneighty has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
takeru has quit [Ping timeout: 246 seconds]
ariedler has quit [Remote host closed the connection]
sideshowcoder has quit [Read error: Operation timed out]
Cultofmetatron has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
sideshowcoder has joined #ruby
grzywacz has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
jimg has joined #ruby
timkohrumel has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
bradhe has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
hamed_r has joined #ruby
haxrbyte has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
hamed_r has quit [Client Quit]
haxrbyte has joined #ruby
vlad_starkov has joined #ruby
iCEAGE has joined #ruby
robscomputer has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
slash_nick has quit [Ping timeout: 276 seconds]
mklappstuhl has joined #ruby
iCEAGE has quit [Client Quit]
mklappstuhl has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Ping timeout: 246 seconds]
echevemaster has quit [Quit: Leaving]
ivanoats has joined #ruby
redstar1_ has joined #ruby
Takehiro has joined #ruby
Jackneill has quit [Ping timeout: 252 seconds]
robscomputer has quit [Ping timeout: 276 seconds]
alfredpp has joined #ruby
redstar1_1 has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 256 seconds]
hamed_r has joined #ruby
<alfredpp> havenwood, i installed with rvm..
ivanoats has quit [Ping timeout: 264 seconds]
<alfredpp> havenwood, but installation interrupted with following lines
atno has quit [Ping timeout: 276 seconds]
pipework has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
fierycatnet has quit [Quit: Leaving]
Jackneill has joined #ruby
<alfredpp> havenwood, Install of ruby-2.0.0-p195 - #complete
<alfredpp> Recording alias default for ruby-2.0.0-p195.
<alfredpp> Creating alias default for ruby-2.0.0-p195.
<alfredpp> Creating default links/files
<alfredpp> Saving wrappers to '/home/alfred/.rvm/bin'........
<alfredpp> ^CERROR: Interrupted
<alfredpp> havenwood, what to do?
ronny has joined #ruby
<ronny> hi
<alfredpp> havenwood, U THERE?
tonini has quit [Ping timeout: 248 seconds]
<bnagy> alfredpp: that looks like you hit ctrl-c
mklappstuhl has quit [Remote host closed the connection]
<bnagy> also, don't shout at people, and don't paste more than 3 lines into the channel - use gist or pastie or whatever
<alfredpp> bnagy, ya
<alfredpp> bnagy, what now?
<alfredpp> bnagy, sorry.. my bad
<ronny> anyone aware of a way to have Net::IMAP use a process instead of a socket?
Takehiro has quit [Remote host closed the connection]
<bnagy> ronny: uh.. use a process instead of a socket for what?
<ronny> bnagy: the connection to the imap server
<ronny> instead of going to a ssl socket, i'd like to run imapd via ssh command
swex_ has joined #ruby
<bnagy> well processes don't connect things
<bnagy> you could try an ssh tunnel or something?
<alfredpp> bnagy, what should I do now?
<bnagy> then connect to whatever port on localhost?
<ronny> bnagy: well, all i want is do all reads on stdout of a process and all writes on a stdin of a process
<bnagy> alfredpp: ewll if you interrupted the install yourself by hitting ctrl-c, maybe don't do that
<bnagy> ronny: ok, that should be possible with popen
<alfredpp> bnagy, should i restart?
<bnagy> but you just need to work out a way to get the popened object to replace the socket
<bnagy> like popen should support read write etc, but I haven't looked at Net::IMAP to see how high level its socket handling is
<bnagy> ronny: honestly, though, if you just want to get the traffic over ssh then a tunnel is a million times easier
swex has quit [Ping timeout: 245 seconds]
<ronny> bnagy: the remote does not run any imap server, it just has the binary to run one as preauth
harrymoreno_ has joined #ruby
<alfredpp> bnagy, should I restart the whole thing?
marr has joined #ruby
<ronny> hmm
<bnagy> alfredpp: I don't see how that would help, but you can if it makes you happy
grzywacz has quit [Ping timeout: 248 seconds]
mklappstuhl has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
mklappstuhl has quit [Read error: Connection reset by peer]
<alfredpp> bnagy, oops!!!
<alfredpp> bnagy, did i messed up?
<bnagy> ronny: you're confusing me. You're saying you've got an imap server that has no network support?
<bnagy> because that would be pretty weird
<alfredpp> bnagy, how can i know what is installed and what is not?
<ronny> bnagy: well, its intended to be executed by inetd, im justt calling into the same binary by ssh
Cyrus has quit [Quit: Cyrus.close()]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
GeissT has quit [Ping timeout: 248 seconds]
<ronny> that imap server is basically just a binary that uses stdin for read and stdout for write, doesnt care if thats a socket or ssh
<bnagy> uh.. wat? Calling into binary whatnow?
<ronny> bnagy: the imap server i am using is a unix tool, its bascially running the imap protocol on stdin/stdout
<ronny> normally one would wire that into inetd
<ronny> but im wireing it into ssh and using imap with preauth
Bry8Star{T2 has joined #ruby
codezombie has joined #ruby
<ronny> hmm
jeffean has quit [Quit: WeeChat 0.4.1]
dhruvasagar has joined #ruby
<ronny> unfortunately Net::imap is a bit strongly woven into sockets, i dont think i can fix it with my current ruby knowledge
rodasc is now known as crodas
<bnagy> ok. Well that's all bizarre.
<bnagy> use an imap server from this century maybe
<ronny> bnagy: well, its a pretty recent one, it seems you dont understand unix
alfredpp has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
<ronny> and i specifically need no sockets of that server open on the remote box, because of preauth
<ronny> this is a password free setup
<ronny> so making it into one that needs open sockets and passwords is pretty much fail
<bnagy> except you're sshing to it
harrymoreno has quit [Ping timeout: 256 seconds]
<bnagy> but yeah I see the preauth issue
jnoob22_ has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 240 seconds]
harrymoreno has joined #ruby
<ronny> bnagy: this is a shared box,i dont want imap password auth for my imap and the only safe way im aware of to do preauth is ssh
<bnagy> why can't you run it as a user, have it listen on localhost and then ssh tunnel to that?
ttt has joined #ruby
<bnagy> or maybe inetd can do that for you
<ronny> bnagy: shared server, then others can connect to it, too
<ronny> bnagy: which means i would need to set up a password, which i explicitly want todisable
bradhe has quit [Ping timeout: 276 seconds]
<ronny> all i want to do is run the protocol on a io stream thats not a socket ^^
<bnagy> ugh
<bnagy> ok maybe write the world's simplest local popen proxy?
<bnagy> on your client
<bnagy> and have that popen ssh and then connect to it locall
<bnagy> and point net::imap at it
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ttt has quit [Ping timeout: 252 seconds]
yshh has joined #ruby
<bnagy> wait if you love inetd so much, you could maybe use it on your client
johnkary has quit [Quit: @johnkary]
<bnagy> and serve the ssh -c :P
<bnagy> I have no idea if it supports that
mljsimone is now known as mljsimone|bnc
<bnagy> like I haven't used inetd for years and years
Guest85414_ has joined #ruby
jurbat has quit [Ping timeout: 248 seconds]
jacobbednarz has joined #ruby
jacobbednarz has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<ronny> bnagy: i dont know how to patch up the super using constructor of net::imap to use something else than the socket without breaking things
RomainT has joined #ruby
<RomainT> Hi
ananthakumaran has joined #ruby
yshh has quit [Read error: No route to host]
yshh has joined #ruby
<bnagy> ronny: yeah I haven't looked at it, but it's a pretty weird scenario, so it's not really surprising it's nontrivial
zigomir has joined #ruby
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
<ronny> bnagy: in terms of interaction it is trivial, its just a different transport
atno has joined #ruby
<bnagy> ugh this is bad code
mklappstuhl has joined #ruby
<bnagy> how did this even get into stdlib :/
mklappstuhl has quit [Read error: Connection reset by peer]
<ronny> bnagy: its imap ^^
<bnagy> well there's an @sock ivar
<bnagy> you might be able to swap it out with something that wrapped the popen and used method_missing to just stub everything it doesn't know about
<bnagy> but I think a separate popen proxy would be a lot cleaner
<bnagy> then just point net::imap at that
<ronny> bnagy: so far i investigated perl, python, ruby - none have a sane imap lib
<bnagy> well not being able to talk to stdin is not insane
<bnagy> but this is shitty ruby, yeah :/
<ronny> bnagy: i mostly mean in terms of code factoring, all of them are messy and hard to extend
lyanchih has quit [Quit: lyanchih]
vlad_starkov has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
byprdct has joined #ruby
tonini has joined #ruby
ttt has joined #ruby
ntus1017 has joined #ruby
daniel_- has joined #ruby
yshh has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
yshh has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
razi has joined #ruby
ivanoats has joined #ruby
cofin has quit [Quit: cofin]
cofin has joined #ruby
Proshot has joined #ruby
ivanoats has quit [Ping timeout: 246 seconds]
tonini has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
robscomputer has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno has joined #ruby
freerobby has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
jarray52 has quit [Quit: Leaving.]
colonolGron has joined #ruby
tvw has joined #ruby
ttt has joined #ruby
jimg has joined #ruby
icole has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jurbat has joined #ruby
jimg has quit [Ping timeout: 245 seconds]
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 245 seconds]
harrymoreno_ is now known as harrymoreno
zen79 has joined #ruby
jbpros has joined #ruby
yshh has quit [Read error: Connection reset by peer]
jbpros has quit [Client Quit]
yshh has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
jbpros has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
mklappstuhl has joined #ruby
colonolGron has quit [Quit: Lost terminal]
PragCypher has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Read error: Connection reset by peer]
keppy has quit [Ping timeout: 248 seconds]
arietis has joined #ruby
vlad_starkov has joined #ruby
darthdeus has joined #ruby
ToApolytoXaos has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
ttt has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
k610 has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
zommi has joined #ruby
Cache_Money has quit [Quit: Leaving]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
danneu has quit [Quit: Leaving.]
dward has joined #ruby
<dward> what does :: mean before a module?
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Quadlex> dward: Something::Somethingelse --> Somethingelse is defined inside Something
<Quadlex> ::Something --> Something is defined at the root level
Iszak has joined #ruby
<RomainT> Does someone know if tools like Virtus are usable with ActiveRecord (i want to have a declarative list of fields my model has) ?
Speed has joined #ruby
mikewintermute has joined #ruby
takeru has joined #ruby
zen79 is now known as fritz79
lkba has quit [Ping timeout: 246 seconds]
fritz79 has quit [Quit: fritz79]
jbpros has quit [Quit: jbpros]
fritz79 has joined #ruby
Bry8Star{T2 has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
danslo has joined #ruby
nari has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
ivanoats has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
robscomputer has joined #ruby
end_guy has joined #ruby
ntus1017 has quit [Remote host closed the connection]
fritz79 has left #ruby [#ruby]
fritz79 has joined #ruby
robscomputer has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
ivanoats has quit [Ping timeout: 264 seconds]
srji has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno_ is now known as harrymoreno
eldariof has quit [Ping timeout: 248 seconds]
freerobby has quit [Ping timeout: 252 seconds]
Criztian has joined #ruby
Leighton has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
jimg has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
spider-mario has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
workmad3 has joined #ruby
Shirakawasuna has quit [Ping timeout: 256 seconds]
jimg has quit [Ping timeout: 246 seconds]
slainer68 has joined #ruby
mklappstuhl has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
dash_ has quit [Quit: Time to beer :)]
jds_ has quit [Ping timeout: 276 seconds]
spider-mario has quit [Remote host closed the connection]
m8 has joined #ruby
hamed_r has quit [Quit: Leaving]
spider-mario has joined #ruby
fritz79 has left #ruby [#ruby]
mklappstuhl has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
kote has joined #ruby
zmike has quit [Quit: Выходжу]
icole has joined #ruby
senayar has joined #ruby
incorvia has joined #ruby
fritz79_ has joined #ruby
icole has quit [Ping timeout: 248 seconds]
becom33 has joined #ruby
becom33 has joined #ruby
mklappstuhl has joined #ruby
thesheff17 has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<becom33> http://pastebin.com/HZwPzM0y I'm looking a way to search from the :id . if I is match I want the values of :id. :name, :age from that :id value
obs has joined #ruby
<bnagy> that's going to be pretty inefficient
atmosx has joined #ruby
<bnagy> like whatever.values.flatten.select {|s| s[:id} == whatever } ...
<becom33> bnagy, hmm u think ?
<atmosx> hi
<becom33> wait lemme try that
alexmreis has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
jds_ has joined #ruby
monkegjinni has joined #ruby
apeiros has joined #ruby
fritz79_ has quit [Quit: fritz79_]
GeissT has joined #ruby
fritz79 has joined #ruby
<becom33> bnagy, is this what you had in mind ? http://pastebin.com/cQe36gnq
dhruvasagar has joined #ruby
DestinyAwaits has joined #ruby
ntus1017 has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
<bnagy> I guess?
yshh has quit [Remote host closed the connection]
<becom33> bnagy, thanks :)
<bnagy> it's dumb though
mklappstuhl has joined #ruby
<bnagy> if you want to search by id you should key by id
yshh has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<bnagy> or have another hash keyed by id etc
<bnagy> or, like, use a db
alexmreis has quit [Quit: Leaving.]
slainer68 has joined #ruby
thomasle_ has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
darkapex has left #ruby ["WeeChat 0.4.1"]
therod has joined #ruby
Destiny has joined #ruby
atno has quit [Remote host closed the connection]
yannis has joined #ruby
fixl has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<dward> Quadlex: oh okay, just saw that. Thanks for the info.
<Quadlex> NP
mklappstuhl has joined #ruby
takeru has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
DestinyAwaits has quit [Ping timeout: 256 seconds]
alexmreis has joined #ruby
takeru has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
bionhart has joined #ruby
alexmreis has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
remchi has joined #ruby
robscomputer has joined #ruby
motto has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
m8 has quit [Ping timeout: 252 seconds]
cortes has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
atno has joined #ruby
mklappstuhl has joined #ruby
ybart has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
timonv has joined #ruby
freerobby has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
takeru has quit [Remote host closed the connection]
BadDesign has joined #ruby
kil0byte has quit [Remote host closed the connection]
ybart_ has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
incorvia has quit [Remote host closed the connection]
robscomputer has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 264 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
reset has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
TheDick has quit [Quit: TheDick]
hogeo_ has joined #ruby
matematikaadit has joined #ruby
emergion has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
grzywacz has joined #ruby
ctp has joined #ruby
dhruvasagar has joined #ruby
zigomir_ has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
zigomir has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
mathadit has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
Destiny is now known as DestinyAwaits
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
matematikaadit has quit [Ping timeout: 245 seconds]
kirun has joined #ruby
grzywacz has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
robustus has joined #ruby
mathadit has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
incorvia has joined #ruby
incorvia has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 256 seconds]
incorvia has joined #ruby
kil0byte has joined #ruby
srji has quit [Quit: leaving]
keppy has joined #ruby
mklappstuhl has joined #ruby
cj3kim has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
ybart_ has quit [Quit: ybart_]
cj3kim has joined #ruby
kote has quit [Ping timeout: 245 seconds]
kote_ has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ybart_ has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
incorvia has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
kofno_ has joined #ruby
vlad_sta_ has quit [Ping timeout: 256 seconds]
kil0byte has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
kil0byte has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
rdark has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kofno_ has quit [Remote host closed the connection]
bugg is now known as dfdf
ivanoats has joined #ruby
daniel_-_ has joined #ruby
PragCypher has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Operation timed out]
daniel_- has quit [Ping timeout: 276 seconds]
robscomputer has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
ivanoats has quit [Ping timeout: 276 seconds]
PragCypher has joined #ruby
freerobby has joined #ruby
slash_nick has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
bionhart has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 248 seconds]
remchi has quit [Quit: Linkinus - http://linkinus.com]
dr_bob has joined #ruby
sayan has joined #ruby
atmosx has quit [Quit: And so the story goes…]
robscomputer has quit [Ping timeout: 248 seconds]
suporte85 has joined #ruby
incorvia has joined #ruby
jnoob22 has joined #ruby
timonv has quit [Remote host closed the connection]
mixel has joined #ruby
ybart_ has quit [Quit: ybart_]
tvw has quit []
yshh has joined #ruby
kleinerdrache has joined #ruby
LennyLinux has joined #ruby
ybart_ has joined #ruby
yshh has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
bionhart has joined #ruby
arya has joined #ruby
Mattx has joined #ruby
ia___ has joined #ruby
PragCypher has quit [Quit: Leaving]
vlad_sta_ has joined #ruby
fritz79 has quit [Quit: fritz79]
zommi has quit [Remote host closed the connection]
Matip has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
jnoob22 has quit [Remote host closed the connection]
freerobby has joined #ruby
Guga_ has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
ia___ has quit [Quit: ia___]
ia___ has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
Xabarus has quit [Remote host closed the connection]
Guest69356 has quit [Read error: Connection reset by peer]
Michael__ has joined #ruby
Takehiro has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
jimg has joined #ruby
passcod_ has joined #ruby
jost has joined #ruby
tris has quit [Ping timeout: 240 seconds]
<jost> Hi! In ruby 1.8.7, how do I check if a range is empty?
passcod has quit [Ping timeout: 256 seconds]
passcod_ is now known as passcod
codecop has joined #ruby
<jost> Oh, ok... it includes enumerable, so I guess .any? will do
lyanchih has joined #ruby
<Hanmac> jost the deadline for ruby1.8 will end this month ... you should update
emergion has quit [Quit: Computer has gone to sleep.]
jimg has quit [Ping timeout: 256 seconds]
kenneth has quit [Quit: kenneth]
Al_ has joined #ruby
<jost> Hanmac: Ok, I'll keep that in minde
<jost> mind
harrymoreno has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
daniel_-_ has quit [Ping timeout: 246 seconds]
harrymoreno has joined #ruby
<joshu> hi is there a cleaner way to do this File.join(File.expand_path('../fixtures/', __FILE__), name)
<r0bglees0n> File.join File.expand_path("../../fixtures"), name
iamjarvo has joined #ruby
<r0bglees0n> oops, nvm
<r0bglees0n> read that wrong
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<r0bglees0n> i dont think so
beilabs has joined #ruby
<joshu> ok r0bglees0n
therod has quit [Remote host closed the connection]
therod has joined #ruby
rodrigo has joined #ruby
ybart_ has quit [Quit: ybart_]
harrymoreno_ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
dr_bob has quit [Read error: Connection reset by peer]
therod has quit [Ping timeout: 256 seconds]
DestinyAwaits has quit [Quit: Leaving]
harrymoreno_ has joined #ruby
Ortuna has joined #ruby
DestinyAwaits has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
ivanoats has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alamo777_ has joined #ruby
hybris has joined #ruby
danslo has quit [Quit: danslo]
BadDesign has quit [Read error: Connection reset by peer]
Michael__ has quit [Remote host closed the connection]
ybart_ has joined #ruby
lkba has joined #ruby
hybris has quit [Quit: hybris]
takeru has joined #ruby
jbpros has joined #ruby
sayan has joined #ruby
ivanoats has quit [Ping timeout: 248 seconds]
adambeynon has joined #ruby
danslo has joined #ruby
osvico has joined #ruby
tonini has joined #ruby
wmoxam has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
robscomputer has joined #ruby
takeru has quit [Ping timeout: 256 seconds]
kleinerdrache has quit [Quit: Ex-Chat]
darkapex has joined #ruby
Alamo777_ has quit [Quit: Leaving]
Alina-malina has joined #ruby
Takehiro has joined #ruby
darkapex has left #ruby [#ruby]
staafl has joined #ruby
bobbyz has quit [Ping timeout: 252 seconds]
motto has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
BSaboia has quit [Remote host closed the connection]
nomenkun has joined #ruby
monkegjinni has joined #ruby
freerobby has joined #ruby
ybart_ has quit [Quit: ybart_]
orien has joined #ruby
jonathanwallace has joined #ruby
ybart_ has joined #ruby
robscomputer has quit [Ping timeout: 248 seconds]
JZTech101 has joined #ruby
m8 has joined #ruby
keppy has quit [Read error: Operation timed out]
jbpros has quit [Quit: jbpros]
bionhart has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
Al_ has quit [Quit: Al_]
jbpros has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
LennyLinux has quit [Remote host closed the connection]
GeissT has quit [Quit: MillBroChat AdIRC User]
beilabs has quit [Ping timeout: 256 seconds]
Michae___ has joined #ruby
diadara has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
LennyLinux has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
razieliyo has joined #ruby
<razieliyo> hi
Kar- has joined #ruby
dash_ has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Quit: Leaving.]
<razieliyo> I'm trying to install 2.0.0 with rvm install 2.0.0 but it detects no package
<razieliyo> any idea of why isn't "rvm repo" updated?
danslo has quit [Ping timeout: 264 seconds]
pinpin404 has joined #ruby
danslo has joined #ruby
rodrigo has quit [Quit: Leaving...]
beilabs has joined #ruby
takeru has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
Ortuna has joined #ruby
<apeiros> razieliyo: did you update your rvm first?
<apeiros> `rvm get stable`
teclator has joined #ruby
Leighton has quit [Quit: Leaving]
Al_ has joined #ruby
<incorvia> Does anyone know if under the covers TracePoint uses the same probes that dtrace uses in Ruby 2.0?
k610 has joined #ruby
Al_ has quit [Client Quit]
alem0lars has quit [Ping timeout: 248 seconds]
poga has joined #ruby
emmanuelux has joined #ruby
<razieliyo> apeiros: sorry, I was away, but yes, I've just updated it
<razieliyo> I had to remove it from the repos, and reinstall it manually, not too much though
<razieliyo> I have ruby 2.0.0 now working from rvm =)
<razieliyo> thanks!
ejnahc has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 252 seconds]
ejnahc has joined #ruby
ravster has joined #ruby
dfdf has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
k610 has quit [Ping timeout: 245 seconds]
k611 has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
DonVitoCorleone has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Xeago has joined #ruby
AlSquire has joined #ruby
jeka-91 has joined #ruby
freerobby has joined #ruby
tk has joined #ruby
tk is now known as Guest3227
RomainT has quit [Quit: Leaving.]
lucianosousa has joined #ruby
verto has joined #ruby
jetblack has quit [Quit: leaving]
viszu has joined #ruby
vlad_sta_ has joined #ruby
cofin has quit [Quit: cofin]
cofin has joined #ruby
cofin has quit [Client Quit]
cofin has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
ivanoats has joined #ruby
Davey has joined #ruby
Iszak_ has joined #ruby
nomenkun has joined #ruby
jds_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
k611 has quit [Ping timeout: 264 seconds]
grzywacz has joined #ruby
Cork has quit [Ping timeout: 246 seconds]
ivanoats has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
Cork has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
Cork is now known as Guest16984
freerobby has quit [Quit: Leaving.]
Takehiro has joined #ruby
iamjarvo has joined #ruby
jimg has joined #ruby
niklasb has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
Guest16984 has quit [Changing host]
Guest16984 has joined #ruby
Guest16984 is now known as Cork
ArchBeOS has quit [Ping timeout: 256 seconds]
leonid_ has joined #ruby
diadara has quit [Ping timeout: 246 seconds]
robscomputer has joined #ruby
bashdy has joined #ruby
agjacome has joined #ruby
wallerdev has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
jimg has quit [Ping timeout: 276 seconds]
leonidlm has quit [Ping timeout: 256 seconds]
jds_ has joined #ruby
incorvia_ has joined #ruby
obs has quit [Ping timeout: 256 seconds]
Leighton has joined #ruby
incorvia has quit [Ping timeout: 245 seconds]
jetblack has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
robscomputer has quit [Ping timeout: 256 seconds]
eldariof has joined #ruby
RomainT has joined #ruby
jeka-91 has quit [Quit: Leaving]
arya has quit [Ping timeout: 248 seconds]
Leighton has quit [Quit: Leaving]
sepp2k has joined #ruby
jeka-91 has joined #ruby
marwinism has quit [K-Lined]
Ortuna has joined #ruby
sayan has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
Ortuna has quit [Client Quit]
julian-delphiki has joined #ruby
RomainT has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby
Ortuna has joined #ruby
bean has quit [Ping timeout: 256 seconds]
rickruby has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
Ortuna has quit [Client Quit]
beilabs has quit [Ping timeout: 256 seconds]
altamic has joined #ruby
altamic has left #ruby [#ruby]
arya has joined #ruby
diadara has joined #ruby
iamjarvo has quit [Quit: Leaving.]
JZTech101 has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
banghouse has joined #ruby
banghouse is now known as Guest75820
Ortuna has joined #ruby
sayan has joined #ruby
spider-mario has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
supaiku has joined #ruby
ybart_ has quit [Quit: ybart_]
yshh has joined #ruby
ybart has quit [Quit: ybart]
vlad_sta_ has quit [Ping timeout: 256 seconds]
Iszak_ has quit [Quit: Textual IRC Client: www.textualapp.com]
JZTech101 has joined #ruby
Ortuna has quit [Client Quit]
bothra has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
g3orge has joined #ruby
bothra has joined #ruby
Senjai has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
Opettaja has joined #ruby
<g3orge> what's the best way to manage gems? not for dependencies to an application. locally for libs and executables.. because everytime ruby gets updated I need to reinstall everything...
ronny has left #ruby ["WeeChat 0.3.9.2"]
beilabs has joined #ruby
daniel_-_ has joined #ruby
ephemerian has joined #ruby
adambeynon has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
bashdy has quit [Quit: bashdy]
k610 has joined #ruby
<joshu> how do you deal with "abort" when using mintiest?
<apeiros> stub it
<joshu> apeiros hey ;) "stub it"?
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<g3orge> nobody?
<apeiros> google "test double", "stubbing" and "mocking"
jjbohn has joined #ruby
ivanoats has joined #ruby
<havenwood> g3orge: Do you use RVM, chruby, rbenv or manage them yourself?
k610 has quit [Ping timeout: 245 seconds]
<havenwood> g3orge: RVM has a command for it. With the others I think just copy em over maintain a little script that installs a list of the gems you want.
DomKM has joined #ruby
<joshu> apeiros ok I've done that. What I guess I'm asking is that I have a single test_class.rb which contains my 5 method tests. I'm not testing everything just the important methods which send emails. So One of those methods in my class has an abort and when I run my tests the rest of them don't run when it reaches the method with the abort code.
arubin has joined #ruby
robscomputer has joined #ruby
<havenwood> g3orge: Oops, meant to say copy em over OR maintain a script.
robscomputer has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 264 seconds]
Michae___ has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
robscomputer has joined #ruby
<apeiros> joshu: yes, that's what you stub the abort method
<havenwood> g3orge: GEM_HOME, GEM_PATH, GEM_ROOT are prolly the env vars you'd want to look at. E.g.: echo $GEM_HOME
<g3orge> havenwood: I manage them myself
<apeiros> or rather, in your case actually you'd mock it. so it doesn't abort, but you can verify that abort was called.
alexandernst_ has joined #ruby
<g3orge> havenwood: I just install with gem install and I update ruby regularly. I don't care about older version, but i don't want to install everything all over again to the correct 1.x.x folder ...
<r0bglees0n> joshu: look at minitest/mock
<joshu> apeiros I don't understand. I should mock the abort in my test_class.rb file? in the particular test_method ?
jimg has joined #ruby
<joshu> r0bglees0n yeah on the site now but unsure
<g3orge> havenwood: I don't have any of those set
<apeiros> joshu: wherever you call a method which invokes abort
Neomex has joined #ruby
<apeiros> I suggest you google the terms so you understand what it does
<g3orge> are those control the install location of `gem install` ??
<havenwood> g3orge: GEM_HOME is the default repository location for gem installation.
<havenwood> g3orge: GEM_PATH is a colon-separated list of gem repository directories.
<r0bglees0n> joshu: should the test be calling abort on a pass?
lkba has quit [Ping timeout: 248 seconds]
<havenwood> g3orge: Maybe take a look at chruby, even if you don't want to use it it is an example of setting the env vars correctly: https://github.com/postmodern/chruby#readme
<g3orge> havenwood: so if I don't have them set, libs and exec get installed into .gem/ ??
<r0bglees0n> joshu: i wouldn't think it should if you're following a green path
<havenwood> g3orge: Also chgems: https://github.com/postmodern/chgems#readme
<alexandernst_> I'm looking for a way to have an infinite loop in C extension and call it from Ruby without blocking (aka return as soon as the method gets called) without using threads. Is there a way for doing it?
<g3orge> havenwood: thanks.. any docs about those env-vars available?
<r0bglees0n> coroutines/fibers alexandernst_ maybe
<r0bglees0n> youd pass control
<r0bglees0n> itd still block
ravster has left #ruby [#ruby]
<r0bglees0n> donno how itd work from C ext
jimg has quit [Ping timeout: 248 seconds]
harrymoreno_ has joined #ruby
<alexandernst_> r0bglees0n: no, the requisite is to be non-blocking at all. Maybe a loop is not what I should be looking for in the first place. I'm getting data via msgrcv (linux IPC) and I need to call msgrcv constantly, but maybe if I could integrate it with Ruby's event loop instead of doing an infinite loop?
danneu has joined #ruby
workmad3 has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
kote_ has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<g3orge> havenwood: do you suggest rbenv for my case? or is it's just for changing rubies?
madb055 has quit [Ping timeout: 260 seconds]
<havenwood> g3orge: rbenv uses shims instead of changing env vars, just a different way of managing
<havenwood> g3orge: I prefer chruby personally, up to your preference
madb055 has joined #ruby
razieliyo has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mercwithamouth has joined #ruby
harrymoreno_ has joined #ruby
<r0bglees0n> alexandernst_: i would read from the loop, push to a queue, and read from another thread, process there, i can't think of how to do it without threads of subprocesses.
mixel has quit [Quit: mixel]
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno_ is now known as harrymoreno
<r0bglees0n> or*
gyre007 has joined #ruby
<alexandernst_> r0bglees0n: :( I was teached that threads are really really *really* the last resort for everything (generally speaking), so I'd like to avoid creating a thread for the loop (thou I know it's safe enough and easy)
<r0bglees0n> joshu: so you're processing an unknown mail type for that to happen.is that suppose to happen? i cant help you if you dont even know if thats desired or not
<r0bglees0n> alexandernst_: two threads is not that much
<r0bglees0n> alexandernst_: just use a thread safe queue (ruby has one)
<jost> Why does ruby always use other method names than the established ones? Why is it "strip!" instead of "trim!"?
arya_ has joined #ruby
<joshu> r0bglees0n ok correct my script handles 4 specific emails. Anything that doesn't match those 4 is "processed" or "unknown" and the script aborts sending the "offending" email to faxmaster
<r0bglees0n> established by who?
RomainT has joined #ruby
<jost> by every other language I know. In Java, php and some more languages trimming a string is done by trim().
<rippa> in python it's strip()
<r0bglees0n> name 'some more languages'
arya has quit [Ping timeout: 248 seconds]
jjbohn has quit [Quit: Leaving...]
RomainT has quit [Ping timeout: 264 seconds]
<jost> Only some: JavaScript, VBA, Pascal, Scheme, C#, SQL
cj3kim has quit [Remote host closed the connection]
<jost> Don't want to start a flame war, was just pissed of for a moment that .trim! does not work :-)
<alexandernst_> r0bglees0n: no, it isn't. But that's not the point. The point that threads should be avoided (or I was teached that way) if there's another way of doing the same in only 1 thread. For example, what I'm trying to do could be easily achieved in 1 thread with some kind of event loop integration between the extension and Ruby. Something that could call the do_msgrcv on each event-loop tick.
monkegjinni has joined #ruby
Guest3227 has quit [Quit: ばいばい]
rouss has joined #ruby
Neomex has quit [Quit: Neomex]
Xeago has quit [Remote host closed the connection]
<r0bglees0n> what event loop
<r0bglees0n> does it even exist
<r0bglees0n> use eventmachine if you want a reactor loop
<joshu> r0bglees0n do you understand what's happening with my code now?
chile_andes has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
bhaak has quit [Read error: Operation timed out]
<becom33> http://pastebin.com/McWEYyZy I'm getting "undefined method `push' for nil:NilClass"
Takehiro has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
<rippa> becom33: put @app_name initialization inside 'initialize' method
wchun has quit [Quit: Leaving]
daniel_-_ has quit [Read error: Operation timed out]
jbpros has quit [Quit: jbpros]
<alexandernst_> r0bglees0n: that is a good idea. Didn't know about it. Let me research :)
harrymoreno has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.1]
postmodern has quit [Quit: Leaving]
<becom33> rippa, thanks :)
jjbohn has joined #ruby
Takehiro has joined #ruby
<joshu> yeah I don't get how adding mock = MiniTest::Mock.new mock.expect(abort, nil) allows my tests to run
mikepack has joined #ruby
KillerFox has quit [Ping timeout: 248 seconds]
mikemac has quit [Quit: Konversation terminated!]
r0bglees0n has quit [Quit: WeeChat 0.3.8]
bhaak has joined #ruby
crazymykl has joined #ruby
r0bgleeson has joined #ruby
johnkary has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
KillerFox has joined #ruby
tedwards_ has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
davorb_laptop has joined #ruby
harrymoreno has joined #ruby
banister`canal has joined #ruby
mikepack has joined #ruby
johnkary has quit [Client Quit]
Akuma has joined #ruby
mikepack has quit [Remote host closed the connection]
johnkary has joined #ruby
bobbyz has joined #ruby
tedwards_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
brianstorti has joined #ruby
<krainboltgreene> What kind of object would take a record and a data set and merge the latter into the former?
<krainboltgreene> Looking for a pattern name.
jeka-91 has quit [Quit: Leaving]
jeka-91 has joined #ruby
alem0lars has joined #ruby
mikepack has joined #ruby
mixel has joined #ruby
<r0bgleeson> krainboltgreene: Hash
KillerFox has quit [Ping timeout: 248 seconds]
<r0bgleeson> jk
<krainboltgreene> :P
<krainboltgreene> I think I'm going to go with a Binder object.
suporte85 has quit [Ping timeout: 256 seconds]
<r0bgleeson> im terrible with names
ivanoats has joined #ruby
armin has quit [Quit: leaving]
KillerFox has joined #ruby
<apeiros> the Thing That does Something pattern. clearly.
rouss has quit [Quit: Computer has gone to sleep.]
Opettaja has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bigmac has joined #ruby
ivanoats has quit [Ping timeout: 276 seconds]
Myconix has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Astral_ has joined #ruby
atmosx has joined #ruby
alexwh has left #ruby [#ruby]
arya has joined #ruby
Astralum has quit [Ping timeout: 276 seconds]
wchun has joined #ruby
iamjarvo has quit [Quit: Leaving.]
nari has quit [Ping timeout: 276 seconds]
sqa_bm has joined #ruby
Michae___ has joined #ruby
alexwh has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
obs has joined #ruby
Myconix_ has joined #ruby
ariedler has joined #ruby
Shirakawasuna has joined #ruby
banister`canal has quit [Remote host closed the connection]
Myconix has quit [Ping timeout: 248 seconds]
Myconix_ has quit [Client Quit]
Myconix has joined #ruby
Guest75820 is now known as banghouse
dmiller has joined #ruby
Xeago has joined #ruby
pskosinski_ has joined #ruby
pskosinski has quit [Remote host closed the connection]
pskosinski_ is now known as pskosinski
kote has joined #ruby
altivec has joined #ruby
brianstorti has quit [Quit: brianstorti]
alexwh has left #ruby [#ruby]
arya has quit [Ping timeout: 248 seconds]
Azulinho has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
arya has joined #ruby
leonid_ has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
lyanchih has quit [Quit: lyanchih]
dmiller has quit [Remote host closed the connection]
boscho82 has joined #ruby
jbpros has joined #ruby
warlock has joined #ruby
boscho82 has left #ruby [#ruby]
razi has quit [Quit: Leaving.]
aspiers has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
jimg has joined #ruby
davorb_laptop has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Michae___ has quit [Ping timeout: 256 seconds]
verto has joined #ruby
Michae___ has joined #ruby
alexmreis has joined #ruby
alem0lars has quit [Quit: Leaving]
keppy has joined #ruby
Destiny has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
jds_ has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 276 seconds]
DestinyAwaits has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
jbpros has quit [Quit: jbpros]
jasonkuhrt has joined #ruby
monkegjinni has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
Zeeraw has joined #ruby
cj3kim has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
BizarreCake has joined #ruby
Qwak has quit []
timkohrumel has joined #ruby
monkegjinni has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
|RicharD| has joined #ruby
banister`canal has joined #ruby
<|RicharD|> Hi anyone use sequel ?
<havenwood> |RicharD|: Yes, nice gem.
<|RicharD|> i have an problem
feniix has joined #ruby
<havenwood> |RicharD|: oh no!
<|RicharD|> for updating data :S
<|RicharD|> i don't know how i can update a row after a select
<|RicharD|> i looked into docs, but not found nothing of useful
<feniix> hello I have this https://gist.github.com/anonymous/5694109 is there a way to iterate that but also the value to the left of each item? I want to be able to print the value and the description
<feniix> forgive my newbieness :D
dmiller has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
<MrZYX> feniix: google ruby hashes, then have a look at Hash#each in the docs
<feniix> MrZYX: thanks
jds_ has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
cj3kim has joined #ruby
<|RicharD|> i found it http://stackoverflow.com/questions/13383694/sequel-migration-update-with-a-rows-id but isn't the same thing, i know
bigmac has quit [Ping timeout: 256 seconds]
pitzips has joined #ruby
ivanoats has joined #ruby
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
robscomputer has quit [Remote host closed the connection]
daniel_-_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
jds_ has joined #ruby
bigmac has joined #ruby
ivanoats has quit [Ping timeout: 245 seconds]
g3orge has quit [Quit: leaving]
nowthatsamatt has left #ruby [#ruby]
jasonkuhrt has quit [Quit: Leaving...]
robscomputer has joined #ruby
ntus1017 has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
moos3 has joined #ruby
hogeo has joined #ruby
deception has joined #ruby
Destiny has quit [Quit: Leaving]
urbanmonk has quit [Quit: urbanmonk]
DomKM1 has joined #ruby
DomKM has quit [Read error: Connection reset by peer]
hogeo_ has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
Galaxor has joined #ruby
<ShapeShifter499> hi
kobain has joined #ruby
<ShapeShifter499> can someone please suggest some free material that I can use to fully learn how to use ruby for a non-programmer?
madnificent has joined #ruby
<ShapeShifter499> I am to learn ruby without spending a cent on books
<MrZYX> what about online courses? :P
<MrZYX> scnr
Nanuq has joined #ruby
<ShapeShifter499> MrZYX, just to let you know I have a non-existent budget
<ShapeShifter499> MrZYX, are there free courses?
<MrZYX> I'm sure but I can't say anything about their quality
<madnificent> with rmagick, is there any way to ensure the files have been converted and written to disk? i further process them, but i seem to be operating on the older files.
moos3 has quit [Quit: Computer has gone to sleep.]
altamic has joined #ruby
robscomputer has quit [Ping timeout: 264 seconds]
altamic has left #ruby [#ruby]
robscomputer has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
<Xeago_> madnificent: write them to disk and see if the file exists?
<Xeago_> instead of overwriting them
<MrZYX> ShapeShifter499: there's a ruby version of learncodethehardway http://ruby.learncodethehardway.org/, but I'd start with something like http://tryruby.org/levels/1/challenges/0 to get familiar with some basic concepts first
dambler has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<ShapeShifter499> MrZYX, what no learncodetheeasyway?
<ShapeShifter499> lol
idoru has joined #ruby
<MrZYX> I didn't try the ruby version but I can recommend the style
<Xeago_> madnificent: e.g. abcdef123456.jpg => abcdef123456.orig.jpg + abcdef123456.100x100.jpeg
<madnificent> Xeago_: that's somewhat complex. the file is created by Carrierwave. what I'm doing is allowing the user to manipulate the image (rotate) and i want the thumbnails to be generated correctly after that. however, the filename should stay the same for CarrierWave
<ShapeShifter499> MrZYX, I'll check that one out
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<madnificent> Xeago_: if not for that, your suggestion is sane (well, and the fact that the creation of the file doesn't ensure that the data has been written into it already)
jds_ has quit [Remote host closed the connection]
<ShapeShifter499> MrZYX, I've tried tryruby.org the site kept failing to complete tasks making me have to reload challenges
dmiller has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
bigmac has quit [Ping timeout: 246 seconds]
Ortuna has joined #ruby
<Xeago_> madnificent: you can do blocking writes, depending on your filesystem reads after the last write operation being returned should be consistent
<havenwood> ShapeShifter499: If you sign up at with CodeSchool it will save your spot.
RomainT has joined #ruby
nezumi has quit [Read error: Operation timed out]
<ShapeShifter499> havenwood, oh I didn't know that
<ShapeShifter499> havenwood, thank you for the tip
<madnificent> Xeago_: now how to convince rmagick that that is a good thing to have :)
alexwh has joined #ruby
johnkary has quit [Quit: @johnkary]
mercwithamouth has joined #ruby
gluma83 has quit [Ping timeout: 248 seconds]
RomainT has quit [Ping timeout: 264 seconds]
<Xeago_> also, I discourage rmagick, it leaks..
Naeblis|XChat has joined #ruby
<Xeago_> not sure if there is a suitable alternative
<MrZYX> mini_magick and carrierwave play pretty well together
<supaiku> are there any downsides when casting a string (like "Hello World!") to a symbol except that it looks ugly? (:"Hello World!")
altivec has quit [Quit: Computer has gone to sleep.]
<Xeago_> supaiku: permanent memory allocation
nomenkun has quit [Remote host closed the connection]
<MrZYX> the Symbol will never get garbage collected, but the question is why you think you need that
<|RicharD|> ShapeShifter499: try to contact author of some ruby book and ask a free copy
<madnificent> MrZYX: i'm not convinced it wouldn't have the same issue i have now. but yes rmagick can apparently leak memory. not my main concern at the moment :)
senayar has joined #ruby
<ShapeShifter499> |RicharD|, have you gotten a book that way?
<Xeago_> I've gotten a c++ book that way
<|RicharD|> no because i don't asked
<MrZYX> mini_magick is no binding but a wrapper around the shell commands, so it naturally writes everything to disk all the time
altivec has joined #ruby
<|RicharD|> i have a job and i live in a places not poor
<supaiku> well, i use names as hash keys and some names unfortunately have a space... guess then I make up something else
<|RicharD|> but i think that if you ask, they give it...
sayan has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
<MrZYX> supaiku: hash has no problem with taking strings as keys
<Xeago_> supaiku: never ever let user input turn into symbols
<|RicharD|> also because there is also p2p…so i think that if you explain your situation, their know your need and give you
<|RicharD|> i think that culture is over money
<ShapeShifter499> Xeago_, |RicharD| I guess it couldn't hurt to try, I'd feel better about it over using some shady online method to get book content
phipes has joined #ruby
<|RicharD|> exact… i think that they will appreciate it
<|RicharD|> and give your a free book copy
<|RicharD|> but remember(maybe i will banned for say this): don't stop for money
<|RicharD|> if you want learn
<|RicharD|> do it
<|RicharD|> for your fortune there is many free books etc...
<supaiku> Xeago_: ofc those names are handled by me no user interaction here. but i always assumed symbols would be better as keys because they always stay the "same" in memory
<heftig> they are better, but only if you don't have to use to_sym
niklasb has quit [Read error: No route to host]
<MrZYX> >> a = "Hello World"; b = a.dup; [a.hash == b.hash, a.object_id == b.object_id]
<eval-in_> MrZYX => [true, false] (http://eval.in/32507)
<atmosx> hm
<|RicharD|> when i learned at my times there aren't stack overflow etc… and linux isn't so evaluated and easy like now(ubuntu etc…) so you must used windows and if you don't had money, you can do only one thing…and i don't deny it…thanks to p2p i have learned , studied and make money…and NOW i buy ALL!
<atmosx> I'm getting a weird gets.chomp error
jjbohn has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
shevy2 has joined #ruby
jimg has joined #ruby
<atmosx> hmm
shevy has quit [Ping timeout: 256 seconds]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
wargasm has joined #ruby
<heftig> no stdout?
<atmosx> heftig: talking to me?
<heftig> yes
<atmosx> ehm it's there in my paste
<atmosx> the first line is the stdout from cli
<heftig> er, no stdin
<atmosx> ah no
<atmosx> doesn't ask
<atmosx> this was working before...
<MrZYX> yeah, inspect $stdin
<atmosx> I applied a case ARGV[0] down farther teh code...
<atmosx> to put 3 options in the cli
<atmosx> hmm
keppy has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
vlad_sta_ has quit [Ping timeout: 256 seconds]
BizarreCake has quit [Quit: Leaving]
nathancahill has joined #ruby
jimg has quit [Ping timeout: 256 seconds]
<ShapeShifter499> Xeago_, |RicharD| MrZYX thank you guys for the info
<atmosx> it's the case
Z_Mass has quit [Ping timeout: 245 seconds]
<atmosx> statement for some reason ...
<|RicharD|> anyone know how update a row with sequel ? https://gist.github.com/anonymous/860c5d610efa02c0957e
<|RicharD|> i tried with row.update but nothing
jetblack has quit [Quit: leaving]
<|RicharD|> i have also tried to settings so : questions = DB[:questions].for_update
timkohrumel has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
fritz79 has joined #ruby
leonid_ has joined #ruby
jasonkuhrt has joined #ruby
Naeblis|XChat has quit [Ping timeout: 264 seconds]
<atmosx> |RicharD|: ataset.where('price < ?', 100).update(:active => true)
<atmosx> that's the syntax
<|RicharD|> so i can't do
<|RicharD|> on a row ?
<atmosx> you need to update the entire row?
<|RicharD|> no but i need to do some regexp
<|RicharD|> and save new things
<|RicharD|> so i can't use sql statment
<atmosx> row.where(question: 'something').update(answer: 'something else')
<|RicharD|> why i need a where statement if the row
<atmosx> |RicharD|: I didn't get it, what are you trying to do
<MrZYX> also at least some DBMS can do regexp :P
<|RicharD|> is already selected ?
<|RicharD|> i select all questions
jds_ has joined #ruby
<|RicharD|> and do a cycle(each)
mixel has quit [Quit: mixel]
<atmosx> |RicharD|: yeah I got it now, did you try return the value of :question to make sure it actually exists?
<|RicharD|> now
<|RicharD|> i check if the string
<|RicharD|> have a [FIGURA something_variable]
<|RicharD|> if yes it must remove it and update the row
leonid_ has quit [Ping timeout: 246 seconds]
<atmosx> MrZYX: https://gist.github.com/atmosx/5694272 <-- any idea why if i call methods through case statement don't work but if I call them out of it work fine? … same error on rb1.9/2.0
kenneth has joined #ruby
spider-mario has joined #ruby
pitzips has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
jeka-91 has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
jetblack has joined #ruby
<MrZYX> hm, no makes no sense to me
<atmosx> MrZYX: ok thanks
timkohrumel has joined #ruby
<atmosx> |RicharD|: you get no error, just the conversion never happens?
Ortuna has quit [Quit: Computer has gone to sleep.]
<|RicharD|> atmosx: exact
<atmosx> add some puts
yashshah_ has joined #ruby
<MrZYX> atmosx: hm I get the same error outside the case
<|RicharD|> in terminal
brianstorti has joined #ruby
<|RicharD|> it update it
<|RicharD|> but in db NO
timkohrumel has quit [Remote host closed the connection]
<atmosx> |RicharD|: run the code I gave add puts to every step, maybe something really stupid is happening which we can't figure out.
<|RicharD|> yes
<|RicharD|> the puts are OK
<MrZYX> atmosx: okay, we both need to readup on Kernel#gets, using $stdin.gets works
nfk has quit [Quit: yawn]
<|RicharD|> it remove the [FIGURA … ]
<|RicharD|> the problem is the db
<atmosx> MrZYX: I rarely use it to tell you the truth, I was just too bored to use optparse, also this script could become a little more DRY
<|RicharD|> o no wait
JZTech101 has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
<atmosx> MrZYX: hmm Kernel#gets?
ivanoats has joined #ruby
<MrZYX> it's basically ARGF.gets it seems
dmiller has joined #ruby
Z_Mass has joined #ruby
Michae___ has quit [Remote host closed the connection]
<|RicharD|> the puts are ok
[1]tangy has joined #ruby
Michae___ has joined #ruby
<|RicharD|> atmosx: the puts are ok...
teddyp1cker has joined #ruby
yashshah_ has quit [Ping timeout: 276 seconds]
jasonkuhrt has quit [Quit: Leaving...]
areil has quit [Remote host closed the connection]
lucianosousa has joined #ruby
ivanoats has quit [Ping timeout: 264 seconds]
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
Z_Mass has quit [Client Quit]
yashshah_ has joined #ruby
<atmosx> |RicharD|: are both class.string?
<|RicharD|> atmosx: not change nothing in db
nomenkun has joined #ruby
<|RicharD|> i have also done:
<|RicharD|> puts new_question
<|RicharD|> row.update(:question => new_question) # error
<|RicharD|> puts row[:question]
<|RicharD|> end
<|RicharD|> puts row[:id]
robscomputer has quit [Ping timeout: 252 seconds]
<|RicharD|> and row[:question] match with new_question
<|RicharD|> but in db nothing changes...
ariedler has quit [Remote host closed the connection]
<atmosx> |RicharD|: puts new_question.class and puts row[:question].class ?
<|RicharD|> now i try
jjbohn has quit [Quit: Leaving...]
<|RicharD|> say: Sequel::SQL::Blob
dmiller has quit [Ping timeout: 276 seconds]
jurbat has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has quit [Remote host closed the connection]
keppy has joined #ruby
<atmosx> both?
<atmosx> |RicharD|: hai lo stesso risultato su new_question ed row[:question] ?
jetblack has quit [Quit: leaving]
timkohrumel has joined #ruby
<|RicharD|> sei italiano ?
<|RicharD|> si
JZTech101 has joined #ruby
<|RicharD|> yes
<atmosx> si
<atmosx> beh non proprio, mia madre e' Siciliana
niklasb has joined #ruby
<atmosx> molto strano non ho mai avuto problemi con sequel
Cultofmetatron has joined #ruby
<|RicharD|> la sicilia PER ORA è ancora in italia
<|RicharD|> sempre che con il governo attuale non cambi qualcosa
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
altivec has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
timonv has joined #ruby
jds_ has quit [Remote host closed the connection]
mikepack has joined #ruby
nomenkun has joined #ruby
h8R has joined #ruby
RomainT has joined #ruby
kidoz has joined #ruby
b0oh has joined #ruby
jjbohn has joined #ruby
[1]tangy has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Chicks dig it]
pitzips has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
[WRD]Nakilon has joined #ruby
freerobby has joined #ruby
vlad_sta_ has joined #ruby
jetblack has joined #ruby
bricker`LA has quit [Quit: leaving]
fritz79 has quit [Ping timeout: 256 seconds]
ArchBeOS has quit [Remote host closed the connection]
tanob has joined #ruby
RomainT has quit [Ping timeout: 252 seconds]
sqa_bm has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
nezumi has joined #ruby
<tanob> hey, I have a class that implements to_json, it builds a hash and returns the result of #to_json on it. Problem is when I have a list of instances of that object, the result of #to_json in the array is producing a double encoded string, what's the issue?
timkohrumel has quit [Remote host closed the connection]
io_syl_ has joined #ruby
Jinie has quit [Quit: ZNC - http://znc.in]
io_syl has quit [Read error: Operation timed out]
Jinie has joined #ruby
butblack has joined #ruby
Jinie is now known as jinie_
takeru has quit [Remote host closed the connection]
jinie_ is now known as jinie
brianstorti has left #ruby [#ruby]
brianstorti has joined #ruby
takeru has joined #ruby
ariedler has joined #ruby
incorvia_ has quit [Remote host closed the connection]
incorvia has joined #ruby
_cheney4 has joined #ruby
jinie has quit [Client Quit]
Michae___ has quit [Remote host closed the connection]
dmiller has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
phipes has quit [Quit: phipes]
altamic has joined #ruby
altamic has quit [Client Quit]
harrymoreno_ has joined #ruby
takeru has quit [Ping timeout: 246 seconds]
sqa_bm has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
<MrZYX> tanob: implement as_json, not to_json and return something that should be called #to_json on, i.e. your hash without calling .to_json on it on your own
butblack has left #ruby [#ruby]
jimg has joined #ruby
agjacome has quit [Quit: leaving]
AndChat| has quit [Ping timeout: 252 seconds]
Banistergalaxy has joined #ruby
Ortuna has joined #ruby
awc737 has quit [Ping timeout: 240 seconds]
jimg has quit [Ping timeout: 246 seconds]
phipes has joined #ruby
jjbohn has quit [Quit: Leaving...]
timkohrumel has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
jinie has joined #ruby
jinie has quit [Remote host closed the connection]
<tanob> MrZYX: cool, thanks!
tanob has quit [Quit: leaving]
awc737 has joined #ruby
jinie has joined #ruby
<havenwood> nice, an online mruby repl: http://joshnuss.github.io/mruby-web-irb/
nomenkun has quit [Remote host closed the connection]
andikr has joined #ruby
Michael__ has joined #ruby
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
skattyadz has joined #ruby
jds_ has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
paulswilliamsesq has joined #ruby
LyonJT has joined #ruby
teclator has joined #ruby
jds_ has quit [Ping timeout: 246 seconds]
IceDragon has joined #ruby
ehaliewicz has joined #ruby
viszu has quit [Quit: Leaving.]
druonysuse has joined #ruby
yashshah has joined #ruby
viszu has joined #ruby
h8R has quit [Ping timeout: 256 seconds]
druonysus has quit [Ping timeout: 245 seconds]
k610 has joined #ruby
<banister`canal> havenwood: weird, he uses a separate ace editor for each input
<banister`canal> havenwood: i dont know how heavy that is, but it feels heavy :P also try this
<banister`canal> x = 10
<banister`canal> x
<banister`canal> the x is unavailable in the next line
<havenwood> >.>
<banister`canal> cos he creates a separate session for each invocation
RomainT has joined #ruby
<|RicharD|> someone with experience with sequel ?
RomainT has quit [Client Quit]
ivanoats has joined #ruby
<havenwood> ha, hadn't tried it yet, was looking at the repo - well that isn't very useful then
<banister`canal> havenwood: he carries across method definitions though
<havenwood> banister`canal: hmm
<banister`canal> havenwood: ivars carry across too
<banister`canal> so maybe it's just a binding issue
<banister`canal> Binding*
jjbohn has joined #ruby
Kricir has joined #ruby
kidoz has quit [Read error: Operation timed out]
Michael__ has quit [Remote host closed the connection]
pkrnj has quit [Ping timeout: 245 seconds]
h8R has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
Michael__ has joined #ruby
IceDragon has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
IceDragon has joined #ruby
kenneth has quit [Quit: kenneth]
<|RicharD|> how i can fix the problem of insert a string with ' o " into db mysql ? i have problem because when i do: con.query("") or con.query('') often the string break the query
<|RicharD|> orm fix it automaticaly
timkohrumel has quit [Remote host closed the connection]
krainboltgreene has quit [Quit: krainboltgreene]
madb055 has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
sqa_bm has quit [Remote host closed the connection]
sqa_bm has joined #ruby
LyonJT has quit [Remote host closed the connection]
butblack has joined #ruby
jbpros has joined #ruby
csaunders has joined #ruby
ivanoats has quit [Ping timeout: 256 seconds]
ephemerian has left #ruby [#ruby]
teclator has quit [Ping timeout: 252 seconds]
sqa_bm has quit [Ping timeout: 246 seconds]
h8R has quit [Ping timeout: 246 seconds]
senayar has quit [Ping timeout: 240 seconds]
butblack has quit [Quit: butblack]
statarb3 has quit [Quit: Leaving]
ty-mat has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
h8R has joined #ruby
tymat has joined #ruby
Banistergalaxy has joined #ruby
banjara1 has quit [Quit: Leaving.]
butblack has joined #ruby
supaiku_ has joined #ruby
dambler has quit [Quit: Textual IRC Client: www.textualapp.com]
jds_ has joined #ruby
razi has joined #ruby
Proshot has quit [Remote host closed the connection]
supaiku has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
<apeiros> |RicharD|: never use string interpolation with db queries. you're creating a vulnerability right there. google sql injection.
yacks has quit [Quit: Leaving]
lucianosousa has quit [Quit: lucianosousa]
<apeiros> |RicharD|: that's what bind variables exist for. with sequel, you probably don't even need that
Guedes has quit [Ping timeout: 245 seconds]
Cmg__ has joined #ruby
Takehiro has quit [Remote host closed the connection]
alexmreis has quit [Quit: Leaving.]
m8 has quit [Ping timeout: 264 seconds]
robscomputer has joined #ruby
fwaokda has joined #ruby
slash_nick has joined #ruby
slash_nick has joined #ruby
bluehavana_ has joined #ruby
IcyDragon has joined #ruby
<fwaokda> I have a dynamic substring that I want to remove, it begins and ends with a pattern ( "/usr/local/" & ".txt"). How can I remove this substring based on that information from my string?
IceDragon has quit [Ping timeout: 276 seconds]
vlad_sta_ has quit [Remote host closed the connection]
m8 has joined #ruby
ThePicard has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
mikepack has quit [Remote host closed the connection]
<MrZYX> remove? so you always want to end up with /usr/local/.txt ?
mikepack has joined #ruby
<apeiros> fwaokda: ri String#sub
<Hanmac> >> "/usr/local/lib/whatever/file.txt"[/\/usr\/local\/(.+)\.txt/,1]
<eval-in_> Hanmac => "lib/whatever/file" (http://eval.in/32516)
<apeiros> on a sidenote: %r{} to construct the regex - avoids having to escape all the /'s
IcyDragon is now known as IceDragon
<apeiros> as Hanmac just did :-p
<fwaokda> MrZYX, no i want to remove "/usr/local/blah/blah/blah/changes/blah.txt" from my much larger string
vlad_sta_ has joined #ruby
<apeiros> Hanmac: .+?, also sub with '', not 1
<apeiros> (he wants to remove it, not extract it)
<MrZYX> ah, yeah then just .sub(%r[/usr/local/.+\.txt], '')
<fwaokda> thanks :D
jbpros has quit [Quit: jbpros]
<apeiros> .+?
<r0bgleeson> lets be fucked up and write it as (?:.+)
<apeiros> dudes
ivanoats has joined #ruby
<apeiros> y'all fail in regex 101 :-p
<MrZYX> :
<MrZYX> P
<Xeago_> thanks for %r[] makes my life easier
<MrZYX> I just make no assumptions about his data
m8 has quit [Read error: Connection reset by peer]
<MrZYX> he said one substring :P
<apeiros> MrZYX: in that case, you even more .+?
Xeago_ is now known as Xeago
m8 has joined #ruby
* apeiros notices that he's talking to walls again
<MrZYX> you just don't recognize when being trolled :P
Neomex has joined #ruby
Neomex has quit [Client Quit]
jbpros has joined #ruby
<Xeago> recognizing trolls is something I also have yet to learn :\
<apeiros> it's a stupid idea to troll about something like that.
vlad_starkov has quit [Ping timeout: 264 seconds]
<Xeago> I never recognize trolls unless there is a surplus of emoticons
<apeiros> but I hope you feel good about possibly misinforming people who don't know better.
bluehavana_ is now known as bluehavana
viszu has quit [Quit: Leaving.]
<r0bgleeson> why would he be a troll?
jimg has joined #ruby
stonevil has joined #ruby
<r0bgleeson> MrZYX: you also want \Z
vlad_sta_ has quit [Remote host closed the connection]
<MrZYX> no
<MrZYX> this time really, he said "substring"
IceDragon has quit [Ping timeout: 256 seconds]
jjbohn has quit [Quit: Leaving...]
<r0bgleeson> oh, so he did
IcyDragon has joined #ruby
Neomex has joined #ruby
jimg has quit [Ping timeout: 248 seconds]
timkohrumel has joined #ruby
mixel has joined #ruby
timkohrumel has quit [Read error: Connection reset by peer]
timkohrumel has joined #ruby
Neomex has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
banister`canal has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
yashshah has quit [Ping timeout: 256 seconds]
ariedler has quit [Remote host closed the connection]
Neomex has joined #ruby
cj3kim has quit [Remote host closed the connection]
tchebb has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
motto has joined #ruby
thomaslee has joined #ruby
m8 has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
IcyDragon is now known as IceDragon
nathancahill has quit [Quit: nathancahill]
slash_nick has quit [Ping timeout: 264 seconds]
Retistic has joined #ruby
<|RicharD|> apeiros: is for a my script
harrymoreno has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
<|RicharD|> isn't a thing public…so no security issues..anyway with sequel i have problem with update
harrymoreno has joined #ruby
tchebb has joined #ruby
robscomputer has quit [Remote host closed the connection]
nomenkun has joined #ruby
robscomputer has joined #ruby
supaiku_ has quit [Quit: Verlassend]
nomenkun has quit [Ping timeout: 252 seconds]
razi has quit [Read error: Connection reset by peer]
icole has joined #ruby
razi has joined #ruby
robscomputer has quit [Ping timeout: 276 seconds]
<shevy2> Xeago it is virtually impossible to detect sarcasm in written sentences
Michael__ has quit [Remote host closed the connection]
shevy2 is now known as shevy
<joshu> I'm not getting anywhere with fixing my tests :(
<shevy> remove the tests
becom33 has quit [Ping timeout: 248 seconds]
supergiantrobot has quit [Quit: supergiantrobot]
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<joshu> shevy hehe
<joshu> sarcasm detected :P
nezumi has quit [Ping timeout: 252 seconds]
max__ has joined #ruby
<shevy> !!!
<shevy> there was no sarcasm :(
max__ is now known as Guest59568
m8 has joined #ruby
johnkary has joined #ruby
<joshu> I'm going to leave the testing for now and focus on fixing other issues.
motto has quit [Ping timeout: 252 seconds]
poga_ has joined #ruby
Retistic has quit [Quit: Retistic]
poga has quit [Read error: Connection reset by peer]
Michael__ has joined #ruby
alienven1m has quit [Ping timeout: 256 seconds]
b0oh has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
<joshu> Regarding building a gem which will be an executable. How should I deal with logging? At the moment in development I log to a file, but how does that work when my script is a gem, e.g. log/myscript.log file won't be accessible right?
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<Xeago> joshu: write to stderr
<Xeago> that is usually done, and allow for configuring of debug levels
jjbohn has joined #ruby
<joshu> so in my code Logger.new($stderr) ?
<heftig> just Logger.new, i guess. i think stderr as output is already the default
<heftig> never mind, it's not
<joshu> Xeago ok so when my script is a gem when the executable is run logging will show in the console? As this script will be run without user intervention how would I configure logging to a file when it's run as a gem?
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
codecop has quit [Ping timeout: 276 seconds]
<apeiros> $stderr default, -l/--log FILE option for those who can't do `2> FILE`
LaPetiteFromage has joined #ruby
Jackneill has quit [Ping timeout: 276 seconds]
philcrissman has joined #ruby
ivanoats has quit [Remote host closed the connection]
Kricir has joined #ruby
sqa_bm has joined #ruby
<joshu> apeiros so the first option -l/ --log FILE would require opt parse or similar…whereas `2> FILE` would just require executing the binary like this myscript 2> LOG_FILE
timonv has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
<MrZYX> can we not call it a binary please? :P
becom33 has joined #ruby
becom33 has joined #ruby
<apeiros> yupp. if you're the sole use of the tool, I'd probably not do -l/--log and just use stderr redirection
vlad_starkov has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
jjbohn has quit [Ping timeout: 256 seconds]
Jalada has joined #ruby
motto has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 240 seconds]
mikepack_ has joined #ruby
sqa_bm has quit [Ping timeout: 256 seconds]
Elico has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
<Elico> hey i'm looking to ues Net::Ping binding specific interface on my machine. can it be done?
Kricir has quit [Ping timeout: 246 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
codecop has joined #ruby
senayar has joined #ruby
ariedler has quit [Remote host closed the connection]
Ortuna has joined #ruby
andikr has quit [Remote host closed the connection]
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
<joshu> MrZYX executable better?
<MrZYX> hm, a little bit :P
alexmreis has joined #ruby
m_3 has joined #ruby
<joshu> apeiros but when you helped me with my code bin/ffm and added a FFM.config do |ffm| block you had ffm.logger = Logger.new('log/ffm.log')
rangle has joined #ruby
<joshu> apeiros then in lib/ffm.rb class << self alias tap config end @logger = Logger.new($stderr)
Neomex has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
m8 has joined #ruby
<matti> joshu: ;]
<matti> Mon_Ouie: ;]
johnkary has quit [Quit: @johnkary]
<joshu> apeiros as I'm going to make this a gem as you've explained earlier. Is the bin/ffm config block irrelevant code?
<joshu> matti jendobre kollega ;)
<matti> joshu: Dobry, dobry.
thomaslee has quit [Remote host closed the connection]
<joshu> matti you not bored today matti :P
Ortuna has quit [Client Quit]
<matti> I am always bored.
motto has quit [Ping timeout: 276 seconds]
m_3 has quit [Remote host closed the connection]
bothra has quit [Read error: Connection reset by peer]
<atmosx> Guys, in TCPServer and TCPSocket session.read and session.gets are teh same thing?
<Mon_Ouie> 'alut matti :)
bothra has joined #ruby
eldariof has quit [Ping timeout: 252 seconds]
razi has quit [Ping timeout: 245 seconds]
<matti> Mon_Ouie: How's tricks?
m_3 has joined #ruby
<Mon_Ouie> atmosx: #read reads the whole thing, until EOF; #gets reads a single line.
<atmosx> Mon_Ouie: thanks
cyong has joined #ruby
<atmosx> so I'll use read in teh object transfer, although...
<Mon_Ouie> Fine. Exams starting on Tuesday
<atmosx> hmm still I don't see how they are suppoesed to be used since data is serialized
<atmosx> Mon_Ouie: exams? where you at?
Neomex has quit [Client Quit]
* atmosx exams already started
<Mon_Ouie> I'm in Belgium
<atmosx> I'm in Czech Republic
<atmosx> okay, good luck with your exams :-P
<Elico> Good LUCK
<Mon_Ouie> Same to you ;)
atno has quit [Remote host closed the connection]
<matti> Mon_Ouie: Good luck!
<atmosx> hah
<matti> To you too atmosx
<atmosx> thanls :-)
<atmosx> ops thsnks
<atmosx> asdlkfjal;sdkfjl;adskjfa
<atmosx> thanks :-P
Ortuna has joined #ruby
jost has quit [Quit: jost]
incorvia has quit [Remote host closed the connection]
banister`canal has joined #ruby
workmad3 has joined #ruby
<Elico> anyone?? about the Net::Ping thing I asked? maybe you have a clue?
timkohrumel has quit [Remote host closed the connection]
atno has joined #ruby
m8 has quit [Ping timeout: 246 seconds]
Guest59568 has quit [Quit: p33 ba115]
taqutor has joined #ruby
alexmreis has quit [Quit: Leaving.]
alexmreis has joined #ruby
cmgamer has joined #ruby
cmgamer has quit [Client Quit]
darthdeu has joined #ruby
Alina-malina has quit [Quit: Leaving]
Cmg__ has quit [Ping timeout: 276 seconds]
Alina-malina has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<|RicharD|> any alternative to sequel ?
<warlock> Ok, noob here. If I define a method, is there a way to prototype it so I can write my main code before defining it?
iamjarvo has joined #ruby
codecop has quit [Ping timeout: 260 seconds]
darthdeus has quit [Ping timeout: 264 seconds]
razi has joined #ruby
iamjarvo has quit [Client Quit]
splittingred has joined #ruby
leonid_ has joined #ruby
momomomomo has joined #ruby
razi1 has joined #ruby
razi has quit [Read error: Connection reset by peer]
<atmosx> |RicharD|: datamapper
<atmosx> |RicharD|: but sequel is the stat-of-art
<|RicharD|> i know
<atmosx> |RicharD|: and of course if you're dealing with RoR ActiveRecord
<|RicharD|> but i have the problem...
<|RicharD|> :(
<atmosx> |RicharD|: try asking Stack Overflow users
<|RicharD|> yes yes for for activerecord
mercwithamouth has quit [Ping timeout: 246 seconds]
<|RicharD|> never used stack overflow but yes i will try it !
<|RicharD|> only that i have few hours/day
m8 has joined #ruby
<|RicharD|> and this is a internal script
<|RicharD|> for a little task
paulswilliamsesq has quit [Remote host closed the connection]
<|RicharD|> not a thing for users...
<atmosx> |RicharD|: I like datamapper better over sequel's
slash_nick has quit [Ping timeout: 260 seconds]
<atmosx> |RicharD|: but apparently sequel's code base is better, more polished etc. Try out datamapper anyway, they made a release a coupld of weeks before… (After 2 years or something)
Iszak_ has joined #ruby
motto has joined #ruby
dambler has joined #ruby
<atmosx> warlock: modules?
<|RicharD|> i will try data mapper…thx…
Jaguarstrike has joined #ruby
<|RicharD|> in theory i can also do this script in ruby…but fuck…it's shit, use ror for a script
<warlock> atmosx I'm not sure. All I want to do is a use a method before I define it later in the program.
<atmosx> warlock: what do you mean later?
<warlock> atmosx For instance..
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
RockFight has joined #ruby
RockFight has quit [Client Quit]
<atmosx> warlock: you can define/use the methods through-out your prog no matter when they are defined… I mean it's not going from top-down.
<warlock> atmosx: (some code that calls a method called display_menu) .. (def display_menu code end)
<atmosx> warlock: we use private methods all the time and they are always defined at the bottom.
<atmosx> warlock: yes sure you can.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
phipes has quit [Quit: phipes]
momomomomo has quit [Quit: momomomomo]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
Cultofmetatron has joined #ruby
butblack_ has joined #ruby
<warlock> atmosx: ok, then i'm doing something wrong... you just out the method name on a line to call it yes? I get the error "undefined local variable or method"
m8 has quit [Ping timeout: 252 seconds]
<warlock> but i don't get that error if I try to call it after definition...
butblack has quit [Ping timeout: 256 seconds]
butblack_ is now known as butblack
<Mon_Ouie> Then you didn't define it properly or you mistyped it somehow
<atmosx> warlock: like that ? https://gist.github.com/atmosx/5694958
IrishGringo has joined #ruby
<Mon_Ouie> The order doesn't matter, it just has to be defined before it is called (and usually, by the time any method is run, everything has been defined already)
<atmosx> warlock: show me the code
<warlock> atmosx ok sure
<workmad3> Mon_Ouie: unless you're writing something script-like, so your code execution is happening at the top level
rdark has quit [Quit: leaving]
codecop has joined #ruby
<Mon_Ouie> Yeah, then you'd need to wrap it in a method to swap the order
<warlock> Total beginner here, just trying to write a simple menu method, no classes.
baroquebobcat has quit [Quit: baroquebobcat]
<atmosx> Mon_Ouie: Can I serialize staff on the fly like: list = Marshal.dump(method(something))
<atmosx> ?
<atmosx> I think i can (I should)
<Mon_Ouie> Sure
<atmosx> nice
Jaguarstrike has quit [Quit: Leaving]
<Mon_Ouie> warlock: You do need to define display_menu before you call it.
butblack has left #ruby [#ruby]
<Mon_Ouie> What we meant was, if you had another method that used display_menu, you could define it either before or after display_menu and it would work properly
<atmosx> while warlock was asking things, I confused him with workmad3 … and I was like "I have the feeling this guy is asking strange things today :-p"
<warlock> Mon_Ouie: Ok, so there's no way to prototype it before I define it, so I can use it beforehand?
<warlock> atmosx: lol!
<Mon_Ouie> well you could do something like def main; display_menu; end and call main at the end, that's not common practice though
<Mon_Ouie> Notice method definition are regular expressions that need to be executed just like method calls, etc. — that's why the order matter in this case
jimg has joined #ruby
nezumi has joined #ruby
<warlock> Mon_Ouie: Ok, so common practice is to define everything and then write the main code of the program?
Dummies_freelanc has joined #ruby
<MrZYX> common practice is to properly structure your program into classes and modules
<Mon_Ouie> Yes. Plus when programs start to get bigger, all the classes will be spread in a file for each of them and the main file in its own one
<MrZYX> having a main file just doing require 'some_class'; SomeClass.new isn't bad IMO
banjara has joined #ruby
Axsuul has joined #ruby
<warlock> Wow, ok.
m8 has joined #ruby
<Mon_Ouie> Yes, that's what I usually do actually
ntus1017 has quit [Remote host closed the connection]
<warlock> Then you could easily change or modify the class in a file without having to look through entire program for it.
<warlock> Super good idea!
<r0bgleeson> -_-
LaPetiteFromage has quit [Quit: LaPetiteFromage]
jimg has quit [Ping timeout: 276 seconds]
motto has quit [Ping timeout: 248 seconds]
Michael__ has quit [Remote host closed the connection]
mixel has quit [Quit: mixel]
vlad_starkov has joined #ruby
cortes has quit [Remote host closed the connection]
Michael__ has joined #ruby
jjbohn has joined #ruby
huoxito has joined #ruby
Kricir has joined #ruby
Michael__ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
splittingred has quit [Quit: splittingred]
Michael__ has joined #ruby
nignaztic has joined #ruby
poga_ has quit [Remote host closed the connection]
poga has joined #ruby
codecop has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
ariedler has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
choobie has quit [Ping timeout: 264 seconds]
nazty has quit [Ping timeout: 248 seconds]
jjbohn has quit [Ping timeout: 256 seconds]
jrajav has joined #ruby
Michael__ has quit [Ping timeout: 248 seconds]
daniel_-_ has quit [Quit: WeeChat 0.4.1]
brianstorti has quit [Quit: brianstorti]
ThePicard has joined #ruby
Ortuna has joined #ruby
druonysuse has quit [Quit: Konversation terminated!]
kil0byte has joined #ruby
nomenkun has joined #ruby
alexmreis has quit [Quit: Leaving.]
ivanoats has joined #ruby
drastic has joined #ruby
kote has quit [Remote host closed the connection]
jamesfung14 has joined #ruby
poga_ has joined #ruby
poga_ has quit [Remote host closed the connection]
banister`canal is now known as banister`shop
poga_ has joined #ruby
razi1 has quit [Quit: Leaving.]
banister`shop has quit [Remote host closed the connection]
phipes has joined #ruby
lucianosousa has joined #ruby
poga has quit [Ping timeout: 256 seconds]
dash_ has quit [Quit: Time to beer :)]
ehaliewicz has joined #ruby
cheese1756 has quit [Quit: ZNC - http://znc.in]
poga has joined #ruby
mixel has joined #ruby
PhilK has quit [Quit: ZNC - http://znc.in]
jbpros has quit [Quit: jbpros]
Ortuna has quit [Quit: Computer has gone to sleep.]
poga_ has quit [Ping timeout: 256 seconds]
cheese1756 has joined #ruby
dmiller_ has joined #ruby
max__ has joined #ruby
nomenkun has quit [Remote host closed the connection]
max__ is now known as Guest35920
ToApolytoXaos has quit [Quit: Leaving]
nomenkun has joined #ruby
PhilK has joined #ruby
ybart has joined #ruby
Kabaka has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
matchaw has quit [Remote host closed the connection]
jjbohn has joined #ruby
ixti has joined #ruby
ariedler has quit [Remote host closed the connection]
Ortuna has joined #ruby
Nisstyre-laptop has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
FaNGTooTH has joined #ruby
sqa_bm has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
Spooner has joined #ruby
rickruby has joined #ruby
FaNGTooTH has left #ruby ["Saliendo"]
ia___ has quit [Quit: ia___]
Kabaka has joined #ruby
matchaw has joined #ruby
ariedler has joined #ruby
ariedler has quit [Remote host closed the connection]
brianstorti has joined #ruby
krombr has joined #ruby
matchaw_ has joined #ruby
verto has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
matchaw has quit [Ping timeout: 256 seconds]
Azulinho has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
<atmosx> isn't this movie amazing? http://www.imdb.com/video/imdb/vi862168857/
<matti> atmosx: No, not really.
<matti> ;d
<atmosx> matti: cmon
<atmosx> you're evil
sqa_bm has quit [Remote host closed the connection]
<atmosx> it's amazing. I'm laughing so hard...
<atmosx> because you see in my world, these two guys that don't know shit about technoogy, are the norm.
<atmosx> In real life I know 3 people that know what the arconym TCP stands for.
<matti> Perhaps I am too old.
Guest35920 has quit [Remote host closed the connection]
<matti> atmosx: The Crimson Pants?
arya has joined #ruby
sambao21 has joined #ruby
Squarepy has joined #ruby
emergion has joined #ruby
jamesfung14 has quit [Ping timeout: 256 seconds]
nuck has quit [Ping timeout: 256 seconds]
<epitron> ruby makes it really easy to translate DNA into BigInts
<epitron> dna_sequence.tr("ACTG", "0123").to_i(4)
<epitron> [18] pry(main)> dna_sequence.size
<epitron> => 101
<epitron> [19] pry(main)> encoded.size
<epitron> => 28
jimg has joined #ruby
<epitron> look at the savings!
<atmosx> epitron: yeah… but exonerate is not ported :-(
<atmosx> it would be really nice to have it in bio-gem
Hanmac1 has joined #ruby
kirun has quit [Quit: Client exiting]
<epitron> do you do a lot of bioinformatics?
Hanmac has quit [Ping timeout: 256 seconds]
<atmosx> epitron: not a lot yet. I will do a lot in the future because my thesis (the one I'll get) is on bioinformatics
<epitron> ahh
<atmosx> I've written a small app that finds AA given a protein for prokaryotes
<atmosx> but that's easy.
allanm has quit [Read error: Connection reset by peer]
<epitron> what's AA? :)
<atmosx> amino-acids
jimg has quit [Ping timeout: 264 seconds]
allanm has joined #ruby
jamesfung14 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<epitron> ahh
<epitron> you mean, given the DNA sequence of the protein
wchun has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
<atmosx> well, not exactly
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> I'm trying to find the DNA sequence that produces a protein
Kar- has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
<epitron> so you have the AA sequence
<epitron> or do you only have the actual protein?
mogsy has quit [Read error: Connection reset by peer]
phipes has quit [Quit: phipes]
mogsy has joined #ruby
Kricir has joined #ruby
<atmosx> I have the protein, which serves as a 'sample'.
<atmosx> and the DNA in raw format. I translate several (hundreds or thousdans) sequences of DNA, turning them to AA trying to find a match
byprdct has joined #ruby
<atmosx> once I found the match (must be 100% perfect in my case) I know from which part of the DNA that protein was produced
Opettaja has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 260 seconds]
rickruby has quit [Remote host closed the connection]
leonid_ has quit [Ping timeout: 256 seconds]
<epitron> ahhhhhh
<epitron> interesting
Kricir has quit [Ping timeout: 276 seconds]
<epitron> so this is for proteins that are made of multiple sub-units?
<epitron> or i guess this works for solid proteins too
Guga_ has quit [Read error: Connection reset by peer]
Guga_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
insel has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
nuck has joined #ruby
mklappst_ has joined #ruby
NimeshNeema has quit [Ping timeout: 264 seconds]
<atmosx> epitron: yes, proteins are made from sequences of amino-acids. The process of protein creation in Bacteria which have circular DNA, is really easy because slicing doesn't take place. So it's kinda straight-forward process. All you need is computer power, while in animal (human) cells the process in Helix-DNA is wayyyy more complicated.
mklappstuhl has quit [Ping timeout: 264 seconds]
_veer has quit [Ping timeout: 245 seconds]
aces1up23 has joined #ruby
jjbohn has joined #ruby
aces1up has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
phipes has joined #ruby
senayar has joined #ruby
nomenkun has joined #ruby
aroumba has joined #ruby
mikepack_ has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
aroumba has quit [Client Quit]
generali_ has quit [Remote host closed the connection]
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 264 seconds]
_bart has joined #ruby
nomenkun has quit [Remote host closed the connection]
grzywacz has quit [Ping timeout: 246 seconds]
Michael__ has joined #ruby
takeru has joined #ruby
takeru has quit [Read error: Connection reset by peer]
takeru has joined #ruby
Iszak_ has quit [Quit: Textual IRC Client: www.textualapp.com]
emergion has joined #ruby
InFlames has joined #ruby
jamesfung14 has quit [Ping timeout: 256 seconds]
aspiers has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
dambler has quit [Quit: Textual IRC Client: www.textualapp.com]
LennyLinux has quit [Remote host closed the connection]
zigomir_ has quit [Ping timeout: 276 seconds]
krombr has quit [Quit: krombr]
wargasm has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 260 seconds]
krombr has joined #ruby
harrymoreno has joined #ruby
<_bart> TIL how to enable RSpec when using a C extension: https://gist.github.com/bartolsthoorn/5695248
darthdeu has quit [Ping timeout: 260 seconds]
senayar has quit [Quit: Quitte]
skattyadz has quit [Quit: skattyadz]
gstamp has joined #ruby
DonRichie has quit [Quit: Verlassend]
ivanoats has quit [Remote host closed the connection]
m8 has quit [Read error: Connection reset by peer]
jimg has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
bitcycle has joined #ruby
hogeo_ has joined #ruby
r0bgleeson has quit [Ping timeout: 252 seconds]
Retistic has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
hogeo has quit [Ping timeout: 256 seconds]
snearch has joined #ruby
k610 has quit [Ping timeout: 276 seconds]
tedwards_ has quit [Ping timeout: 256 seconds]
chrisseaton has joined #ruby
vlad_starkov has joined #ruby
yannis has quit [Quit: yannis]
mklappstuhl has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<epitron> atmosx: oh, is it complex in humans because sections of coding DNA can be turned on and off by histones and other environmental influences?
<epitron> i remember reading something recently about splicing
<chrisseaton> Hello - @@ class variables: I don't quite get where they live. They're not instance variables in the class object, because you can access them from subclasses. So what are they? Where do they live and what is the lookup algorithm?
wmoxam has joined #ruby
bitcycle has quit [Remote host closed the connection]
Davey has joined #ruby
Kricir has joined #ruby
darthdeus has joined #ruby
Mekkis has quit [Excess Flood]
vlad_starkov has quit [Ping timeout: 248 seconds]
_bart has quit [Ping timeout: 260 seconds]
<chrisseaton> epitron: thanks for that - but it doesn't seem to mention class variables at all. Are you trying to say that they live in the class's singleton class? That doesn't explain how a subclass can see them.
eka has joined #ruby
Mekkis has joined #ruby
pkrnj has joined #ruby
sepp2k has quit [Quit: Leaving.]
<epitron> i think class @instance variables live on the singleton
<epitron> class variables live on the class
jonathanwallace has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
<epitron> that's why you can't inherit class instance variables
interactionjaxsn has joined #ruby
<atmosx> epitron: no, it's hard because it's not clear how slicing is perform in every situation
<atmosx> epitron: also there are about 7.000 protein which we have no idea how they are made, probably more...
takezawa has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 264 seconds]
<chrisseaton> epitron: if @@ class variables live on the class object, how can you see them in a subclass? the subclass object is not a subclass of the superclass object or singleton, it's a subclass of Class
Davey has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
aces1up has joined #ruby
bionhart has joined #ruby
emergion has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
aces1up23 has quit [Ping timeout: 241 seconds]
Cultofmetatron has joined #ruby
Kricir has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
lewix has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
pskosinski has quit [Quit: pskosinski]
deception has quit [Quit: Goodbye]
interactionjaxsn has quit [Remote host closed the connection]
emergion has quit [Client Quit]
interactionjaxsn has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
Ortuna has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
foxiness has joined #ruby
hogeo_ has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
northelks_ has quit [Quit: ...]
arya has quit [Ping timeout: 248 seconds]
cHarNe2 has joined #ruby
predator217 has joined #ruby
takezawa has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
nuck has quit [Ping timeout: 256 seconds]
<cHarNe2> hi guys, i'v made a log-parser that goes thro' files that are 30mb big, and im dumping the data in mysql with AR. But im now sure if mysql if the right choise to use. is it easy to test some no-sql database?
mikepack has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 256 seconds]
alexandernst_ has quit [Quit: Konversation terminated!]
pinpin404 has quit [Quit: d&dTime fatigué kmp prenez soin de vous]
<Retistic> is there a way to pass in a block to sort_by as an argument?
jamesfung14 has joined #ruby
<havenwood> cHarNe2: You could look at PostgreSQL's hstore. Redis is great.
wmoxam has quit [Ping timeout: 264 seconds]
nuck has joined #ruby
<cHarNe2> ok, will do. thanks
<havenwood> Retistic: Sure. E.g., array.sort_by &:size
<Retistic> havenwood: i know how to do it with a single attribute like that, but how would you pass in a block?
<havenwood> Yeah, just a normal block. Like: sort_by { |item| [item.huggability, item.size] }
mikepack has joined #ruby
bigmac has joined #ruby
<havenwood> Retistic: Unless I'm not getting the question?
<Retistic> havenwood: right, but how would i pass that block in as a variable
nuck has quit [Ping timeout: 264 seconds]
<Retistic> block = { |item| [item.huggability, item.size] }
<Retistic> sort_by(block)
slainer68 has quit [Remote host closed the connection]
<Retistic> ?
<havenwood> ya, like with a lambda
<havenwood> Retistic: block = ->(item){ item.size }; ['a', 'little', 'array'].sort_by &block; #=> ["a", "array", "little"]
<Retistic> havenwood: awesome thanks!
Trynemjoel has quit [Ping timeout: 245 seconds]
Guedes has quit [Ping timeout: 264 seconds]
<Retistic> havenwood: what does the and in front of the block do?
<havenwood> Retistic: proc to block
<havenwood> Retistic: Naming it block was weird... since its a lambda. >.>
<Retistic> havenwood: ah
takeru has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 250 seconds]
nuck has joined #ruby
Davey has joined #ruby
jimg has quit [Remote host closed the connection]
jamesfung14 has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
takeru has joined #ruby