apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
terrellt has quit [Ping timeout: 256 seconds]
olleh_ has quit [Ping timeout: 250 seconds]
<ravster> hey all, I'm using the geocoder gem, and I'd like my script to capture whether I'm getting a timeout or an 'over query limit'. How do I do that? I can't seem to find the parts of the api that describe that.
<ravster> any pointers?
Michae___ has joined #ruby
<mjc_> ravster: Geocoder.configure(:always_raise => :all)
<mjc_> ravster: or an array of exceptions
<mjc_> ravster: then you can catch them :)
<ravster> mjc_: ah, nice
arya_ has quit [Ping timeout: 240 seconds]
gildo has joined #ruby
realDAB has quit [Quit: realDAB]
bigoldrock has quit [Ping timeout: 240 seconds]
rodacato has joined #ruby
_ffio_ has joined #ruby
ffio_ has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 240 seconds]
ssvo has joined #ruby
tessi has joined #ruby
rsut has quit [Quit: Leaving]
sambao21 has joined #ruby
jrendell has quit [Ping timeout: 246 seconds]
jarin has joined #ruby
Roa has quit [Ping timeout: 276 seconds]
<bricker> What's a better pattern for something like this? https://gist.github.com/bricker/6016428 I don't like setting the variable at the top there, it feels messy to me. This is just in a module class method so instance variables don't make sense here.
GeissT has joined #ruby
narcan has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
lnormous has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
<matchaw_> hey all, wondering if someone can help me with something.
ckrailo has joined #ruby
<matchaw_> "a".split("-")[1].split("_")
<matchaw_> How would you make something like that not return an error, because I am calling it dynamically, so somethings the string will be correct, sometimes it wont..
<matchaw_> Actually, I think I got it.. Just check if [1] is null first..
<matchaw_> or nil should I say..
v1rr3n has quit [Quit: WeeChat 0.4.1]
x1337807x has joined #ruby
<mljsimone> Anyone with a macbook can open this site: http://www.kodlian.com/apps
tylersmith has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
mmitchell has quit [Remote host closed the connection]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arya_ has joined #ruby
<heftig> matchaw_: use a regular expression instead?
rezzack has quit [Quit: Leaving.]
<matchaw_> heftig: thanks, solve it will a check for another string if nil? first.
<matchaw_> thanks though.
tobyo has joined #ruby
TIJ has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
TIJ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
ckrailo has joined #ruby
chriskk_ has quit [Quit: chriskk_]
keanehsiao has joined #ruby
[narcan] has joined #ruby
theo_ has joined #ruby
twoism has quit [Remote host closed the connection]
fourq_ has joined #ruby
gischy has quit [Read error: Operation timed out]
hogeo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
graft has quit [Ping timeout: 246 seconds]
Pandee has quit [Ping timeout: 268 seconds]
gischy has joined #ruby
gischy has joined #ruby
gischy has quit [Changing host]
DanKnox is now known as DanKnox_away
gischy has left #ruby [#ruby]
rsahae has joined #ruby
marr has quit [Ping timeout: 248 seconds]
chriskk has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
devoldmx has joined #ruby
graft has joined #ruby
graft has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
nari has joined #ruby
iliketurtles has joined #ruby
tkuchiki has joined #ruby
DonRichie has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
cHarNe2 has left #ruby [#ruby]
mmitchell has joined #ruby
adeponte has quit [Remote host closed the connection]
fermion has joined #ruby
michaeldeol has quit [Remote host closed the connection]
takezawa has joined #ruby
niklasb has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
persand has joined #ruby
gyre007 has quit [Remote host closed the connection]
hakunin has quit [Ping timeout: 264 seconds]
rodacato has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
Hanmac1 has joined #ruby
k-man has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dankest has quit [Quit: Peace]
persand has quit [Ping timeout: 245 seconds]
lebek has joined #ruby
manutter|2 has quit [Ping timeout: 240 seconds]
buzzybron has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby
<Fire-Dragon-DoL> I love ruby reflection model... really
Notte has quit [Remote host closed the connection]
<Fire-Dragon-DoL> I can't live without it
Hanmac1 has quit [Ping timeout: 240 seconds]
<Fire-Dragon-DoL> it allows you to write code in a nice way, even if it's reflection (which is well known to be ugly)
<Fire-Dragon-DoL> class_eval and define_method are really powerful :Q_
bigmac has quit [Quit: Leaving]
ravster has quit [Quit: Leaving.]
kpshek has joined #ruby
kpshek has quit [Remote host closed the connection]
ssvo has joined #ruby
jonathanwallace has joined #ruby
[Fudge] has left #ruby ["Textual IRC Client: www.textualapp.com"]
iliketurtles has quit [Quit: zzzzz…..]
emmanuelux has quit [Quit: emmanuelux]
gildo has quit [Ping timeout: 246 seconds]
qiyong has joined #ruby
Columcil1e has joined #ruby
<qiyong> how do i get the number 52 from: Core 0: +52.0°C (high = +74.0°C, crit = +100.0°C)
sambao21 has joined #ruby
<bnagy> s.match /52/
<bnagy> try out rubular.com
fomatin has joined #ruby
<bnagy> something like s[/^.*[+-](.*)°C/,1]
fomatin has quit [Remote host closed the connection]
Columcille has quit [Ping timeout: 245 seconds]
k-man has joined #ruby
fomatin has joined #ruby
reset has quit [Quit: Leaving...]
blarghmatey has quit [Ping timeout: 268 seconds]
<bnagy> >> "Core 0: +52.0°C (high = +74.0°C, crit = +100.0°C)".squeeze(' ').split[2]
<eval-in> bnagy => "+52.0°C" (https://eval.in/37843)
<bnagy> that's what I'd do, I hate regexp
<bnagy> ahhh wait I keep forgetting split doesn't need squeeze, it's magic
<bnagy> >> "Core 0: +52.0°C (high = +74.0°C, crit = +100.0°C)".split[2]
<eval-in> bnagy => "+52.0°C" (https://eval.in/37844)
<bnagy> one day I will internalize this
<qiyong> how do i read the output of another program?
<bnagy> either `ls` or popen
<bnagy> or system or...
splittingred has joined #ruby
blarghmatey_ has joined #ruby
cj3kim has joined #ruby
lebek has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
aeontech has joined #ruby
BillCriswell has quit [Remote host closed the connection]
prezJFK has quit [Remote host closed the connection]
deadalus has quit [Excess Flood]
cj3kim has quit [Ping timeout: 240 seconds]
deadalus has joined #ruby
gyre007 has joined #ruby
nari has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
lindenle has joined #ruby
kenneth has quit [Ping timeout: 276 seconds]
xavier23 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
<xavier23> Hey….. u guys think ruby can ever replace java?
pen has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 256 seconds]
theo_ has quit [Ping timeout: 250 seconds]
burlyscudd has joined #ruby
marcdel has joined #ruby
<bnagy> in theory, why not, in practice hahahah no
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> I hereby declare Java deprecated in favor of JRuby. There, done.
DanKnox_away is now known as DanKnox
kofno has joined #ruby
nettoweb has quit [Quit: nettoweb]
mercwithamouth has quit [Ping timeout: 240 seconds]
robscomputer has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
lebek has joined #ruby
rodacato has joined #ruby
machuga|away is now known as machuga
Kruppe has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kelet has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
rahult has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
viszu has quit [Quit: Leaving.]
smathieu has joined #ruby
TonyMergue has quit [Read error: Connection reset by peer]
superscott[8] has quit [Quit: superscott[8]]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 268 seconds]
rien has joined #ruby
zeromodulus has quit [Remote host closed the connection]
mansi has joined #ruby
Domon has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
<xavier23> Well it seems to have all the features of java..
<xavier23> If not more
bionoid has joined #ruby
<xavier23> Also….. man, it is sooo much more pleasant to use ruby
<xavier23> Hehe
sambao21 has joined #ruby
<rien> how do I parse a date in ruby 2.0.0?
<rien> it's not Date.parse, not Date.strptime....
<bnagy> it doesn't have all the features of the JVM though
zaltekk has joined #ruby
<xavier23> garbage collection?
<bnagy> it's a considerably more pleasant language, but MRI compared to JVM is like .. um..
bradhe has joined #ruby
<zaltekk> is the pickaxe(new edition) the recommended ruby book?
<blandflakes> the pickaxe book is pretty good
<bnagy> rien: try require 'date'
<blandflakes> i've read through it a couple times
<bnagy> it's a stupid gotcha imho
<havenwood> xavier23: Ruby's has one GC, not many like the JVM and several orders of magnitude less time put into the GC. But if the JVM is what you're into, JRuby is a first class citizen or if you need absolute native performance there is mirah.
dhruvasagar has joined #ruby
<bnagy> >> require 'date'; Date.parse "june 3"
<eval-in> bnagy => #<Date: 2013-06-03 ((2456447j,0s,0n),+0s,2299161j)> (https://eval.in/37845)
<rien> bnagy: that returns false in irb
<bnagy> then you already required it
Spooner has quit [Quit: Leaving]
<rien> bnagy: then the problem isn't that :)
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xavier23> havenwood: thanks for this info.
grainol has quit [Ping timeout: 248 seconds]
<bnagy> rien: ok, well as per example above, Date.parse does, in fact, parse dates
<xavier23> I used to think java was incredible. Then i started using ruby..
<rien> bnagy: I should say I can run Date.parse("5/18/2013") ArgumentError Exception: invalid date
<bnagy> so maybe give a specific example of what you're trying
<rien> >> Date.parse("5/18/2013")
<eval-in> rien => undefined method `parse' for Date:Class (NoMethodError) ... (https://eval.in/37846)
bklane has quit [Remote host closed the connection]
<eval-in> rien => undefined method `requier' for main:Object (NoMethodError) ... (https://eval.in/37847)
<rien> >> requier 'date'; Date.parse("5/18/2013")
iliketurtles has joined #ruby
<eval-in> rien => invalid date (ArgumentError) ... (https://eval.in/37848)
<rien> >> require 'date'; Date.parse("5/18/2013")
<rien> there you go.
<rien> what's up with that?
<bnagy> yeah it doesn't like your date format
<mljsimone> >> require 'date'; Date.parse("05/18/2013")
<eval-in> mljsimone => invalid date (ArgumentError) ... (https://eval.in/37849)
rahult has joined #ruby
<rien> but what I mean is there solutions in that SO article don't work either
<bnagy> it thinks you're asking for 5th of Octodecatober
<havenwood> earth calendar?
<rien> bnagy: like I said, I understand they removed support for american dates, but I can't call Date.strptime either, as the SO article I linked suggests.
<rien> >> require 'date'; Date.strptime("5/18/2013", "%F")
<eval-in> rien => invalid date (ArgumentError) ... (https://eval.in/37850)
<rien> see?
Hanmac2 has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<rien> >> RUBY_VERSION
<eval-in> rien => "2.0.0" (https://eval.in/37851)
<havenwood> rien: Chronic gem is neat for parsing whatever you throw at it: https://github.com/mojombo/chronic#readme
<mljsimone> >> require 'date'; Date.parse("05-18-2013")
<eval-in> mljsimone => invalid date (ArgumentError) ... (https://eval.in/37852)
qiyong has left #ruby [#ruby]
Kelet has joined #ruby
<mljsimone> >> require 'date'; Date.parse("18-05-2013")
<eval-in> mljsimone => #<Date: 2013-05-18 ((2456431j,0s,0n),+0s,2299161j)> (https://eval.in/37853)
camelo has joined #ruby
<eval-in> bnagy => #<Date: 2013-05-18 ((2456431j,0s,0n),+0s,2299161j)> (https://eval.in/37854)
<bnagy> >> require 'date'; Date.strptime "5/18/2013", "%m/%d/%Y"
adeponte has joined #ruby
Michae___ has quit [Remote host closed the connection]
<havenwood> heh, there is an american_date gem for m/d/y order
Michael_ has joined #ruby
<rien> bnagy: Thanks!!
<rien> bnagy: now I understand what I was assuming... that the error message would be different. anyway you really helped me, thanks again.
<bnagy> no probs
wallerdev has joined #ruby
Hanmac2 has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
supergiantrobot has quit [Ping timeout: 246 seconds]
rsahae has quit [Quit: rsahae]
adeponte has quit [Ping timeout: 240 seconds]
nezumi has joined #ruby
mantas322_ has joined #ruby
nari has joined #ruby
<mantas322_> Hi guys! in ruby how can I append to an array only if it doesnt exist?
<mantas322_> array1 << 1 ; array1 << 2; array1 << 1
<mantas322_> []1,2
buzzybron1 has joined #ruby
<mantas322_> [1,2]
<blandflakes> could use "set" instead
<blandflakes> or
<blandflakes> array1 << 1 unless array1.include? 1
<mantas322_> okay okay
<bnagy> havenwood: tell me about mirah! Have you used it?
asteve has joined #ruby
<Lewix> why would we use to_a on an array
DanKnox has quit [Read error: Connection reset by peer]
<bnagy> Lewix: only in cases where we weren't sure if it would actually be an array
<blandflakes> to_a exists for an array because it's part of enumerable
<bnagy> like maybe it could be a Set
Spami__ has quit [Quit: This computer has gone to sleep]
<havenwood> bnagy: I've never used it for anything real, just played with it. Just `gem install mirah` from JRuby.
<bnagy> is it hobby time or does it have legs?
buzzybron has quit [Ping timeout: 240 seconds]
<havenwood> bnagy: It used to be called "Duby" before "Mirah".
Yakko has joined #ruby
<bnagy> is there a tl;dr benchmark of some jruby code vs mirah code?
jcarouth` is now known as jcarouth
DanKnox_away has joined #ruby
bklane has joined #ruby
<Lewix> bnagy: I saw foo.to_a.sum {||item| item.total_price|} knowing that foo is an array. I was wondering what sum is, and most importantly why to_a on an array
vikhyat has joined #ruby
<havenwood> bnagy: Actually, i've seen it benched against Java (against which it does well) but not against Ruby.
kevinykchan has joined #ruby
DanKnox_away is now known as DanKnox
<blandflakes> if i want performance in ruby i just write it in C, compile it, and then do system("./a.out")
<bnagy> blandflakes: good for you, princess
<bnagy> Lewix: I have NFI what sum is, it could be activesupport or similar evil doing monkeypatching
osvico has quit [Ping timeout: 240 seconds]
wesside has joined #ruby
v1n has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
__eka__ has quit [Quit: Computer has gone to sleep.]
<Lewix> bnagy: ya me neither, i'll stick with my inject
<bnagy> havenwood: yeah I'm just wondering how much the jruby layer costs, especially for stuff that will get bytecode translated (heavy code paths)
bionoid has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<bnagy> I'll ask one day on #jruby if there's people about :P
niklasb has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
<mantas322_> okay thanks for the suggestions
mantas322_ has quit [Quit: Page closed]
cj3kim has joined #ruby
rockets has joined #ruby
<havenwood> bnagy: They've really pushed hard for performance with JRuby, using invoke dynamic and other cool stuff.
rockets is now known as zastern_
zastern has quit [Disconnected by services]
zastern_ is now known as zastern
Hare has joined #ruby
<bnagy> yeah I moved everything over a year ago <3
mljsimone is now known as mljsimone|away
zastern_ has joined #ruby
nitish has joined #ruby
<havenwood> bnagy: I should add Mirah and Crytal to this ALL THE RUBIES benchmark: https://gist.github.com/havenwood/4724778
<havenwood> just one angle, but still kinda interesting to look at
<havenwood> would be nice to see just tuple creation and other meaningless micro benchmarks, just for fun
fredjean has joined #ruby
bionoid has joined #ruby
<blandflakes> havenwood, interesting maglev results
<blandflakes> i was just looking into that
rodacato has quit [Remote host closed the connection]
<havenwood> blandflakes: MagLev is super fast single threaded, yeah. I can't wait till 1.9 and 2.0 support comes out!
nari has joined #ruby
<Hare> Ive got a timer that throws an error once in a while, can someone recommend a fix http://pastebin.com/NF7kN8mR
radic_ has joined #ruby
<havenwood> Looked like MagLev 1.9 branch was working with Sinatra but not yet Rails. Topaz seems to be coming along briskly as well.
<blandflakes> Hare, if your time_block ever takes more than 8 seconds you'll have a negative value for sleep
mljsimone|away is now known as mljsimone
mmitchell has quit [Remote host closed the connection]
<Hare> ah ok, is there a way to work around that.. to allow the time block to exceed 8 seconds if necessary.. or do I just need to increase the repeat interval
sleetdrop has joined #ruby
<blandflakes> you could take the maximum of 0 and the return value
robustus has quit [Ping timeout: 248 seconds]
<blandflakes> it depends on what you want to do in that case
Nisstyre has quit [Quit: Leaving]
saarinen has joined #ruby
djbkd has quit [Quit: Leaving]
radic has quit [Ping timeout: 248 seconds]
<blandflakes> if you want to check mail every 8 seconds or so or whenever the previous check is done, whichever takes longer, you could do sleep([0, seconds - time_block {yield}].max)
<blandflakes> though there are probably better ways to do that that aren't so spaghetti-code like
ner0x has joined #ruby
robustus has joined #ruby
fridim_ has quit [Read error: Operation timed out]
<Hare> ok, Ill try that out. thanks
<blandflakes> though Thread.sleep(-1) would be impressive =p
<blandflakes> good luck
DanKnox is now known as DanKnox_away
Ripp__ has joined #ruby
<Hare> Im used to using the lua corona timer.performOnDelay.. really simple to use
<Yakko> hey guys, can I get some rails love in here? what is a better way to ensure a belongs_to association tries to find a row or returns a new instance instead of nil? something life def address; @address || build_address; end;
<havenwood> Yakko: Best place to ask is prolly #RubyOnRails.
<Yakko> havenwood: nobody's there
<havenwood> Hare: Maybe take a look at the Timers gem: https://github.com/celluloid/timers
zodiak has quit [Ping timeout: 248 seconds]
DanKnox_away is now known as DanKnox
bionoid has quit [Remote host closed the connection]
Mattix has joined #ruby
<havenwood> timers.every(5) { check_mail }
tommyvyo has quit [Quit:]
TheTFEF is now known as Nightmare
<havenwood> s/5/8
luluapple has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
allanm_ has quit [Read error: Connection reset by peer]
Guest86359 has quit [Excess Flood]
tylersmith has quit [Remote host closed the connection]
allanm_ has joined #ruby
takezawa has quit [Ping timeout: 256 seconds]
stack_push has joined #ruby
luluapple has quit [Client Quit]
v1n has joined #ruby
cdelo has quit [Read error: Connection reset by peer]
cdelo_ has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
ShapeShifter499 has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
kofno has quit [Remote host closed the connection]
luluapple has joined #ruby
aces1up has joined #ruby
<aces1up> hello, i'm looking to test some code by patching a module in a gem, the problem is the function i want to hook / patch, i can't quite figure out the class / module hierchy to properly hook it, in the original function is there some code i add for some sort of reflection to see how i need to hook it?
ShapeShifter499 has joined #ruby
wallerdev has quit [Quit: wallerdev]
Fire-Dragon-DoL has quit [Quit: Leaving.]
devoldmx3 has quit [Ping timeout: 246 seconds]
<havenwood> aces1up: I really find Pry helpful for exploring around a gem. Link to the method you're trying to call?
burlyscudd has joined #ruby
aarkerio has joined #ruby
LucidDreamZzZ has joined #ruby
hakunin has joined #ruby
aeontech has quit [Quit: aeontech]
mary5030 has quit [Remote host closed the connection]
smathieu has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<aces1up> havenwood http://codepad.org/AN9d8v8N
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<aces1up> its in the latest watir-webdriver gem.
echevemaster has quit [Quit: Leaving]
huoxito has quit [Quit: Leaving]
r0bgleeson has quit [Ping timeout: 260 seconds]
<aces1up> havenwood here is what i have tried so far.
krainboltgreene has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
jalcine- has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
burlyscudd has quit [Ping timeout: 246 seconds]
<havenwood> appears you're reopening the method correctly
<xavier23> anyone here ever find ruby gems a little slow?
<aces1up> yeh dunno.. maybe its included in a class somewhere else, but yeh thats why i needed the reflection.. without using pry is there any other object. methods i could try to get the hierchy.
smathieu has quit [Ping timeout: 268 seconds]
<xavier23> As in… http://rubygems.org
<aces1up> havenwood ohh hrmm you know what.
nettoweb has quit [Ping timeout: 256 seconds]
<aces1up> i forgot its prolly loading BEFORE the hook happens.
<havenwood> aces1up: aha
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> xavier23: super fast for me
__sowcow__ has joined #ruby
nettoweb has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
aarkerio has left #ruby ["Verlassend"]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<aces1up> havenwood nope that didn't seem to do it.
vikhyat has quit [Remote host closed the connection]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
lilys1 has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
Hanmac2 has joined #ruby
<aces1up> havenwood i found where its initially included
<aces1up> how would i hook that then?
<havenwood> aces1up: I'm not sure what you mean?
DrShoggoth has joined #ruby
<havenwood> aces1up: Hook?
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<aces1up> hook / monkeypatch not sure correct term.
<lilys1> can someone please take a look at my tic tac toe code and tell me why this part of the code keeps looping through itself? https://gist.github.com/jtong33/3e5fc62c73107e39e7a4
dmiller has joined #ruby
<aces1up> if its doing an include then the self.load isn't a normal class method ?
<aces1up> maybe i have to hook it different
DanKnox is now known as DanKnox_away
Hare has quit [Quit: Page closed]
atyz has joined #ruby
<aces1up> havenwood here is the full paste of hierchy tree i think
<havenwood> aces1up: Is just modifying the gem an option?
<aces1up> not really.
Hanmac2 has quit [Ping timeout: 240 seconds]
<aces1up> it will break other stuff.
mansi has quit [Remote host closed the connection]
<aces1up> i don't know what all uses it in some other apps.
<havenwood> lilys1: How can you reproduce it looping?
<aces1up> so need to patch it JUST in a single app.
mansi has joined #ruby
<aces1up> I suppose i could make it work, but really don't like that idea..
<havenwood> lilys1: Play a game against AI and do a particular move?
tkuchiki has quit [Ping timeout: 268 seconds]
<lilys1> havenwood: after the 5th move, there are times where it keeps repeating "That move was invalid as someone has already moved there. Please enter a valid move" and it keeps on going till stack is too deep
<lilys1> im wondering if i did my each loop incorrectly
jalcine- has joined #ruby
<lilys1> i've been looking at it all day. its so weird :(
tomzx_mac_ has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
mansi has quit [Ping timeout: 264 seconds]
ntus1017 has joined #ruby
blarghmatey_ has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 240 seconds]
mljsimone is now known as mljsimone|away
adeponte has joined #ruby
niftylettuce has joined #ruby
<bnagy> lilys1: try refactoring all the horrible repeated code
scrollback has quit [Remote host closed the connection]
<bnagy> you'll probably end up fixing the bug by accident
lebek has quit [Ping timeout: 245 seconds]
renderful has quit [Remote host closed the connection]
<lilys1> bnagy: im a noob at ruby. just started learning a month ago. I am wondering if somehow my methods using "inject" are throwing it off
alvaro_o has quit [Quit: Ex-Chat]
Levin_22 has quit [Quit: Levin_22]
roboguy_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mrommelf has joined #ruby
jkline has quit [Quit: jkline]
tommyvyo has joined #ruby
alainus has left #ruby ["Leaving"]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<bnagy> who knows
<havenwood> lilys1: Haven't found what's causing it yet. Hrm.
arya_ has quit []
vikhyat has joined #ruby
arya_ has joined #ruby
jalcine- has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
fredjean has quit [Quit: Computer has gone to sleep.]
jalcine- has joined #ruby
tobyo has quit [Read error: Operation timed out]
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<lilys1> havenwood: thanks for trying
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
kofno has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<lilys1> havenwood: I think i may just submit my project as is, as the deadline is midnight and I have been working on this all day already
kofno has quit [Remote host closed the connection]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
mrommelf has left #ruby ["Leaving..."]
jarray52 has joined #ruby
kofno has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
renderful has joined #ruby
sayan has joined #ruby
rickruby has joined #ruby
<jarray52> In terms of style, is it better to use .map or .collect in Ruby? If I am not mistaken, both do exactly the same thing.
lindenle has quit [Quit: This computer has gone to sleep]
arya_ has quit [Ping timeout: 245 seconds]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<jarray52> Perhaps it is better to ask in which situations should one use map, and in which situations should one use collect.
<bnagy> jarray52: map is more common
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<havenwood> +1 map
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<havenwood> lilys1: Yeah, I'm stumped at the moment.
<lilys1> +1 maps
vikhyat has quit [Ping timeout: 256 seconds]
<bnagy> jarray52: annoyingly, inject is also way more common than reduce, which is the 'standard' term
<bnagy> go figure
<havenwood> i do like #find and #find_all and it seems #detect and #select are more popular
<bnagy> I hate collect though, it's the one that sounds least like what it does
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
lindenle has joined #ruby
jalcine- has joined #ruby
krainboltgreene has joined #ruby
jalcine- has quit [Excess Flood]
v1rr3n has joined #ruby
Shirakawasuna has joined #ruby
arya_ has joined #ruby
luluapple has quit [Quit: ZNC - http://znc.in]
mmitchell has joined #ruby
<bnagy> lilys1: I would start by not calculating the player in your ai strategy methods, like it can only ever be the CPU making those moves
<bnagy> at least you can add some validation, then
<jarray52> bnagy: Thanks.
saarinen has quit [Quit: saarinen]
<bnagy> lilys1: and I don't think you want each for those ai strategies
<bnagy> well.. you can but your break logic is icky
<bnagy> you could use find or something and just get the first match, and then play it
<lilys1> hmm whats another way I can do it so it goes through every possible winning combinations scenario?
jonahR has joined #ruby
<bnagy> like you just play the first move that matches the strategy, right?
<lilys1> hmmm find
<lilys1> yea
<lilys1> exactly
<bnagy> but I am having a hard time not just saying tear the whole thing down :(
mmitchell has quit [Ping timeout: 246 seconds]
vikhyat has joined #ruby
<bnagy> if you could easily get an anti-diagonal with Matrix I'd just say move to that and do it all with arithmetic on row / column sums :P
<bnagy> but not useful I know
tommyvyo has quit [Quit:]
akurilin has joined #ruby
<bnagy> the next refactoring tip I would have is to have your strategy methods just return a proposed move, and a different method execute that move
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<bnagy> so on the cpu turn it would be like if (move = instant_win); play move; elsif (move=block_dude) ...
<akurilin> Quick question. How do I pick a ruby template engine? There are so many and they all seem pretty decent.. Is there some dimension I could compare them on?
<sevenseacat> akurilin: try them, see which you like best?
<lilys1> thanks for the tips bnagy i will try to implement them right now starting with find
<Kelet> If I remember correctly, HAML was pretty slow compared to erb and Slim
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<sevenseacat> its slow, but i think its the best.
farus has joined #ruby
<Kelet> I just use erb because I often 'contract out' the frontend designs to friends of mine, and they know HTML and how to use Javascript with it.
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<Kelet> I would probably use Slim otherwise, it's fast and looks pretty good.
tylersmith has joined #ruby
<farus> what is the best way to set up my requires so that I can run a ruby program without being in the top level code directory?
<bnagy> farus: turn it into a gem, or use require_relative
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
krisfremen-home has joined #ruby
<akurilin> Ok thanks for the tips!
michaeldeol has quit [Remote host closed the connection]
<farus> In my case my configuration stuff lives in config/config.rb my main ruby file is in src/main.rb and my libraries are in lib
smathieu_ has joined #ruby
<farus> Still I keep having problems getting the darn thing to play nice unless I'm right at the top level
tylersmith has quit [Ping timeout: 240 seconds]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<farus> require relative seems to try and place everything in src when I look at the exceptions when I do try that
dhruvasagar has quit [Ping timeout: 246 seconds]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
takezawa has joined #ruby
cha1tanya_ has joined #ruby
<farus> it is vexing to no end that I'm having a harder time deploying my code than I have had writing it.
jalcine- has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
<bnagy> farus: did you use require_relative or turn your code into a gem?
sethetter has joined #ruby
smathieu_ has quit [Ping timeout: 246 seconds]
cha1tanya_ is now known as cha1tanya
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<Kelet> farus, You can access a previous directory using something like require_relative '../lib/file' afaik
haxrbyte has joined #ruby
<Kelet> ../ meaning parent directory
jalcine- has joined #ruby
eldariof has joined #ruby
splittingred has quit [Quit: splittingred]
ananthakumaran has joined #ruby
<gchristensen> farus: of all the things I've deployed, every single ruby thing I've ever deployed is like pulling teeth.
ner0x has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
Hanmac2 has joined #ruby
<[narcan]> trying to run bundle and i get this Gemfile:10: syntax error, unexpected ':', expecting $end
<[narcan]> gem "resque", '~> 2.0.0.pre.1', github: 'resque/resque'
<[narcan]> can't work out the error though
<vikhyat> [narcan]: Ruby version?
<[narcan]> ugh, 1.8.7 it seems. that shouldnt be right
kofno has quit [Remote host closed the connection]
<[narcan]> probably explains it
<vikhyat> [narcan]: `gem "resque", '~> 2.0.0.pre.1', :github => 'resque/resque'` would work on 1.8.7 I imagine.
krz has joined #ruby
mrommelf has joined #ruby
vlad_starkov has joined #ruby
lilys1 has quit []
<[narcan]> ok thanks
wmoxam has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Remote host closed the connection]
<[narcan]> was setting up on a fresh EC2 instance
<[narcan]> for some reason assumed it would be ruby 1.9
Hanmac2 has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
<havenwood> [narcan]: Or 2.0!
rodacato has joined #ruby
<[narcan]> well i always expect at least 1 back from the current stable
<havenwood> [narcan]: Fedora 19, OS X 10.9, Arch, etc are on 2.0.
<[narcan]> as ya never lucky enough to get the latest heh
<havenwood> [narcan]: You on Debian?
<[narcan]> this is AWS's linux distro
<havenwood> aha
<[narcan]> based on redhat i think
<havenwood> yeah, i've never used the amazon box
<[narcan]> yeah first time here too
<havenwood> yup, says based on RHEL
vlad_starkov has quit [Ping timeout: 240 seconds]
<bnagy> the OS that time forgot
<[narcan]> figured it made sense to use on their platform for support etc
<gchristensen> [narcan]: they have equally great support on all their images
<gchristensen> "go with what you know" and all.
<[narcan]> and also that i'm using the elastic beanstalk on the app itself
Drago has joined #ruby
<[narcan]> this is just a resque job machine i'm setting up
<[narcan]> so kinda made sense to try and stick with the one flavour, as dont think you get a choice on the elastic beanstalk
haxrbyte has joined #ruby
<[narcan]> yeah so there's a ruby 1.9 package available so i can just use that
ner0x has joined #ruby
ner0x has quit [Remote host closed the connection]
TIJ has quit [Ping timeout: 240 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
mrommelf has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
<[narcan]> though i'm surprised no one suggested for me to use rvm ?
anay has joined #ruby
<[narcan]> though for whatever reason i tend to like to use what the system has as it just removes a level of dependancy
gsvolt_ has quit [Read error: Connection reset by peer]
iliketurtles has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
<gchristensen> I've never liked using rvm / rbenv in production. but also, that just swaps the dependency. depending on the system to offer something reasonable, vs. depending on a tool to provide a reasonable system.
Guest43006 has quit [Remote host closed the connection]
<havenwood> [narcan]: ruby-install/chruby is my poison of choice
<[narcan]> yeah that's true, though i guess it's because i'm already forced to use the system's tool for everything else
Columcille has joined #ruby
<[narcan]> well i'm not 'forced', but just because it's far more convenient that building the system from source etc
<[narcan]> havenwood: cheers i'll take a look
<havenwood> [narcan]: Here's chruby's gihubs: https://github.com/postmodern/chruby#readme
<sevenseacat> i use chruby, and ruby-build atm... one day i'll switch to ruby-install because i like how postmodern works
nettoweb_ has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
nettoweb_ is now known as nettoweb
iliketurtles has joined #ruby
<[narcan]> ugh there's always something though, now mysql2 is erroring out when buliding
<[narcan]> ./client.h:16:1: error: static declaration of ‘rb_thread_blocking_region’ follows non-static declaration
Columcil1e has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 268 seconds]
renderful has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
nomenkun has joined #ruby
RichardBaker has joined #ruby
<Drago> U recommend this book: Beginning_Ruby_From_Novice_to_Professional_2nd_Edition__2009,Apress ?
<Drago> to learn Ruby from 0
<[narcan]> is there a way of skipping a gem file to be installed by bundler if say mysql isnt installed on the system ?
<havenwood> Drago: Haven't heard of that one.
<sevenseacat> 2009? no.
<Drago> yep 2009
<havenwood> sevenseacat: good point
<havenwood> Drago: Yeah, you MUST get something that covers 1.9.2+
serp` has joined #ruby
<sevenseacat> yep
andrew has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
rahult has quit [Ping timeout: 240 seconds]
anay_ has joined #ruby
<Drago> ok
andrew is now known as Guest70704
<[narcan]> basically i want to share the Gemfile between these systems, but now mysql2 looks like it's not going to build reckon i'll just try and skip it cause i dont need mysql on this machine anyway
<Drago> any suggestion
<havenwood> Drago: 1.8 is deprecated. Very easy to go from 1.9 to 2.0, but might as well start at 2.0. :)
tatsuya_o has quit [Ping timeout: 245 seconds]
* sevenseacat looks at apps still running on ree
zastern has quit [Remote host closed the connection]
<sevenseacat> :(
<havenwood> sevenseacat: eek! hehe
haxrbyte_ has joined #ruby
zastern has joined #ruby
adeponte has quit [Remote host closed the connection]
anay has quit [Ping timeout: 256 seconds]
<Drago> havenwood: any book u recommend ?
<[narcan]> skipping that question then, anyone know a recommened way to run resque as a daemon ? seems there's no suggested route...
<havenwood> Drago: The PickAxe is often recommended (I haven't read it, but mean to). Latest Pickaxe is 4th edition and covers both 1.9/2.0.
rahult has joined #ruby
<farus> bnagy: no joy on require_relative
<havenwood> [narcan]: Hrm, I've never used resque. Would running it with God make sense? Maybe the daemonize gem?
<farus> as soon as I move out of the toplevel directory with the code things blow up.
<[narcan]> yeah not sure, havent used god
Deele has joined #ruby
anay_ has quit [Ping timeout: 268 seconds]
<[narcan]> is that the better choice for keeping things running ?
<havenwood> Drago: I really liked 'The Ruby Programming Language'.
haxrbyte has quit [Ping timeout: 240 seconds]
<havenwood> Drago: Still slogging through the harder final chapters.
<Drago> by Matz ?
<Drago> last edition
<havenwood> yup
<havenwood> Drago: It is dense, but great.
<havenwood> Drago: Ever done programming in any other languages? Or coming to it fresh?
<havenwood> Drago: Another I hear recommended a lot for newbies is Learn to Program by Chris Pine. Second edition covers Ruby 2.0.
<havenwood> I haven't read that one either but would like to.
<havenwood> Jesse Storimer and Avdi Grimm books on Ruby are great.
<Drago> I was starting with that (by Matz), but I think is for Advanced users maybe
<havenwood> Drago: yup
djbkd has joined #ruby
<havenwood> Drago: It is fairly dense. Presumes knowledge.
bklane has quit [Remote host closed the connection]
<havenwood> Learn to Program would probably be the most introductory, then Pickaxe *may* start introductory but seems to contain a ton of info about the standard library.
<havenwood> Anyone read Pickaxe lately?
haxrbyte_ has quit [Remote host closed the connection]
<farus> picaxe is a nice reference
<Kelet> Although it is not comprehensive at all, and maybe 25% of the content isn't about programming at all, I really enjoyed _why's poignant guide
<havenwood> I'd like to get the pickaxe just as a reference, yeah,
<havenwood> Kelet: Yeah, have you checked out the soundtrack he made to go along with the guide?
<Drago> how u do that, chat with my nickname prefix the line ?
<havenwood> Kelet: I like a couple of the songs!
<farus> I only use ruby off and on but picaxe is still very helpful since I'm always forgetting the basics
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Kelet> havenwood, Nope, I haven't, but now I will
<havenwood> Kelet: "This book is made of Rabbits and Lemonade, and a French maid I dipped in marmolade!"
<farus> its usually tab completed drago
<havenwood> Drago: Yeah, I type "d" then hit tab.
<Kelet> I honestly probably learned the most Ruby from http://www.ruby-doc.org/ - most methods have examples.
<Kelet> Or just using ri.
<havenwood> Or Pry.
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Read error: No route to host]
<farus> that reminds me I need to figure out why ri chokes on windows under jruby for me
<Kelet> Hmm never heard of pry looks interesting
<Drago> havenwood: cool, thx :))
<farus> I miss emacs integration although ruby-doc.org is nice
<Kelet> the rubyinstaller ruby does not come with ri docs, I know that for sure.
<Kelet> They decided to distribute chm docs and not the ri ones :/
<havenwood> Nice that zzak and others are filling in the docs more and more. 2.0 docs had some more filled in than 1.9 in a couple places I've run accross. Could still use more love though.
<farus> pry is like what you get with clojure and nrepl or slime in emacs
<farus> ie awesome
Niichan is now known as NIIKAAAAAAAAAAAN
NIIKAAAAAAAAAAAN is now known as Niichan
moshee- has quit [Ping timeout: 245 seconds]
<farus> ive been meaning to try out the emacs minor mode for pry but keep being lazy
nomenkun has quit [Remote host closed the connection]
<havenwood> farus: Ever tried Xiki with Emacs? I'd be curious to actually try that out.
<farus> no I do remember coming across it though
<havenwood> farus: yeah, i watched the RubyConf talk but don't use emacs and haven't had a chance to try it
Kruppe has quit [Remote host closed the connection]
sethetter has quit [Ping timeout: 240 seconds]
<havenwood> farus: what is slime?
fredjean has joined #ruby
renderful has quit [Remote host closed the connection]
<farus> i've just been pulled back to my primary application and found out that there is a mode that supports razor syntax finally
aeontech has joined #ruby
<havenwood> heh, my browser shows i've read up on it before - but i have no memory
<farus> superior lisp interaction mode for emacs
<havenwood> ahhhh
aeontech has quit [Client Quit]
<havenwood> right, yeah tons of neat features
Mars` has quit [Ping timeout: 276 seconds]
iliketurtles has quit [Quit: zzzzz…..]
adeponte has joined #ruby
stack_push has quit []
rodacato has quit [Remote host closed the connection]
<farus> now if only Rosalin would get off the ground so that there was an official repl for c#
matrixis1 is now known as matrixise
Domon has quit [Remote host closed the connection]
moshee has joined #ruby
brennanMKE has quit [Remote host closed the connection]
felixjet_ has joined #ruby
rahult has joined #ruby
smathieu has joined #ruby
FUgaRU has quit [Ping timeout: 246 seconds]
i_s has joined #ruby
northelks has quit [Ping timeout: 246 seconds]
felixjet has quit [Ping timeout: 246 seconds]
camelo has left #ruby [#ruby]
goleldar has quit [Ping timeout: 246 seconds]
northelks has joined #ruby
goleldar has joined #ruby
Guest70704 has quit [Remote host closed the connection]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
browndawg has joined #ruby
bradhe has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
cha1tanya has quit [Ping timeout: 240 seconds]
dmiller has quit [Remote host closed the connection]
marcdel has joined #ruby
marcdel has quit [Client Quit]
anay has joined #ruby
marcdel has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
akurilin has quit [Ping timeout: 256 seconds]
michaeldeol has joined #ruby
adeponte has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 240 seconds]
antn has joined #ruby
<farus> when you create a gem is it possible to override the various conventions like your code going in lib etc?
Kelet has quit [Quit: Leaving]
Hanmac has joined #ruby
sambao21 has joined #ruby
kofno has joined #ruby
anay has quit [Ping timeout: 246 seconds]
arya_ has joined #ruby
brianpWins has joined #ruby
vlad_starkov has joined #ruby
Michael_ has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 268 seconds]
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
Hanmac has quit [Ping timeout: 268 seconds]
jkline has joined #ruby
anay has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 245 seconds]
yacks has quit [Quit: Leaving]
milestone has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
flyboy2112 has joined #ruby
flyboy2112 has left #ruby [#ruby]
jkline has quit [Quit: jkline]
atmosx has joined #ruby
atmosx has quit [Client Quit]
blz37 has quit [Read error: Connection reset by peer]
akurilin has joined #ruby
vikhyat has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 276 seconds]
luckyruby has joined #ruby
lkba has joined #ruby
TTilus has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
TTilus has joined #ruby
Mattix has quit [Quit: Leaving]
lindenle has quit [Quit: This computer has gone to sleep]
mahmoudimus has joined #ruby
Mars` has joined #ruby
Drago has quit [Remote host closed the connection]
brennanMKE has joined #ruby
kenneth has joined #ruby
sleetdrop has joined #ruby
sarkis has quit [Ping timeout: 256 seconds]
_ffio_ has quit [Quit: WeeChat 0.4.1]
Mars1 has joined #ruby
pr0ggie has quit [Ping timeout: 240 seconds]
Al_ has joined #ruby
Mars` has quit [Ping timeout: 268 seconds]
ayaz has joined #ruby
antn has quit [Remote host closed the connection]
ayaz has quit [Client Quit]
ShapeShifter499 has quit [Ping timeout: 240 seconds]
vikhyat has joined #ruby
farus has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
caveat- has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
Godd2 has joined #ruby
ffio has joined #ruby
caveat- has joined #ruby
<Godd2> when I type 'gem env' I get this: https://gist.github.com/nicklink483/6017895 . How do I add a path to the GEM PATHS ? Is there some file I can open and type it in?
<Godd2> I want to add '/usr/lib64/ruby/gems/1.8' right below line 11
codecop has joined #ruby
ShapeShifter499 has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
<bnagy> why?
<bnagy> trying to mix and match a user dir install and a system install is just asking for pain
krainboltgreene has quit [Ping timeout: 264 seconds]
<bnagy> also, 1.8 is no longer supported
<Godd2> Im on a shared host
TIJ has joined #ruby
<Godd2> And one gem isn't seeing that another is installed, and it's driving me insane and I'm grasping at straws at this point
<havenwood> Godd2: GEM_PATH is a colon-separated list of gem repository directories. You could: GEM_PATH="$GEM_PATH:/new/path"
Domon has joined #ruby
<bnagy> basically this sounds like "what's the _actual_ problem" squared
iliketurtles has joined #ruby
Mars1 has quit [Ping timeout: 256 seconds]
Mars2 has joined #ruby
<Godd2> The actual problem is that I don't have enough understanding of the environment in which I'm working to do any kind of diagnostics.
dawkirst has quit [Quit: Leaving]
<Godd2> But I didn't want to ask for solutions to that since it isn't a Ruby problem ;)
ananthakumaran1 has quit [Quit: Leaving.]
goleldar has quit [Ping timeout: 240 seconds]
TIJ has quit [Read error: Connection reset by peer]
goleldar has joined #ruby
vikhyat_ has joined #ruby
<havenwood> Godd2: I'd suggest chruby, but I presume you can't install it? https://github.com/postmodern/chruby#readme
krainboltgreene has joined #ruby
vikhyat has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby
tomzx_mac_ has quit [Ping timeout: 264 seconds]
<havenwood> Godd2: Shared host doesn't sound good if that means you cant install your own packages? EC2 or Azure might be worth looking at. A Linux box on Azure is actually quite easy to setup.
Kar- has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
stormbytes has joined #ruby
<Godd2> I was just trying to get something quick and dirty set up with Rails, but it looks like Bluehost may not be the easiest place for that.
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
Es0teric has joined #ruby
zastern has quit [Read error: Connection reset by peer]
<havenwood> Godd2: Maybe just do command line stuff locally and deploy to Heroku free tier?
v1n has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
<Godd2> That's weird. On their website they claim the path to ruby is usr/bin/ruby but 'which ruby' yields /ramdisk/bin/ruby
<Godd2> Is that a problem?
zastern has joined #ruby
<havenwood> dunno
<havenwood> maybe usr is cached to ramdisk, no clue
smathieu has joined #ruby
cads has quit [Ping timeout: 246 seconds]
stormbytes has quit [Client Quit]
<havenwood> they should upgrade their Ruby though :P
Es0teric has quit [Client Quit]
nmabry has joined #ruby
<havenwood> Godd2: What distro is it?
tagrudev has joined #ruby
nomenkun has joined #ruby
<Godd2> distro of Ruby?
rien has quit [Ping timeout: 256 seconds]
<havenwood> oh, i meant of linux - like debian or centos or whatev?
ayaz has joined #ruby
agjacome has joined #ruby
atno has quit [Remote host closed the connection]
<havenwood> ahh REE
renderful has joined #ruby
agjacome has quit [Client Quit]
<havenwood> Godd2: What is?: uname -a
serp` has quit [Quit: serp`]
<Godd2> Linux box579.bluehost.com 2.6.32-20130307.60.9.bh6.x86_64 #1 SMP Thu Mar 7 15:58:33 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
dash_ has joined #ruby
arietis has joined #ruby
<havenwood> Godd2: Try?: update-alternatives
smathieu has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
subbyyy has quit [Quit: none 0.3.9.2]
<bnagy> 2.6.32 %(
<bnagy> holy crap I hope that's centos or something
nomenkun has quit [Ping timeout: 268 seconds]
atno has joined #ruby
<Godd2> Well I'll tell you the problem I'm having right now. I keep getting htis error: no such file to load -- bundler
<Godd2> But I have bundler installed, so I thought maybe it jjust wasn't looking in the right place
renderful has quit [Ping timeout: 240 seconds]
axeman- has joined #ruby
dash__ has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
Mars2 has quit [Ping timeout: 246 seconds]
dash_ has quit [Ping timeout: 240 seconds]
<Godd2> I think I'll just give up and wait until they decide to update Ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Hanmac has joined #ruby
atmosx has joined #ruby
<havenwood> Godd2: Oops, battery went dead. Well, was just gunna say if update-alternative, chruby, rvm, or rbenv happen to be system-wide installed you may be in luck - but that seems like a long shot
browndawg has quit [Quit: Leaving.]
<havenwood> update-alternatives
<Godd2> Oh you must not have seen this: https://gist.github.com/nicklink483/6017977
<havenwood> Godd2: aha
atno has quit [Quit: Leaving]
Al_ has quit [Read error: Connection reset by peer]
antn has joined #ruby
atno has joined #ruby
<havenwood> Godd2: update-alternatives --list ruby
Al_ has joined #ruby
<havenwood> Godd2: ^ check if there are other package installed Rubies available
ananthakumaran has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<Godd2> It didn't change its output.
atmosx has quit [Client Quit]
gstamp has joined #ruby
sayan has joined #ruby
apeiros has quit [Remote host closed the connection]
<havenwood> oh, i was giving you debian syntax - different
<havenwood> update-alternatives --display ruby
nomenkun has joined #ruby
<Godd2> display didn't return diddly
Gooder has joined #ruby
nmabry has quit [Quit: nmabry]
<havenwood> prolly no alternatives available
<Godd2> :/
nmabry has joined #ruby
ahawkins has quit [Quit: ahawkins]
<havenwood> check `rvm`, `rbenv`, and `chruby` commands?
<havenwood> a long shot... ^
workmad3 has joined #ruby
<Godd2> That's okay, I'll just go in the corner and stab myself while coding a cms in PHP
ahawkins has joined #ruby
<havenwood> Happy hacking!
robscomputer has quit [Ping timeout: 268 seconds]
<Godd2> Thanks anyway :)
<havenwood> de nada
adeponte has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
Godd2 has quit [Quit: Page closed]
Al_ has quit [Ping timeout: 268 seconds]
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
atno has quit [Remote host closed the connection]
__sowcow__ has quit [Remote host closed the connection]
adeponte has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
__sowcow__ has joined #ruby
mneorr has joined #ruby
noop has joined #ruby
jonahR has quit [Quit: jonahR]
artemeff has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
benten has joined #ruby
<benten> !seen ezmobius
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
adeponte has joined #ruby
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
renderful has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
bionoid has joined #ruby
zastern has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
pontiki has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 264 seconds]
rahult has joined #ruby
aganov has joined #ruby
v1rr3n has quit [Quit: WeeChat 0.4.1]
SilverKey has joined #ruby
bionoid has quit [Remote host closed the connection]
nari has joined #ruby
ayaz has quit [Quit: Bye!]
chriskk has quit [Quit: chriskk]
__sowcow__ has left #ruby [#ruby]
ayaz has joined #ruby
wesside has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
threesome has joined #ruby
renderful has joined #ruby
lele` is now known as lele
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
wesside has joined #ruby
blaxter_ has joined #ruby
smathieu_ has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
alfreddba has joined #ruby
goodgame has joined #ruby
williamherry has joined #ruby
<alfreddba> sudo: sorry, a password is required to run sudo in backup gem.so how to supply password when performing backup gem
smathieu_ has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
djbkd has quit [Quit: Leaving]
<pontiki> maybe you want to setup a sudoer that can execute your backup script
flaccid has joined #ruby
blaxter_ has quit [Ping timeout: 240 seconds]
haxrbyte_ has quit [Ping timeout: 240 seconds]
<flaccid> man ruby oop is like way too many ways to do things. is there a recommended guide on doing OOP? my main requirement is having modules or classes that share certain modules or classes e.g. logger, configuration etc.
Hanmac has joined #ruby
haxrbyte has joined #ruby
nitish has quit [Remote host closed the connection]
<pontiki> well, "doing OOP" is a gigantic field in itself, there are tons of ways to implement things
<flaccid> thats the problem
<pontiki> the ecsatcy and the pain
i_s has quit [Quit: i_s]
<pontiki> what sort of app are you making?
<pontiki> because sometimes there are some ways better than others depending on the application
<flaccid> its a CLI tool. so a common logger and config. a good example of implementing that would be good..
<pontiki> have you looked at methadone gem?
<flaccid> pontiki: negative. sounds like i should right?
folton has joined #ruby
<pontiki> i use it a lot; it's got a lot of those features, and a p.good organization for things
folton has left #ruby [#ruby]
tatsuya_o has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
<pontiki> if you CLI app is more of a suite type app, a la git, then look at GLI
<pontiki> or thor
<flaccid> pontiki: thank you, that is a great help
<pontiki> sure thing
<pontiki> Dave's stuff is pretty cool, his book is work reading
<pontiki> worth*
<pontiki> lol
stef_204 has joined #ruby
<flaccid> does look like he has done a lot of things that i want to work out best to do
<flaccid> what do you mean by a 'suite' type app though pontiki?
jprovazn has joined #ruby
<pontiki> do you use git?
Mars2 has joined #ruby
<flaccid> yep
<pontiki> so, git status, git add, git checkout, git commit ...
<pontiki> like that
samuel02 has joined #ruby
<flaccid> as oppoed to --options ?
<flaccid> *opposed
<pontiki> it's more like, a command that basically does one thing, like /bin/ls
<pontiki> vs one "command" that actually is a lot of subcommands
<flaccid> it kind of does one thing, but is going to be pretty complex. it could be done this way though with two main commands
<flaccid> food for though, but i think pure options might be best
<pontiki> i tend to agree
<pontiki> i like unix's small, single function programs, that you string together
jbpros has joined #ruby
blaxter_ has joined #ruby
yonahw has joined #ruby
skinny_much has joined #ruby
adeponte has quit [Remote host closed the connection]
jolleyjo1 has joined #ruby
epitron_ has joined #ruby
dhoss_ has joined #ruby
bw__ has joined #ruby
monomyth_ has joined #ruby
shaman42 has joined #ruby
kennym_ has joined #ruby
jarray52 has left #ruby [#ruby]
jbpros has quit [Quit: jbpros]
SilverKey has quit [Quit: Cheerio!]
haxrbyte has quit [Remote host closed the connection]
jbpros has joined #ruby
bradhe has quit [Remote host closed the connection]
Tomas2 has joined #ruby
bradhe has joined #ruby
williamherry has quit [Quit: WeeChat 0.3.9.2]
alanjcfs has joined #ruby
Meatant has joined #ruby
dhoss has quit [*.net *.split]
kennym has quit [*.net *.split]
bw_ has quit [*.net *.split]
dormiens has quit [*.net *.split]
skinny_much_ has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
yonahw_ has quit [*.net *.split]
epitron has quit [*.net *.split]
LucidDreamZzZ has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
Kabaka has quit [*.net *.split]
monomyth has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
tacos1de has quit [*.net *.split]
DrCode has quit [*.net *.split]
end_guy has quit [*.net *.split]
alanjcfs is now known as dormiens
alup has joined #ruby
pontiki has quit [Quit: g'nite]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
cads has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
Myconix has joined #ruby
<alfreddba> pontiki: please guide me how to set sudoers
<flaccid> alfreddba: man sudoers, not really ruby
<Sp4rKy> Hi, I try to mockup IO.popen, a IO.should_receive(:popen).with(...) do the job, but how can I return something so that $? is set correctly ?
<alfreddba> flaccid: thanks i will try n come back...
threesome has joined #ruby
iliketurtles has joined #ruby
dmiller has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
maxmanders has joined #ruby
iliketurtles has quit [Client Quit]
afd__ has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
end_guy has joined #ruby
dmiller has quit [Read error: Operation timed out]
Bry8Star{T2 has joined #ruby
DrCode has joined #ruby
ahawkins has quit [Quit: ahawkins]
marcdel has joined #ruby
<[narcan]> so i've tried using chruby to manage my ruby install
<[narcan]> but then go to use bundle and get -bash: /usr/bin/bundle: /usr/bin/ruby: bad interpreter: No such file or director
<[narcan]> what extra do i have to do to point it at the current ruby install
<postmodern> [narcan], gem install bundler
<postmodern> [narcan], your still using the system's bundler
<postmodern> [narcan], not the rubies bundler
utdemir has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
tacos1de has joined #ruby
timonv has joined #ruby
optimusprimem has quit [Read error: Connection reset by peer]
nitish has joined #ruby
marcgg has joined #ruby
Kabaka has joined #ruby
lusory has joined #ruby
jibi has joined #ruby
atno has joined #ruby
smathieu_ has joined #ruby
renderful has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Remote host closed the connection]
apeiros has joined #ruby
smathieu_ has quit [Ping timeout: 268 seconds]
Coffers has joined #ruby
rshetty has quit [Quit: Sleeping]
<[narcan]> postmodern: thanks, but still no go
<postmodern> [narcan], which bundle should point into ~/.gem/
<postmodern> [narcan], also curious what $PATH and `gem env` are
Bry8Star{T2 has joined #ruby
anay has quit [Remote host closed the connection]
Coffers has quit [Client Quit]
<postmodern> ok that looks good
<postmodern> what error are you getting?
nomenkun has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
<[narcan]> -bash: /usr/bin/bundle: /usr/bin/ruby: bad interpreter: No such file or directory
<[narcan]> same as before
anay has joined #ruby
<[narcan]> when just trying to run bundle
<postmodern> head `which bundle`
<[narcan]> ~/.gem/ruby/1.9.3/bin/bundle
brennanMKE has quit [Remote host closed the connection]
<postmodern> and what is the #! for that?
browndawg has joined #ruby
<[narcan]> #!/opt/rubies/ruby-1.9.3-p429/bin/ruby
senayar has joined #ruby
ghanima has joined #ruby
<postmodern> [narcan], ok try running `hash -r`
Coffers has joined #ruby
ephemerian has joined #ruby
lkba has joined #ruby
<[narcan]> will just move /usr/bin/bundle out of the way maybe
<postmodern> [narcan], for some reason /usr/bin/bundle is getting ran, even though bundle -> ~/.gem/...bin/bundle
<[narcan]> yeah, thanks
Tomas2 has quit [Ping timeout: 240 seconds]
<[narcan]> if i just nuke /usr/bin/bundle i'm all good :)
akurilin has quit [Ping timeout: 240 seconds]
<[narcan]> cheers
<postmodern> very odd
<[narcan]> yeah, this is on an EC2 instance i created today, using amazon's image
jalcine- has quit [Excess Flood]
<[narcan]> had everything setup using their ruby 1.9 from the package manager
<[narcan]> but then couldnt get mysql2 to build
<[narcan]> had some compiler error when building the native stuff
<[narcan]> so now i'm running under chruby, seems to have installed fine
hamakn_ has quit [Read error: Connection reset by peer]
<[narcan]> so fingers crossed i'm actually nearly there
atyz has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
atyz has joined #ruby
<[narcan]> there's always something *sigh*
jalcine has joined #ruby
zz_michael_mbp is now known as michael_mbp
anderson has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby
DaniG2k has joined #ruby
ffio has quit [Ping timeout: 240 seconds]
TIJ has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
ybart has joined #ruby
vlad_starkov has joined #ruby
angusiguess has joined #ruby
obs has joined #ruby
adeponte has joined #ruby
Achalov-ru has joined #ruby
TonyMergue has joined #ruby
r0bby has joined #ruby
goshakkk has joined #ruby
krainboltgreene has quit [Read error: Operation timed out]
gyre007 has joined #ruby
DaniG2k has quit [Read error: No route to host]
robbyoconnor has quit [Ping timeout: 246 seconds]
DaniG2k has joined #ruby
Voodoofish430 has quit [Read error: Connection timed out]
Voodoofish430 has joined #ruby
cj3kim has joined #ruby
elaptics`away is now known as elaptics
jmimi has quit [Read error: Connection reset by peer]
goshakkk has quit [Client Quit]
corehook has joined #ruby
zeropx has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
corehook has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
timonv has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
corehook_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
bradhe has joined #ruby
rdark has joined #ruby
TIJ has quit [Ping timeout: 268 seconds]
atyz has quit [Read error: Connection reset by peer]
atyz has joined #ruby
renderful has joined #ruby
Kabaka has quit [Remote host closed the connection]
ghr has joined #ruby
Kabaka has joined #ruby
fixl has joined #ruby
monkegjinni has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
maz-dev has joined #ruby
renderful has quit [Ping timeout: 248 seconds]
clocKwize has joined #ruby
ketienne has joined #ruby
krainboltgreene has joined #ruby
Spooner has joined #ruby
ferdev has joined #ruby
krainboltgreene has quit [Client Quit]
jmimi has joined #ruby
Gooder` has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars2 has quit [Ping timeout: 246 seconds]
BizarreCake has joined #ruby
tvw has joined #ruby
Gooder has quit [Ping timeout: 246 seconds]
ghr has quit [Quit: Textual IRC Client: www.textualapp.com]
bionoid has joined #ruby
DefV has quit [Quit: leaving]
vikhyat_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 256 seconds]
gildo has joined #ruby
julweber has joined #ruby
DefV has joined #ruby
bionoid has quit [Remote host closed the connection]
Lewix_ has joined #ruby
Giorgio has joined #ruby
smathieu has joined #ruby
dominikh1 is now known as dominikh
trepidaciousMBR has joined #ruby
ghr has joined #ruby
adrian_ has joined #ruby
coaster has quit [Ping timeout: 276 seconds]
ayonix has quit [Quit: No Ping reply in 180 seconds.]
canton7 has quit [Ping timeout: 276 seconds]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
ghr has quit [Client Quit]
michael_imac has joined #ruby
vikhyat has joined #ruby
arya_ has quit []
michael_imac is now known as michael_mbp
Lewix has quit [Ping timeout: 276 seconds]
emergion has joined #ruby
bionoid has joined #ruby
ewnd9 has joined #ruby
rshetty has joined #ruby
arya_ has joined #ruby
pyoor has quit [Remote host closed the connection]
pyoor has joined #ruby
vaicine_ has quit [Remote host closed the connection]
vaicine has joined #ruby
coaster has joined #ruby
Giorgio has quit [Ping timeout: 240 seconds]
wchun has joined #ruby
smathieu has quit [Ping timeout: 268 seconds]
nari has quit [Ping timeout: 245 seconds]
sheeny has joined #ruby
ghr has joined #ruby
timonv has joined #ruby
<sheeny> Can anybody possibly help me with a CanCan issue?
akurilin has joined #ruby
avril14th has joined #ruby
goleldar has quit [Ping timeout: 268 seconds]
Nss has joined #ruby
goodgame_ has joined #ruby
<Veejay> sheeny: This seems to be more of a #rubyonrails question than a #ruby question
sheeny has quit [Ping timeout: 250 seconds]
marr has joined #ruby
saintcajetan has joined #ruby
dEPy has joined #ruby
goodgame has quit [Ping timeout: 256 seconds]
TIJ has joined #ruby
blaxter_ is now known as blaxter
yacks has joined #ruby
zeropx has quit [Quit: zeropx]
browndawg has left #ruby [#ruby]
goodgame_ has quit [Ping timeout: 268 seconds]
MrZYX|off is now known as MrZYX
r0bby is now known as robbyoconnor
intuxicated has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
DrCode has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
Zai00 has joined #ruby
optimusprimem has joined #ruby
buibex has joined #ruby
optimusprimem has quit [Read error: Connection reset by peer]
Hanmac has quit [Quit: Leaving.]
TIJ has quit [Quit: Konversation terminated!]
TIJ has joined #ruby
Domon has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
nomenkun has quit [Ping timeout: 240 seconds]
FUgaRU has joined #ruby
DrCode has joined #ruby
Domon has joined #ruby
goodgame_ has joined #ruby
jbpros has quit [Quit: jbpros]
arietis has joined #ruby
monkegjinni has quit [Remote host closed the connection]
himsin has joined #ruby
noname001 has joined #ruby
Giorgio has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
nari has joined #ruby
poikon has joined #ruby
predator117 has joined #ruby
luckyruby has quit [Remote host closed the connection]
browndawg has joined #ruby
predator217 has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: kswizz.com]
jbpros has joined #ruby
luckyruby has joined #ruby
lkba has joined #ruby
akurilin has quit [Ping timeout: 256 seconds]
gyre007 has joined #ruby
<[narcan]> so i'm trying to run resque using god, but it's sample config for god says to run rake -f #{rails_root}/Rakefile resque:work
noname001 has quit [Remote host closed the connection]
<[narcan]> but i'm assuming this wont use the correct bundle gems ?
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<[narcan]> and i should be using bundle exec, or am i missing something ?
Kabaka has joined #ruby
Hanmac has joined #ruby
senayar_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
noname001 has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
corehook__ has joined #ruby
poikon has quit [Remote host closed the connection]
senayar_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
dmiller has joined #ruby
Newbcake has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
hamakn has joined #ruby
corehook_ has quit [Ping timeout: 264 seconds]
corehook has joined #ruby
adeponte has joined #ruby
benten has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
arya_ has quit []
monkegjinni has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
arya_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
obs has joined #ruby
monkegjinni has joined #ruby
Kar- has quit [Remote host closed the connection]
sqd_ has joined #ruby
adeponte has quit [Ping timeout: 268 seconds]
luckyruby has quit [Remote host closed the connection]
<DaniG2k> hmm
vlad_starkov has joined #ruby
benten has joined #ruby
sheeny has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
<sheeny> Could anyone help with this please? https://gist.github.com/craigsheen/6019207
vikhyat has quit [Ping timeout: 256 seconds]
vikhyat_ has joined #ruby
Kar- has joined #ruby
smathieu has joined #ruby
bionoid has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sqd_ has quit [Quit: sqd_]
echevemaster has quit [Quit: Leaving]
noop has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Ping timeout: 245 seconds]
Fuzai has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
smathieu has quit [Ping timeout: 268 seconds]
<DaniG2k> hmm what's an exciting software project these days?
<DaniG2k> I'm bored
<DaniG2k> -_-
kung has joined #ruby
Giorgio has quit [Remote host closed the connection]
bionoid has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
cj3kim has joined #ruby
vikhyat has joined #ruby
vikhyat_ has quit [Ping timeout: 246 seconds]
cj3kim has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
bionoid has quit [Remote host closed the connection]
fermion has joined #ruby
m4dnificent is now known as madnificent
julweber has quit [Remote host closed the connection]
jbpros has joined #ruby
sheeny has quit [Quit: Page closed]
goleldar has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Nanuq has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
sethetter has joined #ruby
noop has joined #ruby
vlad_starkov has joined #ruby
Myrth has quit [Ping timeout: 256 seconds]
<intuxicated> what "|" means in @names.each do |name|
<intuxicated> convert to string ?
arietis has quit [Quit: Computer has gone to sleep.]
kung has quit [Quit: Bye!]
Desert_eagle has joined #ruby
<tobiasvl> no
postmodern has quit [Quit: Leaving]
<DaniG2k> intuxicated: |name| creates a variable name for that block
kung has joined #ruby
<tobiasvl> intuxicated: what DaniG2k said. it basically means that each element in @names is passed into the following block in the variable name
<tobiasvl> read it as "for each name in @names, do..."
kung has quit [Client Quit]
<intuxicated> yeah i know about this kind of loop , i just wanna know what is "|" doing there, its ruby syntax ?
kung has joined #ruby
<tobiasvl> yes
<intuxicated> ah , ty
optimusprimem has joined #ruby
fragmachine has joined #ruby
nikeita has joined #ruby
fragmachine has quit [Remote host closed the connection]
three18ti has quit [Ping timeout: 268 seconds]
Neomex has joined #ruby
three18ti has joined #ruby
Cisco_Walker has joined #ruby
renderful has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
tvw has quit []
cj3kim has joined #ruby
Neomex has quit [Client Quit]
arietis has joined #ruby
optimusprimem has quit [Read error: Connection reset by peer]
pedda has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
dmiller has joined #ruby
Meatant has quit [Quit: j]
Speed has joined #ruby
whowantstolivefo has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
renderful has quit [Ping timeout: 268 seconds]
dmiller has quit [Ping timeout: 240 seconds]
romdi has joined #ruby
intuxicated has quit [Quit: Leaving]
almostobsolete has joined #ruby
almostobsolete has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
noop has quit [Ping timeout: 268 seconds]
inimit has quit [Quit: inimit]
moura has joined #ruby
Villadelfia has quit [Read error: Operation timed out]
yacks has quit [Ping timeout: 240 seconds]
SeySayux has quit [Ping timeout: 240 seconds]
pranny1 has quit [Quit: Leaving.]
Cisco_Walker has quit [Quit: Ex-Chat]
bw__ is now known as bw_
Villadelfia has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
SeySayux has joined #ruby
licorn54 has quit [Ping timeout: 240 seconds]
eka has joined #ruby
nmabry has quit [Quit: nmabry]
atno has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
emergion has joined #ruby
noop has joined #ruby
keanehsiao has quit [Quit: Leaving...]
nettoweb has joined #ruby
s0ber has joined #ruby
nettoweb has quit [Client Quit]
hamed_r has joined #ruby
sqd_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
monkegjinni has joined #ruby
maz-dev has quit [Ping timeout: 246 seconds]
nikeita has quit [Quit: sleep]
licorn54 has joined #ruby
Domon has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
tatsuya_o has joined #ruby
atmosx has joined #ruby
Hanmac has quit [Quit: Leaving.]
<atmosx> hello
jbpros has quit [Quit: jbpros]
manutter has joined #ruby
nikeita has joined #ruby
Newbcake has quit [Quit: :c]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Client Quit]
KevinSjoberg has joined #ruby
smathieu has joined #ruby
goleldar has quit [Ping timeout: 248 seconds]
atmosx has quit [Quit: And so the story goes…]
KevinSjoberg has quit [Client Quit]
Newbcake has joined #ruby
manutter has quit [Ping timeout: 240 seconds]
KevinSjoberg has joined #ruby
browndawg has joined #ruby
pranny has joined #ruby
tonini has joined #ruby
buibex has quit [Ping timeout: 248 seconds]
<lupine> hmm. does Timeout::timeout no longer interrupt blocked-on-monitor in ruby1.9 ?
smathieu has quit [Ping timeout: 240 seconds]
LucidDreamZzZ has joined #ruby
trepidaciousMBR_ has joined #ruby
osvico has joined #ruby
trepidaciousMBR has quit [Ping timeout: 240 seconds]
trepidaciousMBR_ is now known as trepidaciousMBR
vlad_starkov has quit [Remote host closed the connection]
ntus1017 has joined #ruby
tvw has joined #ruby
buibex has joined #ruby
Spami has joined #ruby
buibex has quit [Remote host closed the connection]
krz has quit [Quit: krz]
diabel232 has joined #ruby
Achalov-ru has quit []
renderful has joined #ruby
nitish has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
manutter has joined #ruby
Xsheller has joined #ruby
Neomex has joined #ruby
d3 has quit [Read error: Operation timed out]
lrocksmashtime has joined #ruby
cj3kim has joined #ruby
dmiller has joined #ruby
DaniG2k has left #ruby [#ruby]
Hanmac has joined #ruby
premjg_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
Neomex has quit [Quit: Neomex]
mcrmfc has joined #ruby
Myconix has quit [Ping timeout: 240 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
Myconix has joined #ruby
kofno has joined #ruby
ldnunes has joined #ruby
tacos1de has joined #ruby
GeissT_ has joined #ruby
sethetter has quit [Ping timeout: 268 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
atno has joined #ruby
Mattix has joined #ruby
sleetdrop has quit [Ping timeout: 240 seconds]
allsystemsarego has joined #ruby
GeissT has quit [Ping timeout: 268 seconds]
binaryplease has joined #ruby
blarghmatey has joined #ruby
* lupine picks his way through a mass of ruby1.9 incompatibilities
<lupine> oddly enough, many of them were in tests/ rather than lib/
arietis has joined #ruby
blarghmatey has quit [Ping timeout: 264 seconds]
lebek has joined #ruby
ntus1017 has quit [Remote host closed the connection]
joey133 has quit [Ping timeout: 276 seconds]
BizarreCake has joined #ruby
ewnd9 has quit [Remote host closed the connection]
Yakko has quit [Ping timeout: 264 seconds]
ghanima has quit [Quit: Leaving.]
isale-eko has joined #ruby
SidGBF has joined #ruby
cj3kim has joined #ruby
<SidGBF> Anyone here could help me with redmine? Or maybe point me a different channel?
Maoko has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Maoko> Did someone use solr with ruby?
senayar_ has joined #ruby
mljsimone|away is now known as mljsimone
Astralum has joined #ruby
mklappstuhl has joined #ruby
jbpros has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
nikeita has quit [Quit: sleep]
<vikhyat> Maoko: I use the sunspot gem to interface with Solr.
yacks has joined #ruby
johnkary has joined #ruby
<Maoko> vikhyat, Great! Did you try setting this param EdgeNGramFilterFactory?
grainol has joined #ruby
kung has quit [Quit: Bye!]
sethetter has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
smathieu has joined #ruby
<_br_> Have to work with a SOAP/WDSL API here and want to bundle it into a nice gem. What kind of SOAP lib would you recommented? Savon? Handsoap? Soap4r? Particularly in terms of speed and ease of use etc. ?
pwnfactory has joined #ruby
<Maoko> vikhyat, I need to start display results from the first entered char. Tried setting <filter class="solr.EdgeNGramFilterFactory" minGramSize="3" maxGramSize="30"/> this param but it looks like nothing has changed. I'm still getting the results after the 5th char.
pranny1 has joined #ruby
senayar has joined #ruby
TIJ has quit [Ping timeout: 256 seconds]
Mattix has quit [Quit: Leaving]
pranny has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
senayar_ has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
beiter has joined #ruby
<vikhyat> Maoko: Have you tried it with minGramSize="1"?
beiter has joined #ruby
utdemir has quit [Read error: Connection reset by peer]
maz-dev has joined #ruby
<Maoko> vikhyat, yup, not working either, I did try setting this up to 3 - 5 - 10 chars and the results are all the same.
sailias has quit [Ping timeout: 240 seconds]
cads has quit [Ping timeout: 240 seconds]
<Maoko> and, yes, I'm restarting solr after each schema.xml change
<vikhyat> Maoko: I have it set to 2 and I do get results after entering 2 characters.
<vikhyat> Maoko: Perhaps you need to re-index?
smathieu has quit [Ping timeout: 240 seconds]
<Maoko> vikhyat, that might do the trick. Just a sec.
utdemir has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
ferdev has quit [Quit: ferdev]
<Maoko> vikhyat, Indeed! Reindexing is a cure for this.
mary5030 has joined #ruby
Maoko has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
alyi has joined #ruby
moura has quit [Quit: Computer has gone to sleep.]
johnkary has quit [Quit: @johnkary]
tk_ has joined #ruby
timonv has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 268 seconds]
maz-dev has quit [Quit: Leaving]
maz-dev has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
end_guy has joined #ruby
ntus1017 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sambao21 has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
brtdv has joined #ruby
mark_locklear has joined #ruby
viszu has joined #ruby
brtdv has quit [Client Quit]
atyz has quit [Read error: Connection reset by peer]
brtdv has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
atyz has joined #ruby
razi has joined #ruby
emergion has joined #ruby
sethetter has quit [Ping timeout: 240 seconds]
nezumi has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
mongag has joined #ruby
ksmth has joined #ruby
Asher has quit [Quit: Leaving.]
<mongag> Why this regualt expression is not working - https://gist.github.com/anonymous/9e88b0efc56933aedff9
<mongag> I got empty result
sambao21 has quit [Quit: Computer has gone to sleep.]
SidGBF has left #ruby [#ruby]
jp- has joined #ruby
moura has joined #ruby
Asher has joined #ruby
moura has quit [Max SendQ exceeded]
dmiller has quit [Ping timeout: 240 seconds]
isale-eko has quit [Quit: ChatZilla 0.9.90.1 [Firefox 22.0/20130618035212]]
nikeita has joined #ruby
<hoelzro> you don't have any repetitions
isale-eko has joined #ruby
<hoelzro> you're expecting a single alphabetic char, then '@', then a single alphabetic char
corehook__ has quit [Read error: Operation timed out]
<hoelzro> then a '.', then finally a single alphabetic character
corehook__ has joined #ruby
corehook_ has joined #ruby
isale-eko has left #ruby [#ruby]
<hoelzro> also, I think [a-zA-Z] is probably too limiting for an e-mail, isn't it?
nanoxd has quit [Ping timeout: 246 seconds]
hamakn has quit [Read error: Connection reset by peer]
<hoelzro> *also*, there's probably an existing e-mail validation routine out there somewhere
<hoelzro> don't roll your own
hamakn has joined #ruby
corehook has quit [Ping timeout: 268 seconds]
<razi> ^ everything he said
<_br_> mongag: This regex is violating the RFC spec for email addresses. You would be surprised what chars are allowed in email addresses.
mklappstuhl has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<prsn> Is there a nice way like ||= to do addition? Like, I want to initialize x to 5 if x is nil, and do x += 5 otherwise
<_br_> mongag: just make sure you have the <something> @ <something> . <something>
<apeiros> a technically correct email validation regex is about 1 A4 page big
<tobiasvl> prsn: x ? x = 5 : x += 5
<tobiasvl> no sorry
<tobiasvl> prsn: x.nil? ? x = 5 : x += 5
<apeiros> _br_: what most people don't know, "foo" is a valid email address
jp- has quit [Changing host]
jp- has joined #ruby
gyre007 has quit [Remote host closed the connection]
<_br_> apeiros: eh? without domain, tld and @ ?
<tobiasvl> prsn: other way around for what you want: x ? x += 5 : x = 5
<apeiros> _br_: yes
<_br_> apeiros: crazy.
<bnagy> x||=0;x+=5
<apeiros> @ is only needed if you leave your own network
<prsn> tobiasvl: well, sure, but the idea is to avoid writing out x so many times
<apeiros> that said - most smtps don't process mails without @
<_br_> apeiros: nice catch! :)
Michael_ has joined #ruby
<_br_> mongag: A good thing to focus on is probably trying to spell check "e.g. gmaail" -> "gmail" etc.
<bnagy> but in real life it won't work unless it's @x
<_br_> apeiros: True, that and spf, dkim and all the other mess
<apeiros> _br_: yupp
senayar_ has joined #ruby
<apeiros> email address spec stems from ancient times were stuff looked slightly different :)
<_br_> yep, and everybody thought the world is full of flowers and nobody will do something stupid
<_br_> good times! :)
<_br_> mah, I'm getting old.
<apeiros> ^^
<apeiros> and the internet was comprised of a grand total of about 317 users
mansi has joined #ruby
<_br_> hehe
senayar_ has quit [Remote host closed the connection]
<mongag> _br_ let's says it's a "simple" email validator
KevinSjoberg has quit [Ping timeout: 240 seconds]
<mongag> Why I can't get the email with this regex?
<apeiros> mongag: lets replace "simple" with "invalid"
senayar_ has joined #ruby
<_br_> exactly.
NiteRain has quit [Max SendQ exceeded]
<mongag> aperios: I agree
NiteRain has joined #ruby
hamed_r has quit [Quit: Leaving]
keanehsiao has joined #ruby
<apeiros> but why it doesn't work the way you wanted was explained already by hoelzro
gyre007 has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
whowantstolivefo has quit [Ping timeout: 264 seconds]
<hoelzro> using predefined character classes is probably a better bet
<hoelzro> (but that won't fix the problem I already pointed out)
<tobiasvl> mongag: [A-Za-z] only matches a SINGLE letter
buzzybron1 has quit [Quit: Leaving.]
<mongag> lol i missed that
<_br_> mongag: a good way to learn a bit more about regex.. http://rubular.com/
* hoelzro typed six lines of help...
<hoelzro> ='(
<hoelzro> I feel invisible!
<YaNakilon> x = (x || 0) + 5
<apeiros> who said that?
* apeiros hears voices
<mongag> hoelzro: my apologies
<YaNakilon> tobiasvl prsn
devoldmx3 has joined #ruby
<mongag> _br_ thx
<_br_> apeiros: me too... wonder where hoelzro is ?
<_br_> mongag: welcome
<_br_> d(^.^)p \/
<apeiros> yeah, haven't seen him in a while. sad. he was a great guy.
<_br_> indeed
<tobiasvl> who? hoelzro? never heard of him
<tobiasvl> YaNakilon prsn: that is prettier
devoldmx has quit [Ping timeout: 245 seconds]
Kar- has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
premjg_ has quit [Quit: Leaving.]
buzzybron has joined #ruby
premjg_ has joined #ruby
karl___ has joined #ruby
clocKwize has quit [Quit: clocKwize]
<karl___> Anyone familiar with nokogiri SAX parsing? Doing SAX parsing, I see lots of examples for printing the attributes of a tag, but haven't found any printing the contents of a tag (ie, <name>Karl</name> I want to print "Karl"). Anyone know the proper way to do this?
timonv has joined #ruby
buzzybron has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
Michael_ has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
buzzybron has joined #ruby
<james_woods> j /rails
<james_woods> Oo
buzzybron has left #ruby [#ruby]
<mongag> _br_ thx again for the link. Very useful
mansi has quit [Ping timeout: 268 seconds]
lebek has joined #ruby
lebek has quit [Client Quit]
Michael_ has joined #ruby
senayar has joined #ruby
burlyscudd has joined #ruby
lrocksmashtime has quit [Read error: Operation timed out]
clocKwize has joined #ruby
breakingthings has joined #ruby
KevinSjoberg has joined #ruby
senayar has quit [Remote host closed the connection]
<apeiros> karl___: been a while, but the text-node should be its own event
devoldmx3 has quit [Ping timeout: 264 seconds]
breakingthings has quit [Client Quit]
senayar has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
breakingthings has joined #ruby
kennym_ is now known as kennym
kennym has quit [Changing host]
kennym has joined #ruby
KevinSjoberg has quit [Max SendQ exceeded]
s00pcan has quit [Remote host closed the connection]
breakingthings has quit [Client Quit]
<karl___> apeiros: Hm, I have an event for the specific node (ie If nodename="name"), i just cant seem to figure out how to access the text inside
breakingthings has joined #ruby
sethetter has joined #ruby
KevinSjoberg has joined #ruby
ferdev has joined #ruby
anay has quit [Remote host closed the connection]
s00pcan has joined #ruby
senayar_ has quit [Ping timeout: 268 seconds]
anay has joined #ruby
arietis has joined #ruby
KevinSjoberg has quit [Max SendQ exceeded]
<apeiros> karl___: looking at nokogiris doc I'd say it's not a node event
atyz has joined #ruby
<apeiros> http://nokogiri.org/Nokogiri/XML/SAX/Document.html see `cdata_block` and `characters`
<karl___> apeiros: the source of the "characters" block leads me to believe it doesn't actually do anything
jmimi has quit [Ping timeout: 246 seconds]
<apeiros> karl___: of course not
<apeiros> it's a callback
KevinSjoberg has joined #ruby
<apeiros> YOU provide what it should do
<apeiros> that's how sax-parsers work :-p
pranny1 has quit [Quit: Leaving.]
<_br_> yep, you need to collect occurances of each char in the characters method
nomenkun has joined #ruby
anay has quit [Ping timeout: 248 seconds]
_mtr has joined #ruby
<_br_> that brings up a interesting though, since you use SAX to squeeze out more speed I assume you might want to switch to 'ox' gem.
NiteRain has quit [Ping timeout: 268 seconds]
Speed has left #ruby ["WeeChat 0.4.1"]
tomzx_mac has joined #ruby
DaniG2k has joined #ruby
sambao21 has joined #ruby
smathieu has joined #ruby
sethetter has quit [Ping timeout: 246 seconds]
cha1tanya has quit [Ping timeout: 264 seconds]
poikon has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
atyz has quit [Read error: Connection timed out]
shouya1 has quit [Ping timeout: 240 seconds]
lrocksmashtime has joined #ruby
shouya has joined #ruby
Kruppe has joined #ruby
_br_ has left #ruby [#ruby]
_br_ has joined #ruby
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
elux has joined #ruby
keanehsiao has quit [Quit: Leaving...]
wmoxam has joined #ruby
splittingred has joined #ruby
krainboltgreene has joined #ruby
Mon_Ouie has joined #ruby
jmimi has joined #ruby
jbpros has quit [Quit: jbpros]
ldnunes has quit [Quit: Leaving]
senayar_ has joined #ruby
teddyp1cker has joined #ruby
ldnunes has joined #ruby
sailias has joined #ruby
JZTech101 has joined #ruby
senayar has quit [Read error: Operation timed out]
dmiller has joined #ruby
jbpros has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
pskosinski has joined #ruby
jmimi has quit [Ping timeout: 246 seconds]
angusigu1ss has joined #ruby
tonini has quit [Remote host closed the connection]
Kar- has joined #ruby
mongag has quit [Quit: Leaving]
senayar_ has quit [Remote host closed the connection]
rshetty has quit [Quit: Sleeping]
senayar has joined #ruby
LBRapid has joined #ruby
jerius has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
poikon has left #ruby ["Leaving"]
rshetty has joined #ruby
dagobah has joined #ruby
diabel232 has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty has quit [Client Quit]
diabel232 has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
sayan has quit [Quit: Leaving]
keanehsiao has joined #ruby
pentameter has joined #ruby
tonini has joined #ruby
beiter has quit [Quit: beiter]
dmiller has quit [Remote host closed the connection]
ravster has joined #ruby
blandflakes has quit [Quit: Leaving]
ananthakumaran has quit [Quit: Leaving.]
Notte has joined #ruby
browndawg has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
Akuma has joined #ruby
browndawg has joined #ruby
vlad_starkov has joined #ruby
crankycoder has quit [Quit: leaving]
<karl___> _br_: thank you; i started playing with ox and it was a bit more intuitive
Akuma has quit [Client Quit]
v1n has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
sambao21 has joined #ruby
jmimi has joined #ruby
Michael_ has quit [Remote host closed the connection]
ksmth has quit []
interactionjaxsn has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Akuma has joined #ruby
TheRealPygo is now known as pygospa
aalmenar_ has quit [Ping timeout: 246 seconds]
ereslibre_laptop has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
krz has joined #ruby
Mattix has joined #ruby
cmarques has joined #ruby
julweber has joined #ruby
mklappstuhl has joined #ruby
<Mattix> Hello
<Mattix> > (1/2442000000*299792458)**2
<krainboltgreene> Anyone here use archlinux and do ruby work?
S0da has joined #ruby
<Mattix> it's returning 0.0
anay has joined #ruby
<Mattix> any way to increase the precision?
<krainboltgreene> Turn one into a float?
<hoelzro> krainboltgreene: I run Arch and have Ruby installed, if that counts =P
cj3kim has joined #ruby
<krainboltgreene> hoelzro: What's the pro/cons of archlinux, and have you run into any issues with using ruby on it?
crankycoder has joined #ruby
<hoelzro> krainboltgreene: the pros are high customizability and rolling release (you see new software more quickly)
sweeper has joined #ruby
alfreddba has left #ruby [#ruby]
<hoelzro> the cons are that it expects you to know a lot, and do pretty much everything yourself
<hoelzro> and that rolling release aspect can occasionally break your system
<hoelzro> oh, another pro: the wiki is fantastic
<hoelzro> probably the best source of linux knowledge these days
<hoelzro> I don't have any issues running ruby on it, because I have an RVM installation to manage rubies separately from the OS' version
himsin has quit [Quit: himsin]
<krainboltgreene> That's good to hear.
axl_ has joined #ruby
<krainboltgreene> Am I correct that the simplest linux is probably debian or ubnutu?
<sweeper> morning folks. I have a SOA with 4 different services I need to manage on ec2 instances. I'm looking for some tools to glue this all together in a nice way. my current idea is a small ruby daemon that connects to a redis pub/sub when the machine boots, and then spawns services on the host on command
<krainboltgreene> In terms of handholding.
<hoelzro> ubuntu is probably the simplest
<Akuma> hello, I'm having lots of issues installing sqlite3 gem on windows with ruby 2.0.0-p247 x64: I've installed the dll in the bin dir of ruby also tried to compile sqlite3 from source and using --with-sqlite3-include and --with-sqlite3-lib
<hoelzro> debian doesn't do a lot of handholding
vlad_starkov has joined #ruby
<Akuma> I can't seem to get past the error: checking for sqlite3_libversion_number() in -lsqlite3... no
<sweeper> only problem with this idea is that redis is one of the services I'd like to manage :P
vlad_starkov has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
* sweeper spreads LaPetiteFromage over a bagel
cj3kim has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
corehook__ has quit [Ping timeout: 246 seconds]
S0da has quit [Ping timeout: 276 seconds]
corehook_ has quit [Ping timeout: 264 seconds]
S0da has joined #ruby
niklasb has joined #ruby
jbpros has quit [Quit: jbpros]
ChristianS has quit [Excess Flood]
Davey has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ChristianS has joined #ruby
TIJ has joined #ruby
<_br_> krainboltgreene: What difference does the distribution make? Its like ice cream.
<krainboltgreene> _br_: The more handholding, the better.
anay has quit [Remote host closed the connection]
<_br_> krainboltgreene: Handholding? Arch is no good idea then.
v1n has quit [Read error: Operation timed out]
<ericwood> Arch slaps your hand and scolds you for trying to hold hands with it
<hoelzro> indeed
<hoelzro> you have to win Arch over ;)
rickruby has quit [Remote host closed the connection]
<_br_> Arch? Meh new kids stuff. Gentoo is still where the buzz is ^^.
<ericwood> arch is a classy mistress
vlad_starkov has joined #ruby
<hoelzro> or mister, if that's what you prefer ;)
freerobby has joined #ruby
r0bgleeson has joined #ruby
<_br_> That being said though, you should all be using freebsd :)
<ericwood> hehe
<ericwood> I'm on OS X, close enough?
<_br_> darwin? yeah
jlast has joined #ruby
<Xsheller> хуй
supergiantrobot has joined #ruby
JZTech101 has joined #ruby
johnnyfuchs has joined #ruby
denver has joined #ruby
<hoelzro> even translated to an english keyboard layout that inputs makes no sense...
arietis has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
anay has joined #ruby
anay has quit [Remote host closed the connection]
anay has joined #ruby
arietis has joined #ruby
r4nd0m1 has joined #ruby
sarkis has joined #ruby
joey133 has joined #ruby
nikeita has quit [Quit: sleep]
sambao21 has joined #ruby
<krainboltgreene> Gotta get me a freebsd iso.
<krainboltgreene> iamge
maxmanders has joined #ruby
dawkirst has joined #ruby
sambao21 has quit [Client Quit]
DaniG2k has quit [Quit: Leaving.]
Dekade has quit [Read error: Connection reset by peer]
anay has quit [Ping timeout: 246 seconds]
aedorn has joined #ruby
brennanMKE has joined #ruby
Dekade has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<Akuma> This is the error I get when I try to compile sqlite3 on windows: http://pastebin.com/vXv9Tq1J
<Akuma> I mean install the gem
smathieu_ has joined #ruby
<mjc_> Akuma: install the devkit
<Akuma> I have devkit
<Akuma> and I have ruby
<Akuma> I have no problem installing other gems
<Akuma> but for some reason sqlite and mysql seem to be problematic
<Hanmac> Akuma did you install the lib and header files? (mysql dev packages)?
aaroncm has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
aaroncm has joined #ruby
<Akuma> I'm focusing on sqlite for the moment. I have installed the autoconf package and did the config make make install
<Akuma> for sqlite
smathieu_ has quit [Read error: Operation timed out]
<Akuma> I copied the dll and exe of sqlite3 to Ruby's bin dir
atyz has joined #ruby
noop has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tomzx_mac has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
ereslibre has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
mansi has joined #ruby
RobW_ has joined #ruby
cj3kim has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
tatsuya__ has joined #ruby
sambao21 has joined #ruby
trautwein has quit [Read error: Operation timed out]
cj3kim has quit [Ping timeout: 240 seconds]
[Fudge] has joined #ruby
tatsuya_o has quit [Ping timeout: 264 seconds]
anay has joined #ruby
jtdowney has joined #ruby
ananthakumaran has joined #ruby
anay_ has joined #ruby
anay has quit [Read error: Connection reset by peer]
rodacato has joined #ruby
jerius_ has joined #ruby
rodacato has quit [Remote host closed the connection]
mvangala_ is now known as mvangala
alex__c2022 has joined #ruby
sqd_ has quit [Quit: sqd_]
adambeynon has joined #ruby
tessi has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Remote host closed the connection]
jp- has quit [Quit: leaving]
<lectrick> ruby on windows has some friction
tessi has joined #ruby
jp- has joined #ruby
blaxter has quit [Quit: foo]
rodacato_ has joined #ruby
jerius has quit [Ping timeout: 268 seconds]
Kelet has joined #ruby
blaxter_ has joined #ruby
dmiller has joined #ruby
<Akuma> lectrick: yes indeed, lots of friction
<lectrick> Akuma: I'd almost suggest just downloading a free virtual machine runner and just playing in a VM
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Akuma> I have a vm running linux, I want to do my development on windows
<Akuma> kind of beats the purpose
<aedorn> You compiled SQLite yourself?
<lectrick> Akuma: Back when I had to work on windows, I remember even having trouble just getting simple tools like rsync to work, I had to use Cygwin which felt hacky
<Kelet> Akuma, Ah, I can help you with SQLite on windows :)
<Akuma> through devkit cygwin
ffranz has joined #ruby
<Kelet> Akuma, do you have Rubyinstaller ruby 2.0 or what?
<Kelet> Sorry, missed the convo
<lectrick> Akuma: looks like Kelet can hook you up, good luck
<Akuma> I installed Ruby 2.0.0 x64 and devkit
blackmesa has joined #ruby
<Akuma> lectrick: thanks
<lectrick> Akuma: it's a nice language once you get all the parts you need working :)
sambao21 has quit [Quit: Computer has gone to sleep.]
<Akuma> lol, agreed
<lectrick> Akuma: Sublime Text is a nice editor, I believe there's a windows version
DestinyAwaits has joined #ruby
NiteRain has joined #ruby
<Kelet> Download both of those and put all of the contents in an easy to find directory like C:\SQlite3
<Kelet> (You can delete the directory afterwards)
<Akuma> gimme a sec, right before you talked to me I was deleting my install and starting over
s00pcan has quit [Remote host closed the connection]
<Akuma> I need a couple of mins to put back Ruby and devkit
<aedorn> x86 vs x64 though
<Kelet> Akuma, I can't guarantee my method will work for x64
<Akuma> we'll try :)
mklappstuhl has quit [Remote host closed the connection]
<Kelet> But I've done this multiple times for x86 fine
sleetdrop has joined #ruby
<Kelet> It's a littler trickier to get some things working on Windows, but Ruby is definitely quite Windows-capable as are most gems
mary5030 has joined #ruby
<lectrick> If I have some Ruby code that I want to run in the browser and am too lazy to manually translate to JS, what's the current best Ruby-to-JS solution out there?
<Kelet> Akuma, You _will_ find that some gems need compilation and special attention more for x64 than x86 though
s00pcan has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
<Kelet> For example, nokogiri has a nice precompiled x86 gem, whereas for x64 you have to devkit it up
freerobby has quit [Quit: Leaving.]
tagrudev has quit [Remote host closed the connection]
andikr has quit [Read error: Connection reset by peer]
<Kelet> SQLite3 requires special attention on both x86 and x64 for Windows though, and all platforms really.
<Kelet> Or rather it needs to compile stuff
<Akuma> is it a big difference to use x86 vs x64?
<Akuma> or can I just install Ruby 2 as x86 on x64
<Kelet> I would just recommend x86 for ease of use, I don't think you'd see any performance differences and x64 will likely use a bit more memory
<Akuma> and skip the headache
<Kelet> Yes
<Kelet> I would recommend that
asteve has joined #ruby
senayar_ has joined #ruby
<Akuma> Kelet: gimme a sec, removing ruby x64 and installing x86 with devkit
<Kelet> Make sure you choose the mingw64-32 devkit
krainboltgreene has quit [Quit: krainboltgreene]
DestinyAwaits has quit [Read error: Connection reset by peer]
allaire has joined #ruby
DestinyAwaits has joined #ruby
fernandoaleman has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
senayar has quit [Ping timeout: 248 seconds]
corehook_ has joined #ruby
corehook__ has joined #ruby
senayar_ is now known as senayar
Michael_ has joined #ruby
<Kelet> Also, in terms of text editors, if you want something free and open source and lightweight, Textadept might work for you. I made a post about it last night: http://www.reddit.com/r/learnprogramming/comments/1ify2k/are_there_any_lightweight_ides_that_are_somewhere/cb4989y - It has a nice ruby mode with decent autocompletion, calltips, etc. I'm actually working on something like inf-ruby for it, so it's "smart" about it (but it will probably be a while before it's
<Kelet> done)
lrocksmashtime has quit [Ping timeout: 256 seconds]
moura has joined #ruby
<[narcan]> ok, i'm starting to hate god
<Akuma> ok, ruby and dev kit are installed and json gem installs fine
kobain has joined #ruby
<Akuma> so I extract those 2
<Kelet> put them into a directory in your C:\ folder
s00pcan has quit [Remote host closed the connection]
<Kelet> so the directory should contain
freerobby has joined #ruby
<Kelet> sqlite3.dll, sqlite3.def, sqlite3.c, etc
mansi has quit [Remote host closed the connection]
<Akuma> done
<Kelet> Akuma, Is your Ruby bin in your PATH?
<Akuma> yes
BlakeRG has joined #ruby
<Kelet> copy (do not cut) sqlite3.def and sqlite3.dll into your Ruby's bin folder
s00pcan has joined #ruby
<Kelet> Or at least some folder accessible from your PATH
<BlakeRG> how do i convert a time format like this: 2010-03-20T07:31:27+0000 to a MySQL date time format?
<Akuma> done
tk_ has quit [Quit: ばいばい]
<Kelet> Go into your devkits folder and run msys.bat
Alina-malina has joined #ruby
<Kelet> It should bring up a bash prompt
<Akuma> yes
<Kelet> where did you install the sqlite3 files to?
v0n has joined #ruby
<Akuma> dir on my C
<Kelet> gem install sqlite3 --platform=ruby -- --with-sqlite3-dir=C:/path/to/dir --with-sqlite3-include=C:/path/to/dir
<Kelet> change the C:/path/to/dir on each
mansi has joined #ruby
trose has joined #ruby
burlyscudd has joined #ruby
MrZYX is now known as MrZYX|off
LaPetiteFromage_ has joined #ruby
mmitchell has joined #ruby
mljsimone is now known as mljsimone|away
rhys has joined #ruby
michaeldeol has joined #ruby
sambao21 has joined #ruby
rshetty has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
allaire has quit [Quit: allaire]
<aedorn> I got x64+sqlite3 working
<aedorn> Not that it matters now I guess
LaPetiteFromage has quit [Ping timeout: 268 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
<Akuma> I got an error : http://pastebin.com/g0hv6c5T
michaeldeol has quit [Remote host closed the connection]
jerius has joined #ruby
<Kelet> The command was inputted wrong
<Akuma> idiot
<Akuma> it's been a long day
<mikecmpbll> lmao
<Akuma> yay, gem installed
jerius_ has quit [Ping timeout: 252 seconds]
brtdv has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<Kelet> require 'sqlite3'
<Kelet> SQLite3::SQLITE3_VERSION
<Kelet> in irb
tatsuya_o has joined #ruby
MrThePlague has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
Pandee has joined #ruby
<Akuma> Kelet: 2 different lines?
cj3kim has quit [Ping timeout: 245 seconds]
<Kelet> Yeah the first line loads the sqlite3 library and the second line prints out the version
_maes_ has joined #ruby
<Kelet> this code is just ensuring you have it installed
<Akuma> second line gives me an error
<Kelet> What does it say
keanehsiao has quit [Quit: Leaving...]
michaeldeol has joined #ruby
<Kelet> oops
<Kelet> SQLite3::SQLITE_VERSION
* Kelet hits head
<Akuma> Kelet: long day for you too then :)
<Kelet> Nope
<Kelet> Just woke up :)
tatsuya__ has quit [Ping timeout: 248 seconds]
<Kelet> You caught me drinking my morning coffee
<Akuma> 3.7.17
<Kelet> Alright good - you have the latest version installed then
<Akuma> hahaha, nice
<Kelet> The same process may work for x64, probably
felixjet_ has quit [Read error: Connection reset by peer]
<Akuma> thank you very much, greatly appreciated
<Kelet> but overall I don't think x64 does much for the problem it causes with some gems
anonymuse has joined #ruby
<Akuma> yea, I'll stick with this x86 for now
<Akuma> and if I really need it I'll try to work it out
<Akuma> thanks again
burlyscudd has quit [Ping timeout: 260 seconds]
geggam has joined #ruby
Notte has quit [Remote host closed the connection]
jorge_ has joined #ruby
moura has quit [Quit: Computer has gone to sleep.]
jorge_ has quit [Remote host closed the connection]
jorge_ has joined #ruby
<BlakeRG> i can't seem to find a chart of anything with the formatting options for strftime, help?
moura has joined #ruby
apeiros has quit [Remote host closed the connection]
<BlakeRG> mjc_: oh thank you!
<mjc_> anytime :)
<BlakeRG> i'm not used to getting around the documentation yet
sambao21 has quit [Quit: Computer has gone to sleep.]
shaunbaker has quit [Remote host closed the connection]
<BlakeRG> i would assume these apply to DateTime as well mjc_ ?
lrocksmashtime has joined #ruby
<mjc_> BlakeRG: pretty sure they do indeed, can't hurt to try it
marsLantern has quit [Quit: marsLantern]
DaniG2k has joined #ruby
<mjc_> BlakeRG: however do look at the other functions that are available, like iso8601, xmlschema, rf2822, etc. If you need one of those formats it is much clearer what you mean when you use those, rather than a format string
<BlakeRG> thanks mjc_ - i was assuming there would be a single document with all of the possible format options across the entire ruby spectrum
BillCriswell has joined #ruby
sambao21 has joined #ruby
anay_ has quit [Remote host closed the connection]
cha1tanya has joined #ruby
jprovazn has quit [Quit: Leaving]
Kruppe has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
banghouse2 has joined #ruby
terrellt has joined #ruby
_veer has quit [Ping timeout: 240 seconds]
<[narcan]> is it worth / possible trying to run god via the bundler environment
banghouse2 is now known as banghouse
<[narcan]> or should i just setup the system gem config
michael_mbp is now known as zz_michael_mbp
smathieu has joined #ruby
pyoor has quit [Quit: leaving]
<BlakeRG> Do i ever need to require a code class in my scripts?
<BlakeRG> the DateTime object didn't seem to work in IRB unless i required it
rektide has joined #ruby
renderful has quit [Remote host closed the connection]
<rektide> hello. i' trying to grok some syntax i'm not familiar with. what's happening here? https://github.com/twome/vagrant-slate/blob/master/Vagrantfile.pkg#L21
<mjc_> BlakeRG: yes some things aren't required by default
<rektide> apparently i can issue a similar statement like that multiple times?
digitalcake has joined #ruby
<rektide> owingto what?
<mjc_> rektide: config.vm.network is probably a method
MrZYX|off is now known as MrZYX
smathieu has quit [Ping timeout: 240 seconds]
mljsimone|away is now known as mljsimone
tommyvyo has joined #ruby
<BlakeRG> Should i declare core classes in my Gemfile ?
<waxjar> no
<Hanmac> BlakeRG: you can try but most of the stuff is not a gem so it would fail
maz-dev has quit [Read error: Operation timed out]
_bart has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<terrellt> [narcan]: I'd just run gem install god, for that.
dawkirst has quit [Ping timeout: 260 seconds]
<terrellt> [narcan]: Don't want to tie something like god to a single project.
Solnse has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
<[narcan]> terrellt: I guess i'm struggling with the tasks i'm running with god
<[narcan]> I'm trying to have it run resque
<[narcan]> and i want that to be tied into an environment
<[narcan]> also using chruby and is causing me all sorts of headaches
DaniG2k1 has joined #ruby
<terrellt> [narcan]: Then just have god's task switch into that directory and run "RAILS_ENV=environment bundle exec commandtostartresqueworker"
DaniG2k has quit [Read error: Connection reset by peer]
DaniG2k1 has quit [Client Quit]
rektide has left #ruby [#ruby]
<terrellt> [narcan]: Wouldn't know about chruby - I use rbenv in production.
<[narcan]> hah, was being told before to use chruby in prod
<[narcan]> but i've got a /etc/init.d/ script i'm trying to load god in, which is then trying to load resque
rien has joined #ruby
<terrellt> It's just a personal preference kind of thing.
<[narcan]> and the environment seems totally hosed by the end
<[narcan]> ideally i want to be able to specify all the gem's i need in Gemfile
tonini has quit [Remote host closed the connection]
gchristensen has left #ruby ["WeeChat 0.4.0"]
<terrellt> [narcan]: Chances are somewhere in your god file you need to source /home/deploy-user/.bash_profile
tessi has quit [Ping timeout: 246 seconds]
icecandy has joined #ruby
GeissT_ has quit [Ping timeout: 246 seconds]
machuga is now known as machuga|away
<[narcan]> i'm telling god to start it as the user i'm able to get things working as on the command line
<[narcan]> but maybe i'm missing parts of the environment still
keanehsiao has joined #ruby
<[narcan]> my start command is starting to look something like
<[narcan]> /usr/local/bin/chruby-exec 1.9 -- /home/ec2-user/.gem/ruby/1.9.3/bin/bundle exec resque work -q email,apn
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
tessi has joined #ruby
vikhyat has quit [Remote host closed the connection]
lrocksmashtime has quit [Ping timeout: 240 seconds]
p0wn3d has joined #ruby
marsLantern has joined #ruby
ntus1017 has quit [Remote host closed the connection]
bigoldrock has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zeropx has joined #ruby
dmiller_ has joined #ruby
zeropx has quit [Client Quit]
zeropx has joined #ruby
supki_ is now known as supki
manutter has quit [Read error: Connection reset by peer]
keanehsiao has quit [Ping timeout: 268 seconds]
mansi has quit [Read error: Connection reset by peer]
aganov has quit [Quit: aganov]
dhruvasagar has quit [Ping timeout: 276 seconds]
alyi has quit [Remote host closed the connection]
manutter has joined #ruby
Notte has joined #ruby
mansi has joined #ruby
sethetter has joined #ruby
digitalcake has quit [Quit: Leaving.]
dmiller_ has quit [Ping timeout: 276 seconds]
anay has joined #ruby
apeiros has joined #ruby
nomenkun has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
bradhe has joined #ruby
rshetty has quit [Ping timeout: 246 seconds]
icecandy has quit [Remote host closed the connection]
inimit has joined #ruby
<[narcan]> so i think it's really just the init.d environment
vikhyat has joined #ruby
<[narcan]> if i run god -c god.config -D (as root) it all works fine
pedestrian has joined #ruby
<[narcan]> but putting it in an init.d script and loading that causes stuff not to be found
whowantstolivefo has joined #ruby
ckrailo has joined #ruby
axeman- has quit [Remote host closed the connection]
dawkirst has joined #ruby
tobyo has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
rshetty has joined #ruby
binaryplease has quit [Ping timeout: 268 seconds]
Fuzai_ has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
Fuzai has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
sambao21 has joined #ruby
shouya1 has joined #ruby
digitalcake has joined #ruby
shouya has quit [Ping timeout: 246 seconds]
renderfu_ has joined #ruby
geekbri has joined #ruby
mljsimone is now known as mljsimone|away
mljsimone|away is now known as mljsimone
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nomenkun has joined #ruby
Ripp__ has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
allaire has joined #ruby
renderfu_ has quit [Ping timeout: 252 seconds]
nomenkun has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
khushildep has joined #ruby
cj3kim has joined #ruby
tommyvyo has quit [Quit:]
rodacato_ has quit [Remote host closed the connection]
epochwolf has quit [Max SendQ exceeded]
pupoque has quit [Read error: Connection reset by peer]
mengu has quit [Quit: Leaving]
atmosx has joined #ruby
epochwolf has joined #ruby
MarianM has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
JZTech101 has quit [Ping timeout: 252 seconds]
crazedpsyc has quit [Read error: Operation timed out]
tommyvyo has joined #ruby
cmarques has quit [Read error: Operation timed out]
wsterling has joined #ruby
sqd_ has joined #ruby
crazedpsyc has joined #ruby
threesome has joined #ruby
maxmanders has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
binaryplease has joined #ruby
xardas has joined #ruby
sheeny has joined #ruby
<sheeny> Hi all, Could anyone suggest any blog posts/tools or anything which would allow me to create an ipad app using ruby on rails if possible?
Kruppe has joined #ruby
<sheeny> or just ruby if not
nari has quit [Ping timeout: 264 seconds]
Ry0_ has joined #ruby
<[narcan]> i think it's ruby motion you're after
dawkirst has quit [Ping timeout: 276 seconds]
premjg_ has quit [Quit: Leaving.]
lindenle has joined #ruby
p0wn3d has quit [Remote host closed the connection]
<sheeny> was hoping for something free but i will check it out
p0wn3d has joined #ruby
dhruvasagar has joined #ruby
ericmathison has joined #ruby
burlyscudd has joined #ruby
trose has quit [Quit: Leaving.]
graft has quit [Ping timeout: 240 seconds]
RichardBaker has joined #ruby
_ffio_ has joined #ruby
ffio_ has quit [Ping timeout: 240 seconds]
clocKwize has quit [Quit: clocKwize]
sheeny has quit [Quit: Page closed]
blackmes1 has joined #ruby
kenyabob has joined #ruby
iliketurtles has joined #ruby
kenyabob has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
timonv has quit [Remote host closed the connection]
_maes_ has quit [Ping timeout: 264 seconds]
Pandee has quit [Ping timeout: 260 seconds]
smathieu has joined #ruby
<_br_> ruby on rails? ipad app? Uh, RubyMotion or PhoneGap is probably what you want.
<_br_> Appcelerator Titanium is not bad either.
renderful has joined #ruby
smathieu has quit [Read error: Operation timed out]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dagobah has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
Shirakawasuna has quit [Ping timeout: 246 seconds]
vinnyOcean has joined #ruby
Tomas2 has joined #ruby
mneorr_ has joined #ruby
digitalcake has quit [Quit: Leaving.]
johnnyfuchs has quit [Remote host closed the connection]
baordog has joined #ruby
rickruby has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
renderful has quit [Ping timeout: 276 seconds]
johnnyfuchs has joined #ruby
moura has quit [Quit: Computer has gone to sleep.]
ultimoo has joined #ruby
ssvo has joined #ruby
utdemir has quit [Ping timeout: 240 seconds]
devinus has joined #ruby
ereslibre_laptop has joined #ruby
<devinus> rubyists: what http client library is everybody using these days?
ereslibre has quit [Read error: Connection reset by peer]
aalmenar has quit [Read error: Connection reset by peer]
sleetdrop has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
realDAB has joined #ruby
DanKnox_away is now known as DanKnox
<atmosx> devinus: depends on the job I guess. I use nokogiri for almost everything.
ryannielson has joined #ruby
headius has joined #ruby
<devinus> atmosx: sorry, not html but http
anay has quit [Remote host closed the connection]
Lewix_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
jsatk has joined #ruby
danbeck has joined #ruby
zeade has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
<mikecmpbll> devinus: i use httparty
<atmosx> devinus: oh right, I've used open-rui and net:http
<atmosx> net::http
io_syl has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
tatsuya_o has quit [Ping timeout: 246 seconds]
<MrZYX> faraday is nice, typhoeus is the way to go if you need to make many requests
x1337807x has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
<mikecmpbll> i don't really do anything with HTTParty that i couldn't do with Net::HTTP so probably wrong person to advise. it's simples to use though
DanKnox is now known as DanKnox_away
Iszak has joined #ruby
Iszak has quit [Client Quit]
dmiller has joined #ruby
blitz has joined #ruby
bradhe has quit [Remote host closed the connection]
PhatBaja has joined #ruby
bradhe has joined #ruby
rdark has quit [Quit: leaving]
artemeff has quit [Remote host closed the connection]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
jsatk is now known as jsatk_
devinus has quit [Quit: devintorr.es]
devoldmx has joined #ruby
jsatk_ is now known as jsatk
FUgaRU has quit [Ping timeout: 248 seconds]
tvw has quit []
premjg_ has joined #ruby
timonv has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Ripp__ has joined #ruby
mikecmpbll has joined #ruby
trepidaciousMBR has quit [Ping timeout: 248 seconds]
Vivekananda has joined #ruby
Hanmac has quit [Quit: Leaving.]
mikecmpbll has quit [Client Quit]
dmiller has quit [Ping timeout: 276 seconds]
ericmathison has quit [Ping timeout: 248 seconds]
moura has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
trose has joined #ruby
realDAB has quit [Quit: realDAB]
p0wn3d has quit [Ping timeout: 240 seconds]
JZTech101 has joined #ruby
sleetdrop has joined #ruby
Es0teric has joined #ruby
viszu has quit [Quit: Leaving.]
vinnyOcean has quit [Quit: Textual IRC Client: www.textualapp.com]
Bira_ has joined #ruby
rickruby has quit [Remote host closed the connection]
anay has joined #ruby
gildo has quit [Ping timeout: 246 seconds]
mikeg has joined #ruby
RobW_ has quit [Quit: RobW_]
premjg_ has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
DanKnox_away is now known as DanKnox
intuxicated has joined #ruby
ericmathison has joined #ruby
razi has quit [Ping timeout: 268 seconds]
bradhe has joined #ruby
smathieu has joined #ruby
jorge_ has quit [Remote host closed the connection]
sarkis has quit [Quit: leaving]
jorge_ has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
jsatk is now known as jsatk_
jsatk_ is now known as jsatk
goleldar has joined #ruby
renderful has joined #ruby
jsatk has quit [Remote host closed the connection]
ToApolytoXaos has joined #ruby
Ry0_ has quit [Remote host closed the connection]
jsatk has joined #ruby
Myrth has joined #ruby
axl_ has quit [Quit: axl_]
nomenkun has joined #ruby
ketienne has quit [Remote host closed the connection]
_bart has quit [Remote host closed the connection]
zastern_ has quit [Remote host closed the connection]
sethette1 has joined #ruby
jorge_ has quit [Ping timeout: 248 seconds]
zastern has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
rodacato has joined #ruby
jmimi has quit [Ping timeout: 276 seconds]
renderful has quit [Ping timeout: 264 seconds]
MarianM has left #ruby [#ruby]
maxmanders has quit [Quit: Computer has gone to sleep.]
sethetter has quit [Ping timeout: 264 seconds]
binaryplease has quit [Quit: WeeChat 0.4.1]
brbcoding has joined #ruby
khushildep has quit [Quit: khushildep]
FUgaRU has joined #ruby
cj3kim has joined #ruby
mikeg has quit [Remote host closed the connection]
machuga|away is now known as machuga
baroquebobcat has joined #ruby
p0wn3d has joined #ruby
gildo has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
S0da has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 248 seconds]
shaunbaker has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
urbanmonk has joined #ruby
DanKnox is now known as DanKnox_away
x1337807x has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
KevinSjoberg has joined #ruby
mmitchell has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
mcrmfc has quit [Read error: Operation timed out]
cmarques has joined #ruby
Spooner has quit [Remote host closed the connection]
Guest44827 has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
rsahae has joined #ruby
DanKnox_away is now known as DanKnox
timonv has quit [Remote host closed the connection]
twoism has joined #ruby
fernandoaleman has quit [Quit: Leaving.]
will_ has joined #ruby
iliketurtles has joined #ruby
khushildep has joined #ruby
will_ is now known as Guest97823
Hanmac2 has joined #ruby
reset has joined #ruby
Guest97823 has left #ruby [#ruby]
zeade has quit [Quit: Leaving.]
dankest has joined #ruby
Tomas2 has quit [Quit: Leaving]
rshetty has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rien has quit [Ping timeout: 252 seconds]
<asteve> I need to initialize 4 vars to 0, I want to do "a, b, c, d = 0" but that sets a to 0 and the rest to nil
tommyvyo has quit [Quit:]
anay has quit [Remote host closed the connection]
<asteve> what's the proper way to to do this other than "a, b, c, d = [0, 0, 0, 0]"
<asteve> ?
rshetty has joined #ruby
sleetdrop has quit [Ping timeout: 240 seconds]
<MrZYX> = Array.new(0) isn't much shorter I guess
premjg_ has joined #ruby
<MrZYX> eh, 4, 0 of course
<aedorn> a,b,c,d = [0]*4
<apeiros> a,b,c,d = 0,0,0,0
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<apeiros> may be a bit longer, but it's IMO more obvious
<apeiros> personally I'd probably even put it on 4 lines
Xsheller has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
sleetdrop has joined #ruby
<Mon_Ouie> a = b = c = d = 0
<MrZYX> if they are all counters or all sums or something I'd probably end up doing Hash.new(0)
<apeiros> "quick! we're running out of lines! save them! every single one counts!"
sleetdrop has quit [Max SendQ exceeded]
Hanmac2 has quit [Ping timeout: 240 seconds]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
<atmosx> anyone using sinatra?
<atmosx> when I'm using a variable outside the get/end scope, HAML can't read it
<apeiros> no
<atmosx> ?
<atmosx> apeiros: WHY?
<apeiros> because NO ONE uses sinatra
* atmosx tears are falling through his eyes
* atmosx is using sinatra!
<apeiros> nobody told you?
sleetdrop has joined #ruby
<apeiros> everybody uses elvis now.
<atmosx> no
Ry0_ has joined #ruby
<atmosx> who's elvis?
<Morrolan> Elvis is dead, long live Justin Bieber! *snrk*
realDAB has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
premjg_ has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
blaxter_ has quit [Ping timeout: 276 seconds]
<aedorn> Ruby Bieber?
rupee has joined #ruby
jorge_ has joined #ruby
tvw has joined #ruby
rshetty has joined #ruby
krz has quit [Quit: krz]
JohnBat26 has joined #ruby
brian_eno has quit [Quit: Page closed]
pwnfactory has quit [Quit: Leaving]
<YaNakilon> Rubieber
JZTech101 has quit [Ping timeout: 276 seconds]
nikeita has joined #ruby
zz_michael_mbp is now known as michael_mbp
_bart has joined #ruby
superscott[8] has joined #ruby
cj3kim has joined #ruby
tommyvyo has joined #ruby
realDAB has quit [Quit: realDAB]
_bart has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
axeman- has joined #ruby
rodacato has quit [Remote host closed the connection]
_bart has joined #ruby
codecop has joined #ruby
elaptics is now known as elaptics`away
ferdev has quit [Quit: ferdev]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
adeponte has quit [Remote host closed the connection]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
jorge_ has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
sarkis has joined #ruby
x1337807x has joined #ruby
adeponte has joined #ruby
x1337807x has quit [Client Quit]
rodacato has joined #ruby
Mars2 has joined #ruby
x1337807x has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
<_br_> Morrolan: Justin Bieber? Justin Bieber?? Get OFF my lawn.
canton7 has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
bionoid has joined #ruby
Zai00 has quit [Quit: Zai00]
keanehsiao has joined #ruby
jrendell has joined #ruby
mklappstuhl has joined #ruby
akurilin has joined #ruby
Ry0_ has quit [Remote host closed the connection]
<atmosx> okay the prob is I'm calling a module which does Sequel.connect all the time, but I'm out of ideas how to implement something that calls Sequel.connect just once.. hm
<atmosx> I'll post to the ml
tommyvyo has quit [Quit:]
burlyscudd has quit [Quit: Leaving.]
eka has joined #ruby
Michael_ has quit [Read error: Connection reset by peer]
keanehsiao has quit [Ping timeout: 260 seconds]
pinage404 is now known as zz_pinage404
TIJ has quit [Quit: Konversation terminated!]
Michael_ has joined #ruby
pedestrian has quit [Quit: WeeChat 0.4.1]
pedestrian1 has joined #ruby
pedestrian1 has quit [Client Quit]
pedestrian has joined #ruby
<Morrolan> atmosx: There's #sinatra, by the way.
comrade_ has joined #ruby
<Morrolan> ... which you seem to be part of already.
khushildep has quit [Quit: khushildep]
comrade_ has quit [Read error: Connection reset by peer]
<atmosx> Morrolan: it's not a sinatra problem it's a design problem
JZTech101 has joined #ruby
<Morrolan> Oh, then something must've changed while I had dinner.
<atmosx> Morrolan: sure, dinner is good
<atmosx> Morrolan: I wrote a module to use as a helper, which makes the MySQL calls via sequel. Problem is that I call it through the sinatra app each time, creates a new object
comrade_ has joined #ruby
<atmosx> Morrolan: and MySQL then stalls because it gets too many open connections
icco has left #ruby ["Textual IRC Client: www.textualapp.com"]
pskosinski has quit [Quit: Til rivido Idisti!]
<atmosx> I could move the entire file into application.rb and not call an external object every time but it's not elegant at all, so I'm trying to figure out how can I call db = Sequel.connect("") just once...
Kruppe has quit [Ping timeout: 268 seconds]
<MrZYX> singleton pattern?
Appineer has joined #ruby
premjg_ has joined #ruby
Appineer has left #ruby [#ruby]
maxmanders has joined #ruby
<atmosx> MrZYX: singleton is the scope of a class? Not exactly sure what singleton is, I'm reading the wrod more and more lately
Hanmac2 has joined #ruby
RobW_ has joined #ruby
<MrZYX> look it up, it's a very basic pattern
mattsgarrison_ has joined #ruby
jsatk has quit [Remote host closed the connection]
KevinSjoberg has joined #ruby
jsatk has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
realDAB has joined #ruby
<atmosx> MrZYX: oh that's excatly what I need apparently: If a system only needs one instance of a class, and that instance needs to be accessible in many different parts of a system, you control both instantiation and access by making that class a singleton. < - http://c2.com/cgi/wiki?SingletonPattern
<MrZYX> yes
premjg_ has quit [Ping timeout: 240 seconds]
Hanmac2 has quit [Ping timeout: 240 seconds]
<atmosx> awesome, let's read some more then
rsahae has quit [Quit: rsahae]
maxmanders has quit [Ping timeout: 240 seconds]
infecto has joined #ruby
alex__c2022 has quit [Read error: Operation timed out]
infecto has quit [Client Quit]
devinus has joined #ruby
infecto has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 252 seconds]
interactionjaxsn has joined #ruby
<MrZYX> the other way to solve your particular problem is using a connection pool
<atmosx> MrZYX: which solution is more natural/elegant/widely used?
angusiguess has joined #ruby
nomenkun has joined #ruby
saarinen has joined #ruby
<MrZYX> a singleton is very easy to do but can be a bottleneck, especially if you need a thread safe application
saarinen has quit [Client Quit]
<atmosx> why so?
cj3kim has quit [Remote host closed the connection]
snearch has joined #ruby
realDAB has quit [Quit: realDAB]
alex__c2022 has joined #ruby
<MrZYX> because either one thread has to wait for an existing request to finish or they might even interfere
saarinen has joined #ruby
angusigu1ss has quit [Ping timeout: 248 seconds]
<atmosx> doesn't singleton handle this events?
graft has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
<atmosx> well it my case is database pooling, so I can't see how they will interfere, it's ms and having 2 connections at the same time seems highly unlikely hmmm
<goleldar> hello
<atmosx> not to mention that I wanna try and see how it works heh
<MrZYX> sequel seems to ship with a connection pool http://sequel.rubyforge.org/rdoc/classes/Sequel/ConnectionPool.html
<goleldar> I am trying to think of a variable name for a canonical representation of a string variable
<monban> is there a global variable I can refference to see what build of Ruby I am on? specifically I am trying to figure out whether I'm on 64 or 32 bit ruby at runtmie
nomenkun has quit [Ping timeout: 246 seconds]
eldariof has joined #ruby
<MrZYX> monban: RUBY_PLATFORM
Ry0_ has joined #ruby
tonini has joined #ruby
<monban> thanks MrZYX !
michael_mbp is now known as zz_michael_mbp
[narcan] has quit [Quit: Leaving...]
Zeeraw has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
havenwood has joined #ruby
hadifarnoud has joined #ruby
<pontiki> i'm trying to use ActiveRecord outside of Rails, according to a few blog posts all I need is to require active_record and sqlite3, but it's throwing errors: lib = File.join(File.dirname(__FILE__),'lib')
<pontiki> require File.join(lib,'resume_builder/version.rb')
<pontiki> spec = Gem::Specification.new do |s| s.name = 'resume_builder' s.version = ResumeBuilder::VERSION s.author = 'Tamara Temple' s.email = 'tamouse@gmail.com' s.homepage = 'http://tamouse.github.io/resume_builder' s.platform = Gem::Platform::RUBY s.summary = 'A set of commands to build a resume web site and various other forms' s.files = `git ls-files`.split($/) s.require_paths << 'lib' s.has_rdoc =
Alina-malina has joined #ruby
<hadifarnoud> I wrote a ruby scrip that gets latest links from Pocket and open the new one in your browser as you send it to pocket. https://github.com/hadifarnoud/Send-it-to-my-screen it sill needs more work. anyone care to help?
<pontiki> true
<pontiki> sextara_rdoc_files = ['README.rdoc','resume_builder.rdoc'] s.rdoc_options << '--title' << 'resume_builder' << '--main' << 'README.rdoc' << '-ri' s.bindir = 'bin' s.executables << 'resume_builder' s.add_development_dependency('rake') s.add_development_dependency('rdoc') s.add_development_dependency('aruba') s.add_development_dependency('rspec') s.add_dependency('gli','2.7.0')
<pontiki> s.add_dependency('activerecord')
<pontiki> sad d_dependency('sqlite3')
maxmanders has joined #ruby
<pontiki> end
<pontiki> i'm trying to use ActiveRecord outside of Rails, according to a few blog posts all I need is to require active_record and sqlite3, but it's throwing errors: https://gist.github.com/tamouse/dab034fd49bfc2edb143
<pontiki> crap
<pontiki> sorry
ferdev has joined #ruby
<apeiros> might need active_support/core_ext too
wrhall has joined #ruby
s3m73x has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
jarray52 has joined #ruby
altivec has joined #ruby
staafl has joined #ruby
pontiki was kicked from #ruby by apeiros [cross-posting without telling that you are cross-posting is not welcome - this is only a kick, not a ban]
devinus has quit [Quit: devintorr.es]
michaeldeol has quit [Remote host closed the connection]
wrhall is now known as whall
whall is now known as willh
<atmosx> weird I can't reproduce the issue on the mac
DestinyAwaits has quit [Quit: Leaving]
<atmosx> mysql gets just 1 instance every time.
aramus_ has joined #ruby
<aramus_> Hello, how does one check if a strng does NOT match a regular expression? !=~ does not seem to work.
willh is now known as wrsh
robscomputer has joined #ruby
<MrZYX> unless ?
michaeldeol has joined #ruby
<jarray52> Is there an easy way to call a superclass method in Ruby? The superclass method has a different name than the subclass method from which it is called.
moura has quit [Quit: Computer has gone to sleep.]
spider-mario has joined #ruby
twoism has quit [Remote host closed the connection]
<aramus_> MrZYX: Duh moment for me, thanks.
zz_michael_mbp is now known as michael_mbp
Michael_ has quit [Read error: Connection reset by peer]
axeman- has quit [Remote host closed the connection]
rsahae has joined #ruby
Michael_ has joined #ruby
beiter has joined #ruby
interactionjaxsn has joined #ruby
<apeiros> jarray52: just use the name
BlakeRG has left #ruby [#ruby]
adambeynon has quit [Quit: Computer has gone to sleep.]
twoism has joined #ruby
Mars2 has quit [Quit: WeeChat 0.4.1]
<apeiros> aramus_: also !~
<apeiros> not !=~
<apeiros> >> "foo" !~ /bar/
<eval-in> apeiros => true (https://eval.in/37907)
fernandoaleman has joined #ruby
<aramus_> Oh, that makes more sense.
<jarray52> apeiros: The problem is that the subclass also has a method by the same name. I want to call the superclass method. Not the subclass method.
<apeiros> jarray52: then you did it wrong.
<apeiros> this is not how you design classes.
realDAB has joined #ruby
<apeiros> if you need the unaltered functionality, don't add a method of the same name.
Pandee has joined #ruby
Zolo has quit [Remote host closed the connection]
aramus_ has left #ruby [#ruby]
goshakkk has joined #ruby
goshakkk has quit [Remote host closed the connection]
realDAB has quit [Client Quit]
<atmosx> okay the problem is either nginx or unicorn
goshakkk has joined #ruby
<atmosx> but since unicorn standalone doesn't have any issues my bets are on nginx
<jarray52> apeiros: The problem arises due to the use of the Devise gem in Rails and due to Rails conventions. The subclass method I need to bipass in this particular case is necessary. Anyways, I have a workaround that involves replicating code. So, there is no easy way to bipass the subclass method and jump directly to the superclass method in this case?
premjg_ has joined #ruby
<atmosx> and I found it, didn't had mutex on
<apeiros> jarray52: there is, but I'm pretty sure you're doing it wrong. anyway, if you insist on doing it wrong, here is how:
<apeiros> Superclass.instance_method(:method_name).bind(self).call
viszu has joined #ruby
axl_ has joined #ruby
moura has joined #ruby
<mjc_> jarray52: what on earth are you doing?
<mjc_> heh
<apeiros> >> class X; def a; "a"; end; end; class Y; def a; "NO!"; end; def b; X.instance_method(:a).bind(self).call; end; end; Y.new.b
<eval-in> apeiros => bind argument must be an instance of X (TypeError) ... (https://eval.in/37908)
<RobW_> Anyone know off hand if unclosed curly braces need to be escaped in Ruby regex? e.g., /{t|{f/
<apeiros> gah, forgot to subclass :D
<apeiros> >> class X; def a; "a"; end; end; class Y < X; def a; "NO!"; end; def b; X.instance_method(:a).bind(self).call; end; end; Y.new.b
<eval-in> apeiros => "a" (https://eval.in/37909)
razi has joined #ruby
<apeiros> RobW_: yes, need
<apeiros> LHS anyways
sambao21 has quit [Quit: Computer has gone to sleep.]
Ripp__ has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
<RobW_> apeiros: Thanks. They were working unescaped on Rubular, so thought I'd ask.
rien has joined #ruby
<hadifarnoud> I wrote a ruby scrip that gets latest links from Pocket and open the new one in your browser as you send it to pocket. https://github.com/hadifarnoud/Send-it-to-my-screen it sill needs more work. anyone care to help?
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
dankest has quit [Quit: dankest]
<RobW_> Won't break anything to escape them too, so.
Bira_ is now known as bira
bira is now known as Bira
Xuerian has joined #ruby
dankest has joined #ruby
beiter has quit [Quit: beiter]
sambao21 has joined #ruby
sarkis has quit [Quit: leaving]
<jarray52> mjc_: Adding multiple(5) different login pages to a Rails application using Devise. Devise has a new method that calls super. That works for the first login page and renders the new view. Now, I want to add a method second_new that calls the Devise new function but bipasses the new in the subclass.
premjg_ has quit [Ping timeout: 240 seconds]
zeade has joined #ruby
alvaro_o has joined #ruby
<apeiros> that sounds different from what you asked before, though…
rodacato has quit [Remote host closed the connection]
<apeiros> and I'd wonder if Devise didn't provide a nicer way to do what you want.
tjbiddle has joined #ruby
<mjc_> pretty sure it does provide a much nicer way
<wrsh> why overwrite the super method at all then?
devinus has joined #ruby
<wrsh> instead of calling super, you could just call the name of the super method in both
<wrsh> but I don't know much about devise, so there is likely a nicer solution than that
<jarray52> apeiros: I broke the task down into pieces(perhaps incorrectly). Now, I'm realizing that even if I can call a superclass method and bipass the subclass method, there will be a problem.
<apeiros> it's bypass btw.
sambao21 has quit [Client Quit]
maxmanders has quit [Quit: Computer has gone to sleep.]
emmanuelux has joined #ruby
<apeiros> bipass would mean two-pass…
comrade_ has quit [Quit: Konversation terminated!]
<jarray52> apeiros: Thanks... that looked wrong when I typed it... but couldn't figure out exactly what was wrong.
<tjbiddle> Hey guys - How would I define this in CanCan syntax: ( can :build, ProjectEnvironment if name != 'prod' )
xavier23 has quit [Quit: xavier23]
<jarray52> wrsh: That's a good solution. Solves my first problem, but it won't work for another reason. Devise renders the new view.
<apeiros> tjbiddle: I think #rubyonrails is better suited for cancan questions
<tjbiddle> apeiros: Woops - I actually thought I was in there. Thanks!
jorge_ has joined #ruby
rodacato has joined #ruby
<jarray52> In any case, this is starting to look like a rails question and not a Ruby question anymore.
rezzack has joined #ruby
rodacato has quit [Remote host closed the connection]
sambao21 has joined #ruby
browndawg has quit [Quit: Leaving.]
rodacato has joined #ruby
mattsgarrison_ has quit [Remote host closed the connection]
sayan has joined #ruby
nikeita has quit [Quit: sleep]
mattsgarrison_ has joined #ruby
tonini has quit [Remote host closed the connection]
jorge_ has quit [Ping timeout: 240 seconds]
tonini has joined #ruby
blackmes1 is now known as blackmesa
infecto has quit [Quit: Leaving.]
antn has quit [Remote host closed the connection]
allaire has quit [Quit: allaire]
Banistertab has joined #ruby
R3dy has joined #ruby
<R3dy> Is there an easier way to go from one string position to the end, easier then string[10,string.size] for example
<havenwood> R3dy: string[10, -1]
<R3dy> like in Python I know you can do string[10:]
<R3dy> havenwood: thanks!
vikhyat has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
ner0x has joined #ruby
Zolo has joined #ruby
lkba has joined #ruby
_bart has quit [Remote host closed the connection]
altivec has quit [Ping timeout: 248 seconds]
nikeita has joined #ruby
huoxito has joined #ruby
niklasb has joined #ruby
<R3dy> say havenwood does that work for arrays as well
<havenwood> R3dy: yup
<R3dy> i think that is really what I am wanting and that doesn't appear to produce the same value
<apeiros> havenwood: 10..-1
<R3dy> ah .. isnetad of ,
<R3dy> perfect
<R3dy> thanks
corehook_ has quit [Ping timeout: 246 seconds]
corehook__ has quit [Ping timeout: 246 seconds]
<havenwood> apeiros: oh, duh!
dmiller has quit [Ping timeout: 276 seconds]
<havenwood> apeiros: haven't had coffee yet, thanks...
<apeiros> np :)
<havenwood> R3dy: listed to apeiros!
<havenwood> (Actually, always listed to apeiros over me, hehe. That is a good rule of thumb.)
<R3dy> hahah
<R3dy> well you both helped me thanks again!
moura has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba has quit [Read error: Connection reset by peer]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac2 has joined #ruby
premjg_ has joined #ruby
shadoi1 has joined #ruby
xavier23 has joined #ruby
rgoodwin has quit [Quit: ZNC - http://znc.in]
Michael_ has quit [Read error: Connection reset by peer]
zacts has joined #ruby
Michael_ has joined #ruby
burlyscudd has joined #ruby
shadoi has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
lkba has joined #ruby
bradhe has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
Hanmac2 has quit [Ping timeout: 264 seconds]
premjg_ has quit [Ping timeout: 260 seconds]
marcdel has quit [Ping timeout: 268 seconds]
michael_mbp is now known as zz_michael_mbp
Akuma has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Michael_ has quit [Read error: Connection reset by peer]
Michael_ has joined #ruby
nomenkun has joined #ruby
zz_michael_mbp is now known as michael_mbp
sambao21 has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
renderful has joined #ruby
bionoid has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
sambao21 has joined #ruby
rodacato has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
kevinykchan has quit [Read error: Connection reset by peer]
zz_michael_mbp is now known as michael_mbp
slyv has joined #ruby
kevinykchan has joined #ruby
twoism has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
vikhyat has joined #ruby
jefflyne has quit [Read error: Connection reset by peer]
twoism has joined #ruby
renderful has quit [Ping timeout: 268 seconds]
<xavier23> HI…. anybody know a very fast SQL database for ruby?
<xavier23> Needs to be fast and able to scale
infecto has joined #ruby
<apeiros> postgres
<atmosx> xavier23: mysql + memcached or Redis is fast
workmad3 has joined #ruby
michael_mbp is now known as zz_michael_mbp
<xavier23> atmosx: interesting, how would that work exactly? Because Redis is nosql AFAIK
byprdct has joined #ruby
<havenwood> +1 postgres
<terrellt> xavier23: I assume atmox is talking about caching data in redis.
<xavier23> apeiros: havenwood: I'm just worried Postgres is not going to be able to handle 10GB + data
<terrellt> xavier23: ANY database can handle 10 GB of data.
<dhoss_> redis isn't necessarily permanent storage
<dhoss_> it's really k/v instead of nosql in my opinion
infecto1 has joined #ruby
jefflyne has joined #ruby
<xavier23> terrellt: well I'm using sqllite right now, and it's unacceptably slow
<dhoss_> well yea
dhoss_ is now known as dhoss
<terrellt> xavier23: Well, that's not a real database. >.> MySQL or Postgresql will handle 10 GB without breaking a sweat.
<terrellt> Or even breathing hard.
<havenwood> xavier23: PostgreSQL even has a nice NoSQL solution now with hstore.
infecto has quit [Ping timeout: 240 seconds]
<xavier23> How about 50GB? The database is growing exponentially
<dhoss> even better, the json store
<dhoss> xavier23: that's really not that much for a database
<terrellt> xavier23: They can both handle terabytes, easily, with proper indexes.
<dhoss> just make sure your indexes are in place
<dhoss> partitioning and sharding down the line
superscott[8] has quit [Quit: superscott[8]]
<terrellt> If you're talking about gigabytes you don't need to think about sharding yet.
<dhoss> down the line
sambao21 has quit [Quit: Computer has gone to sleep.]
<Morrolan> 'course, if it is growing exponentially, you'll hit a cap pretty soon. ;)
<apeiros> xavier23: if you're worried, get oracle
<dhoss> apeiros: i disagree
<apeiros> it's not better but maybe you feel better then :-p
vikhyat has quit [Ping timeout: 268 seconds]
Ry0_ has joined #ruby
<apeiros> cuz $$$
allaire has joined #ruby
allaire has quit [Excess Flood]
allaire has joined #ruby
<xavier23> Hmm.. Well in that case, maybe just mysql/postgres
<havenwood> xavier23: If you *must* use MySQL use MariaDB instead. But, PostgreSQL is the way to go, imho.
<dhoss> xavier23: also, is it actually relational data? if not, something like S3 or riak might be looking into
anonymuse has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
anonymuse has joined #ruby
<havenwood> Or MagLev. :O
jbpros has joined #ruby
maxmanders has joined #ruby
rezzack has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
<havenwood> Damn Oracle and their grubby paws.
anonymuse has quit [Read error: Connection reset by peer]
anonymuse has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
chriskk has joined #ruby
Deele has quit [Quit: User excited]
<havenwood> OpenOffice => LibreOffice, MySQL => MariaDB, Hudson => Jenkins
mercwithamouth has joined #ruby
<sweeper> use redis \o/
denver has quit [Remote host closed the connection]
carloslopes has joined #ruby
<terrellt> Ram's not -that- cheap.
maz-dev has joined #ruby
ericmathison has quit [Remote host closed the connection]
akurilin has quit [Quit: Leaving]
headius has quit [Quit: headius]
vlad_starkov has quit [Ping timeout: 264 seconds]
mattsgarrison_ has quit [Read error: Connection reset by peer]
cha1tanya has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
devinus has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
<havenwood> Ohm/Redis is lovely though when you know it'll never grow large. So quick to get going.
invsblduck is now known as sunsh1ne
ryannielson has quit [Quit: ryannielson]
<havenwood> Or just persist your Ruby objects by serializing them to Redis: https://github.com/havenwood/bindi#readme
adeponte has joined #ruby
<havenwood> :P
<xavier23> Ha. Interesting
Ry0_ has quit [Remote host closed the connection]
<sweeper> not bad
rezzack has joined #ruby
<sweeper> I love to use the crazy complex redis stuff tho
devinus has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmanders has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wrsh has quit [Remote host closed the connection]
vikhyat has joined #ruby
Fire-Dragon-DoL has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pedestrian has quit [Quit: WeeChat 0.4.1]
sayan has joined #ruby
wrsh has joined #ruby
supaiku has joined #ruby
dankest has quit [Quit: dankest]
mmitchell has quit [Read error: Operation timed out]
dankest has joined #ruby
jorge_ has joined #ruby
renderful has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
infecto1 has quit [Ping timeout: 240 seconds]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Scader has joined #ruby
jorge_ has quit [Ping timeout: 240 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
renderful has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
JZTech101 has joined #ruby
dankest has quit [Quit: dankest]
<supaiku> how do I check if my variable contains a constant of a module? like x = Foo::Bar and I want to verify that x is really from the module Foo
<nikeita> i don not understand use of #tap
<nikeita> seem so popular latley..
alex__c2022 has quit [Quit: alex__c2022]
<apeiros> supaiku: that's not really a relation ruby keeps track of
<apeiros> Foo::Bar references an object, that object does not know it is being referenced by Foo::Bar
<nikeita> anyone? maybe with some useful and realistic example...
cj3kim has joined #ruby
<yxhuvud> supaiku: x.object_id == Foo::Bar . Don't do it with immediate values though.
<apeiros> yxhuvud: um, no?
<yxhuvud> *Foo::Bar.object_id
<yxhuvud> sorry :P
<apeiros> no again? :)
<yxhuvud> really?
<apeiros> also, equal? if you want to test object identity
<apeiros> yxhuvud: he wants something like Foo.has_a_constant_which_references?(x)
<apeiros> he could do it using .constants + .const_get
<apeiros> but that's silly
<apeiros> + .any?
<yxhuvud> yes, but that is obviously not going to work.
<apeiros> + .equal?
keanehsiao has joined #ruby
<apeiros> what? equal? or iterating over the constants?
<yxhuvud> has_a_constant..
michaeldeol has quit [Remote host closed the connection]
<geggam> here is a new toy http://foaas.herokuapp.com/
gildo has quit [Ping timeout: 252 seconds]
<apeiros> it would work. but it'd be silly.
dmiller has joined #ruby
<yxhuvud> hrrm. why didn't I remember equal? I guess since I am exposed to the warning with object_id so often :P
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
cj3kim has quit [Ping timeout: 268 seconds]
marr has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
<yxhuvud> x_x
marr has joined #ruby
keanehsiao has quit [Ping timeout: 240 seconds]
<supaiku> Foo.constants.any? {|bar| Foo.const_get(bar).equal?("Foobar")} is working like a charm if I my code is correct at all :P
<supaiku> thanks... :D
<supaiku> why is that silly?
wargasm has quit [Read error: Connection reset by peer]
<supaiku> btw
dmiller has quit [Ping timeout: 240 seconds]
wargasm has joined #ruby
<yxhuvud> I suppose it can be useful for error seeking purposes, but I can't see when I'd ever want something like that for production
allaire has quit [Quit: allaire]
devinus has quit [Quit: devintorr.es]
michaeldeol has joined #ruby
<apeiros> supaiku: because you're abusing a introspection mechanism as a datastructure
rdg has joined #ruby
timonv has joined #ruby
<apeiros> if you want a hash, then use a hash.
brennanMKE has joined #ruby
freerobby has joined #ruby
<supaiku> apeiros: i simply want something enum like, i don't like using hashes for that purpose
Ripp__ has quit [Quit: This computer has gone to sleep]
<apeiros> translation: "I don't like using the right tool"
<apeiros> seriously, checking for inclusion in a datastructure is Set or Hash
Hanmac2 has joined #ruby
Ripp__ has joined #ruby
<apeiros> if you want slow, then Array works too. but don't abuse introspection.
premjg_ has joined #ruby
jbx2a has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
anonymuse has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
<supaiku> I'll see how that works out :)
devinus has joined #ruby
anonymuse has joined #ruby
maxmanders has joined #ruby
rodacato has joined #ruby
angusigu1ss has joined #ruby
goshakkk has joined #ruby
bradhe has joined #ruby
davidcelis has quit [Ping timeout: 246 seconds]
shtirlic has quit [Ping timeout: 264 seconds]
lushious has quit [Remote host closed the connection]
Hanmac2 has quit [Ping timeout: 240 seconds]
Ripp__ has quit [Client Quit]
defrag1 has quit [Ping timeout: 240 seconds]
wormwood has quit [Ping timeout: 246 seconds]
defrag1 has joined #ruby
narcan has quit [Quit: Leaving...]
slyv has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
erichmenge has quit [Ping timeout: 240 seconds]
Tobarja has quit [Ping timeout: 248 seconds]
wrsh has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 276 seconds]
sindork has quit [Ping timeout: 264 seconds]
Gnubie has quit [Ping timeout: 264 seconds]
mumblerit has quit [Ping timeout: 264 seconds]
onewheelskyward has quit [Ping timeout: 264 seconds]
Kovensky has quit [Ping timeout: 264 seconds]
premjg_ has quit [Ping timeout: 268 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
alex__c2022 has joined #ruby
LordAlveric has joined #ruby
anonymuse has quit [Ping timeout: 276 seconds]
davidcelis has joined #ruby
erichmenge has joined #ruby
onewheelskyward has joined #ruby
Ry0_ has joined #ruby
wormwood has joined #ruby
sindork has joined #ruby
mumblerit has joined #ruby
Tobarja has joined #ruby
Gnubie has joined #ruby
mumblerit is now known as Guest13870
Alveric has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 268 seconds]
Guest13870 is now known as mumblerit
renderful has joined #ruby
Meatant has joined #ruby
Kovensky has joined #ruby
shtirlic has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
maz-dev has quit [Ping timeout: 248 seconds]
Speed has joined #ruby
pedestrian has joined #ruby
rodacato has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 240 seconds]
renderfu_ has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
Nss has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 257 seconds]
bradhe has joined #ruby
epitron_ has quit [Changing host]
epitron_ has joined #ruby
epitron_ is now known as epitron
renderful has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
pupoque has joined #ruby
reset has quit [Quit: Leaving...]
alyi has joined #ruby
mark_locklear has quit [Ping timeout: 268 seconds]
maxmanders has joined #ruby
iliketurtles has joined #ruby
anonymuse has joined #ruby
momomomomo has quit [Quit: momomomomo]
jorge_ has joined #ruby
viszu has quit [Quit: Leaving.]
m8 has joined #ruby
Ry0_ has quit [Remote host closed the connection]
w3pm has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
maxmanders has quit [Ping timeout: 240 seconds]
viszu has joined #ruby
Michael_ has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
viszu has quit [Client Quit]
sarkis has joined #ruby
Michael_ has joined #ruby
rezzack has quit [Quit: Leaving.]
momomomomo has joined #ruby
Michael_ has quit [Remote host closed the connection]
premjg_ has joined #ruby
rsahae has joined #ruby
rgoodwin has joined #ruby
rezzack has joined #ruby
zigomir has joined #ruby
hakunin has quit [Remote host closed the connection]
[narcan] has joined #ruby
Pandee has quit [Ping timeout: 240 seconds]
rdg has quit [Quit: ttfn]
hakunin has joined #ruby
premjg_ has quit [Ping timeout: 240 seconds]
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
zeromodulus has joined #ruby
momomomomo has quit [Quit: momomomomo]
brbcoding has quit []
Nss has joined #ruby
realDAB has joined #ruby
TonyMergue has quit [Ping timeout: 248 seconds]
WarChief has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0/20130618035212]]
hadifarnoud has quit [Remote host closed the connection]
TonyMergue has joined #ruby
devinus has quit [Quit: devintorr.es]
sambao21 has joined #ruby
devinus has joined #ruby
realDAB has quit [Client Quit]
aaroncm has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Nightmare has quit [Ping timeout: 240 seconds]
Nightmare has joined #ruby
wrsh has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
infecto has joined #ruby
brennanMKE has joined #ruby
DanKnox is now known as DanKnox_away
TIJ has joined #ruby
smathieu has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rsahae has quit [Quit: rsahae]
marcdel has joined #ruby
jbx2a has left #ruby [#ruby]
nikeita has quit [Quit: sleep]
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 262 seconds]
sambao21 has joined #ruby
infecto1 has joined #ruby
mklappst_ has joined #ruby
brtdv has joined #ruby
mklappst_ has quit [Remote host closed the connection]
nikeita has joined #ruby
DaveANI has joined #ruby
infecto has quit [Ping timeout: 248 seconds]
mklappstuhl has quit [Ping timeout: 276 seconds]
ner0x has quit [Quit: Leaving]
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.7/20130621184642]]
Bira has quit [Ping timeout: 264 seconds]
pupoque has quit [Read error: Connection reset by peer]
anderson has joined #ruby
wrsh has quit [Ping timeout: 268 seconds]
jonahR has joined #ruby
S0da has joined #ruby
samuel02 has quit [Remote host closed the connection]
samuel02 has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
whowantstolivefo has quit [Quit: quit]
tvw has joined #ruby
renderfu_ has quit [Remote host closed the connection]
saarinen has joined #ruby
S0da has quit [Ping timeout: 240 seconds]
theRoUS has quit [Ping timeout: 240 seconds]
S0da has joined #ruby
headius has joined #ruby
timonv has quit [Remote host closed the connection]
rdg has joined #ruby
dash__ has quit [Quit: Time to beer :)]
Hanmac2 has joined #ruby
fernandoaleman has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Quit: Leaving]
forrest has joined #ruby
dash_ has joined #ruby
lscott3 has joined #ruby
colonolGron has joined #ruby
rsahae has joined #ruby
realDAB has joined #ruby
nikeita has quit [Quit: bye bye]
sambao21 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
supaiku has quit [Quit: Verlassend]
tonini has quit [Remote host closed the connection]
<asteve> I have an array of arrays and I want to sort on the 3rd field
<asteve> [[1, 2, 3],[a,b,1]] should return [[a,b,1],[1,2,3]]
Hanmac2 has quit [Ping timeout: 260 seconds]
<MrZYX> .sort_by {|a| a[2] }
sambao21 has joined #ruby
Nanuq has joined #ruby
havenwood has quit [Remote host closed the connection]
jalcine has quit [Excess Flood]
Roa has quit [Ping timeout: 268 seconds]
DanKnox_away is now known as DanKnox
Fuzai_ is now known as Fuzai
jonahR has quit [Quit: jonahR]
marcdel has quit [Ping timeout: 240 seconds]
<asteve> MrZYX: hmm, that's what I thought would work but I'm getting something entirely different
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<MrZYX> >> [['a','b',1],[1,2,3]].sort_by {|a| a[2] }
<eval-in> MrZYX => [["a", "b", 1], [1, 2, 3]] (https://eval.in/37924)
JZTech101 has joined #ruby
kofno has quit [Remote host closed the connection]
Roa has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
jorge_ has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
rdg has quit [Quit: ttfn]
jorge_ has joined #ruby
jalcine has joined #ruby
uxp has quit [Remote host closed the connection]
jbpros has joined #ruby
geekbri has quit [Remote host closed the connection]
vikhyat has quit [Remote host closed the connection]
bionoid has joined #ruby
<MrZYX> asteve: make a minimal example with real data if possible ;)
<asteve> I'm trying
jonahR has joined #ruby
jonahR has quit [Client Quit]
bionoid has quit [Remote host closed the connection]
<asteve> for your example though, rearrange ['a','b',1] and [1,2,3]
<asteve> it's already in sorted order
<MrZYX> >> [[1, 2, 3],['a','b',1]].sort_by {|a| a[2] }
<eval-in> MrZYX => [["a", "b", 1], [1, 2, 3]] (https://eval.in/37926)
uxp has joined #ruby
<asteve> ah
<yxhuvud> sort_by &:last is probably clearer if it always is 3 elements.
milestone has quit [Quit: milestone]
ravster has left #ruby [#ruby]
Kabaka has quit [Ping timeout: 240 seconds]
JZTech101 has quit [Ping timeout: 268 seconds]
jorge_ has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
realDAB has quit [Quit: realDAB]
<asteve> I found my problem, the 3rd field was a string with a float in its contents; .sort_by {|a| a[2].to_f } solved my problem
<asteve> how would I do a reverse sort?
cj3kim has joined #ruby
machuga is now known as machuga|away
<asteve> >> [['a', 'b', 1], [1, 2, 3]].sort_by.reverse! { |a| a[2] }
<eval-in> asteve => undefined method `reverse!' for #<Enumerator: [["a", "b", 1], [1, 2, 3]]:sort_by> (NoMethodError) ... (https://eval.in/37927)
havenwood has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
harrymoreno_ has joined #ruby
samuel02 has joined #ruby
Nisstyre has joined #ruby
burlyscudd has joined #ruby
workmad3 has joined #ruby
<MrZYX> .sort {|a, b| b[2].to_f <=> a[2].to_f }
sailias has joined #ruby
mawka has joined #ruby
Krajsnick has joined #ruby
freerobby has quit [Quit: Leaving.]
<eval-in> Kelet => [[1, 2, 3], ["a", "b", 1]] (https://eval.in/37928)
<Kelet> >> [['a', 'b', 1], [1, 2, 3]].sort_by { |a| a[2] }.reverse
saarinen has quit [Quit: saarinen]
<harrymoreno_> ...
sambao21 has quit [Quit: Computer has gone to sleep.]
ToApolytoXaos has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
zastern_ has joined #ruby
newUser1234 has joined #ruby
Pandee has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
infecto1 has quit [Quit: Leaving.]
TIJ has quit [Ping timeout: 260 seconds]
zastern has quit [Ping timeout: 240 seconds]
pedestrian has quit [Quit: WeeChat 0.4.1]
MrPoT4tO_ has joined #ruby
trose has left #ruby [#ruby]
xavier23 has quit [Quit: xavier23]
sambao21 has joined #ruby
milestone has joined #ruby
MrPoT4tO_ is now known as MrPoT4tO
rodacato_ has joined #ruby
mantas322 has joined #ruby
milestone has quit [Client Quit]
<mantas322> Hi guys
TIJ has joined #ruby
<Kelet> hi
_mtr has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
rdg has joined #ruby
renderful has joined #ruby
saarinen has joined #ruby
<mantas322> how come I can't write to a file on my c: drive
<mantas322> fname = "C:\Folder\sample.txt" somefile = File.new(fname, "w") somefile.puts "Hello file!" somefile.close
cj3kim_ has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
<mantas322> fname = "C:\Folder\sample.txt" ; somefile = File.new(fname, "w") ; somefile.puts "Hello file!" ; somefile.close ;
<mantas322> why wont this work!
<MrZYX> because the error message!
<mantas322> there is no error message
<mantas322> !
<apeiros> then it was written
<apeiros> remember that:
<apeiros> >> "\F"
<eval-in> apeiros => "F" (https://eval.in/37929)
<mantas322> it was not!
<apeiros> i.e., you look in the wrong place
cj3kim has quit [Ping timeout: 248 seconds]
<apeiros> look for "C:Foldersample.txt"
sarkis has quit [Ping timeout: 240 seconds]
<apeiros> and next time use either 'C:\Folder…', or "C:\\Folder…"
<mantas322> nope.
premjg_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
<mantas322> oooh
<mantas322> hang on
<mantas322> okay great!
<mantas322> yeah I was missing \\
<mantas322> thank you!
renderful has quit [Ping timeout: 246 seconds]
<apeiros> and whether or not you say 'nope' - either there's an exception or there's a file.
<mantas322> perhaps it saved it into the ether
<mantas322> but it was not in C:
smathieu has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
<mantas322> thanks anyways
<apeiros> *shrug*, I don't know how winblows deals with the path you gave it
<mantas322> have a pleasant afternoon.
<mantas322> "winblows" you take that fanboy jive to #rails
ldnunes has quit [Quit: Leaving]
<mantas322> Jive Turkey
<mantas322> jk, jk.
mantas322 has quit [Quit: bye]
<epitron> LOSEDOWS NINETY CRAP
<epitron> ohhhhhhhhh so burned
smathieu has joined #ruby
alyi has quit [Remote host closed the connection]
premjg_ has quit [Ping timeout: 240 seconds]
uxp has quit [Remote host closed the connection]
supergiantrobot has quit [Quit: supergiantrobot]
rsahae has quit [Quit: rsahae]
mmitchell has joined #ruby
Kabaka has joined #ruby
brtdv has quit [Quit: brtdv]
rdg has quit [Quit: ttfn]
Spooner has joined #ruby
uxp has joined #ruby
mikeg has joined #ruby
headius has quit [Quit: headius]
interactionjaxsn has quit [Remote host closed the connection]
TIJ has quit [Quit: Konversation terminated!]
Akuma has joined #ruby
michaeldeol has quit [Remote host closed the connection]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
jbpros has quit [Quit: jbpros]
<Akuma> Hello, can anyone tell me if "bundle config --global [...]" will force the settings into all calls of the gemfile/bundler on the ruby instace?
dankest has joined #ruby
zastern_ has quit [Remote host closed the connection]
<epitron> i cannot, but i can suggest an experiment
zastern has joined #ruby
<epitron> it involves a "puts" statement :)
mercwithamouth has joined #ruby
marcdel has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
felixjet has joined #ruby
michaeldeol has joined #ruby
fredjean has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dash_ has quit [Quit: Time to beer :)]
goshakkk has joined #ruby
jkline has joined #ruby
Y_Ichiro_ has quit [Read error: Connection reset by peer]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
forrest has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
sethette1 is now known as sethetter
kirun has quit [Quit: Client exiting]
spider-mario has quit [Read error: Connection reset by peer]
wudofyr___ has quit [Ping timeout: 248 seconds]
wudofyr___ has joined #ruby
fomatin has joined #ruby
Pandee has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
jgood has joined #ruby
dmiller_ has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
devinus has quit [Quit: devintorr.es]
SVetter_ has joined #ruby
<SVetter_> hello everyone
<Kelet> hi
<SVetter_> I have a question concerning hashes
<SVetter_> i stored three key => value pairs in a hash
reset has joined #ruby
<SVetter_> and when I iterate over the hash and print out by doing HASH.each do puts h
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
smathieu_ has joined #ruby
<SVetter_> i get something like this: {16=>[#<SampleObject id: 1, param: "value", param: "value", created_at: "2013-07-06 15:41:33", updated_at: "2013-07-06 15:41:33">]}
<SVetter_> three times
blackmesa has quit [Quit: WeeChat 0.4.1]
xavier23 has joined #ruby
<SVetter_> now I can't manage to access one particular "value" by typing puts h.[param]
<SVetter_> where exactly did I mess up? :(
<MrZYX> post your real code
<MrZYX> the snippet your posted is invalid syntax
Davey has quit [Quit: Computer has gone to sleep.]
smathieu_ has quit [Remote host closed the connection]
<Akuma> Hello, can anyone tell me if "bundle config --global [...]" will force the settings into all calls of the gemfile/bundler on the ruby instace?
<MrZYX> (HASH is not defined, h is not defined, an end is missing)
JZTech101 has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
mljsimone is now known as mljsimone|away
dmiller_ has quit [Ping timeout: 276 seconds]
samuel02 has quit [Remote host closed the connection]
ukd1 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<SVetter_> @MrZYX here is the hash creation: http://pastebin.com/80d7nesi
ravster has joined #ruby
<jgood> Is there any way in ruby to check if a process is running on windows by using the process's name instead of PID?
devinus has joined #ruby
<SVetter_> and this is the output: http://pastebin.com/3AKSeW58
<MrZYX> you are creating an array of hashes, not a hash
<SVetter_> this gives me: http://pastebin.com/AeC7rCF8
axl_ has quit [Quit: axl_]
<SVetter_> an array of hashes? :D
<SVetter_> omg
<SVetter_> oops
cj3kim has joined #ruby
axl_ has joined #ruby
Pandee has joined #ruby
<SVetter_> because of the [] brackets?
<MrZYX> that too
<MrZYX> do you actually even need the id?
<MrZYX> what do you want to output?
Hanmac2 has joined #ruby
otherj has joined #ruby
gemmy has joined #ruby
snearch has quit [Quit: Verlassend]
<Kelet> Change the [] to an {} and instead of @mixtape_tags =... line, do something like @mixtape_tags[mixtape_tag_xfref.id] = mixtape_tag_value
<SVetter_> i want to output the value of "value" based on the mixtape_tag_xref.id
<Kelet> or something
_md has joined #ruby
robscomputer_ has joined #ruby
<MrZYX> the generic answer is to just build an array of what you want to output so that you can just output it without having logic to filter it (again)
_md has quit [Client Quit]
jerius has quit [Read error: Operation timed out]
robscomputer has quit [Ping timeout: 264 seconds]
<SVetter_> well i tried that
<SVetter_> but ran into a problem
Emmanuel_Chanel has joined #ruby
<SVetter_> the mixtape_tag_xref.id can be smith like 100 +
<MrZYX> since this smells like rails, the rails way to do it is @mixtape_tags = MixtapeTag.where(id: @mixtape_tag_xrefs.map(&:mixtape_tag)) and @mixtape_tags.each do |tag| puts tag.whatever_probably_name; end
<SVetter_> and if I create an array, ruby seems to fill all the keys until 100 + with NIL
<aedorn> So... good chairs besides Steelcase Leap and Herman Miller anything? and I guess not ErgoHuman either (out of budget *sigh*)
<MrZYX> don't use the id as an index
<MrZYX> just fill the array up with the values
Hanmac2 has quit [Ping timeout: 276 seconds]
mklappstuhl has joined #ruby
breakingthings has quit [Quit: breakingthings]
julweber has joined #ruby
mklappstuhl has quit [Write error: Broken pipe]
v0n has quit [Ping timeout: 268 seconds]
codecop has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
pkill has joined #ruby
mklappstuhl has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
supergiantrobot_ has joined #ruby
iliketurtles has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wmoxam has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
wrsh has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
<SVetter_> alright
<SVetter_> did the latter
<SVetter_> :)
<SVetter_> i will just manage without the id in the index
<apeiros> "ruby seems to fill all the keys until 100 + with NIL" that's how arrays work
JZTech101 has quit [Write error: Connection reset by peer]
BillCriswell has quit [Remote host closed the connection]
<SVetter_> well
<SVetter_> isn't PHP for example able to just randomly accept an index for an array?
<apeiros> there are array-like structures which allow you to not fill "unused" space, but those aren't arrays, only array-likes
<apeiros> lol php
atyz has quit [Quit: Leaving...]
<apeiros> prime example of developers using the *entirely* wrong name for the datastructure
<MrZYX> SVetter_: PHP confuses hashes and arrays
<apeiros> no, php's arrays are NOT arrays. despite the name.
<SVetter_> i see
jkline has quit [Quit: jkline]
<SVetter_> so by definition an array can not take these values
<apeiros> they're some weird mix of hashtables, arrays and sparse-arrays.
<SVetter_> good to know
<SVetter_> thank you!
tatsuya_o has joined #ruby
goleldar has quit [Ping timeout: 246 seconds]
rdg has joined #ruby
Banistertab has quit [Ping timeout: 240 seconds]
otherj is now known as fleischgewehr
ixti has joined #ruby
<apeiros> that said, rubys "Hash" is a slight misnomer too. a hash is a value, not a datastructure (see Object#hash). Hash really is a HashMap or a HashTable
jonahR has joined #ruby
goleldar has joined #ruby
<SVetter_> hashmap is what my book sais too
<SVetter_> *says
ixti has quit [Client Quit]
ixti has joined #ruby
<SVetter_> thanks for the advice!
Banistertab has joined #ruby
<MrZYX> well think hash map if we say hash and are talking about ruby, don't we? :P
<MrZYX> *we all
<terrellt> Eh
<apeiros> those who know about what they're talking? sure
<terrellt> Until I run into someone using a hash function.
<apeiros> but I've had the question here why there's Object#hash and Hash
sarkis has joined #ruby
<apeiros> and there's quite a lot of rubyists who have no idea how a HashMap actually works and what Hash's relation to #hash and #eql? is
<apeiros> (which I find perfectly acceptable btw. - while it's good to know it's not necessary for everybody)
cdelo has joined #ruby
Y_Ichiro has quit [Remote host closed the connection]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
mansi has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
fomatin has quit [Remote host closed the connection]
<terrellt> apeiros: I did not know that hash keys had to accept a hash parameter. Of course it makes sense, just hadn't thought of it.
fomatin has joined #ruby
<terrellt> Er, had to have a hash function.
jorge_ has joined #ruby
rdg_ has joined #ruby
<SVetter_> are you guys professional ruby programmers?
asobrasil has left #ruby [#ruby]
Y_Ichiro has quit [Remote host closed the connection]
<terrellt> Many of us are.
<apeiros> I am, can't speak for the others.
Emmanuel_Chanel has joined #ruby
sethetter has quit [Quit: Lost terminal]
<SVetter_> may I ask what companies you are working at? are you maybe freelancing?
rdg has quit [Ping timeout: 240 seconds]
rdg_ is now known as rdg
<terrellt> I work for a university.
pothibo has joined #ruby
<flaccid> i'm a professional ruby programmer but prefer python
alex__c2022 has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pkill> what constitutes a professional programmer? ... i make money at my job too? lol
<flaccid> one that gets paid to code?
<terrellt> That would be my definition.
julweber has quit [Remote host closed the connection]
tvw has quit []
<flaccid> its like asking whats a professional slut?
<apeiros> SVetter_: financial company
<flaccid> thats called a hooker
mercwithamouth has quit [Ping timeout: 264 seconds]
Y_Ichiro has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
<terrellt> To be fair, the majority of my ruby work is in Rails. A few gems to support it and a couple scripts too, but by and large it's Rails work.
<apeiros> pkill: a professional programmer is somebody who's profession is to program
<apeiros> obvious, no?
froy has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
rsahae has joined #ruby
jorge_ has quit [Ping timeout: 240 seconds]
<flaccid> rails is a framework for ruby, so thats still ruby
<apeiros> sadly, most professional ruby work is rails and/or other webstuff
froy has joined #ruby
goleldar has quit [Read error: Connection reset by peer]
<SVetter_> interesting that there are so many different areas you work in
<apeiros> flaccid: while that's technically true, rails is somewhat its own universe.
tomzx_mac has joined #ruby
<pkill> yes, it's obvious. just seems silly to call yourself a professional in one language versus others
rdg has quit [Client Quit]
fleischgewehr has quit []
<apeiros> it's gotten less bad, but still…
goleldar has joined #ruby
<terrellt> apeiros: Do you use ruby for other purposes, primarily?
<SVetter_> since I still hear Java at every company I come across
<apeiros> pkill: why?
tylersmith has quit [Remote host closed the connection]
<apeiros> pkill: it's perfectly sane to be e.g. a professional java programmer but a hobbyist ruby programmer.
<pkill> eh, i guess
<apeiros> I don't see how that's silly
<pkill> but as soon as you write some java at work, you're a professional at it
<terrellt> Mm. I think consistency counts too. I've fixed some Java stuff for this job, but I'm not a professional java developer.
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<apeiros> yes, that makes you a professional java programmer, but not a professional ruby programmer.
<terrellt> But anyways, if we want to make any money we're "software engineers," no?
<apeiros> (that was @ pkill, not @ terrellt)
atyz has joined #ruby
<pkill> heh exactly terrellt
marr has quit [Ping timeout: 262 seconds]
lnormous has joined #ruby
<apeiros> terrellt: our job ads read had 'ruby' in the title
<apeiros> -read
alex__c2022 has quit [Ping timeout: 246 seconds]
alex__c2022_ has joined #ruby
atyz has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
helvete has joined #ruby
<terrellt> Know what consistently trips me up in ruby?
marr has joined #ruby
<terrellt> The lack of ++.
monkegji_ has joined #ruby
<terrellt> I understand why it's not there, but still.
<apeiros> 1 char trips you up?
<terrellt> Yes. It's a tricksy char.
<apeiros> or do you want the actual behavior of ++?
<terrellt> I expect the behavior.
<apeiros> i.e. ++i vs. i++
<apeiros> in loops and wherever
<terrellt> Yes, that.
<terrellt> Rather than i += 1
baordog has quit [Remote host closed the connection]
razi has quit [Quit: Leaving.]
elux has quit [Quit: Leaving...]
<zaltekk> i = i++;
<apeiros> it's actually one of the things I consider bad about ++, that many are unaware of execution order
sambao21 has quit [Quit: Computer has gone to sleep.]
robscomputer has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
Zolo has quit [Remote host closed the connection]
robscomputer has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
robscomputer has joined #ruby
<terrellt> apeiros: Mostly I just expect to be able to increment an integer via ++. The execution order stuff is useful for shortcuts, but I tend to avoid it for that reason.
obs has joined #ruby
<apeiros> +=1 isn't that hard to get used to :-p
SVetter_ has quit [Quit: SVetter_]
<wrsh> and it's more general
<apeiros> besides, ruby provides so many constructs where you never need +=1 either
<terrellt> I didn't say it was - I just slip fairly often and do ++.
<wrsh> you can use it for *=
<wrsh> etc
end_guy has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
robscomputer has quit [Changing host]
robscomputer has joined #ruby
<apeiros> e.g. Integer#upto, #downto, #times etc.
tacos1de has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
end_guy has joined #ruby
<apeiros> or Enumerator#with_index, or Enumerable#each_with_index etc.
robscomputer_ has quit [Ping timeout: 268 seconds]
<wrsh> true, if you never want to increment an integer, you shouldn't have to
sambao21 has joined #ruby
splittingred has quit [Quit: splittingred]
blackmesa has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Krajsnick has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
Lewix has joined #ruby
Nss has quit [Ping timeout: 240 seconds]
sambao21 has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
alex__c2022_ has quit [Quit: alex__c2022_]
cj3kim has joined #ruby
sambao21 has joined #ruby
jonahR has quit [Quit: jonahR]
romdi` has joined #ruby
gyre007 has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
noimagination has joined #ruby
sambao21 has joined #ruby
drakedouay has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
noimagination has quit [Remote host closed the connection]
romdi has quit [Ping timeout: 248 seconds]
colonolGron has quit [Quit: Lost terminal]
<drakedouay> How do you verify a password using bcrypt? I wrote 'BCrypt::Password.create(password)', but I am not sure how to verify the password later. Each time I run create, I get a different hash so I cannot compare them directly
saarinen has quit [Quit: saarinen]
Pandee has quit [Ping timeout: 268 seconds]
Pandee has joined #ruby
camt has joined #ruby
<Paradox> 420 glaze it donut
iliketurtles has joined #ruby
premjg_ has joined #ruby
<Paradox> BipolarBear0 likes glazing donuts
workmad3 has quit [Ping timeout: 260 seconds]
<terrellt> drakedouay: Bcrypt::Password overrides == to accept a string.
takezawa has quit [Remote host closed the connection]
<Paradox> BipolarBear0 likes windows 8
<terrellt> drakedouay: You should be able to do Password.new(Password.create(password)) == password
takezawa has joined #ruby
<drakedouay> terrellt: Cool thanks
<Paradox> BipolarBear0 goes DING
DrCode has joined #ruby
jibi has quit [Quit: .]
Akuma has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
zigomir has quit [Ping timeout: 276 seconds]
premjg_ has quit [Client Quit]
dmiller has joined #ruby
obs has quit [Quit: Konversation terminated!]
zeropx has quit [Read error: Connection reset by peer]
zeropx has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
Levin_22 has joined #ruby
devoldmx has joined #ruby
takezawa has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
tacos1de has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
Nom-_ has quit [Ping timeout: 240 seconds]
RobW_ has quit [Quit: RobW_]
burlyscudd has quit [Quit: Leaving.]
sqd_ has quit [Quit: sqd_]
Nom- has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
thams has joined #ruby
Deele has joined #ruby
monkegji_ has quit [Remote host closed the connection]
<thams> Anyone know, what does this syntax with two colons ahead of a classname do? ::SomeClassname
<apeiros> resolves toplevel constants
Kar- has quit [Remote host closed the connection]
<apeiros> and it's really a constant, not a classname ;-)
Bira has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<thams> heh, good point..
<apeiros> e.g. `Foo = 1; class X; Foo = 2; p [Foo, ::Foo]; end` prints [2, 1]
smathieu has joined #ruby
nomenkun has joined #ruby
Hanmac2 has joined #ruby
<thams> thx
JZTech101 has joined #ruby
Gooder`` has joined #ruby
felixjet_ has joined #ruby
<Eiam> hmm, is it possible to have group_by drop one of the objects on the floor (don't group it at all if it doesn't meet some criteria?)
jlast_ has joined #ruby
<Eiam> maybe just delete the nil key from the resulting hash?
Adawerk_ has joined #ruby
jsatk_ has joined #ruby
renderful has joined #ruby
blitzkev has joined #ruby
wrsh_ has joined #ruby
baroquebobcat_ has joined #ruby
swordsmanz_ has joined #ruby
mercwithamouth has joined #ruby
smathieu_ has joined #ruby
zer0px has joined #ruby
rodacato has joined #ruby
jrendell_ has joined #ruby
nfk has quit [Read error: Operation timed out]
inimit- has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
yonahw_ has joined #ruby
geggam has quit [Remote host closed the connection]
Asher1 has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
Hanmac2 has quit [Ping timeout: 246 seconds]
skinny_much_ has joined #ruby
zacts_ has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
jgood has quit [Quit: Page closed]
julweber has joined #ruby
Roa_ has joined #ruby
jtdowney has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 240 seconds]
<Eiam> weird to call .delete(nil) on a hash, but whatever, seems to work =0
blitz has quit [Disconnected by services]
blitzkev is now known as blitz
psychouroboros has joined #ruby
x1337807x has quit [Ping timeout: 260 seconds]
sheerun has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
deadalus has quit [Ping timeout: 240 seconds]
inimit has quit [Ping timeout: 240 seconds]
zeropx has quit [Ping timeout: 240 seconds]
rodacato_ has quit [Ping timeout: 240 seconds]
jarray52 has quit [Ping timeout: 240 seconds]
jsatk has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Ping timeout: 240 seconds]
_ffio_ has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 240 seconds]
inimit- is now known as inimit
monomyth_ has quit [Ping timeout: 240 seconds]
zacts has quit [Ping timeout: 240 seconds]
baroquebobcat_ is now known as baroquebobcat
foohey has quit [Ping timeout: 240 seconds]
froy has quit [Ping timeout: 240 seconds]
wrsh has quit [Ping timeout: 240 seconds]
felixjet has quit [Ping timeout: 240 seconds]
Roa has quit [Ping timeout: 240 seconds]
Mattix has quit [Ping timeout: 240 seconds]
skinny_much has quit [Ping timeout: 240 seconds]
Gooder` has quit [Ping timeout: 240 seconds]
Desert_eagle has quit [Ping timeout: 240 seconds]
Adawerk__ has quit [Ping timeout: 240 seconds]
jaimef has quit [Ping timeout: 240 seconds]
henn has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
swordsmanz has quit [Ping timeout: 240 seconds]
yonahw has quit [Ping timeout: 240 seconds]
jrendell has quit [Ping timeout: 240 seconds]
Newbcake has quit [Ping timeout: 240 seconds]
jrendell_ is now known as jrendell
foohey has joined #ruby
froy has joined #ruby
zer0px is now known as zeropx
swordsmanz_ is now known as swordsmanz
foohey has quit [Changing host]
foohey has joined #ruby
monkegjinni has joined #ruby
jaimef has joined #ruby
Mattix has joined #ruby
Newbcake has joined #ruby
Desert_eagle has joined #ruby
Davey has joined #ruby
henn has joined #ruby
henn has quit [Changing host]
henn has joined #ruby
jarray52 has joined #ruby
cads has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
mklappstuhl has quit [Remote host closed the connection]
monomyth has joined #ruby
ner0x has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
_ffio_ has joined #ruby
<gemmy> can you recommend me a game development library/framework in ruby?
danbeck has quit [Quit: danbeck]
matchaw_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
rodacato has quit [Remote host closed the connection]
saarinen has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
<DylanJ> :x
<DylanJ> gemmy: why ruby?
<DylanJ> only language you know? or just want to try gamedev in ruby?
<DylanJ> ruby is not a good language for game dev.
<gemmy> I play with SDL in C`
<DylanJ> nice!
<gemmy> I'm new to ruby
zeropx has quit [Ping timeout: 240 seconds]
<gemmy> but is soooo quick
<DylanJ> maybe check out unity?
mansi has quit [Read error: Connection reset by peer]
babykosh has joined #ruby
<DylanJ> it's C# but it's a great engine
rodacato has joined #ruby
mansi has joined #ruby
<gemmy> well I'm now taking a peek in allegro
<gemmy> but 4 days ago saw ruby and since then i'm very interested in
<gemmy> ruby
<gemmy> just becouse I can paint the big map in ruby and then go to C
<gemmy> ups C++
sambao21 has joined #ruby
<Eiam> so quick =0
brennanMKE has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
<gemmy> and some kind of binding ruby <-> SDL or smth?
<DylanJ> i think there are sdl bindings
<DylanJ> there's also "gosu"
<DylanJ> but i've never used it
Ripp__ has joined #ruby
pentameter has quit [Remote host closed the connection]
gstamp has joined #ruby
devinus has quit [Quit: devintorr.es]
zacts_ is now known as zacts
predator217 has joined #ruby
mist has quit [Read error: Operation timed out]
<babykosh> ruby gods…I need some help
zavier has quit [Read error: Operation timed out]
<gemmy> DylanJ: gosu is intersting
maniacal has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
tehKitten has quit [Ping timeout: 248 seconds]
zz_pinage404 has quit [Ping timeout: 246 seconds]
<DylanJ> babykosh: lolz
<DylanJ> do you not trust @stdout.puts?
<DylanJ> cause that's what you're testing
vlad_starkov has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
zavier has joined #ruby
<DylanJ> $stdout.puts*
* terrellt suspects stdout.
mist has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
aboudreault has quit [Read error: Operation timed out]
eregon has quit [Quit: No Ping reply in 180 seconds.]
thejoecarroll has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
sheerun has quit [Quit: Textual IRC Client: www.textualapp.com]
kiela has quit [Ping timeout: 245 seconds]
mikeg has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 264 seconds]
matti has quit [Ping timeout: 246 seconds]
<DylanJ> but i mean
<DylanJ> you could be like ...
prjkt has joined #ruby
<prjkt> what is the 'canonical' way is to determine which polygon a point is within, given a list of vertices for each polygon?
<DylanJ> $stdout.should_receive(:puts).with('my message')
Paradox has quit [Ping timeout: 240 seconds]
<DylanJ> prjkt: ##math
sebastianb has quit [Ping timeout: 246 seconds]
oz has quit [Ping timeout: 252 seconds]
patronus_ has quit [Read error: Operation timed out]
TheNumb has quit [Ping timeout: 256 seconds]
theRoUS has quit [Ping timeout: 264 seconds]
bier_ has quit [Ping timeout: 264 seconds]
marcellu1 has quit [Ping timeout: 245 seconds]
deavid has quit [Read error: Operation timed out]
Patteh has quit [Ping timeout: 240 seconds]
banzounet has quit [Ping timeout: 245 seconds]
samu has quit [Ping timeout: 248 seconds]
<babykosh> I still don't understand…..how should the rspec code be changed?
Boohbah has quit [Ping timeout: 245 seconds]
Jb_ has quit [Ping timeout: 240 seconds]
peteyg_ has quit [Ping timeout: 256 seconds]
zavier has quit [Ping timeout: 240 seconds]
<babykosh> should this line… @gameio.game_output.should ==…..
end_guy has quit [Ping timeout: 240 seconds]
xefi_ has quit [Ping timeout: 264 seconds]
sami has quit [Ping timeout: 246 seconds]
matrixise has quit [Ping timeout: 248 seconds]
diego_k has quit [Read error: Connection reset by peer]
pkill has quit [Quit: leaving]
avril14th has quit [Ping timeout: 256 seconds]
<babykosh> become this…. @gameio.output.should ==....
phracker has quit [Ping timeout: 276 seconds]
Paradox has joined #ruby
rodacato has quit [Remote host closed the connection]
<DylanJ> do you know what STDIN/STDOUT actually are?
<babykosh> I'm sorry if this is very simple…I've working on this for three days now and no one can give a direct answer
<DylanJ> i'll try to help
<DylanJ> but basically they're files
<DylanJ> not on your disk
gildo has joined #ruby
<DylanJ> your terminal will print things written to STDOUT
r4nd0m1 has quit [Ping timeout: 276 seconds]
<DylanJ> and when you type in a terminal you're actually writing to STDIN
<DylanJ> so like
<DylanJ> 1.9.3p429 :001 > puts "foo"
<DylanJ> foo
<DylanJ> => nil
<DylanJ> it's not returning "foo"
<DylanJ> it's returning nil
<DylanJ> but foo is printed because it's writing to STDOUT
newUser1234 has quit [Remote host closed the connection]
rodacato has joined #ruby
Jedi_SCT1 has joined #ruby
<babykosh> ah
patronus has joined #ruby
inimit has quit [Ping timeout: 248 seconds]
<DylanJ> try changing @gameio.game_output.sho.. to $stdin.should_receive(:puts).with('expected string')
vlad_starkov has quit [Ping timeout: 240 seconds]
zavier has joined #ruby
bier has joined #ruby
tehKitten has joined #ruby
diegok has joined #ruby
deavid has joined #ruby
oz has joined #ruby
thejoecarroll has joined #ruby
Paradox has quit [Ping timeout: 240 seconds]
<lnormous> game_output is undefined. You've put those attr_accessors in, but at no point do you assign values to them (as far as I can see...)
bigmac has joined #ruby
mist has quit [Remote host closed the connection]
avril14th has joined #ruby
EPIK has joined #ruby
EPIK has quit [Changing host]
EPIK has joined #ruby
matti has joined #ruby
flaccid has quit [Ping timeout: 256 seconds]
r4nd0m1 has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
bigmac is now known as i8igmac
mist has joined #ruby
peteyg has joined #ruby
xefi_ has joined #ruby
<lnormous> So you're getting 'undefined method `string' for nil:NilClass' because .game_output is nil
Jb_ has joined #ruby
wmoxam has joined #ruby
marcellu1 has joined #ruby
matrixise has joined #ruby
Patteh has joined #ruby
<lnormous> I think DylanJ is right about how to fix your test, but it seems like you have some other issues as well
TheNumb has joined #ruby
end_guy has joined #ruby
Boohbah has joined #ruby
prjkt has left #ruby [#ruby]
Boohbah is now known as Guest27023
jlast_ has quit [Remote host closed the connection]
banzounet has joined #ruby
sami has joined #ruby
samu has joined #ruby
eregon has joined #ruby
blarghmatey_ has joined #ruby
zz_pinage404 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
kiela has joined #ruby
moos3 has joined #ruby
mansi has quit [Remote host closed the connection]
havenwood has joined #ruby
flaccid has joined #ruby
mansi has joined #ruby
Scader has quit [Quit: Leaving]
<dankest> With 1.9, should I be using testunit or minitest?
osvico has joined #ruby
monkegjinni has quit [Remote host closed the connection]
aboudreault has joined #ruby
<dankest> minitest, I assume
bradhe has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
wsterling has quit [Remote host closed the connection]
bradhe has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
TheNumb has quit [Ping timeout: 248 seconds]
maniacal has quit [Remote host closed the connection]
eregon has quit [Read error: Connection reset by peer]
eregon has joined #ruby
rhys has quit [Quit: Leaving]
<DylanJ> dankest: doesn't really matter
mikeg has joined #ruby
<DylanJ> whatever you prefer
<DylanJ> rspec even
rodacato has quit [Remote host closed the connection]
marcdel has joined #ruby
keanehsiao has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
TheNumb has joined #ruby
<dankest> word
gemmy has quit [Quit: leaving]
choobie has quit [Ping timeout: 264 seconds]
Paradox has joined #ruby
brennanMKE has joined #ruby
realDAB has joined #ruby
elux has joined #ruby
dmiller has joined #ruby
xardas has quit [Ping timeout: 276 seconds]
realDAB has quit [Client Quit]
EPIK has quit [Ping timeout: 246 seconds]
keanehsiao has quit [Ping timeout: 240 seconds]
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
swordsmanz has quit [Ping timeout: 268 seconds]
peret has joined #ruby
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
sebastianb has joined #ruby
realDAB has joined #ruby
RobW_ has joined #ruby
i8igmac has quit [Quit: Leaving]
anonymuse has quit [Ping timeout: 240 seconds]
jkline has joined #ruby
DrShoggoth has quit [Quit: Leaving]
realDAB has quit [Client Quit]
saarinen has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
fridim__ has joined #ruby
Hanmac2 has joined #ruby
Bira has quit [Ping timeout: 262 seconds]
antn has joined #ruby
axsuul has joined #ruby
nanoxd has joined #ruby
<babykosh> ok got it solved it … updated my SO question to reflect it for any future readers..thank you
robert___ has joined #ruby
robert___ has quit [Changing host]
robert___ has joined #ruby
Hanmac2 has quit [Ping timeout: 276 seconds]
babykosh has quit [Quit: babykosh]
<havenwood> dankest: Minitest is nice.
phracker has joined #ruby
blandflakes has joined #ruby
robert_ has quit [Ping timeout: 245 seconds]
<dankest> havenwood: word, that's what I'm going with. RSpec was fun, but too big. I wanna Ruby.
Meatant has quit [Read error: No route to host]
Lewix has joined #ruby
harrymoreno has joined #ruby
realDAB has joined #ruby
harrymoreno_ has quit [Ping timeout: 260 seconds]
blarghmatey_ has quit [Ping timeout: 240 seconds]
<flaccid> anyone use methadone? i'm trying to work out how to get the CLILogger to do datestamps
mercwithamouth has quit [Ping timeout: 240 seconds]
mikeg has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
bigoldrock has quit [Ping timeout: 276 seconds]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
jsatk_ has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 268 seconds]
pupoque has joined #ruby
Banistertab has quit [Ping timeout: 240 seconds]
devoldmx3 has joined #ruby
optimusprimem has joined #ruby
twoism has quit [Remote host closed the connection]
wrsh_ has quit [Remote host closed the connection]
dEPy has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
realDAB has quit [Quit: realDAB]
rien has quit [Quit: leaving]
predator117 has joined #ruby