apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<havenwood> rooby: What method do you call to ask a Stream its viewer number?
x1337807_ has joined #ruby
gattie has joined #ruby
RegulationD has joined #ruby
x1337807_ has quit [Client Quit]
x1337807x has quit [Ping timeout: 265 seconds]
<rooby> it's at viewer_count at the twitch api but i didn't write this code so I'm kinda out of it
crazydiamond has quit [Ping timeout: 245 seconds]
nettoweb_ has joined #ruby
roolo has joined #ruby
zorak8 has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
b4rbz has quit [Quit: WeeChat 0.4.2]
<havenwood> rooby: Say if there's a Stream#viewer_count and `streams` is an Array of Streams: streams.sort_by &:viewer_count
RegulationD has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
<havenwood> rooby: Alternatively written longhand: streams.sort_by { |stream| stream.viewer_count }
PaulCapestany has joined #ruby
lanemeyer has joined #ruby
neanderslob has quit [Ping timeout: 264 seconds]
neanderslob_ has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
PaulCapestany has quit [Max SendQ exceeded]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has joined #ruby
definiv has joined #ruby
PaulCapestany has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
deric_skibotn has joined #ruby
<rooby> the viewer number is saved into "results.each do |s| streams << "#{s[0]} (#{s[1]})"
<rooby> im not sure how to apply the sort_by here
qhartman has joined #ruby
maximski has quit []
roolo has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
definiv has quit [Quit: Out]
wldcordeiro has joined #ruby
lmickh_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
phat4life has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
Pupeno_ has quit [Remote host closed the connection]
gregf has joined #ruby
multi_io_ has joined #ruby
Pupeno has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 250 seconds]
serivich has joined #ruby
vvivv has quit [Quit: Leaving]
multi_io has quit [Ping timeout: 265 seconds]
Pupeno_ has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
stunder has quit [Remote host closed the connection]
Pupeno has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bootstrappm has quit [Quit: bootstrappm]
mjuszczak has joined #ruby
SouL has quit [Ping timeout: 240 seconds]
blazes816 has joined #ruby
oo_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nettoweb has joined #ruby
gizmore has joined #ruby
roolo has joined #ruby
baweaver has quit [Remote host closed the connection]
tcrypt has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
blazes816 has quit [Ping timeout: 246 seconds]
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
baroquebobcat has quit [Quit: baroquebobcat]
roolo_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
serivich has joined #ruby
roolo has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
roolo_ has quit [Ping timeout: 250 seconds]
fmcgeough has quit [Quit: fmcgeough]
roolo has joined #ruby
ta has joined #ruby
charliesome has quit [Quit: zzz]
maximski has joined #ruby
pengin has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
nii236 has joined #ruby
pengin has joined #ruby
maximski has joined #ruby
Rollabunna has quit [Remote host closed the connection]
zoskia has joined #ruby
ta has quit [Ping timeout: 252 seconds]
roolo has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
sevenseacat has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
reinaldo_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
gattie has quit [Quit: Leaving...]
patrick99e99 has quit [Quit: Lost terminal]
roolo has joined #ruby
<rooby> havenwood: thanks, i think i managet to get it half-working
pengin has quit [Ping timeout: 264 seconds]
<rooby> now it's doing it in ascending order going by one of the numbers in viewercount
<rooby> but i need it to do it by the whole number
GaryOak_ has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 272 seconds]
jbeeze has quit [Remote host closed the connection]
<rooby> now it's like streamA (111) streamB (102) streamC (93) streamD (804)
nettoweb has joined #ruby
<havenwood> rooby: What would the whole number be?
sent1nel_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
<havenwood> rooby: I don't understand.
charliesome has joined #ruby
nettoweb has quit [Client Quit]
speaking1ode has joined #ruby
<rooby> havenwood: code is now like this https://gist.github.com/dinkmaster/ae41324a9e0ff73efbbd
baweaver has quit [Remote host closed the connection]
<havenwood> rooby: Oh dear.
Rapier- has joined #ruby
<rooby> which makes it arrange the streams in ascending order going by the 2nd number in the paranthesis
<havenwood> rooby: roloc is just color backwards :P
<rooby> it still works
<rooby> lol
<rooby> somewhat
<havenwood> rooby: it doesn't seem you got what i meant by using #map instead of #each
jottr has joined #ruby
<havenwood> rooby: your `roloc[-2]` is the second to last character of that odd concatenated String you're putting in `streams`.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Ping timeout: 256 seconds]
devoldmx_ has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Quit: WeeChat 0.3.8]
tohuw has joined #ruby
<rooby> yeah
<rooby> its arranging in ascending order by the second to last character
roolo_ has quit [Read error: Connection reset by peer]
<havenwood> rooby: i take it you're trying to sort by the also badly-named `s[1]`?
paradisaeidae has quit [Read error: Connection reset by peer]
roolo has joined #ruby
gr33n7007h has joined #ruby
sevvie has joined #ruby
<rooby> yes because "#{s[0]}" is "www.twitch.tv/astream"
<rooby> and "(#{s[1]})" is (123)
felixjet_ has quit [Read error: Connection reset by peer]
<havenwood> rooby: results.map { |stream| [stream[0], stream[1]] }.sort_by(&:last).to_h
jonr22 has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
DadoCe has joined #ruby
tohuw has quit [Client Quit]
jonr22 has joined #ruby
uptownhr has quit [Quit: uptownhr]
<havenwood> rooby: I'd really recommend studying up on #each and #map until you really get the difference and when you'd want to use one or the other. They're important!
hvxgr has quit [Ping timeout: 252 seconds]
sent1nel_ has quit [Ping timeout: 255 seconds]
roolo has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
FooMunki_ has joined #ruby
swgillespie has joined #ruby
wallerdev has quit [Ping timeout: 252 seconds]
wallerdev_ has joined #ruby
tkuchiki has joined #ruby
roolo has joined #ruby
oo_ has quit [Remote host closed the connection]
rupertbg has joined #ruby
pietr0 has quit [Quit: pietr0]
n008f4g_ has quit [Ping timeout: 246 seconds]
willharrison has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
hvxgr has joined #ruby
tier has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
mistermo_ has joined #ruby
oo_ has joined #ruby
willharrison has quit [Max SendQ exceeded]
Zai00 has quit [Quit: Zai00]
ninjazach has quit [Quit: LayerBNC - https://LayerBNC.net/]
Rapier- has quit [Quit: (null)]
mistermo_ has quit [Remote host closed the connection]
baweaver has joined #ruby
speaking1ode has quit [Ping timeout: 265 seconds]
mistermocha has quit [Ping timeout: 246 seconds]
tier has quit [Ping timeout: 264 seconds]
speaking1ode has joined #ruby
<shevy> hmm
MatthewsFace has quit [Remote host closed the connection]
sent1nel_ has joined #ruby
sent1nel_ has quit [Read error: Connection reset by peer]
ninjazach has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
rupertbg has left #ruby [#ruby]
sent1nel has quit [Ping timeout: 256 seconds]
sent1nel has joined #ruby
oleo__ has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
oleo is now known as Guest9472
maximski has quit []
doodlehaus has joined #ruby
felixjet has joined #ruby
oki has joined #ruby
rbennacer has joined #ruby
tcrypt has joined #ruby
Guest9472 has quit [Ping timeout: 256 seconds]
<rooby> havenwood: so i should replace the results.each with results.map?
Cadillactica has joined #ruby
oki has quit [Ping timeout: 256 seconds]
Cust0sL1men has quit [Ping timeout: 245 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> rooby: Here's a basic example of mapping. If you want to map, map: https://rubymonk.com/learning/books/1-ruby-primer/chapters/1-arrays/lessons/34-arrays-the-basics
jamgood96 has joined #ruby
jamgood96 has left #ruby [#ruby]
Dopagod has joined #ruby
Hobogrammer has joined #ruby
<havenwood> rooby: Review those ^ and once you get what map does, see if it's what you want.
lessless has joined #ruby
<havenwood> rooby: But yeah, in the code snippet you showed the #each is tortured and it should be a #map.
devbug has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
mjuszczak has quit []
marr has quit [Ping timeout: 272 seconds]
duncannz has quit [Ping timeout: 250 seconds]
<havenwood> rooby: Try these in irb or pry and see if you can see why the return values are what they are: https://gist.github.com/havenwood/9768cd7f1d75e88903ed
agrinb has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
tcrypt has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
tcrypt has joined #ruby
sent1nel_ has joined #ruby
sevvie has joined #ruby
sent1nel has quit [Ping timeout: 246 seconds]
<rooby> havenwood: it's returning an error now, block in get_streams_url_and_views': undefined local variable or method `stream' - https://gist.github.com/dinkmaster/d49ae191dcd71956c706
roolo has joined #ruby
adamjleonard has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
tcrypt has joined #ruby
roolo_ has quit [Ping timeout: 245 seconds]
<havenwood> rooby: Actually go through the materially I linked. :) You're not quite getting it yet.
<havenwood> rooby: typo, your `results.map { |streams|` <- streems should be streem
<havenwood> rooby: The point of #map is you can drop `streams = []` and `streams` lines.
reinaldo_ has quit [Remote host closed the connection]
steeve149 has joined #ruby
<rooby> havenwood: yeah i did that at first but still got an error so I thought I got it wrong
<rooby> if it's just
<rooby> def get_streams_url_and_views(results)
<rooby> results.map { |stream| [stream[0], stream[1]] }.sort_by(&:last).to_h
<rooby> end
Megtastique has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skj3gg has joined #ruby
<rooby> that gives me "in `streams': undefined method `join' for #<Hash:0xb9720f24> (NoMethodError)"
roolo has quit [Ping timeout: 264 seconds]
<steeve149> Hey guys, I'm trying to stream data into my database in rails but whenever I try to put values into the class.new(params) field in thecontroller I get an error tellingme I need to submit a hash,any idea whats going on?
<havenwood> rooby: Because it's returning a nice Hash, with `stream[0]` and the key and `stream[1]` as the value, sorted by value.
<havenwood> rooby: When you're expecting a String.
sent1nel_ has quit [Ping timeout: 272 seconds]
phutchins has quit [Ping timeout: 252 seconds]
tokik has joined #ruby
sent1nel has joined #ruby
nettoweb has joined #ruby
<havenwood> steeve149: #RubyOnRails is the best place for Rails stuff.
<havenwood> rooby: You could turn that Hash into the String you want before returning from the method. I think you need to learn the basics so you can navigate what you're doing.
uptownhr has joined #ruby
pontiki has joined #ruby
ta has joined #ruby
definiv has joined #ruby
plutonic has quit [Quit: plutonic]
tcrypt has quit []
wallerdev_ has quit [Quit: wallerdev_]
Cadillactica has quit [Quit: Cadillactica]
baweaver has quit [Remote host closed the connection]
definiv has quit [Client Quit]
nykc has joined #ruby
ismaelga has quit [Remote host closed the connection]
nykc has quit [Client Quit]
jottr has quit [Ping timeout: 265 seconds]
roolo has joined #ruby
ta has quit [Ping timeout: 265 seconds]
fuhgeddaboudit has joined #ruby
<havenwood> rooby: Anyways, learn Ruby! But here's my last free hint for what mapping to a String might look like: results.sort_by { |result| result[1] }.map { |result| "#{result[0]} (#{result[1]})" }
RegulationD has joined #ruby
<shevy> havenwood is out of free hints for today!
ismaelga has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
iamjarvo has joined #ruby
<shevy> programming languages trends (4) http://goo.gl/fRKd65
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
<havenwood> shevy: Just cause i feel like i'm more of a crutch than a help on this one.
<DissonantGuile> Anyone have any experience with FFT? I don't understand the output of the FFT of each frame of a small MP3 file
<havenwood> shevy: Well, the red line goes up! :P
<shevy> havenwood hmm
<shevy> most scripting languages kinda dwindled save for python
rubytor has quit [Ping timeout: 265 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 255 seconds]
<havenwood> shevy: We are into brevity so we don't append "Programming Language" to our searches maybe?
Megtastique has quit []
roolo has quit [Ping timeout: 245 seconds]
DadoCe has quit [Remote host closed the connection]
<shevy> I am scared to find ruby gems
<havenwood> shevy: What kinda gem are you looking fer?
<shevy> no gem!
robustus has joined #ruby
<shevy> here it is without "programming language" http://goo.gl/8iuQV6
hsps_ has joined #ruby
pwnz0r has joined #ruby
<havenwood> shevy: https://rubygems.org/gems/no
<shevy> oh man
Megtastique has joined #ruby
<shevy> "A release candidate is expected in September 2015 and a final release by December."
<shevy> This will mark the year of the Perl
<havenwood> shevy: Note their mascot is on acid.
<havenwood> shevy: \o/
<steeve149> #rubyonrails
plutonic has joined #ruby
steeve149 has quit []
<shevy> yeah
Yzguy has joined #ruby
baweaver has joined #ruby
lampd1 has joined #ruby
steeve149 has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
<havenwood> shevy: Some nifty stuff in Perl 6.
jamgood96 has joined #ruby
jamgood96 has left #ruby [#ruby]
bricker has quit [Quit: leaving]
<shevy> anything ruby could profit too?
roolo has joined #ruby
_honning_ has joined #ruby
pwnz0r_ has joined #ruby
pwnz0r has quit [Ping timeout: 244 seconds]
<havenwood> I think so. We can go back and forth stealing from each other. ;)
<shevy> oh it will have static types
amclain has joined #ruby
<shevy> now that would be cool in ruby optionally
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> shevy: I guess you've already checked out crystal-lang?
<shevy> only had a look at it
<shevy> my experimenting days are over :(
Dwarf has quit [Ping timeout: 250 seconds]
sent1nel has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
chipotle has joined #ruby
swgillespie has joined #ruby
Troy^ has joined #ruby
roolo has quit [Ping timeout: 246 seconds]
<jhass> why?
triple_b has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<shevy> I am too old for experiments
dorei has quit []
<jhass> that's what society wants to make you think!
danman has quit [Quit: danman]
paolooo has joined #ruby
baweaver has quit [Remote host closed the connection]
roolo has joined #ruby
havenn has joined #ruby
towski_ has joined #ruby
yfeldblum has joined #ruby
pwnz0r has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
codeurge has joined #ruby
sevvie has joined #ruby
pwnz0r_ has quit [Ping timeout: 244 seconds]
roolo has quit [Ping timeout: 272 seconds]
claptor has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
Megtastique has quit []
adriancb has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
pwnz0r has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
DadoCe has joined #ruby
alyosha has quit [Quit: Leaving...]
roolo has joined #ruby
whoughton has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
<whoughton> I just don't yet get instance variables I guess
<whoughton> why do I have to have line 19 in there?
<whoughton> shouldn't the instance variable be set in the initialize?
Hijiri has joined #ruby
alvaro_o has joined #ruby
<jhass> yeah, you don't need it
<whoughton> hmmm
<whoughton> I guess i tmust be a Rails issue actually
<jhass> likely
<whoughton> if I put a log in the initialize I don't see it being called
krz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spooner has quit [Remote host closed the connection]
<whoughton> oh magical black boxen! (sorry for the interruption, ut good to know my instinct was sorta right)
<jhass> btw, ruby community standard is 2 spaces for indentation
<whoughton> oh I know
<whoughton> and I hate it :)
<whoughton> we each have our vices
<jhass> and your @@class_var wants to be a CONSTANT
<apeiros_> whoughton: you can simplify your decoded method to just this: `def decoded(field); @decoded[field]; end`
<whoughton> oh good call on the constant
Yzguy has quit [Quit: I'm sleeping, go away.]
roolo has quit [Ping timeout: 265 seconds]
<apeiros_> since Hash#[] for a hash without specified default already returns nil
<whoughton> yeah, I have the tendency not to do stuff like that because I find it less readable
<jhass> if !foo.nil? -> if foo
<apeiros_> if you want to be explicit, use fetch
<apeiros_> @decoded.fetch(field, nil)
paolooo has quit [Ping timeout: 246 seconds]
<whoughton> both good points
<apeiros_> but honestly, nobody does that.
<apeiros_> whoughton: back to your initial question: don't define initialize for AR models
<apeiros_> read their guide about it
<whoughton> k, will go look
_maes_ has joined #ruby
<apeiros_> generally: don't redefine methods of classes you don't own.
<apeiros_> (you don't own AR::Base, and you inherit from it)
EasyCo has joined #ruby
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<apeiros_> if you want to anyway, then don't forget to a) ensure the interface (e.g. here with `def initialize(*)`, and don't forget to call super.
polysics has quit [Ping timeout: 252 seconds]
checkit has quit [Ping timeout: 244 seconds]
foureight84 has joined #ruby
DEA7TH has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
Volis_ has quit [Ping timeout: 246 seconds]
reinaldob has joined #ruby
<whoughton> ah that does make sense
<whoughton> thanks apeiros_ and jhass
foureight84 has quit [Ping timeout: 252 seconds]
nii236 has quit [Ping timeout: 250 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has quit [Ping timeout: 250 seconds]
deric_skibotn has quit [Ping timeout: 240 seconds]
crdpink has joined #ruby
luriv has quit [Remote host closed the connection]
crdpink2 has quit [Ping timeout: 250 seconds]
apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<dfinninger> anyone here have experience with datamapper?
<dfinninger> I'm having an issue with relationships
<dfinninger> er, associations
Joufflu has joined #ruby
uptownhr has quit [Quit: uptownhr]
turtil has quit [Quit: WeeChat 1.1.1]
phat4life has quit [Quit: WeeChat 0.4.2]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 264 seconds]
serivichi has joined #ruby
sevvie has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
psy_ has joined #ruby
plutonic has quit [Quit: plutonic]
towski_ has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 244 seconds]
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
steeve149 has quit []
j_mcnally has joined #ruby
steeve149 has joined #ruby
steeve149 has quit [Client Quit]
_djbkd has quit [Quit: My people need me...]
graydot has quit [Quit: graydot]
DadoCe has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
skj3gg has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
DadoCe has quit [Ping timeout: 246 seconds]
MasterPiece has quit [Quit: Bye!]
lessless has joined #ruby
dfinninger has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
yfeldblum has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 265 seconds]
skj3gg has quit [Quit: ZZZzzz…]
bruno- has joined #ruby
polysics has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
doodlehaus has quit [Remote host closed the connection]
bruno- is now known as Guest73175
shellfu_afk has joined #ruby
<shevy> rewriting, rewriting, rewriting
shellfu_afk has quit [Remote host closed the connection]
Guest73175 has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
Jetchisel has joined #ruby
speaking1ode has quit [Ping timeout: 265 seconds]
ismaelga has quit [Remote host closed the connection]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
jonr22 has quit [Remote host closed the connection]
krz has quit [Ping timeout: 246 seconds]
krz has joined #ruby
petruchito has joined #ruby
duncannz has joined #ruby
ajaiswal has joined #ruby
armyriad has joined #ruby
petruchito has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kp666 has joined #ruby
Lewix has quit [Remote host closed the connection]
RegulationD has joined #ruby
sent1nel has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tjohnson has quit [Quit: Connection closed for inactivity]
shellfu_afk has joined #ruby
apeiros_ has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
apeiros_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
djcp has quit [Ping timeout: 256 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
RegulationD has quit [Ping timeout: 246 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
mistermocha has joined #ruby
The_Phoenix has joined #ruby
maximski has joined #ruby
chiel has quit [Ping timeout: 264 seconds]
ta has joined #ruby
speaking1ode has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
skj3gg has joined #ruby
mistermocha has quit [Remote host closed the connection]
ta has quit [Ping timeout: 252 seconds]
brb3 has quit [Quit: ZZZzzz…]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Troy^ has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
Troy^ has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
stunder has joined #ruby
lemur has joined #ruby
yfeldblum has joined #ruby
maximski has quit []
braincrash has quit [Quit: bye bye]
chiel has joined #ruby
sevvie has quit [Quit: leaving]
emocakes has joined #ruby
<emocakes> anyone going to rubyconf india?
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
arescorpio has quit [Excess Flood]
benlieb has joined #ruby
benlieb has quit [Client Quit]
roolo has joined #ruby
dfinninger has joined #ruby
devoldmx has joined #ruby
<havenn> emocakes: i wish!
significance has joined #ruby
DadoCe has joined #ruby
<significance> Hello all! I found this here: https://robots.thoughtbot.com/mygem-configure-block. If I want to accept a configuration file from an end user, should I just require the file they input?
roolo has quit [Ping timeout: 245 seconds]
dfinninger has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
MasterPiece has joined #ruby
roolo has joined #ruby
DadoCe has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
roolo has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
Channel6 has joined #ruby
<significance> So sorry - anyone know how I might be able to read a Rails-style config file like in the link above? Thanks!
pwnz0r has joined #ruby
roolo has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
significance has quit [Quit: Page closed]
roolo has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
ismaelga has quit [Ping timeout: 245 seconds]
roolo has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
oo_ has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
Lewix has joined #ruby
roolo has joined #ruby
lioninawhat has joined #ruby
lemur_ has joined #ruby
<shevy> emocakes LONG TIME NO SEE
roolo has quit [Read error: Connection reset by peer]
<emocakes> shevy!
<emocakes> baby!
<emocakes> bae
roolo has joined #ruby
lioninawhat has quit [Client Quit]
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
Synthbread has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tus has quit []
lolmaus has quit [Remote host closed the connection]
roolo has joined #ruby
maletor has joined #ruby
lolmaus has joined #ruby
roolo__ has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
roolo_ has joined #ruby
roolo__ has quit [Read error: Connection reset by peer]
roolo has quit [Read error: Connection reset by peer]
razieliyo has quit [Ping timeout: 252 seconds]
jimbauds has joined #ruby
roolo has joined #ruby
jimbauds has left #ruby [#ruby]
roolo_ has quit [Ping timeout: 252 seconds]
pwnz0r_ has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
pwnz0r has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
MasterPiece has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
bluOxigen has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<gr33n7007h> If using % string formatters would you use puts or sprintf ?
michael_mbp has quit [Excess Flood]
oo_ has joined #ruby
<Fluent> sprintf
roolo has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
michael_mbp has joined #ruby
<gr33n7007h> Fluent: ok, thanks
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur_ has quit [Ping timeout: 245 seconds]
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
<Fluent> >> sprintf("%b", 123)
<eval-in> Fluent => "1111011" (https://eval.in/292545)
<Fluent> As an example
jobewan has joined #ruby
<shevy> >> "%b" % 123
<eval-in> shevy => "1111011" (https://eval.in/292546)
devoldmx has joined #ruby
sent1nel_ has joined #ruby
jobewan has joined #ruby
<shevy> one problem I often have with the % there is
<shevy> I seem to need () around them, or an extra line :(
ravenzz has joined #ruby
seitensei has quit [Ping timeout: 244 seconds]
<shevy> then one day I discovered .ljust and indeed I was formatting with ' ' the most by far \o/
roolo has quit [Read error: Connection reset by peer]
<shevy> >> "5".ljust 5,'0'
<eval-in> shevy => "50000" (https://eval.in/292547)
roolo has joined #ruby
devoldm__ has joined #ruby
sent1nel has quit [Ping timeout: 252 seconds]
seitensei has joined #ruby
jwang has joined #ruby
devoldmx_ has quit [Ping timeout: 244 seconds]
roolo has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
tiago has quit [Ping timeout: 250 seconds]
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
tiago has joined #ruby
sarahbunny_elsew is now known as sarahbunny
devoldm__ has quit []
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
sent1nel_ has quit [Remote host closed the connection]
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
dfinninger has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
MasterPiece has joined #ruby
_honning_ has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
Sawbones has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
doodlehaus has joined #ruby
roolo has quit [Read error: Connection reset by peer]
<gr33n7007h> why does sprintf work in pry but not in a ruby script?
dfinninger has quit [Ping timeout: 272 seconds]
roolo_ has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
armyriad has quit [Quit: Leaving]
krz has quit [Read error: Connection reset by peer]
Ivision has joined #ruby
krz has joined #ruby
doodlehaus has quit [Ping timeout: 250 seconds]
<ravenzz> can anyone help me with an rspec thing?
<gr33n7007h> ah, it doesn't direct to stdout
roolo has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
jpweiser has joined #ruby
<ravenzz> like how do I grab the stdout in a suite and check if contains a substring?
jonr22 has quit [Ping timeout: 256 seconds]
<gr33n7007h> ravenzz: sussed it :)
<ravenzz> what does that mean?
<ravenzz> I am not a native english speaker also hehe
roolo_ has joined #ruby
<gr33n7007h> oops, nvm
yfeldblum has quit [Remote host closed the connection]
<ravenzz> nvm(2) I read the definition on urbandictionary
ismaelga has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
RegulationD has joined #ruby
roolo has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
Parker0 has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
roolo_ has joined #ruby
ismaelga has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
Ivision has quit [Read error: Connection reset by peer]
reinaldob has quit [Ping timeout: 250 seconds]
Ivision has joined #ruby
<shevy> lol
roolo has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roolo__ has joined #ruby
<shevy> ravenzz well, there is $stdout and STDOUT and you can reopen/redirect it at will; I think it is a IO.new object
dfinninger has joined #ruby
<shevy> s = StringIO.new; $stdout = s; puts 'Hi, I am in s'; $stdout = STDOUT; puts s.string"
Lewix has quit [Remote host closed the connection]
Ivision has quit [Read error: Connection reset by peer]
roolo_ has quit [Ping timeout: 244 seconds]
Ivision has joined #ruby
amclain has quit [Quit: Leaving]
roolo__ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
Ivision has quit [Read error: Connection reset by peer]
Ivision_ has joined #ruby
<ravenzz> mm
<ravenzz> shevy: I am a ruby noob
<ravenzz> I should add a test to an existing tests suite
<ravenzz> specifically http://git.io/N0l6
chrishough has joined #ruby
skj3gg has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
<ravenzz> it doesn't seem like I have access to $stdout there!?
j_mcnally has quit [Remote host closed the connection]
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
jbw__ has joined #ruby
<ravenzz> I mean StringIO.new is a new io object I guess and at that point the output was already sent
Ivision_ has quit [Read error: No route to host]
<shevy> ravenzz I am a test noob :)
<shevy> but $ is a global object
<shevy> you always have access to these
<ravenzz> oh well, nice to meet you dude
<ravenzz> :D
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
Ivision has joined #ruby
jbw_ has quit [Ping timeout: 265 seconds]
roolo_ has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
roolo has joined #ruby
jpweiser has left #ruby [#ruby]
roolo_ has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has quit [Read error: Connection reset by peer]
luriv has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
plutonic has joined #ruby
roolo has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
ponga has joined #ruby
_djbkd has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
mhenrixon|afk is now known as mhenrixon
Hijiri has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
ta has quit [Ping timeout: 246 seconds]
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
seitensei has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
roolo has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
roolo has joined #ruby
roolo has quit [Read error: Connection reset by peer]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
mikepack has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
roolo has joined #ruby
lxsameer has joined #ruby
sigurding has joined #ruby
avril14th has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhenrixon is now known as mhenrixon|afk
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
rhg135 is now known as rhg135|zzz
meschi has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
havenn has quit []
roolo__ has joined #ruby
roolo_ has quit [Ping timeout: 245 seconds]
roolo_ has joined #ruby
timonv has joined #ruby
roolo__ has quit [Read error: Connection reset by peer]
<arup_r> moin
roolo has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
yfeldblum has joined #ruby
lampd1_ has joined #ruby
yfeldblu_ has joined #ruby
Synthbread has quit [Read error: Connection reset by peer]
<panga> arup_r oink
<arup_r> panga: o/
roolo has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
lampd1 has quit [Ping timeout: 256 seconds]
Ivision has quit [Remote host closed the connection]
lampd1_ is now known as lampd1
roolo has joined #ruby
jobewan has quit [Quit: Leaving]
ismaelga has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
pwnz0r_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
speaking1ode has quit [Ping timeout: 252 seconds]
speaking1ode has joined #ruby
agrinb has quit [Remote host closed the connection]
tagrudev has joined #ruby
ismaelga has quit [Ping timeout: 256 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
agrinb has quit [Remote host closed the connection]
speakingcode has joined #ruby
agrinb has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: ciao.]
<arup_r> I am reading one PPT, where (s)he said -- Kernel#srand sets the seed for Kernel#rand. This can be used to generate a reproducible sequence of numbers. This might be handy if you are trying to isolate / reproduce a bug. My question is -- what is `seed` ?
aganov has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
<Mon_Ouie> The seed of the pseudo random number generator is the value it uses to start its sequence of random numbers. Every time you use the same seed, you will get the same sequence back.
Ivision has joined #ruby
<arup_r> Mon_Ouie: Hi.. How are you?
<Mon_Ouie> I'm fine
<arup_r> Mon_Ouie: Still.. I'm not able to understand the diff between #rand and #srand
hvxgr has quit [Ping timeout: 265 seconds]
<Mon_Ouie> #rand returns the next random number, #srand configures the generator which will affect the calls to #rand that will follow.
roolo has joined #ruby
<arup_r> Mon_Ouie: Would you mind one example to show the how #srand affects or work with in cooperation with the #rand ?
<Mon_Ouie> >> x = []; srand(3); x << rand(10) << rand(10); srand(3); x << rand(10) << rand(10); x
<eval-in> Mon_Ouie => [8, 9, 8, 9] (https://eval.in/292552)
<Mon_Ouie> i.e. every time I call srand(3), the next call to rand(10) is going to return 8, the one after that 9, etc.
rorra has quit [Quit: rorra]
paolooo has joined #ruby
<arup_r> ok.. so what the number 3 is setting there ? Is there any global number list ?
<Mon_Ouie> What do you mean?
roolo has quit [Ping timeout: 246 seconds]
<arup_r> wait.. let me think. what I said..
anarang has joined #ruby
<arup_r> #srand configures the generator -- Where is it configuring ?
<Mon_Ouie> "where"?
JohnBat26 has joined #ruby
charliesome has quit [Quit: zzz]
ta has joined #ruby
<arup_r> ok
<arup_r> Well... Why is it starting from 8 always ?
<Mon_Ouie> Because the algorithm Ruby uses (with the particular settings Ruby uses, at least) turns out this way when you give it that seed
last_staff has joined #ruby
speaking2ode has joined #ruby
<arup_r> Ok
speaking1ode has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
swgillespie has joined #ruby
<arup_r> Mon_Ouie: Got it.. and understood it after 2 years of my Ruby journey..
sent-hil has joined #ruby
martianixor has joined #ruby
mhenrixon|afk is now known as mhenrixon
sandelius has joined #ruby
fabrice31 has joined #ruby
timonv has quit [Quit: WeeChat 1.1.1]
<arup_r> Mon_Ouie: Why https://gist.github.com/aruprakshit/52d7d52f4084c2eaaef7#file-nonworking-rb is not working... while the very similar to this one is working like a _charm_ ?
timonv has joined #ruby
<sevenseacat> for when rand isnt random enough.
bruno- has quit [Ping timeout: 244 seconds]
nicolast_ has joined #ruby
wicope has joined #ruby
roolo has joined #ruby
<Mon_Ouie> Because Proc#call accepts extra arguments, your definition of #rand does not
nicolastarzia has quit [Ping timeout: 245 seconds]
<arup_r> But I didn't supply any number to the #rand while I called it..
<arup_r> Why then I got the punishment
<arup_r> ?
<arup_r> sevenseacat: o/
<arup_r> what you meant?
<sevenseacat> afternoon.
sinkensabe has joined #ruby
roolo_ has joined #ruby
<sevenseacat> arup_r: sorry, i have no idea what you're trying to do.
<arup_r> Good Noon
<Mon_Ouie> You're not calling rand, #sample is calling it, and #sample calls it with an integer as its argument
roolo has quit [Read error: Connection reset by peer]
<arup_r> sevenseacat: ok.. fine
<arup_r> Mon_Ouie: Ouch!.. That's the thing
mkaesz has joined #ruby
agrinb has joined #ruby
<arup_r> #sample does too many thins under the hood
Spami has joined #ruby
mkaesz has quit [Read error: Connection reset by peer]
<arup_r> Mon_Ouie: Thanks for sharing the Ruby knowledge
<arup_r> sevenseacat: We will play in Final with your country.. :)
mkaesz has joined #ruby
MasterPiece has quit [Ping timeout: 244 seconds]
roolo_ has quit [Ping timeout: 255 seconds]
ajaiswal has quit [Quit: Leaving]
plutonic has quit [Quit: plutonic]
Mon_Ouie has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
<sevenseacat> maybe so
psy_ has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 252 seconds]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hvxgr has joined #ruby
swgillespie has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
dh64 has joined #ruby
SouL has joined #ruby
maletor has joined #ruby
RegulationD has joined #ruby
stunder has quit [Quit: Leaving]
codecop has joined #ruby
doodlehaus has joined #ruby
maletor has quit [Ping timeout: 246 seconds]
<shevy> what is the sport... koala hunting?
RegulationD has quit [Ping timeout: 272 seconds]
nfk has joined #ruby
Morkel has quit [Quit: Morkel]
tokik has quit [Ping timeout: 265 seconds]
doodlehaus has quit [Ping timeout: 246 seconds]
nii236 has joined #ruby
<arup_r> shevy: no :( ICC worldcup
<sevenseacat> cricket!
<arup_r> like FIFA
tokik has joined #ruby
<arup_r> :P
<sevenseacat> like fifa, but not crap.
MasterPiece has joined #ruby
fabrice31 has quit [Remote host closed the connection]
bal has joined #ruby
<arup_r> lol
fabrice31 has joined #ruby
<arup_r> sevenseacat: likes Gilly
oki has joined #ruby
<shevy> what the heck is cricket
<shevy> I'd so turn this game into a slugfest with my bat
roolo has joined #ruby
armyriad has joined #ruby
elaptics is now known as elaptics_away
ismaelga has joined #ruby
<sevenseacat> awesome.
michael_mbp has quit [Excess Flood]
roolo has quit [Ping timeout: 252 seconds]
michael_mbp has joined #ruby
Takle has joined #ruby
ismaelga has quit [Ping timeout: 272 seconds]
neanderslob_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neanderslob has joined #ruby
roolo has joined #ruby
Synthbread has joined #ruby
sarahbunny is now known as sarahbunny|carro
roolo has quit [Ping timeout: 264 seconds]
sarahbunny|carro is now known as sarahbunny
polysics has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<panga> shevy: arup_r is there a gem that lets me to use methods like .update .remove .create instead of sending raw queries via .execute for sqlite3
<panga> i saw how its done like that in rails, wondering same exists for ruby
polysics has joined #ruby
<sevenseacat> you might be looking for the sequel gem
Hijiri has joined #ruby
anaeem1 has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
<panga> sevenseacat: thanks, looking at it
anaeem1 has quit [Remote host closed the connection]
jimms has joined #ruby
lemur has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
wottam has joined #ruby
roolo has joined #ruby
despai has joined #ruby
lemur has joined #ruby
ta has joined #ruby
polysics has quit [Ping timeout: 264 seconds]
despai has quit [Client Quit]
pontiki has quit [Quit: g'nite]
terlar has joined #ruby
terlar has quit [Client Quit]
despai has joined #ruby
FooMunki_ is now known as FooMunki
ringaring has joined #ruby
ringarin has joined #ruby
ta has quit [Ping timeout: 252 seconds]
lemur has quit [Ping timeout: 265 seconds]
roolo has quit [Ping timeout: 265 seconds]
roolo has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ringaring has joined #ruby
ringaroses2 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
ringaring has quit [Client Quit]
ringaroses2 has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
andikr has joined #ruby
fabrice31_ has joined #ruby
agrinb has joined #ruby
terlar has joined #ruby
fgo has joined #ruby
krz has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
krz has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
terlar has quit [Client Quit]
agrinb has quit [Ping timeout: 256 seconds]
fgo has quit [Ping timeout: 256 seconds]
despai has joined #ruby
bayed has joined #ruby
duncannz has quit [Remote host closed the connection]
mroach has quit [Quit: mroach]
djbkd_ has quit [Remote host closed the connection]
terlar has joined #ruby
despai has quit [Client Quit]
ki0 has joined #ruby
roolo has joined #ruby
adamjleonard has quit [Quit: Leaving...]
ta has joined #ruby
Rhainur1 has quit [Quit: Leaving.]
paolooo has quit [Ping timeout: 246 seconds]
systemd0wn has quit [Read error: Connection reset by peer]
lidaaa has quit [Ping timeout: 244 seconds]
<certainty> moin ok i seem to be dump today. Given a range i want to enumerate all subranges such that they're each 1 element shorter. Example: (1..5) #=> [(1..5),(2..5),(3..5),(4..5),(5..5)]
sent1nel has joined #ruby
<certainty> there must be a simple way, no?
systemd0wn has joined #ruby
<certainty> i have the feeling that i could zip it
adamjleonard has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
sent1nel has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
Guest123 has joined #ruby
<certainty> ok got it
<certainty> not with ranges but with arrays
<certainty> >> 1.upto(5).zip(Array.new(5,5))
<eval-in> certainty => [[1, 5], [2, 5], [3, 5], [4, 5], [5, 5]] (https://eval.in/292564)
<certainty> that sufficient
roolo has joined #ruby
jheg has quit [Quit: jheg]
kifla has joined #ruby
charliesome has joined #ruby
<kifla> Hello
<kifla> i have a problem with OpenSSL
<kifla> SSLSocket::peer_cert
<kifla> when ever i try to get it i get null
ta has quit [Remote host closed the connection]
Joufflu has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 250 seconds]
strixd has joined #ruby
adamjleonard has quit [Quit: Leaving...]
arup_r has quit [Remote host closed the connection]
Ivision has quit [Remote host closed the connection]
allenn has joined #ruby
jenrzzz has joined #ruby
wallerdev has joined #ruby
livathinos has joined #ruby
adamjleonard has joined #ruby
roolo has joined #ruby
_Andres has joined #ruby
msgodf has joined #ruby
roolo_ has joined #ruby
ismaelga has joined #ruby
<atom3> hi ruby.
roolo has quit [Ping timeout: 245 seconds]
yxejamir has joined #ruby
<panga> https://github.com/jeremyevans/sequel im looking at this, posts.where('stamp < ?', Date.today - 3).delete , can you use ? mark like that ?
<panga> what would it mean stamp is lower than ?
Takle has quit [Remote host closed the connection]
Lorn3r has joined #ruby
mroach has joined #ruby
<certainty> zip [1..4] (repeat 5) ... is not much shorter to be fair
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty> w00ps wrong window :)
roolo_ has quit [Ping timeout: 256 seconds]
<atom3> I am looking at local development in a nginx enviornment, and have successfully set up a passenger environment. I am wondering whats the general opinion around passenger and unicorn. does one have a clear advantage over the other, etc...
adamjleonard has quit [Quit: Leaving...]
aswen has joined #ruby
aapole has joined #ruby
psy_ has joined #ruby
roolo has joined #ruby
psy_ has quit [Max SendQ exceeded]
ismaelga has quit [Ping timeout: 272 seconds]
fabrice31_ has quit [Remote host closed the connection]
psy_ has joined #ruby
fabrice31 has joined #ruby
<kifla> guys please help
enterprisedc has quit [Quit: enterprisedc]
kalusn has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
Rollabunna has quit [Remote host closed the connection]
anaeem1 has joined #ruby
kalusn has quit [Remote host closed the connection]
kalusn has joined #ruby
Rollabunna has joined #ruby
fgo has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
jimms has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<panga> hi atom3
<panga> long time no see
oo_ has quit [Remote host closed the connection]
antgel has joined #ruby
jimms has joined #ruby
oo_ has joined #ruby
arup_r has joined #ruby
amacou has joined #ruby
michael_mbp has quit [Excess Flood]
oo_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 246 seconds]
decoponyo has joined #ruby
huddy has joined #ruby
keen__________72 has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
oo_ has joined #ruby
agrinb has joined #ruby
keen__________72 has joined #ruby
decoponio has quit [Ping timeout: 264 seconds]
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
watmm1 has left #ruby [#ruby]
craigp has joined #ruby
Morkel has joined #ruby
jonr22 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
michael_mbp has quit [Excess Flood]
ta has joined #ruby
marr has joined #ruby
phansch has joined #ruby
michael_mbp has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Cust0sL1men has joined #ruby
swartwulf has quit [Remote host closed the connection]
ghr has joined #ruby
vtunka has joined #ruby
joonty has joined #ruby
blandflakes has quit [*.net *.split]
shepherd has quit [*.net *.split]
m8 has joined #ruby
RegulationD has joined #ruby
michael_mbp has quit [Excess Flood]
rkgudboy has joined #ruby
mikepack has joined #ruby
michael_mbp has joined #ruby
nii236 has quit [Ping timeout: 265 seconds]
djbkd_ has joined #ruby
rohit has joined #ruby
roolo has joined #ruby
rohit is now known as Guest85525
rkgudboy has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
RegulationD has quit [Ping timeout: 246 seconds]
sigurding has joined #ruby
dumdedum has joined #ruby
elaptics_away is now known as elaptics
kapil___ has quit [Quit: Connection closed for inactivity]
chipotle has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest85525 has quit [Read error: Connection reset by peer]
kartouch is now known as kartouch|afk
rkgudboy has joined #ruby
kartouch|afk is now known as kartouch
roolo has quit [Ping timeout: 272 seconds]
dumdedum has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
fabrice31_ has joined #ruby
ta has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Takle has joined #ruby
kyb3r_ has quit [Quit: Leaving]
fabrice31_ has quit [Remote host closed the connection]
doodlehaus has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
fabrice31 has joined #ruby
lkba_ has quit [Ping timeout: 264 seconds]
rkmylo has joined #ruby
dumdedum has joined #ruby
doodlehaus has quit [Ping timeout: 265 seconds]
amacou has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
rkgudboy has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
jimms has quit [Remote host closed the connection]
<atom3> panga: i think you confuse me with someone?
ta has joined #ruby
kifla has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
oo_ has joined #ruby
m8 has quit [Quit: Sto andando via]
rkgudboy has joined #ruby
Ivision has joined #ruby
Pumukel has joined #ruby
kedare has quit [Quit: ZNC - http://znc.in]
ismaelga has quit [Ping timeout: 250 seconds]
<aep> is there an event based http server framework that can coexist with long-running connections (specifically mqtt)
selu has joined #ruby
djellemah has joined #ruby
<toretore> thin is em based
ravenzz has quit [Quit: Connection closed for inactivity]
ptrrr has joined #ruby
Grumelo has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
<shmoon_> I've seen some people do require 'rubygems'; require 'bundler'; is there a special reason ? i dont see them using anything out of them then, could also be wrong for sure
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
_ixti_ has joined #ruby
serivich has joined #ruby
sandelius has joined #ruby
nfk has quit [Quit: yawn]
ptrrr has quit [Quit: ptrrr]
Lucky___ has joined #ruby
rkgudboy has quit [Read error: Connection reset by peer]
zorak8 has quit [Ping timeout: 264 seconds]
rkgudboy has joined #ruby
<toretore> require 'rubygems'; was for earlier ruby versions
agrinb has joined #ruby
<toretore> require 'bundler' i guess is when you need to use it for something?
Grumelo has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
agrinb_ has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
jimms has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 250 seconds]
agrinb_ has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jespada has joined #ruby
leafybasil has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
<shmoon_> toretore: earlier ruby versions why ?
<shmoon_> i mean gem is installed, lookup your load path for requiring other gems, just wondering why
rkgudboy has quit [Read error: Connection reset by peer]
rkgudboy has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
Pharaoh2_ has joined #ruby
serivich has joined #ruby
Takle has quit [Remote host closed the connection]
hmsimha has quit [Quit: Leaving]
n008f4g_ has joined #ruby
Pharaoh2 has quit [Ping timeout: 264 seconds]
<arup_r> Hi.. Any body ever read Sandi Metz's rule TRUE ?
roolo has joined #ruby
yxejamir has joined #ruby
workmad3 has joined #ruby
Pumukel has joined #ruby
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Pharaoh2_ has quit [Ping timeout: 240 seconds]
Pharaoh2 has joined #ruby
jimms_ has joined #ruby
jimms has quit [Ping timeout: 244 seconds]
roolo has quit [Ping timeout: 246 seconds]
Lucky___ has quit [Quit: Textual IRC Client: www.textualapp.com]
sent-hil has quit [Quit: Connection closed for inactivity]
Pharaoh2_ has joined #ruby
Pharaoh2_ has quit [Max SendQ exceeded]
Pharaoh2_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Pharaoh2_ has quit [Max SendQ exceeded]
apeiros_ has joined #ruby
Pharaoh2 has quit [Ping timeout: 272 seconds]
jimms_ has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
Pharaoh2 has joined #ruby
reinaldob has joined #ruby
emocakes has quit [Ping timeout: 245 seconds]
leafybasil has joined #ruby
philwantsfish1 has joined #ruby
timonv has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
aapole has quit [Ping timeout: 264 seconds]
n008f4g_ has quit [Ping timeout: 250 seconds]
philwantsfish has quit [Ping timeout: 246 seconds]
ArchRogem has joined #ruby
Takle has joined #ruby
<panga> a = 5; b = a , and i want B to be duplicate of a with different address, how can i do it?
vtunka has quit [Remote host closed the connection]
<panga> i did .dup and it doesnt work as i want
chridal has joined #ruby
<panga> and .clone doesnt work as i want
<panga> :(
Pumukel has joined #ruby
<Fluent> >> a = 5; b = a; b += 3; puts "a is #{a.object_id} | b is #{b.object_id}"
<eval-in> Fluent => a is 11 | b is 17 ... (https://eval.in/292582)
Pumukel has quit [Remote host closed the connection]
<Fluent> They don't have the same address
<panga> k
<workmad3> object_id != address
<panga> how about active records
vtunka has joined #ruby
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
<Fluent> How are you able to get the address of the variable?
<Fluent> Because I thought that wasn't possible.
<canton7> it's certainly not something you should ever want to do
<panga> this is sqlite3 table and two variables have different ID yet if i change one , another one gets changed too
mostlybadfly has quit [Quit: Connection closed for inactivity]
<apeiros_> you don't get addresses in ruby anyway
<panga> i think its the sqlite thing then
<panga> :(
<apeiros_> ruby doesn't have pointers in the sense C has them
<Fluent> Yes, they do that by default
<Fluent> They get assigned object id's
mkaesz has quit [Remote host closed the connection]
<panga> Fluent: what i was trying to do, is to make a variable on RAM and dup table into it, so everytime i modify table it wouldn't write to disk
<Fluent> panga: Your issue is with sqlite3
<panga> and i failed
<panga> :(
<panga> yop
<panga> its sqlite3 thing
<panga> but any workaround to achieve that?
mkaesz has joined #ruby
<panga> i wouldn't want to modify mastercopy/ write disk everytime
<panga> but rather want it on RAM first
rkgudboy has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
bruno- has joined #ruby
<Fluent> I don't know how you would make a table in sqlite3 in only RAM, sorry.
rkgudboy has joined #ruby
<panga> its ok..
<rooby> I have this script that pulls streams from twitch.tv api and then lists them on a channel in the syntax "http://www.twitch.tv/streamerjack (444)" where "444" is the viewer number, and I tried doing this to get the streams sorted by the viewer number in the parenthesis but it's only sorting them by the second to last character, how can I do it to get it sorted by the entire number from the
<rooby> parenthesis?
<rooby> `(#{s[1]})` is where the viewer number is stored https://gist.github.com/dinkmaster/3e4e110e0c6c800d9227
<canton7> panga, use the database url field - pass :memory: instead of the location of a .sqlite file
<panga> uh ok
<canton7> and others
<panga> canton7: so memory first, and import file onto it?
<canton7> trying to remember how I did it
mkaesz has quit [Ping timeout: 245 seconds]
<canton7> essentially, yes. create an in-memory DB and copy a file-based DB into it
<canton7> now... you probably don't actually want that
<canton7> you probably want to muck about with the WAL/etc settings
<panga> canton7: why not? i don't want to modify master copy everytime
<panga> uh
<panga> i see
<panga> so i'd just adjust commit frequency
ismaelga has quit [Ping timeout: 246 seconds]
<panga> rather
<canton7> ah, you're not doing it for speed? you're doing it so you can rollback?
<panga> not for speed at all
<Fluent> rooby: You can't push all the numbers into a list, then just call.sort on the list?
<panga> to be safe around master copy
<canton7> dunno what would be best then
bruno- has quit [Ping timeout: 252 seconds]
<Fluent> I guess you would actually want to use a hash for this
<canton7> last time I loaded an existing sqlite database into memory was for speed. I did that from C#, but I remember creating the in-memory db then loading into it
<panga> ok i will work around and look at that too
<canton7> especially example 1
<rooby> Fluent: it's someone else's bot, I barely know the basics :/
<Fluent> Well, you should post the source code in a secret gist at least. Otherwise no one can really help you. That is if you don't know how to program.
<panga> canton7: thank you
<Fluent> s/don't know/barely know/
roolo has joined #ruby
rocknrollmarc has joined #ruby
wallerdev has quit [Quit: wallerdev]
<canton7> panga, dunno how that'll translate into ruby, but that's the API I used :P
<panga> canton7: it was actually got to do with the gem('sequel') im using for sqlite3
agrinb has joined #ruby
<panga> and it has many options about auto-commit, manuel commit etc
<panga> guess this is how i should work around
<panga> but thanks for all help
<canton7> dunno what sequel uses for sqlite underneath
thsig has joined #ruby
sarahbunny has quit [Quit: synapse]
gregf_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 255 seconds]
jonr22 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
ta has quit [Remote host closed the connection]
rkgudboy has quit [Ping timeout: 246 seconds]
* arup_r loves design but don't know how to make it..
* arup_r wants someone to feed hims what is T.R.U.E ( by Sandi Metz)
davedev24_ has quit [Remote host closed the connection]
Lucky___ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vtunka has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 265 seconds]
kiely has joined #ruby
<arup_r> shevy: One day I will have my own ship...
martianixor has quit [Quit: Leaving]
kiely is now known as kielybunny
RegulationD has joined #ruby
<olivier_bK> how can i call method in hash ?
gfawcettpq has joined #ruby
<olivier_bK> i try to call default_key in $host_info
<arup_r> olivier_bK: ^^
<Fluent> rooby: I think it's because of the way the data is being parsed. s[1] which is where the code is implying the number of viewers is at, is only the 2nd digit in the number
psy_ has quit [Read error: No route to host]
tvw has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 246 seconds]
<Fluent> Can you give me an example output of s[0] and s[1] from the get_streams_url_and_views method
fabrice31 has joined #ruby
Obfuscate has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 250 seconds]
<olivier_bK> arup_r, lol..
<arup_r> I did _tweak_
<arup_r> :p
<olivier_bK> arup_r, almost i dont get the value of my method but he call it
sivsushruth has joined #ruby
ghostpl_ has joined #ruby
<arup_r> means?
<rooby> Fluent: when i do !streams it will list streams like this on the chan <StreamBOT> [Online streamers] http://www.twitch.tv/andrew (590) http://www.twitch.tv/bobby (761)
Obfuscate has joined #ruby
psy_ has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
<rooby> its not sorting them by any number with the full code i pasted
Takle has quit [Remote host closed the connection]
krz has quit [Ping timeout: 244 seconds]
lidaaa has joined #ruby
anarang_ has joined #ruby
anarang has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
<olivier_bK> arup_r, i means when i execute my script i get that key -> [:default_key] and not key -> ["/home/user/.ssh/id_rsa"
rocknrollmarc has joined #ruby
krz has joined #ruby
<arup_r> now also ?
<arup_r> It shouldn't
ArchRogem has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
<gr33n7007h> rooby: how do you want them sorted, by number, letter, ascending decending ?
lidaaa has quit [Ping timeout: 272 seconds]
hanmac has joined #ruby
rocknrollmarc has quit [Ping timeout: 272 seconds]
ta has joined #ruby
<olivier_bK> arup_r, yes
decoponyo has quit [Read error: Connection reset by peer]
<rooby> gr33n7007h: by descending number
decoponio has joined #ruby
Takle has joined #ruby
Aswebb_ has joined #ruby
<gr33n7007h> >> [ "http://www.twitch.tv/foo (109)", "http://www.twitch.tv/streamerjack (23)", "http://www.twitch.tv/streamerjack (78)" ].sort_by{ |stream| -(stream[/\d+/].to_i) }
<gr33n7007h> like this?
<chridal> Is there anyone here that could help me with an issue with active_model_serializers?
<workmad3> olivier_bK: #readingfail
<workmad3> olivier_bK: maybe you should try whan arup_r suggested, rather than something completely different
rodfersou has joined #ruby
doodlehaus has joined #ruby
commmmodo has joined #ruby
<arup_r> ^^
<rooby> gr33n7007h: yes
joonty has quit [Quit: joonty]
doodlehaus has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
doodlehaus has joined #ruby
thsig has quit [Remote host closed the connection]
paradoja has joined #ruby
rkgudboy has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
strixd has quit [Quit: 500]
hs366 has joined #ruby
rocknrollmarc has joined #ruby
penzur has joined #ruby
ismaelga has joined #ruby
ldnunes has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
serivich has joined #ruby
decoponio has joined #ruby
kielybunny is now known as kiely
Ivision_ has joined #ruby
Ivision has quit [Read error: Connection reset by peer]
kiely is now known as kielybunny
agrinb has joined #ruby
ismaelga has quit [Ping timeout: 265 seconds]
mkaesz has joined #ruby
withnale_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
<rooby> gr33n7007h: that works but if i add a color code to the output it screws up again, any way i can catch only the numbers from within ()
agrinb has quit [Ping timeout: 256 seconds]
<gr33n7007h> >> [ "foo (34)", "bar (45)", "baz (3)", "moo (23)", "mar (109)" ].map{ |stream| stream[/\d+/] } # like this?
<eval-in> gr33n7007h => ["34", "45", "3", "23", "109"] (https://eval.in/292610)
p3ery has joined #ruby
Jetchisel has joined #ruby
MasterPiece has quit [Quit: Leaving]
p3ery has quit [Client Quit]
AndyBotwin has quit [Remote host closed the connection]
<workmad3> gr33n7007h: I think he meant more 'stream[/(?<=\()\d+/]'
arup_r has joined #ruby
Timgauthier has joined #ruby
<workmad3> >> ["foo (34) 123", "bar 45 (45)", "44444 baz (3)"].sort_by{|s| -(s[/(?<=\()\d+/].to_i)}
<eval-in> workmad3 => ["bar 45 (45)", "foo (34) 123", "44444 baz (3)"] (https://eval.in/292615)
<gr33n7007h> weren't to sure what he was asking to be honest
Guest123 has joined #ruby
<rooby> yes
<workmad3> gr33n7007h: ANSI colour codes are numbers, so I'm guessing his sorting was picking up those instead of the counts inside () :)
<rooby> thank you very much!
kielybunny is now known as kiely
<rooby> both of you
razieliyo has joined #ruby
<rooby> have a lovely day
<workmad3> rooby: your next task is to understand how that works ;)
tkuchiki has quit [Ping timeout: 240 seconds]
<gr33n7007h> just add the ansi color codes to the string class :)
<shmoon_> ClassName#new - new is a class method right ?
<shmoon_> not an instance method
<workmad3> shmoon_: correct
roshanavand has quit [Ping timeout: 250 seconds]
fabrice31_ has joined #ruby
roshanavand has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
enterprisedc has joined #ruby
rkgudboy has quit [Remote host closed the connection]
phutchins has joined #ruby
<apeiros_> rooby: why don't you sort before generating the string?
<apeiros_> that is, e.g. in get_streams_url_and_views
livathin_ has joined #ruby
alex88 has joined #ruby
drawingthesun has joined #ruby
_honning_ has joined #ruby
livathin_ has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 246 seconds]
centrx has joined #ruby
Grumelo has joined #ruby
pat777 has joined #ruby
Takle has quit [Remote host closed the connection]
p3ery has joined #ruby
djbkd_ has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 264 seconds]
djbkd_ has joined #ruby
lanemeyer has quit [Ping timeout: 256 seconds]
krz has quit [Ping timeout: 245 seconds]
dys has joined #ruby
n1lo has joined #ruby
djbkd_ has quit [Ping timeout: 272 seconds]
p3ery has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
pat777 has quit [Quit: WeeChat 0.4.2]
pat777 has joined #ruby
drawingthesun has quit [Quit: Leaving]
pat777 has quit [Client Quit]
pat777 has joined #ruby
sigurding has joined #ruby
maximski has joined #ruby
<arup_r> workmad3: can you refactor ? s[/(?<=\()\d+/] .. I think no one can write clean and refactored regex code :p
<arup_r> because it is ugly by nature
<workmad3> arup_r: why does it need refactoring? it's already concise and does what is needed minimally
hgl has quit [Ping timeout: 255 seconds]
<arup_r> workmad3: that's a jokes friend
<arup_r> and you missed it
* workmad3 shrugs
<arup_r> rgex is kinda a group symbols work together... to meet something..
amacou has joined #ruby
arturmartins has joined #ruby
kham has joined #ruby
amacou has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
timonv has quit [Quit: WeeChat 1.1.1]
kham has quit [Client Quit]
ismaelga has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
jesa has joined #ruby
timonv has joined #ruby
jonr22 has joined #ruby
jesa has left #ruby ["AndroIRC"]
agrinb has quit [Ping timeout: 265 seconds]
mbwe has joined #ruby
SouL has quit [Ping timeout: 264 seconds]
Ivision_ has quit [Remote host closed the connection]
Ivision has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kham has joined #ruby
Ivision has quit [Remote host closed the connection]
decoponyo has joined #ruby
rdark has joined #ruby
arup_r has quit [Remote host closed the connection]
decoponio has quit [Ping timeout: 264 seconds]
mhenrixon is now known as mhenrixon|afk
jonr22 has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
amacou has joined #ruby
charliesome has quit [Quit: zzz]
ismaelga has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
Mia has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
Soda has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
livingstn has joined #ruby
Takle has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
d10n-work has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
rdark has quit [Ping timeout: 256 seconds]
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
mhenrixon|afk is now known as mhenrixon
Ivision has joined #ruby
cpt_yossarian has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
Spami has joined #ruby
oo_ has quit [Remote host closed the connection]
gccostabr has joined #ruby
Spami has quit [Client Quit]
kapil___ has joined #ruby
aclearman037 has joined #ruby
anarang_ has quit [Quit: Leaving]
arup_r has joined #ruby
brb3 has joined #ruby
amacou has quit [Remote host closed the connection]
panga has quit [Remote host closed the connection]
tedstriker has joined #ruby
Advocation has quit [Quit: Advocation]
amacou has joined #ruby
psy_ has quit [Read error: No route to host]
djellemah has quit [Quit: Leaving]
iamjarvo has joined #ruby
arup_r has quit []
DEA7TH has joined #ruby
DEA7TH has joined #ruby
rdark has quit [Ping timeout: 256 seconds]
fgo has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
rdark has joined #ruby
dblessing has joined #ruby
anaeem1 has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
doodlehaus has joined #ruby
skj3gg has joined #ruby
krz has joined #ruby
Lewix has joined #ruby
bruno- has joined #ruby
amacou has quit [Remote host closed the connection]
Lewix has quit [Client Quit]
amacou has joined #ruby
mroach has quit [Quit: mroach]
rocknrollmarc has joined #ruby
penzur has quit [Quit: Leaving]
krz has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
doodlehaus has quit [Remote host closed the connection]
ismaelga has joined #ruby
claptor has quit [Quit: this channel is bakas]
penzur has joined #ruby
sambao21 has joined #ruby
nini1294 has joined #ruby
penzur has quit [Client Quit]
rdark has quit [Quit: leaving]
zorak8 has joined #ruby
amacou has quit [Remote host closed the connection]
rdark has joined #ruby
penzur has joined #ruby
Takle has quit [Remote host closed the connection]
hgl has joined #ruby
lolmaus_ has joined #ruby
vtunka has joined #ruby
penzur has quit [Client Quit]
n008f4g_ has joined #ruby
nettoweb has joined #ruby
krz has joined #ruby
lanemeyer has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 1.0.1]
<nini1294> Hey
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oleo__ has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
oleo__ has joined #ruby
bluOxigen has quit []
juanpaucar has joined #ruby
penzur has joined #ruby
arturmartins has joined #ruby
agrinb has joined #ruby
samsquanch has joined #ruby
mroach has joined #ruby
arturmartins has quit [Client Quit]
gfawcettpq has quit [Ping timeout: 246 seconds]
FooMunki has quit [Read error: Connection reset by peer]
shum has joined #ruby
Takle has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
nini1294 has quit [Ping timeout: 256 seconds]
skj3gg has quit [Quit: ZZZzzz…]
jimms has joined #ruby
gccostabr has quit [Ping timeout: 244 seconds]
commmmodo has quit [Quit: commmmodo]
Lorn3r has quit [Quit: Leaving]
FooMunki_ has joined #ruby
polysics has joined #ruby
gccostabr has joined #ruby
bluOxigen has joined #ruby
DEA7TH has quit [Remote host closed the connection]
arturmartins has joined #ruby
charliesome has quit [Quit: zzz]
bluOxigen has quit [Client Quit]
agrinb has joined #ruby
ych4k3r has joined #ruby
nini1294 has joined #ruby
skj3gg has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
kp666 has quit [Quit: Leaving]
triple_b has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
tier has joined #ruby
kobain has joined #ruby
gfawcettpq has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
serivich has quit [Ping timeout: 250 seconds]
abyss has quit [Ping timeout: 245 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Rapier- has joined #ruby
serivich has joined #ruby
DEA7TH has joined #ruby
abyss has joined #ruby
rocknrollmarc has quit [Ping timeout: 256 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has quit [Ping timeout: 272 seconds]
mroach has joined #ruby
Pharaoh2 has joined #ruby
<ddv> nice didn't expect ativejobs to be this easy to ue
codeurge has joined #ruby
vtunka has quit [Quit: Leaving]
rubytor has joined #ruby
joonty has quit [Quit: joonty]
rdark has joined #ruby
quazimodo has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
fmcgeough has joined #ruby
fabrice31 has quit [Remote host closed the connection]
silkfox has joined #ruby
fabrice31 has joined #ruby
felltir has joined #ruby
vtunka has joined #ruby
ta has quit [Remote host closed the connection]
sankaber has joined #ruby
roshanavand has joined #ruby
iamninja has joined #ruby
fabrice31_ has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mroach has quit [Ping timeout: 272 seconds]
nick___ has joined #ruby
nick___ has quit [Remote host closed the connection]
roshanavand2 has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
iamninja has quit [Client Quit]
Advocation has joined #ruby
iamninja has joined #ruby
hsps__ has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
Timgauthier is now known as timgauthier_away
iamninja has quit [Client Quit]
roshanavand1 has quit [Ping timeout: 245 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Parker0 has joined #ruby
iamninja has joined #ruby
Parker0 has quit [Read error: Connection reset by peer]
penzur has quit [Quit: Leaving]
arturmartins has quit [Quit: Leaving...]
thsig has joined #ruby
Timgauthier has joined #ruby
djcp has joined #ruby
dblessing has joined #ruby
govg has joined #ruby
hsps_ has quit [Ping timeout: 264 seconds]
Ivision has quit [Remote host closed the connection]
msmith has joined #ruby
serivich has joined #ruby
JDiPierro has joined #ruby
aclearman037 has joined #ruby
oo_ has joined #ruby
arturmartins has joined #ruby
dblessing has quit [Ping timeout: 256 seconds]
thsig has quit [Remote host closed the connection]
RandyT has quit [Read error: Connection reset by peer]
timonv has quit [Quit: WeeChat 1.1.1]
ghostpl_ has quit [Remote host closed the connection]
arturmartins has quit [Client Quit]
RandyT has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
rhg135|zzz is now known as rhg135
RegulationD has joined #ruby
iamninja has quit [Quit: WeeChat 1.1.1]
iamninja has joined #ruby
amacou has joined #ruby
kaiZen- has joined #ruby
zenith_ has joined #ruby
timonv has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
ghostpl_ has joined #ruby
ponga has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
roshanavand2 has quit [Ping timeout: 252 seconds]
pandaant has joined #ruby
triple_b has quit [Ping timeout: 250 seconds]
dazeddev has quit [Remote host closed the connection]
epochwolf has quit [Excess Flood]
epochwolf has joined #ruby
sprihodko has joined #ruby
rkmylo has quit []
ghostpl_ has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
jonr22 has joined #ruby
foureight84 has joined #ruby
adriancb has joined #ruby
uri__ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enebo has joined #ruby
zenith_ has quit [Ping timeout: 255 seconds]
merc has joined #ruby
merc has quit [Client Quit]
jerius has joined #ruby
merc has joined #ruby
foureight84 has quit [Client Quit]
jimms_ has joined #ruby
havenwood has joined #ruby
dblessing has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 244 seconds]
skj3gg has quit [Quit: ZZZzzz…]
zenith_ has joined #ruby
plashchynski has joined #ruby
thsig has joined #ruby
anaeem1_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has joined #ruby
yxejamir has quit [Remote host closed the connection]
uptownhr has joined #ruby
maximski has quit []
agrinb has joined #ruby
doodlehaus has joined #ruby
lxsameer has quit [Quit: Leaving]
Jinkins has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
lkba has joined #ruby
jhass has quit [Quit: Bye]
aamador has joined #ruby
SouL has joined #ruby
freerobby has joined #ruby
ta has joined #ruby
plashchynski has quit [Quit: plashchynski]
jhass has joined #ruby
Spooner has joined #ruby
werelivinginthef has joined #ruby
polysics has quit []
rdark has quit [Quit: leaving]
ponga has quit [Quit: Leaving...]
rdark has joined #ruby
ponga has joined #ruby
plashchynski has joined #ruby
sent1nel has joined #ruby
ghostpl_ has joined #ruby
davedev24_ has joined #ruby
tier_ has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
tier has quit [Ping timeout: 252 seconds]
chinmay_dd has joined #ruby
jimms_ has quit [Ping timeout: 256 seconds]
amacou has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
zenith_ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
amacou has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
mitchellhenke has joined #ruby
JDiPierro has joined #ruby
sambao21 has joined #ruby
dfinninger has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
sambao21 has quit [Client Quit]
tunaCanBruh has joined #ruby
bruno- has joined #ruby
<olivier_bK> how can i get a new line for each file ?
oki has quit [Ping timeout: 255 seconds]
tier_ has quit [Ping timeout: 255 seconds]
ismaelga has quit [Remote host closed the connection]
it0a has joined #ruby
Channel6 has joined #ruby
rbennacer has joined #ruby
phutchins has quit [Quit: Lost terminal]
shellfu_afk is now known as shellfu
attamusc has joined #ruby
sambao21 has joined #ruby
jimms has joined #ruby
aamador has quit [Remote host closed the connection]
mikepack has joined #ruby
oo_ has joined #ruby
<olivier_bK> if i use puts i get multiple line
Soda has quit [Remote host closed the connection]
<olivier_bK> for the same file
arturmartins has joined #ruby
<centrx> oh I see
plashchynski has joined #ruby
<centrx> maybe just put a blank puts at the end of each file's output?
ta has quit [Remote host closed the connection]
<havenwood> olivier_bK: or add a "\n" to the end of the line you're puts'n
<Fluent> Probably because you are using puts and \r\n which is going to use two carriage returns
ta has joined #ruby
b4rbz has joined #ruby
<olivier_bK> i going to try
<havenwood> Fluent: it's actually that the body and newline are separate
<havenwood> Fluent: they aren't synced
<havenwood> Fluent: an explicit newline is
Takle has quit [Remote host closed the connection]
<Fluent> Ahhh
yxejamir has joined #ruby
mostlybadfly has joined #ruby
<DefV> /5
rkgudboy has joined #ruby
rkgudboy has quit [Max SendQ exceeded]
msmith has quit [Remote host closed the connection]
agrinb has joined #ruby
Takle_ has joined #ruby
SouL_ has joined #ruby
SouL_ has quit [Read error: Connection reset by peer]
allcentury has quit [Quit: WeeChat 1.0]
craigp has quit [Ping timeout: 252 seconds]
pat777 has quit [Quit: WeeChat 0.4.2]
confucius has joined #ruby
aamador has joined #ruby
rkgudboy has joined #ruby
lampd1 has quit []
mikepack has quit [Remote host closed the connection]
roshanavand has joined #ruby
ismaelga has joined #ruby
mikepack has joined #ruby
dEPy has joined #ruby
<dEPy> Anyone using PgSearch gem?
kapil___ has quit [Quit: Connection closed for inactivity]
willharrison has joined #ruby
<dEPy> I have multisearchable set up but looks like it's not updating or not updating for each tak
<dEPy> tak = task (model)
b4rbz has quit [Read error: Connection reset by peer]
b4rbz has joined #ruby
oo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
einarj has quit [Remote host closed the connection]
Deele has joined #ruby
tagrudev has quit [Remote host closed the connection]
Pharaoh2_ has joined #ruby
b4rbz has quit [Read error: Connection reset by peer]
sinkensa_ has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Ping timeout: 256 seconds]
aganov has quit [Quit: Leaving]
rkgudboy has quit [Ping timeout: 250 seconds]
fryguy9 has joined #ruby
tier has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
plashchynski has quit [Quit: plashchynski]
lessless has joined #ruby
rocknrollmarc has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
speakingcode has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
rorra has joined #ruby
b4rbz has joined #ruby
Dmr has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
b4rbz has quit [Quit: WeeChat 0.4.1]
max96at|off is now known as max96at
arturmartins has quit [Quit: Leaving...]
rkmylo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lolmaus_ has quit [Remote host closed the connection]
nini1294 has quit [Ping timeout: 252 seconds]
lolmaus_ has joined #ruby
arturmartins has joined #ruby
msmith has joined #ruby
jimms has quit [Ping timeout: 255 seconds]
lolmaus_ has quit [Client Quit]
vdamewood has joined #ruby
dfinninger has joined #ruby
bal has quit [Quit: bal]
Jinkins has joined #ruby
giuseppesolinas has joined #ruby
jimms has joined #ruby
nini1294 has joined #ruby
jottr has joined #ruby
djbkd_ has joined #ruby
sevvie has joined #ruby
nini1294 has quit [Read error: Connection reset by peer]
nini1294 has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
molavy has joined #ruby
<molavy> hi
ta has quit [Remote host closed the connection]
<molavy> how can I return function
rkgudboy has joined #ruby
jshultz has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> molavy: Not sure what you mean by that?
rdark has quit [Quit: leaving]
<molavy> def literal return @db.literal end
<centrx> molavy, Return a Proc or lambda (which is a kind of Proc)
mkaesz has quit [Remote host closed the connection]
<molavy> what? I am newbie in ruby
<havenwood> molavy: the last line of the method is implicitly returned. what are you trying to do?
mikepack has joined #ruby
<ddv> molavy: use a proc
<molavy> I think I got it
<havenwood> a stabby lambda!
riotjon__ has quit [Remote host closed the connection]
sambao21 has joined #ruby
cpt_yossarian has joined #ruby
tus has joined #ruby
RegulationD has joined #ruby
<molavy> havenwood, thanks
<havenwood> molavy: no prob. though I still don't know what we're talking about! i just vote stabby lambda by default.
<havenwood> >> ->(){}[]
<eval-in> havenwood => nil (https://eval.in/292705)
plashchynski has joined #ruby
vt102 has quit [Remote host closed the connection]
esasse has joined #ruby
rbennacer has quit [Remote host closed the connection]
<havenwood> >> def example meth = __method__; method meth end; [example.call, example.call(:puts)]
<eval-in> havenwood => [#<Method: Object#example>, #<Method: Object(Kernel)#puts>] (https://eval.in/292706)
plashchynski has quit [Client Quit]
DeanH has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
sent1nel has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
hollywood has joined #ruby
ych4k3r has quit [Ping timeout: 264 seconds]
gregf has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
tesuji has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
jimms has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
arup_r has joined #ruby
odigity has quit [Remote host closed the connection]
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
GaryOak_ has joined #ruby
vtunka has quit [Ping timeout: 245 seconds]
<nini1294> Hey. I have an idea to make a sort of helper bot that is basically a ruby program that waits for some message to be sent to it does some processing and then replies back. What would be a good starting point I'm completely lost
blandflakes has joined #ruby
kham has quit [Ping timeout: 246 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
cristi has joined #ruby
<arup_r> Big LoL
<cristi> is there a way to have a gem install an older version of its dependencies?
Channel6 has quit [Quit: Leaving]
<cristi> gem install time_diff -v 0.2.2
<cristi> ERROR: Error installing time_diff:
<cristi> i18n requires Ruby version >= 1.9.3.
livathinos has quit []
<shevy> cristi what ruby version you use
<cristi> I already have installed an older version of i18n that installs on 1.8.x, but it seems time_diff tries to get the latest
whoughton has quit [Ping timeout: 256 seconds]
<cristi> ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
leat has quit [Ping timeout: 246 seconds]
<shevy> hmm
<shevy> one problem is that between 1.8.x and higher ruby versions, the syntax changed slightly
leat has joined #ruby
ta has joined #ruby
<havenwood> cristi: Can you switch to a supported Ruby, Ruby 2.0 or higher?
<shevy> have you tried to find an older gem cristi?
thsig has quit [Remote host closed the connection]
<shevy> perhaps 0.1.0 - June 12, 2008 (13.5 KB)
<shevy> but one day you'll have to abandon 1.8.x :D
<havenwood> nini1294: How do you want to interact with your bot?
craigp has joined #ruby
<cristi> havenwood: I'm stuck with 1.8, I can't install newer ones on this CentOS6
<havenwood> cristi: eek
<shevy> you could always compile a new ruby version into the home directory
blackmesa has quit [Quit: WeeChat 1.1.1]
<havenwood> cristi: You need to be using RPMs or just don't have root?
<havenwood> shevy: that's what i was thinking too
<cristi> I need to use the system ruby
<nini1294> havenwood: I was thinking of making it so that it could be cross platform, maybe an android app and a website as well.
plashchynski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
thsig has joined #ruby
<shevy> you may be digging into history :)
<shevy> if one of the earlier gems does not work, you can always modify the gem and use compatible syntax
kiely is now known as kielybunny
<havenwood> nini1294: There are many options. One would be to create an API with Roda: http://roda.jeremyevans.net/
fabrice31_ has quit [Remote host closed the connection]
tjbiddle has joined #ruby
<havenwood> nini1294: Have you ever done a RESTish API of any sort?
fabrice31 has joined #ruby
chrishough has joined #ruby
sambao21 has joined #ruby
<nini1294> havenwood: I haven't really done that
joshhartigan has joined #ruby
<joshhartigan> I
<havenwood> nini1294: Then there's a good bit to cover, but crafting APIs is a great skill to learn.
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd_ has quit [Read error: Connection reset by peer]
<havenwood> nini1294: I vote make a simple "Hello World" Roda app to start.
djbkd_ has joined #ruby
molavy has quit [Ping timeout: 264 seconds]
commmmodo has joined #ruby
vtunka has joined #ruby
andikr has quit [Remote host closed the connection]
claw___ has quit [Ping timeout: 250 seconds]
<havenwood> nini1294: You may have an easier time finding Sinatra tutorials though. It's not hard to port a small app from Sinatra to Roda though.
<nini1294> havenwood: Thanks for that I'll look into it. How exactly could I host the Roda app.
Timgauthier has quit [Quit: done]
codeurge has joined #ruby
<havenwood> nini1294: Roda is one of many Rack adapters, a very nice one at that.
claw has joined #ruby
<havenwood> nini1294: Rails and Sinatra are the two most popular Rack adapters.
pengin has joined #ruby
allcentury has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
djbkd_ has quit [Ping timeout: 245 seconds]
<havenwood> nini1294: There're a number of hosting options like Heroku, with a free tier and one line deploy. Or you can run a Rack app on your own server.
ta has quit [Remote host closed the connection]
jlast has joined #ruby
<havenwood> nini1294: There're a number of nice Rack web servers to run your Rack app, like Puma, Unicorn, Passenger or Thin.
ismaelga has quit [Remote host closed the connection]
<nini1294> havenwood: I have used rails before but I can't say that I understood too much of the backend and how it worked.
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensa_ has quit [Remote host closed the connection]
felltir has quit []
<havenwood> nini1294: Roda is hugely simpler than Rails. I'd suggest even reading through the codebase, see what you can glean.
raluxgaza has joined #ruby
pengin has quit [Ping timeout: 264 seconds]
pengin_ has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
serivich has quit [Ping timeout: 272 seconds]
<havenwood> nini1294: There're #roda and #sinatra channels too.
Megtastique has joined #ruby
mengu has joined #ruby
ta has joined #ruby
ferr has joined #ruby
<havenwood> nini1294: Here're "Hello World" apps for a variety of Rack adapters: https://github.com/luislavena/bench-micro/tree/master/apps
<havenwood> Including a pure Rack one.
jottr has quit [Ping timeout: 244 seconds]
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
StoneCypher has joined #ruby
rdark has joined #ruby
rubie has joined #ruby
<workmad3> havenwood: I like a pure-rack hello world :) "->(env){[200, {}, ["Hello, world!"]]}'
Spami has joined #ruby
<nini1294> havenwood: Thanks a lot. I guess I have a lot of reading and testing to do :)
jimms has joined #ruby
<havenwood> workmad3: indeed!
<rubie> hi all: i was working on a branch in git, then messed up the code, i then checked out the master branch to start over, but the changes i made on the branch were on the master as well, any ideas?
<havenwood> nini1294: no prob, yell if you get stuck! many of us do Rack apps of one variety or another.
msgodf has quit [Ping timeout: 256 seconds]
<workmad3> rubie: sounds like you didn't commit the changes
Pharaoh2 has joined #ruby
<workmad3> rubie: so all you had was dirty files in the working tree, which get preserved between branch changes (assuming a branch wouldn't delete them or overwrite them... at which point the checkout fails)
<rubie> do you have to commit dirty changes on a branch before switching over to the master?
kham has joined #ruby
<workmad3> rubie: yes, or reset them
davispuh has joined #ruby
<rubie> aww man i didnt' know that
<workmad3> rubie: otherwise they just remain uncommitted
<rubie> can i switch back to the branch, commit changes
<workmad3> rubie: it's ok... you haven't actually committed any changes to any branch from the sounds of it
<rubie> then swtich back to master for the clean code?
<rubie> correct
Soda has joined #ruby
<workmad3> yup... or you can do 'git stash' to stash them, or you could do 'git reset HEAD --hard' on the master branch to clean it out
alex88 has quit []
<rubie> i'll try the commit first
<rubie> thanks so much for your help
<rubie> really saved me
<workmad3> (I'd probably advise against that last one though, if you're unsure, do a git stash for now and then throw away the stash later when you don't need it)
<workmad3> rubie: it's rare to end up in an unrecoverable situation with git, unless you do something really dumb (like rm -rf .git)
<rubie> ya i need to spend a weekend learning more than the absolute basics
plashchynski has quit [Quit: plashchynski]
<workmad3> rubie: you can get a long way just by learning the difference between the working directory, the repository and the staging index ;)
b4rbz has joined #ruby
R1chK has quit [Quit: Connection closed for inactivity]
<rubie> i'll look into those thank you again. and it worked like a charm :)
tmtwd has joined #ruby
sinkensabe has joined #ruby
mengu has quit []
<workmad3> rubie: also, 'git stash' is *really* useful ;)
crueber has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
confucius has left #ruby [#ruby]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Crisix has joined #ruby
rkgudboy has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 245 seconds]
Crisix has quit [Max SendQ exceeded]
slawrenc_ has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
slawrenc_ has quit [Client Quit]
Pharaoh2 has joined #ruby
plashchynski has joined #ruby
rdark has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
ta has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
maximski has joined #ruby
rdark has joined #ruby
Hobogrammer has joined #ruby
<shevy> puts "\e[38;2;0;100;0mok\e[39;49m"
banister has joined #ruby
RDash has quit [Ping timeout: 246 seconds]
banister has quit [Max SendQ exceeded]
<shevy> this works in kde-konsole and puts "ok" in green colour
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> does one of you have gnome-terminal and can test this? mine does not work right now; the above does not work on xterm it seems :(
sambao21 has quit [Quit: Computer has gone to sleep.]
RDash has joined #ruby
vtunka has quit [Quit: Leaving]
RDash has quit [Changing host]
RDash has joined #ruby
Pharaoh2 has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
riotjones has joined #ruby
<cristi> havenwood, shevy: I think I sorted it out using the SCL repo
<shevy> \o/
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mistermocha has joined #ruby
<cristi> yum install centos-release-SCL; yum install ruby193; source /opt/rh/ruby193/enable; ruby -v
sambao21 has joined #ruby
sprihodko has quit [Quit: (null)]
Pharaoh2 has joined #ruby
rbennacer has joined #ruby
rubytor has quit [Ping timeout: 245 seconds]
mattwildig has joined #ruby
zemlya has quit [Ping timeout: 246 seconds]
riotjones has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has joined #ruby
dEPy has quit [Quit: (null)]
wldcordeiro has joined #ruby
fuhgeddaboudit has quit [Read error: Connection reset by peer]
zemlya has joined #ruby
joonty has quit [Quit: joonty]
rkgudboy has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
b4rbz has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
kalusn has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkgudboy has quit [Max SendQ exceeded]
rdark has quit [Quit: leaving]
ki0 has quit []
rubytor has joined #ruby
pontiki has joined #ruby
rkgudboy has joined #ruby
bricker has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_honning_ has quit [Ping timeout: 240 seconds]
rkgudboy has quit [Max SendQ exceeded]
kham has quit [Ping timeout: 240 seconds]
rkgudboy has joined #ruby
rkmylo has quit []
rkgudboy has quit [Max SendQ exceeded]
krz has quit [Quit: WeeChat 1.0.1]
phansch has quit [Ping timeout: 265 seconds]
craigp has quit [Remote host closed the connection]
aclearman037 has joined #ruby
joshhartigan has quit [Remote host closed the connection]
wottam has joined #ruby
<shevy> if I have a class method; module Foo; def self.bla; puts 'hi'; end; end... is there another way to call it from inside module Foo, other than .send? (I don't know the name of the method beforehand, hence why I needed to use .send)
craigp has joined #ruby
Advocation has quit [Quit: Advocation]
<shevy> e. g. I also need a method call bla that just invokes Foo.bla, inside module Foo
wottam has quit [Client Quit]
stunder has joined #ruby
xploshioon has joined #ruby
wald0 has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
Soda has quit [Remote host closed the connection]
joshhartigan has joined #ruby
wallerdev has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
wottam has joined #ruby
Cust0sL1men has quit [Ping timeout: 252 seconds]
aswen has quit [Ping timeout: 245 seconds]
<shevy> le.rb:611: class definition in method body
<shevy> huh
<shevy> funny error message
<apeiros_> >> def foo; class Bar; end; end
<eval-in> apeiros_ => /tmp/execpad-18f172b68d1d/source-18f172b68d1d:2: class definition in method body ... (https://eval.in/292741)
wottam has quit [Client Quit]
sigurding has quit [Quit: sigurding]
b4rbz has joined #ruby
swgillespie has joined #ruby
<shevy> :(
nini1294 has quit [Read error: Connection reset by peer]
kham has joined #ruby
<centrx> >> class Bar; def method_definition_in_class_body; end; end
<eval-in> centrx => :method_definition_in_class_body (https://eval.in/292742)
<gregf_> shevy: class Foo; def self.foo;puts "Foo";end; def call_foo; :foo.to_proc.call(self.class);end;end; Foo.new.call_foo(); <== like that?
<shevy> hmm
agrinb has quit [Remote host closed the connection]
<gregf_> haha, class Foo { public function foo(){ echo "Foo!"; } } new Foo() <== calls foo ;)
serivich has joined #ruby
agrinb has joined #ruby
wottam has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<gregf_> er, sorry thats *aw**l* P*P
allcentury has quit [Ping timeout: 272 seconds]
xploshioon has quit [Quit: Leaving]
beneggett has joined #ruby
mattwildig has quit []
mistermocha has quit [Remote host closed the connection]
sambao21 has joined #ruby
rubytor has quit [Ping timeout: 272 seconds]
allenn has quit [Remote host closed the connection]
mistermocha has joined #ruby
ismaelga has joined #ruby
agrinb_ has joined #ruby
<havenwood> >> def foo; Object.const_set :Bar, Class.new end; foo
<eval-in> havenwood => Bar (https://eval.in/292749)
zenith_ has joined #ruby
<havenwood> shevy: ^ :P
b4rbz has quit [Ping timeout: 255 seconds]
rkgudboy has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
kham has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
ptrrr has joined #ruby
TDJACR has quit [Ping timeout: 250 seconds]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkgudboy has quit [Ping timeout: 256 seconds]
MirenaT has joined #ruby
rkgudboy has joined #ruby
<MirenaT> Hi
chridal has quit [Quit: WeeChat 1.0.1]
<MirenaT> I need a developer who can work with Ruby
rkgudboy has quit [Max SendQ exceeded]
<havenwood> MirenaT: for what purpose?
<MirenaT> for my project - website with registration system
rubie has quit [Quit: Page closed]
<MirenaT> co-founder would be ideal
<MirenaT> it is a start-up project
ghostpl_ has quit [Remote host closed the connection]
Renich has joined #ruby
baweaver has joined #ruby
ghostpl_ has joined #ruby
monod has joined #ruby
iamjarvo has joined #ruby
MirenaT has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
serivich has quit [Ping timeout: 246 seconds]
narph has joined #ruby
allcentury has joined #ruby
baweaver has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
codecop has quit [Ping timeout: 265 seconds]
SouL has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
RegulationD has joined #ruby
rkgudboy has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Hobogrammer has quit [Ping timeout: 256 seconds]
rkgudboy has quit [Max SendQ exceeded]
arturmartins has quit [Quit: Leaving...]
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
beneggett has quit [Ping timeout: 272 seconds]
adamjleonard has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
esasse has quit [Quit: Textual IRC Client: www.textualapp.com]
raluxgaza has quit [Remote host closed the connection]
bluOxigen has joined #ruby
jheg has joined #ruby
DrShoggoth has joined #ruby
rkgudboy has joined #ruby
<graft> hey, so Dir[] doesn't accept a regexp. What does?
<graft> i.e., how can i get a list of files matching a regexp?
Cadillactica has joined #ruby
jheg has quit [Client Quit]
SHyx0rmZ has quit [Remote host closed the connection]
dh64 has quit [Quit: Konversation terminated!]
jespada has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
cristi has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
beneggett has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Fluent> I would just generate the directory list, then run the list through some regex filter
<Fluent> What is left should be the items that match the regex
joshhartigan has left #ruby [#ruby]
<havenwood> graft: what's the regexp?
<havenwood> graft: might be able to translate it to a glob
martianixor has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkgudboy has quit [Ping timeout: 252 seconds]
martianixor has quit [Changing host]
martianixor has joined #ruby
<gregf_> er, i'd do : def dir; return %w{ foo.txt bar.txt foo1.txt };end; p dir.grep(/foo/)
wallerdev has joined #ruby
Takle has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 244 seconds]
xploshioon has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
codecop has joined #ruby
werelivinginthef has joined #ruby
kaiZen- has joined #ruby
ponga has quit [Quit: Leaving...]
tjbiddle has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
beneggett has quit [Ping timeout: 265 seconds]
tjbiddle has quit [Client Quit]
workmad3 has quit [Ping timeout: 256 seconds]
mkaesz has joined #ruby
zorak8 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enebo has quit [Quit: enebo]
dfinninger has quit [Remote host closed the connection]
_honning_ has joined #ruby
Takle has joined #ruby
thsig has quit [Remote host closed the connection]
art-solopov has joined #ruby
MatthewsFace has joined #ruby
alex88 has joined #ruby
thsig has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkgudboy has joined #ruby
Takle has quit [Remote host closed the connection]
<Fluent> >> files = ['a.pdf', 'b.jpeg', 'c.wav', 'd.pdf'].map { |f| /^.*\.(pdf|PDF)$/.match(f) }.compact.join(', ') # Grab pdf's
<eval-in> Fluent => "a.pdf, d.pdf" (https://eval.in/292750)
muzik has quit [Ping timeout: 244 seconds]
rkgudboy has quit [Max SendQ exceeded]
Grumelo has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
<graft> havenwood: no, that's my point. i don't want to use a glob, i want to use a regexp
<graft> havenwood: why is there a shitty glob syntax when we have regexps?
_djbkd has joined #ruby
sinkensabe has joined #ruby
thsig has quit [Read error: Connection reset by peer]
thsig has joined #ruby
mikecmpbll has joined #ruby
jottr has joined #ruby
turtil has joined #ruby
<graft> i guess listing everything and scanning it is the best that can be done
Dwarf has joined #ruby
maximski has quit []
iamjarvo has joined #ruby
Spooner has quit [Remote host closed the connection]
vt102 has joined #ruby
beneggett has joined #ruby
TDJACR has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Read error: Connection reset by peer]
ghr has joined #ruby
codeurge has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
beneggett has quit [Client Quit]
baweaver has joined #ruby
despai has joined #ruby
einarj has joined #ruby
thsig has quit [Remote host closed the connection]
kalusn has joined #ruby
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 250 seconds]
thebastl has joined #ruby
wicope has quit [Quit: wicope]
einarj has quit [Ping timeout: 240 seconds]
amacou has quit [Remote host closed the connection]
wicope has joined #ruby
shadoi has joined #ruby
nini1294 has joined #ruby
beneggett has joined #ruby
doodleha_ has quit [Ping timeout: 246 seconds]
Sakens has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
<Sakens> Hello, what is the best way to interact with sysctl in ruby?
mjuszczak has joined #ruby
pwh has quit []
<nickjj> can someone explain why the 2nd code example results in a lot less CPU usage? https://github.com/tobiassvn/sidetiq/wiki/Known-Issues#ice_cube
tcrypt has joined #ruby
_djbkd has quit [Remote host closed the connection]
pengin_ has quit [Remote host closed the connection]
pengin has joined #ruby
uptownhr has quit [Quit: uptownhr]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
<centrx> nickjj, It sounds like, with 'minutely' the job daemon checks every single minute or x seconds even
<centrx> nickjj, whereas the second one directs it to run based on x minutes from the hour
<centrx> nickjj, So it doesn't have to figure out every single minute whether now is the time to run
<nickjj> centrx, any thoughts on how you would convert something that runs daily to the low CPU version?
<nickjj> to my knowledge daily() will run at midnight everyday, but is it going to be as bad as minutely(15)?
pengin has quit [Ping timeout: 250 seconds]
uptownhr has joined #ruby
<centrx> nickjj, Seems like it wouldn't if it knows to run at midnight every day
<nickjj> so daily.hour_of_day(1) should be good (for example to run something at 1am)
jamgood96 has joined #ruby
pengin has joined #ruby
<centrx> nickjj, yes that seems like a good way of ensuring that it knows the right time to run, and following the form of the example
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
jamgood96 has left #ruby [#ruby]
<nickjj> ok thanks, i just wanted to avoid cpu death. this is my first time having to use something other than cron for scheduled jobs
<nickjj> that are recurring
Meow-J has joined #ruby
<nickjj> it was either this or clockwork but sidetiq seemed a bit more integrated with sidekiq which is what i'm using
sivsushruth has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
commmmodo has quit [Quit: commmmodo]
sivsushruth has joined #ruby
Meow_J has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
hgl has quit [Ping timeout: 264 seconds]
Pharaoh2 has joined #ruby
ramirio has joined #ruby
blazes816 has joined #ruby
_djbkd has joined #ruby
hgl has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
terlar has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
adamjleonard has quit [Quit: Leaving...]
Pharaoh2 has joined #ruby
Meow_J has quit [Client Quit]
ismaelga has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
mikepack has quit [Ping timeout: 244 seconds]
tcrypt has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
_djbkd has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
_djbkd has joined #ruby
xploshioon has quit [Quit: Leaving]
_djbkd has quit [Remote host closed the connection]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
_djbkd has joined #ruby
paradoja has quit [Ping timeout: 240 seconds]
lkba_ has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
sevvie has quit [Ping timeout: 272 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
sinkensabe has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 255 seconds]
enebo has joined #ruby
deric_skibotn has joined #ruby
matcouto has joined #ruby
triple_b has joined #ruby
uptownhr has quit [Quit: uptownhr]
mikepack has joined #ruby
dfinninger has joined #ruby
justin_pdx has joined #ruby
philwantsfish1 is now known as philwantsfish
werelivinginthef has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
ghostpl_ has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 252 seconds]
Cadillactica has quit [Quit: Cadillactica]
zenith_ has quit [Ping timeout: 255 seconds]
martianixor has quit [Quit: Leaving]
martianixor has joined #ruby
giuseppesolinas has joined #ruby
dstarh has joined #ruby
<Sakens> any polite way to list IP routes?
<Sakens> any gem to do that?
<Sakens> (portable if possible)
martianixor has quit [Client Quit]
atomi has joined #ruby
gfawcettpq has quit [Ping timeout: 250 seconds]
arturmartins has joined #ruby
davedev2_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
uri_ has joined #ruby
dorei has joined #ruby
plashchynski has quit [Quit: plashchynski]
zenith_ has joined #ruby
uri__ has quit [Ping timeout: 246 seconds]
FooMunki_ is now known as FooMunki
SouL has joined #ruby
psyprus has joined #ruby
dfinninger has quit [Remote host closed the connection]
ghostmoth has joined #ruby
ghr has joined #ruby
dfinninger has joined #ruby
codeurge has joined #ruby
soulcake has quit [Quit: Quack.]
_honning_ has quit [Ping timeout: 272 seconds]
soulcake has joined #ruby
mloveless has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
<arup_r> How can I get the output in one line like =>> From Number 1...TO Number 2
maletor has joined #ruby
tunaCanBruh has joined #ruby
commmmodo has joined #ruby
chrishough has joined #ruby
<jhass> arup_r: you would use ANSI escape codes to move a line up
<arup_r> how to do so?
<arup_r> What is that?
sigurding has quit [Quit: sigurding]
zyxelthrone has joined #ruby
mkaesz has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
wallerdev has quit [Ping timeout: 250 seconds]
<arup_r> k
gfawcettpq has joined #ruby
wallerdev has joined #ruby
<linduxed> ls
despai has quit [Quit: This computer has gone to sleep]
withnale_ has quit [Ping timeout: 264 seconds]
<jhass> . .. #ruby
Cadillactica has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
<arup_r> nahh... not able to figure out
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass> arup_r: you an claim that in 30 minutes
<arup_r> How would I use those in Ruby..
<jhass> 3 minutes suggests you didn't even bother to read the article or search for another resource
lolmaus has joined #ruby
<arup_r> ok
maximski has joined #ruby
* arup_r opening 3 browsers to search them in parallel
Fluent has quit [Read error: Connection reset by peer]
maximski has quit [Max SendQ exceeded]
despai has joined #ruby
cristi has joined #ruby
plashchynski has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<shevy> arup_r you are so meta
maximski has joined #ruby
tunaCanBruh has joined #ruby
einarj has quit [Read error: Connection reset by peer]
<arup_r> how would I get the values for move right
jimms has joined #ruby
<arup_r> shevy: I have to buy my own ship
RegulationD has joined #ruby
einarj has joined #ruby
jheg has joined #ruby
<shevy> lol
Rollabunna has quit [Read error: Connection reset by peer]
Rollabun_ has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
fantazo has quit [Quit: Verlassend]
n1lo has quit [Remote host closed the connection]
maximski has quit [Ping timeout: 245 seconds]
despai has quit [Quit: This computer has gone to sleep]
chinmay_dd has quit [Quit: Connection closed for inactivity]
RegulationD has quit [Ping timeout: 246 seconds]
gfawcettpq has quit [Quit: Leaving.]
wottam has joined #ruby
despai has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<oddmunds> arup_r: i love how that page starts with "It seems a little overkill to have a gem for this but I figured I would mention it." and then follows with that mess.
<arup_r> WHAT?
jimms has quit [Ping timeout: 272 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<arup_r> oddmunds: Why me ?
<oddmunds> because you linked it?
<arup_r> Ohh! you are helping me
<arup_r> thanks
<oddmunds> heh.. maybe
<arup_r> wait... I am working on it.. jhass : gave me 30 mins
<arup_r> Otherwise I will loose my ship
Cust0sL1men has joined #ruby
baweaver has quit [Remote host closed the connection]
<oddmunds> arup_r: here are codes for cursor action http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html
jonr22 has joined #ruby
<arup_r> Yes... Iwas following the same
mary5030 has quit [Remote host closed the connection]
<oddmunds> what do you want to happen?
<Senjai> Hey ruby people, question for yas. https://gist.github.com/Senjai/3045c921bb31bf6ffd33 << I hate how this looks. Is there a better way of doing this?
<Senjai> Specifically, I dont need to display feet if there wasn't a whole foot in the first place
shadoi1 has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
<jhass> Senjai: you mean you don't like the output or the code?
wallerdev has quit [Quit: wallerdev]
<Senjai> jhass: The code
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<Senjai> Displays like: 1.0' 6.0" x 6.72"
<Senjai> which is fine
<arup_r> oddmunds: in the same line
<arup_r> From Number 1...TO Number 2
ferr has quit [Quit: WeeChat 1.1.1]
wallerdev has joined #ruby
shadoi has quit [Ping timeout: 264 seconds]
<jhass> Senjai: having to initialize to an empty string is a bit odd, but I think it's okay
<jhass> Senjai: maybe use %() literals so you don't have to escape the "
<Senjai> jhass: Aye, it was nice and interpreted before, with %Q{}
<Senjai> but because of this condition its kinda pukish
einarj_ has joined #ruby
<jhass> Senjai: btw, inform both channels of the crosspost and inform both channels of provided solutions
Spami has joined #ruby
nettoweb has joined #ruby
willharrison has joined #ruby
<Senjai> jhass: I informed the other channel of the xpost, but not this one
<jhass> I know
<Senjai> I did xpost this to #ruby-lang
<Senjai> for anyone who didn't know
<oddmunds> arup_r: make it go both up and forward. like this print "\033[1A\033[14C...TO Number"
reinaldob has quit [Read error: Connection reset by peer]
reinaldo_ has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
<arup_r> oddmunds: WooW
<arup_r> why 14 ?
marr has joined #ruby
<arup_r> oddmunds: ^
allcentury has joined #ruby
<oddmunds> i guessed. i couldn't bother to count the letters
einarj has quit [Ping timeout: 264 seconds]
<arup_r> humm
<jhass> Senjai: the way to write it in "one" literal would be something like "#{"#{width_feet}' " if width_feet > 0}...", but that won't really end up nicer
<arup_r> got it
einarj has joined #ruby
jenrzzz has joined #ruby
FooMunki has quit [Quit: FooMunki]
<oddmunds> arup_r: if you want it to be precise you count the letters in num1 before you convert it to a number and at that to the number of leading letters
<arup_r> yes
<arup_r> got it
fuhgeddaboudit has joined #ruby
einarj_ has quit [Ping timeout: 245 seconds]
einarj_ has joined #ruby
pwh has joined #ruby
last_staff has joined #ruby
alex88 has quit [Remote host closed the connection]
mjuszczak has quit []
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
elaptics is now known as elaptics_away
einarj has quit [Ping timeout: 264 seconds]
kaiZen- has joined #ruby
claw has quit [Ping timeout: 256 seconds]
cn28h has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 244 seconds]
Renich has quit [Quit: Reconnecting]
thebastl_ has joined #ruby
Renich has joined #ruby
aamador has quit [Remote host closed the connection]
bkulbida has joined #ruby
merc has quit [Quit: Leaving]
<arup_r> Bye all
<arup_r> time to sleep
apeiros_ has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 245 seconds]
kobain has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
checkit has joined #ruby
<weaksauce> might be a little cleaner
thebastl has quit [Ping timeout: 264 seconds]
<centrx> nice
justin_pdx has quit [Quit: justin_pdx]
systemd0wn has quit [Read error: Connection reset by peer]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
mary5030 has joined #ruby
justin_pdx has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
wookiehangover has quit [Ping timeout: 250 seconds]
ghostmoth has quit [Quit: ghostmoth]
apeiros_ has quit [Ping timeout: 256 seconds]
reactormonk has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<reactormonk> Any online documentation generator for github repositories?
einarj has joined #ruby
rekky has joined #ruby
lidaaa has joined #ruby
<jhass> rubydoc.info/github/user/repo
apeiros_ has joined #ruby
<reactormonk> thanks
einarj_ has quit [Ping timeout: 246 seconds]
ghostpl_ has joined #ruby
einarj_ has joined #ruby
iamninja has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
wookiehangover has joined #ruby
ghr has joined #ruby
plashchynski has quit [Quit: plashchynski]
uri_ has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
Jinkins has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
timonv has joined #ruby
yfeldblum has joined #ruby
olivier_bK has joined #ruby
adamjleonard has joined #ruby
uptownhr has joined #ruby
bkulbida has quit [Quit: leaving]
bkulbida has joined #ruby
nateberkopec has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
einarj has joined #ruby
<reactormonk> bundler still a good way to manage dependencies?
einarj_ has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
pengin has quit [Ping timeout: 256 seconds]
<centrx> yes
<centrx> bundler is the way
luriv has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 272 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
SouL has quit [Ping timeout: 256 seconds]
kobain has quit [Max SendQ exceeded]
flerpaderp has joined #ruby
flerpaderp has left #ruby [#ruby]
arturmartins has quit [Quit: Leaving...]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
anarang has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
JDiPierro has joined #ruby
mikepack has joined #ruby
lanemeyer has quit [Ping timeout: 246 seconds]
luriv has joined #ruby
allcentury has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
Rapier- has quit [Quit: (null)]
gregf has quit [Quit: WeeChat 1.0.1]
pdoherty has joined #ruby
matcouto has joined #ruby
dcarmich has joined #ruby
arturmartins has joined #ruby
RegulationD has joined #ruby
baweaver has joined #ruby
maximski has joined #ruby
arturmartins has quit [Client Quit]
gregf has joined #ruby
maximski has quit [Max SendQ exceeded]
cpt_yossarian has quit [Ping timeout: 272 seconds]
maximski has joined #ruby
max96at is now known as max96at|off
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
_honning_ has joined #ruby
<Senjai> weaksauce: Thank you
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has quit [Ping timeout: 246 seconds]
<Senjai> weaksauce: centrx came up with https://gist.github.com/anonymous/142ad900b5436f069d4b in the other channel
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> I saw that
baweaver has quit [Ping timeout: 256 seconds]
adamjleonard has quit [Quit: Leaving...]
plashchynski has joined #ruby
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
delianides has joined #ruby
ixti has joined #ruby
sargas has joined #ruby
<weaksauce> I think the ruby way is to have short methods but if you like the way that one looks go for it
_ixti_ has quit [Ping timeout: 252 seconds]
einarj_ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jen_ has joined #ruby
jheg has quit [Quit: jheg]
<jen_> roolo: hey there.
<jen_> our cron script is outputting this: /usr/bin/env: ruby_executable_hooks: No such file or directory roolo
craigp has quit [Ping timeout: 244 seconds]
craigp has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
SirCmpwn has quit [Quit: ZNC - http://znc.in]
kham has joined #ruby
einarj has joined #ruby
resno has joined #ruby
GPH|work has joined #ruby
ravenzz has joined #ruby
einarj_ has quit [Ping timeout: 265 seconds]
einarj_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
codecop has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
SirCmpwn has joined #ruby
<havenwood> jen_: Checkout: https://rvm.io/deployment/cron
decoponyo has quit [Quit: Leaving...]
weaksauce has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
rodfersou has quit [Quit: leaving]
craigp has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
ramirio has quit [Quit: Leaving ;O zZzZ]
chrishough has joined #ruby
SouL has joined #ruby
beneggett has quit [Ping timeout: 244 seconds]
alvaro_o has quit [Quit: Ex-Chat]
mikepack has quit [Remote host closed the connection]
sambao21 has joined #ruby
zenith_ has quit [Ping timeout: 244 seconds]
alex88 has quit []
mikepack has joined #ruby
beneggett has joined #ruby
mhenrixon is now known as mhenrixon|afk
mistermo_ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
mhenrixon|afk is now known as mhenrixon
mistermo_ has joined #ruby
Limix has joined #ruby
dfinning_ has joined #ruby
beneggett has quit [Client Quit]
crueber1 has joined #ruby
_honning_ has quit [Ping timeout: 244 seconds]
danzilio has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
mikepack has quit [Ping timeout: 265 seconds]
dfinninger has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
crueber has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
Morkel has quit [Quit: Morkel]
hollywood has quit [Quit: Leaving]
mistermo_ has quit [Remote host closed the connection]
The_Phoenix has quit [Quit: Leaving.]
Vile` has joined #ruby
mistermocha has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
Hijiri has quit [Quit: WeeChat 1.0.1]
mistermocha has quit [Remote host closed the connection]
despai has joined #ruby
ldnunes has quit [Quit: Leaving]
pengin has joined #ruby
despai has quit [Client Quit]
kalusn has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 256 seconds]
CorySimmons has joined #ruby
PaulCapestany has quit [Quit: .]
einarj_ has quit [Read error: Connection reset by peer]
razieliyo has quit [Ping timeout: 246 seconds]
tmtwd has quit [Remote host closed the connection]
einarj has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
uptownhr has quit [Quit: uptownhr]
havenwood has quit []
uptownhr has joined #ruby
PaulCapestany has joined #ruby
mistermocha has joined #ruby
PaulCapestany has quit [Max SendQ exceeded]
reinaldo_ has quit [Remote host closed the connection]
Zesty has joined #ruby
despai has joined #ruby
despai has quit [Remote host closed the connection]
ismaelga has joined #ruby
PaulCapestany has joined #ruby
anarang has quit [Quit: Leaving]
ghr has joined #ruby
cristi has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
bhaveshletter has joined #ruby
bhaveshletter has left #ruby [#ruby]
msmith has quit []
olivier_bK has quit [Ping timeout: 272 seconds]
danzilio has quit [Quit: Baiii!]
MirenaT has joined #ruby
<MirenaT> Hi
<MirenaT> I need Ruby Developer
JDiPierro has quit [Remote host closed the connection]
<MirenaT> for a start-up
ghr has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 264 seconds]
<MirenaT> if he/she is willing to become a co-founder, this would be ideal
<MirenaT> anyone interested to work for my project is welcome to send me a message
<MirenaT> or write me here: mirena.taskova@gmail.com
beneggett has joined #ruby
<Radar> MirenaT: My fee is 1 million dollars a month
<Radar> Interested/
amacou has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
<MirenaT> :) If u can arrange 10 mil for me;) u can start
davedev24_ has joined #ruby
<Radar> Oh I see how it is. I do all the work and you get all the money
<Radar> I'm already in a relationship like that.
<MirenaT> Oh gosh, I am actually serious
fmcgeough has quit [Quit: fmcgeough]
<Radar> You've given no details at all
<Radar> Where is the pull?
<MirenaT> I was hoping that someone here is a Ruby pro and can help for work
b4rbz has joined #ruby
elaptics_away is now known as elaptics
tcrypt has joined #ruby
<Radar> What kind of start-up? What are the hours? What are the benefits of working there? How much can I expect to be paid?
davedev24_ has quit [Read error: Connection reset by peer]
<MirenaT> I give details in a personal correspondence
<Radar> Your post is extremely lazy.
<Radar> Your work ethic is probably the same.
<MirenaT> ok. It seems u want to chat :)
<Radar> No pull.
davedev24_ has joined #ruby
<MirenaT> and I would like to work
<MirenaT> I am sorry
<Radar> Why should I come work with you over the 100s of other people who have the EXACT SAME PITCH as you?
<Radar> "I need a Ruby developer"
<Radar> Great, now that we're done talking about your needs, let's talk about mine
<pontiki> that's not a pitch
<MirenaT> U should not Radar
<MirenaT> u don't need to work with me
<Radar> I need a decent wage to support my family.
<MirenaT> if u don't want to
<Radar> I need a computer to work from.
<Radar> MirenaT: My point is: other people want this information.
<sivsushruth> +1
<Radar> By not providing any kind of distinctive, useful information to convice people to come work for you, you will have a ridiculously hard time finding a developer.
<Radar> Find some way to make your job pitch more interesting than all the others.
amacou has quit [Read error: No route to host]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<Radar> Turn your ugly duckling into the most beautiful, badass swan.
<pontiki> ♫ let it go / let it go ♫
<Radar> Damn it gets on my nerves when nobody puts any effort into recruiting. It's such an important thing to do and so many people fail terribly at it.
<pontiki> it's a skill that can be learned
blazes816 has quit [Ping timeout: 272 seconds]
<Radar> Every monkey wants a technical co-founder. Tell me why I should be yours.
<Radar> </rant>
<shevy> free sex
tvon has joined #ruby
elaptics is now known as elaptics_away
<shevy> and free monkeys
<shevy> but fear the day when they can program
jonr22 has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
<MirenaT> Radar: some of ur points are great
<Radar> Thanks.
<MirenaT> but i do not think that your approach is good
The_Phoenix has joined #ruby
monod has quit [Ping timeout: 264 seconds]
_djbkd has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
The_Phoenix has quit [Max SendQ exceeded]
leafybasil has quit [Remote host closed the connection]
theberlin has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
sargas has quit [Quit: This computer has gone to sleep]
toretore has joined #ruby
<apeiros_> MirenaT: somehow I think the part about "I don't think your approach is good" is precisely the point he made about you :)
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
triple_b has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros_> and I share his view. with such a weak pitch, you'll not get top notch people interested.
Dmr has quit [Ping timeout: 246 seconds]
The_Phoenix has joined #ruby
Aswebb_ has quit []
The_Phoenix has quit [Max SendQ exceeded]
mistermocha has quit [Remote host closed the connection]
<Radar> MirenaT: Please elaborate.
The_Phoenix has joined #ruby
<apeiros_> Radar: howdy
The_Phoenix has quit [Max SendQ exceeded]
<Radar> apeiros_: good $LOCAL_TIME_OF_DAY, sir
<apeiros_> I'm surprised that you invest so much time in this :)
* apeiros_ hands Radar a ctcp time
<Radar> apeiros_: I invest because I care.
<Radar> I want people to put effort into their jobs.
<apeiros_> yeah, the world would be a much better place if people did
sargas has joined #ruby
<Radar> one of the best job ads I've ever seen
<MirenaT> Ok. this conversation becomes useless, so I will indeed elaborate:
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
hiyosi has joined #ruby
Renich has quit [Quit: leaving]
<MirenaT> 1. You are rushing with your conclusions; 2. You are judging without knowing; 3. I am here not to look for investor but to request for support, and therefore whoever is interested to know more - he/she will write me a personal message
mistermocha has joined #ruby
<MirenaT> I don't discuss my project in details not because i don't care but because I don't want to discuss it with the world
<MirenaT> but to discuss it with someone who will pay attention
sambao21 has joined #ruby
<Radar> Why should I, or anyone here, expend effort into writing you when your pitch is so bland?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> Not even a single iota of useful differentiating information about you or your company from the 100s of others out there.
jheg has joined #ruby
Renich has joined #ruby
<apeiros_> MirenaT: let's assume I'm a top notch coder. why would I want to do the effort of contacting you? if I'm a top notch coder, I already have a good job.
SouL has quit [Ping timeout: 252 seconds]
justin_pdx has joined #ruby
<Radar> "I want a Ruby programmer who is also a co-founder" is essentially your entire pitch
<shevy> are you two the target audience
<bricker> Radar: sounds like a solid career path.
<Radar> shevy: Potentially.
SouL has joined #ruby
<shevy> nah come on guys ;)
<bricker> "What do you do?" "I'm a co-founder."
bkulbida has quit [Ping timeout: 272 seconds]
owen1 has joined #ruby
<owen1> i have a rest endpoint /login. when the user was found i return 200. what should be the status code if the user was found but not active? 200 with a message or 404?
anaeem1_ has quit [Remote host closed the connection]
plutonic has joined #ruby
<MirenaT> Sorry for not being precise Radar
<shevy> isn't 404 only when a page does not exist?
<owen1> maybe i should return 409 ?
<Radar> MirenaT: I accept your apology.
<Radar> owen1: 404 is fine
plashchynski has quit [Quit: plashchynski]
robbyoconnor has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<owen1> Radar: ok. but isn't 404 is when the resource was not found?
<owen1> it my case the db has user_active boolean.
plashchynski has joined #ruby
sambao21 has quit [Client Quit]
<owen1> and it's 0 and not 1. after the user click on the email it changes to 1
<owen1> there is a similar discussion here - http://stackoverflow.com/a/11093566
stunder has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
tunaCanBruh has joined #ruby
m8 has joined #ruby
Tinfoilhat_ has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
delianides has quit []
momomomomo has joined #ruby
aef has quit [Remote host closed the connection]
workmad3 has joined #ruby
devyn has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
oki has joined #ruby
MirenaT has quit [Quit: Page closed]
tier has quit [Ping timeout: 246 seconds]
rekky has quit [Remote host closed the connection]
Musashi007 has joined #ruby
jobewan has joined #ruby
momomomomo_ has joined #ruby
SouL has quit [Remote host closed the connection]
Musashi007 has quit [Client Quit]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pierre1_ has joined #ruby
SouL has joined #ruby
<jen_> roolo:
_djbkd has joined #ruby
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
Musashi007 has joined #ruby
cpt_yossarian has joined #ruby
rbennacer has quit [Remote host closed the connection]
Yzguy has joined #ruby
stunder has joined #ruby
Musashi007 has quit [Client Quit]
pwh has quit []
kaiZen has joined #ruby
jimms has joined #ruby
scripore has joined #ruby
devbug has joined #ruby
stunder has quit [Read error: Connection reset by peer]
pwh has joined #ruby
<scripore> I have a #<Date: 2015-01-04 ((2457027j,0s,0n),+0s,2299161j)> object. anyone know how I can convert it to seconds since epoch?
jimms_ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
brb3 has quit [Quit: ZZZzzz…]
lidaaa has quit [Ping timeout: 244 seconds]
<scripore> nvm. I think I got it, .strftime('%s')
pwh has quit [Client Quit]
stunder has joined #ruby
sambao21 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Renich has quit [Quit: leaving]
aef has joined #ruby
jonr22 has joined #ruby
leafybasil has joined #ruby
rekky has joined #ruby
jheg has quit [Quit: jheg]
Cust0sL1men has quit [Ping timeout: 240 seconds]
spyderman4g63 has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
Cust0sL1men has joined #ruby
dcarmich has joined #ruby
rekky has quit [Client Quit]
art-solopov has quit [Quit: Konversation terminated!]
sinkensabe has joined #ruby
Spooner has joined #ruby
lordkryss has joined #ruby
uptownhr has quit [Quit: uptownhr]
RegulationD has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
sent1nel has quit [Remote host closed the connection]
riotjones has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
pontiki has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sent1nel has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
lanemeyer has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
jen_ has left #ruby [#ruby]
uptownhr has joined #ruby
jimms has joined #ruby
jamgood9_ has joined #ruby
jimms_ has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
olivier_bK has joined #ruby
AlphaTech has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
Limix has quit [Quit: Limix]
jamgood9_ has quit [Ping timeout: 265 seconds]
kaiZen has quit [Quit: Computer has gone to sleep.]
sjuxax has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
brb3 has joined #ruby
<sjuxax> Hello. I'm calling pid = Process.spawn command; Process.wait pid in a thread. The main process execution seems to stop here and wait for the process to end even though I just want the thread to wait. How can I fix this?
<apeiros_> sjuxax: use non-blocking wait
wicope has quit [Read error: Connection reset by peer]
<workmad3> wait: waits for a child process to exit...
<apeiros_> Process::WNOHANG
<workmad3> first line of the docs for Process.wait...
<apeiros_> I think that's the flag
rooby has quit []
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sjuxax> "The flags argument may be a logical or of the flag values Process::WNOHANG (do not block if no child available)"
<sjuxax> from the docs
<sjuxax> Sounds like it's just a way to return Process.wait() if there are no children?
<apeiros_> available means exited
uptownhr has quit [Quit: uptownhr]
<sjuxax> workmad3: Yes, I want the thread to wait for the process to exit, not the whole program.
<apeiros_> sjuxax: try it
<sjuxax> apeiros_: OK, good clarification. I'll try it now. Thanks.
<apeiros_> you'll have to loop in your thread
<apeiros_> don't forget to sleep, even if only e.g. sleep(0.01)
<apeiros_> (10ms is an eternity for a computer)
OrbitalKitten has joined #ruby
baweaver has quit [Remote host closed the connection]
xploshioon has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
baweaver has joined #ruby
uptownhr has joined #ruby
duncannz has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
commmmodo has quit [Quit: commmmodo]
maximski has quit [Ping timeout: 250 seconds]
sent1nel has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
jimms_ has joined #ruby
jerius has quit [Ping timeout: 265 seconds]
thebastl_ has quit [Quit: Leaving...]
jimms has quit [Ping timeout: 255 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
skj3gg has joined #ruby
einarj has quit [Remote host closed the connection]
b4rbz has quit [Ping timeout: 252 seconds]
GPH|work has quit [Ping timeout: 240 seconds]
juanpablo__ has quit [Quit: (null)]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpablo__ has joined #ruby
juanpablo__ has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
jimms_ has quit [Ping timeout: 250 seconds]
Tinfoilhat_ has quit [Read error: Connection reset by peer]
agrinb_ has quit [Remote host closed the connection]
agrinb has joined #ruby
jamgood96 has joined #ruby
b4rbz has joined #ruby
iamjarvo has joined #ruby
CorySimmons has quit [Quit: Bye!]
davispuh has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 265 seconds]
xploshioon has quit [Quit: Leaving]
jamgood96 has quit [Quit: Leaving...]
scripore has quit [Quit: This computer has gone to sleep]
maximski has quit [Ping timeout: 252 seconds]
kirun has quit [Ping timeout: 252 seconds]
sent1nel has joined #ruby
jimms has joined #ruby
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
tjohnson has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
rocknrollmarc has joined #ruby
dangerousbeans has joined #ruby
Yzguy has joined #ruby
devyn has joined #ruby
charliesome has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
fgo has joined #ruby
sent1nel has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
rocknrollmarc has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
uptownhr has quit [Quit: uptownhr]
ta has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<Senjai> why sleep?
codeurge has joined #ruby
<ottanta> good point
Rapier- has joined #ruby
<apeiros_> Senjai: because otherwise you have a busy-loop
<apeiros_> busy-loop: something which consumes all CPU it can acquire
jimms has quit [Ping timeout: 245 seconds]
<Senjai> Eh, I dont pretend to know much about threading
ghr has joined #ruby
<Senjai> But I would -1 any commit that has a sleep, whatsoever in it. Unless it was a server or seomthing.
commmmodo has joined #ruby
<apeiros_> you'd make a grave mistake there :)
<Senjai> Even then, I would just expect accept to block
<Senjai> xD
checkit has quit [Ping timeout: 252 seconds]
<apeiros_> and it's unrelated to threading
<Senjai> Can you give me an example?
scripore has joined #ruby
razieliyo has joined #ruby
<Senjai> I typically want things done as fast as possible, and havent seen a case where that isn't the case
<apeiros_> read the backlog. his case is a prime example.
<apeiros_> I'd prefer something where the OS informs me. but alas, there's no method I know of for this in core/stdlib.
<apeiros_> or well, actually there is, but as it seems they didn't properly make it schedule other threads.
charliesome has quit [Quit: zzz]
dfinning_ has quit [Remote host closed the connection]
<Senjai> So, in a thread, wait for a process to exit? You have to loop for that?
<Senjai> (I also rarely spawn processes from ruby)
<Senjai> I would have thought there was something like you mentioned, where the OS would inform me
bkulbida has joined #ruby
dixie__ has joined #ruby
<apeiros_> there's Process.wait with blocking. but according to their claim, it blocks all threads.
<apeiros_> so the solution is to use non-blocking Process.wait in a loop.
ghr has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
<apeiros_> note: I would expect Process.wait to properly schedule other threads. and I didn't verify their claim that it doesn't.
xploshioon has joined #ruby
iamninja has quit [Quit: WeeChat 1.1.1]
<Senjai> I would also expect that to happen
<Senjai> But then I would also expect the GIL to be an issue
<Senjai> if that was the reason why it didn't happen
momomomomo has quit [Quit: momomomomo]
<Senjai> If they're using cruby
roshanavand has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 265 seconds]
shellfu is now known as shellfu_afk
sambao21 has quit [Quit: Computer has gone to sleep.]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl has quit [Ping timeout: 246 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jinkins has quit [Quit: Leaving]
jottr has joined #ruby
sargas has quit [Quit: Leaving]
Yzguy has quit [Quit: I'm sleeping, go away.]
maximski has joined #ruby
hgl has joined #ruby
iamninja has joined #ruby
maximski has quit [Max SendQ exceeded]
ta has quit [Remote host closed the connection]
agrinb has joined #ruby
davedev2_ has joined #ruby
charliesome has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
tomeara has joined #ruby
BoogieMan has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
Sakens has quit [Ping timeout: 245 seconds]
weaksauce has joined #ruby
jen_ has joined #ruby
jen_ has left #ruby [#ruby]
davedev2_ has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
ta has joined #ruby
juanpaucar has joined #ruby
Cust0sL1men has quit [Ping timeout: 256 seconds]
pengin has quit [Read error: Connection reset by peer]
pengin has joined #ruby
jimms has joined #ruby
Nnel has joined #ruby
jimms has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Ping timeout: 265 seconds]
lidaaa has joined #ruby
blizzy has joined #ruby
Alina-malina has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
juanpaucar has quit [Ping timeout: 245 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
_honning_ has joined #ruby
_blizzy_ has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
mloveless has quit []
Spami has quit [Client Quit]
jlast has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
m8 has quit [Quit: Sto andando via]
Limix has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby