apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<toretore> >> 'c,s,v,,,'.split(',')
<ruboto> toretore # => ["c", "s", "v"] (https://eval.in/318016)
<toretore> >> 'c,s,v,,,'.split(',', -1)
<ruboto> toretore # => ["c", "s", "v", "", "", ""] (https://eval.in/318017)
fryguy9 has quit [Quit: Leaving.]
Guest39938 has quit [Ping timeout: 240 seconds]
arescorpio has quit [Ping timeout: 240 seconds]
snockerton has quit [Quit: Leaving.]
Mohan has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
Mohan is now known as Guest99380
happyface has joined #ruby
hostess has quit [Remote host closed the connection]
hostess has joined #ruby
chipotle_ has joined #ruby
egw has quit []
chipotle has quit [Ping timeout: 244 seconds]
Hijiri has joined #ruby
bricker has joined #ruby
gccostabr has joined #ruby
gccostabr has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 240 seconds]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
doodlehaus has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
ebbflowgo has joined #ruby
rkazak has joined #ruby
Ellis has quit [Quit: Ellis]
mleung has quit [Quit: mleung]
mwlang has quit [Quit: mwlang]
lfox has joined #ruby
claw has quit [Quit: No Ping reply in 180 seconds.]
Ellis has joined #ruby
Lewix has joined #ruby
icarus_ has joined #ruby
gregf has joined #ruby
laurentide has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Remote host closed the connection]
MyMind has joined #ruby
vim_shimm has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfk|laptop has joined #ruby
icarus has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
vim_shimm has joined #ruby
failshell has quit []
ght has quit [Quit: Changing server]
droptone has joined #ruby
droptone_ has joined #ruby
zachrab has joined #ruby
droptone_ is now known as droptone
droptone is now known as ght
stox has joined #ruby
iotouch has joined #ruby
Soda has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
juanpaucar has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Vile` has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
laurentide has quit [Quit: Leaving]
stox has quit [Quit: WeeChat 0.4.2]
cocotton has left #ruby [#ruby]
stox has joined #ruby
<stox> #RubyOnRails
<Radar> stox: /join #RubyOnRails
JDiPierro has joined #ruby
Vile` has joined #ruby
<stox> haha, typo! Thanks!
juanpaucar has quit [Ping timeout: 250 seconds]
stox has quit [Client Quit]
MatthewsFace has joined #ruby
oo_ has joined #ruby
stox has joined #ruby
bruno-_ has quit [Ping timeout: 252 seconds]
stox has quit [Client Quit]
mgberlin has joined #ruby
havenwood has quit []
stox has joined #ruby
bim has joined #ruby
bim is now known as Guest56334
jonr22 has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
doodlehaus has joined #ruby
jgrevich has joined #ruby
zorak8 has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
zorak8 has quit [Max SendQ exceeded]
zorak8 has joined #ruby
vim_shimm has quit [Ping timeout: 256 seconds]
Guest56334 has quit [Ping timeout: 255 seconds]
zorak8 has quit [Max SendQ exceeded]
zorak8 has joined #ruby
zorak8 has quit [Max SendQ exceeded]
stox has quit [Ping timeout: 272 seconds]
rbennacer has quit [Remote host closed the connection]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Ping timeout: 244 seconds]
dev_ryan has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Feyn has joined #ruby
michael_mbp has quit [Excess Flood]
ponga has joined #ruby
michael_mbp has joined #ruby
juanpablo__ has joined #ruby
laurentide has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
juanpablo__ has quit [Ping timeout: 264 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
troyready has quit [Quit: Leaving]
phutchins has quit [Ping timeout: 264 seconds]
dev_ryan has quit [Quit: Konversation terminated!]
rbennacer has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lordkryss has quit [Quit: Connection closed for inactivity]
icarus_ has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Ping timeout: 252 seconds]
iotouch has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
ponga has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
lektrik has joined #ruby
Channel6 has quit [Quit: Leaving]
RegulationD has joined #ruby
jenrzzz has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
davedev24_ has quit []
tkuchiki has joined #ruby
icarus has joined #ruby
purrkode has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
WillAmes has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
WillAmes has joined #ruby
Joufflu has joined #ruby
Jonah11_ has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
bricker has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 240 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Jonah11_ has quit [Ping timeout: 264 seconds]
jeffreylevesque has joined #ruby
towski_ has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
iotouch has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
Jonah11_ has joined #ruby
<jeffreylevesque> is `<SCRIPT ... SCRIPT` a ruby syntax - https://gist.github.com/bivas/6192d6e422f8ff87c29d#file-vagrantfile-L13?
CloCkWeRX has left #ruby [#ruby]
ebbflowgo has quit [Read error: Connection reset by peer]
iotouch has joined #ruby
ebbflowgo has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> jeffreylevesque: yes
<Radar> jeffreylevesque: it's called a HEREDOC
<Radar> Or heredoc
<Radar> or Heredoc
<Radar> or HeReDoC
<Radar> Nobody can agree, really.
<jeffreylevesque> thank you
<jeffreylevesque> is the SCRIPT keyword reserved?
<jeffreylevesque> or is it like xml, and arbitrary?
djmittens has quit [Ping timeout: 264 seconds]
DEA7TH has quit [Ping timeout: 250 seconds]
dseitz has joined #ruby
<Radar> Nope.
<Radar> SCRIPT could be PUPPIES if you willed it
<Radar> It just says "from THIS_WORD until THIS_WORD occurs again, everything is text"
<jeffreylevesque> thank you!
ascarter has joined #ruby
charliesome has quit [Quit: zzz]
freerobby has joined #ruby
crus has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
crus has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
purrkode has quit [Quit: Textual IRC Client: www.textualapp.com]
arescorpio has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
dvlwrk has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
Cloudzy has joined #ruby
doodlehaus has joined #ruby
a346 has joined #ruby
jeramy_s has joined #ruby
towski_ has joined #ruby
amclain has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
Soda has quit [Remote host closed the connection]
ascarter has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
rbennacer has quit [Ping timeout: 264 seconds]
Ellis has quit [Quit: Ellis]
felipecvo has joined #ruby
oo_ has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
pika_pika has quit [Ping timeout: 245 seconds]
sankaber has joined #ruby
jeromelanteri has quit [Ping timeout: 250 seconds]
dopiee has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
thatslifeson has quit [Read error: Connection reset by peer]
thatslifeson has joined #ruby
stox has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
Oka has quit [Quit: さようなら]
ascarter has quit [Client Quit]
drocsid has joined #ruby
thatslifeson has joined #ruby
juanpablo__ has joined #ruby
rodfersou has quit [Quit: leaving]
krz has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
towski_ has joined #ruby
thatslifeson has quit [Ping timeout: 248 seconds]
Hijiri has joined #ruby
thatslifeson has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
towski_ has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
dopiee has quit [Quit: Leaving]
jeromelanteri has joined #ruby
juanpaucar has joined #ruby
plutonic has joined #ruby
uri has joined #ruby
Soda has joined #ruby
jaequery has joined #ruby
freerobby has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
bigsky has joined #ruby
<bigsky> hi all
<bigsky> anybody here who have tried ejbca?
Zai00 has quit [Quit: Zai00]
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stox has quit [Ping timeout: 240 seconds]
devlop has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
stox has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xxneolithicxx> what commands does ruboto know
<drocsid> I have an array of hashes, and each hash has a name. I wish to put some strings into a datastructure ( not sure which type I want to use ) and want to only iterate through the array one time. What's the appropriate approach to make this efficent?
charliesome has joined #ruby
<drocsid> *each hash has a name element.
charliesome has quit [Client Quit]
jeramy_s has joined #ruby
icebourg has joined #ruby
<xxneolithicxx> sounds like a basic loop, whats so special about what you want to do with the names
tus has quit []
jeramy_s has quit [Client Quit]
<drocsid> just want to make sure each name is represented at least once in the array of hashes.
<drocsid> should I use a ds that I can remove elements from
<drocsid> is the hash map appropriate.
<drocsid> I'm just a novice so that's why I'm asking?
<drocsid> .
<xxneolithicxx> if the name is what you are using to organize data you should probably using it as the key of a single hash and not as a key of multiple hashes in an array
Pharaoh2 has quit [Ping timeout: 252 seconds]
mleung has joined #ruby
<xxneolithicxx> each name can then have another hash as a value for more data
djbkd has quit [Quit: My people need me...]
<drocsid> so I have an array with each element a set of hashes with the name being what I'm interested in. It's data I parsed from json.
Lissie has joined #ruby
<drocsid> So I thought maybe the thing to do is to iterate through that array and get each name and compare it against another ds, removing the name from the other ds when I find it. Is that a good way to go about it?
Spami has joined #ruby
b4tm4n has quit [Remote host closed the connection]
<xxneolithicxx> what are you trying to compute from the json data, how many time each name occurs?
claptor has joined #ruby
<drocsid> just that each name occurs once in the json data
dfinninger has joined #ruby
<xxneolithicxx> and if it doesnt?
<drocsid> then I will generate an alert of the missing names
devlop has quit [Quit: Leaving]
devlop has joined #ruby
<xxneolithicxx> but in order for you to know it was missing you would need a list of names before hand
<xxneolithicxx> another list
<drocsid> right that's what I'm saying
RegulationD has joined #ruby
<drocsid> just trying to figure out what other ds I should use
<drocsid> array?
<drocsid> what can I remove elements from
<drocsid> think I will just loop through each of the json elements, compare against my other ds
havenwood has joined #ruby
<xxneolithicxx> >> names = [ 1, 2, 3]; data = [ {:name => 1 }. { :name => 2 } ]; missing = names - data.map{|e| e[:name] }.uniq; pp missing
<ruboto> xxneolithicxx # => /tmp/execpad-8c0377049352/source-8c0377049352:2: syntax error, unexpected {, expecting '(' ...check link for more (https://eval.in/318050)
<drocsid> remove elements when found. Then when I'm finished my other ds will have a list of those items not found.
<xxneolithicxx> >> names = [ 1, 2, 3]; data = [ {:name => 1 }, { :name => 2 } ]; missing = names - data.map{|e| e[:name] }.uniq; pp missing
<ruboto> xxneolithicxx # => undefined method `pp' for main:Object (NoMethodError) ...check link for more (https://eval.in/318051)
<xxneolithicxx> christ
<xxneolithicxx> >> names = [ 1, 2, 3]; data = [ {:name => 1 }, { :name => 2 } ]; missing = names - data.map{|e| e[:name] }.uniq; puts missing.inspect
<ruboto> xxneolithicxx # => [3] ...check link for more (https://eval.in/318052)
<drocsid> xxneolithicxx: and this is the efficent way, using this map method?
pika_pika has joined #ruby
braincrash has quit [Quit: bye bye]
icebourg has quit []
<xxneolithicxx> preoptimizing is usually not a good idea but how much data are you talking
<xxneolithicxx> alternative:
RegulationD has quit [Ping timeout: 276 seconds]
Ellis has joined #ruby
<sohrab> is there a simple way to merge 2 json objects?
Soda has quit [Ping timeout: 244 seconds]
happyface has quit [Quit: Connection closed for inactivity]
<xxneolithicxx> >> names = [ 1, 2, 3]; missing = names.dup; data = [ {:name => 1 }, { :name => 2 } ]; data.each{|e| missing.delete_if {|name| name == e[:name] } }; puts missing.inspect
<ruboto> xxneolithicxx # => [3] ...check link for more (https://eval.in/318053)
icebourg has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
icebourg has quit [Max SendQ exceeded]
ag4ve_ has joined #ruby
<xxneolithicxx> sohrab: it should be converted into standard ruby datatypes so as long is its primites it would just be standard hash/array merging
<havenwood> >> [{name: 1}, {name: 2}, {name: 3}].partition { |h| h[:name].odd? }
icebourg has joined #ruby
<ruboto> havenwood # => [[{:name=>1}, {:name=>3}], [{:name=>2}]] (https://eval.in/318054)
<havenwood> sohrab: JSON.parse both, what do you have?
ascarter has quit [Client Quit]
<xxneolithicxx> *primitives
Soda has joined #ruby
Sawbones has joined #ruby
braincrash has joined #ruby
mgberlin has quit [Remote host closed the connection]
<xxneolithicxx> hmm good one, havent used partition before
cefkamcau has joined #ruby
Ellis has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
<sohrab> havenwood: what do you mean what do i have?
<xxneolithicxx> the datas
fella5s has joined #ruby
<sohrab> just simple stuff. strings
<havenwood> sohrab: Like: JSON.parse("{}").class #=> Hash
cocotton has joined #ruby
<havenwood> sohrab: What's the class of the parsed JSON?
juanpablo__ has joined #ruby
multi_io has quit [Ping timeout: 244 seconds]
<havenwood> sohrab: Check with your JSON. What is it?
eshiffob has quit [Ping timeout: 264 seconds]
<sohrab> havenwood: yeah, hash
<havenwood> sohrab: So you have two Hashes you'd like to merge?
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has quit [Quit: danman]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
multi_io has joined #ruby
<sohrab> havenwood: yeah i guess that's what i'm trying to do. was wonder if there's a way to skip that step :|
<havenwood> sohrab: See if any methods on Hash look like good candidates?: http://ruby-doc.org/core/Hash.html
P1RATEZ has quit []
<sohrab> havenwood: k, ty
charliesome has joined #ruby
<drocsid> xxneolithicxx: thanks, I have some ideas on how to go about this now ( efficently? )..
<havenwood> sohrab: But I'd deserialize, merge then reserialize.
<xxneolithicxx> also just fyi, if you want deep merge its not in there so know if you need deep merge or not
<sohrab> havenwood: yeah that looks simple ty
<havenwood> drocsid: I don't think I follow what you're trying to do. You have an Array of Hashes with :name keys. Are you trying to partition them based on the value corresponding to the :name key? What are the rules?
<sohrab> xxneolithicxx: this is super simple. dont' think i'll need that but ty
juanpablo__ has quit [Ping timeout: 252 seconds]
<xxneolithicxx> he was trying to find which ones did not occur an array of names
workmad3 has joined #ruby
<xxneolithicxx> uniq set of the names in the array of hashes minus a known list of names
<xxneolithicxx> *backwards subtract the other way
<havenwood> >> names = [1, 3]; found, not_found = [{name: 1}, {name: 2}, {name: 3}].partition { |h| names.include? h[:name] }; {found: found, not_found: not_found}
<ruboto> havenwood # => {:found=>[{:name=>1}, {:name=>3}], :not_found=>[{:name=>2}]} (https://eval.in/318060)
<xxneolithicxx> trade off between computer vs storage as to which way he wants to go on that but all those work
<havenwood> computer versus storage?
<xxneolithicxx> compute time vs memory
bas3D_gOD has joined #ruby
<xxneolithicxx> depending on how much data hes working with
m0r0n has joined #ruby
<bas3D_gOD> what is the objective c chat?
<havenwood> bas3D_gOD: ##objc maybe?
<xxneolithicxx> #objective-c
<drocsid> thanks again for the ideas. This is good for me to look into more so I can grow.
<m0r0n> Hello I was wondering what's the best way to pull a git ruby application and have it run seamlessly. I'm having issues with bundle install all over the place after pulling my repo
<havenwood> xxneolithicxx: only 3 folk there
<bas3D_gOD> thanks
<bas3D_gOD> :*
workmad3 has quit [Ping timeout: 250 seconds]
<bas3D_gOD> :*(
<xxneolithicxx> lol ehh close enough, i elgooged
<bas3D_gOD> does anyone have any experience programming nobjectiv ec
<havenwood> bas3D_gOD: 32 in ##objc, make it 33?
Drakevr has quit [Ping timeout: 245 seconds]
<xxneolithicxx> may also want to try mac channels as an alernative
<_blizzy_> this guy.
<bas3D_gOD> _blizzy_: LMFAO
Lissie has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<_blizzy_> he must hate ASP.NET MVC also.
<bas3D_gOD> isn't everything mvc these days?
<_blizzy_> 'it does too much work'
<_blizzy_> THATS THE POINT.
<_blizzy_> and we still have to code in a lot of stuff too.
Eiam_ has joined #ruby
<bas3D_gOD> i tried doing rails and i didn't get what we were doing
<_blizzy_> yes, mvc is everywhere, Rails, Django, Laravel, ASP.NET MVC.
<_blizzy_> etc.
yfeldblu_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
<_blizzy_> well, I must afk now. bye, bas3D_gOD.
Drakevr has joined #ruby
<xxneolithicxx> shit, i should not have dont that
<xxneolithicxx> freaking web irc client hung my browser
<xxneolithicxx> pos
jottr_ has quit [Ping timeout: 240 seconds]
<sevenseacat> so much nerdrage in that reddit thread
Sawbones has quit []
Channel6 has joined #ruby
<bas3D_gOD> people still go on reddit?
jeromelanteri has quit [Ping timeout: 250 seconds]
lektrik has quit [Ping timeout: 244 seconds]
<xxneolithicxx> you mean you dont live in reddit?
_blizzy_ has quit [Ping timeout: 272 seconds]
<bas3D_gOD> reddit is so 2005, it's 2015;.... have you been living under a rock?
narcan has joined #ruby
<sevenseacat> i only go there when people link to stuff there
oo_ has quit [Remote host closed the connection]
stox has quit [Ping timeout: 264 seconds]
<xxneolithicxx> so whats 2015
<bas3D_gOD> don't link to reddit... reddit is an old site full of trolls and other undesirable people
Spami has quit [Quit: This computer has gone to sleep]
<m0r0n> Hello again. I made a rails project, uploaded to git, resinstalled ubuntu, pulled the git after following the same install procedure and I'm getting missing gem errors. Can you please help me?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yfeldblum has joined #ruby
<havenwood> bas3D_gOD: So growing at 200% a year for ten years is... smaller?
mengu has joined #ruby
<bas3D_gOD> no it's stupid
<havenwood> m0r0n: The best place for Rails questions is probably the #RubyOnRails channel. When you `bundle` it says gems are missing?
<bas3D_gOD> the infestation of trolls has been growing 200% a year
<havenwood> bas3D_gOD: So you're saying the signal to noise ratio has remained even? :P
<bas3D_gOD> no it got a lot worse
<bas3D_gOD> last time i was there someone linked child pornography
<bas3D_gOD> this was three days ago
<havenwood> bas3D_gOD: Sounds like you're not in r/ruby.
<Radar> Forgive me Matz for I have sinned
<m0r0n> havenwood: thanks. I tried joining #rails. Yes it does says gems are missing. I then gem install ____ -v xxx and it claims it can't find the source
<xxneolithicxx> lol
<bas3D_gOD> someone linked me to something on reddit, a comment had a link to cp masked as the cutest girl in the world
<Radar> m0r0n: try #rubyonrails, not Rails.
<m0r0n> I'll join rubyonrails and ask there, thanks for the help
<bas3D_gOD> now i'm on every fucking list the nsa, cia, kkk, fbi and whatever other three letter acronym government agency exists out there
<Radar> bas3D_gOD: Oh yes we've heard of you.
* havenwood glances at his clipboard.
<Radar> How *is* California this time of year?
<xxneolithicxx> you realize you probably made their list a long time ago just by joining IRC right?
mengu has quit [Ping timeout: 252 seconds]
a346 has quit [Quit: a346]
maciejczyzewski has joined #ruby
A205B064 has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
vim_shimm has joined #ruby
<greedo> Radar: drought
<bas3D_gOD> xxneolithicxx: you realize that you're also on the list for having too many x in your name
beneggett has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
<xxneolithicxx> dont hate
jlast has joined #ruby
<xxneolithicxx> I wonder if you could request an FOIA on yourself to see what they have on you lol
jeromelanteri has joined #ruby
lidenskap has joined #ruby
maciejczyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Quit: ebbflowgo]
Rickmasta has joined #ruby
vim_shimm has quit [Ping timeout: 264 seconds]
blazes816 has joined #ruby
freerobby has quit [Quit: Leaving.]
<bas3D_gOD> xx (sounds like sex); sex is for perverts(put on automatic possible rapist list); sex is evil; he likes having sex instead of supporting stupid wars that create more global instability(this guy is a rapist and a terrorist); yes you're on all those lists and i am on a list for telling you that you are on a list... we're both fucked
<sevenseacat> thats enough
<sevenseacat> bas3D_gOD: pipe down.
<Radar> +1
<xxneolithicxx> so dem rubies, whatcha guys workin on
<Radar> SMS verification to stop assholes from spamming sellers on our site.
<bas3D_gOD> pipe is also another term for a sexual object... this whole room is on the list!!!
P1RATEZ has joined #ruby
<sevenseacat> right now, i'm doing code school's try sql course for fun and profit.
<xxneolithicxx> shit people still use SMS
<Radar> bas3D_gOD: You were asked to pipe down.
<bas3D_gOD> i'm coding a rails app anyone want to join me?
tcrypt has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
<Radar> bas3D_gOD: Nope.
<bas3D_gOD> Radar: does pipe down involve in going down on someone's "pipe"?
<Radar> That's enough.
<xxneolithicxx> :-)
blazes816 has quit [Ping timeout: 245 seconds]
zorak8 has joined #ruby
devlop has quit [Quit: Leaving]
thatslifeson has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 272 seconds]
devlop has joined #ruby
devlop has quit [Read error: Connection reset by peer]
<xxneolithicxx> the last time i heard anything interesting about SMS was someone writing tool to use it to browse the web in third world countries or something like that
<Radar> Yeah people still use SMS to contact our sellers. We give the users the seller's mobile number after they've verified theirs.
<Radar> I've been using Twilio and I like it.
<sevenseacat> last app i worked on sent a lot of sms messages about shifts they were assigned to work on
<sevenseacat> thousands of the buggers
<Radar> sevenseacat: who did you use to send the messages?
<sevenseacat> messagenet
mleung has quit [Quit: mleung]
<Radar> never heard of them
<Radar> They're not too far from where I work now
<sevenseacat> :)
<Radar> We're using Twilio because we need international support.
Morkel has joined #ruby
<sevenseacat> yeah we only needed domestic messaging
dopie has joined #ruby
felipecvo has quit [Remote host closed the connection]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
Soda has quit [Remote host closed the connection]
doodlehaus has joined #ruby
cocotton has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
lidenskap has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Spami has joined #ruby
plutonic has quit [Quit: plutonic]
juanpaucar has joined #ruby
dvlwrk has joined #ruby
doodlehaus has quit [Ping timeout: 272 seconds]
Spami has quit [Client Quit]
Soda has joined #ruby
mleung has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
dseitz has joined #ruby
Soda has quit [Remote host closed the connection]
icebourg has quit []
Spami has joined #ruby
tubuliferous has joined #ruby
axisys has quit [Ping timeout: 264 seconds]
Spami has quit [Client Quit]
axisys has joined #ruby
Spami has joined #ruby
csaunders has quit [Ping timeout: 246 seconds]
nickjj has quit [Ping timeout: 272 seconds]
csaunders has joined #ruby
arescorpio has quit [Excess Flood]
krz has quit [Ping timeout: 255 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
icarus has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
mtakkman has joined #ruby
ylluminarious has quit [Quit: Leaving...]
kwd has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 264 seconds]
ddarkpassenger has joined #ruby
spider-mario has joined #ruby
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Brozo has quit [Remote host closed the connection]
segfalt has quit [Quit: segfalt]
ddarkpassenger has quit [Client Quit]
<vulix> you guys think if I port some text mining tools to ruby they will actually get used?
oo_ has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
relix has joined #ruby
lkba has joined #ruby
Jonah11_ has quit []
RegulationD has joined #ruby
<xxneolithicxx> text mining as in ie taking the text of books and being able to do various searching or analytics?
robbyoconnor has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
jlast has quit [Remote host closed the connection]
bas3D_gOD has quit [Ping timeout: 246 seconds]
Ellis has joined #ruby
mtakkman has quit [Ping timeout: 265 seconds]
Ellis has quit [Client Quit]
RegulationD has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
duncannz has joined #ruby
zzing has joined #ruby
vulix has quit [Read error: Connection reset by peer]
tvw has joined #ruby
mtakkman has joined #ruby
agent_white has joined #ruby
tmoor has quit [Remote host closed the connection]
vulix has joined #ruby
<agent_white> Evenin'
gaboesquivel has quit [Remote host closed the connection]
dseitz has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
mengu has joined #ruby
iotouch has joined #ruby
oo_ has quit [Remote host closed the connection]
Spami has joined #ruby
hectortrope has joined #ruby
badhatter has quit [Ping timeout: 250 seconds]
kavita has joined #ruby
juanpablo__ has joined #ruby
_lovehandle_ has quit [Ping timeout: 255 seconds]
braincra- has joined #ruby
mengu has quit [Ping timeout: 250 seconds]
greenbagels has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
oo_ has joined #ruby
rshetty has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
m0r0n has quit [Ping timeout: 248 seconds]
longfeet_ has joined #ruby
chrissonar has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
rrichardsr3 has joined #ruby
longfeet has quit [Ping timeout: 240 seconds]
purrkode has joined #ruby
purrkode has quit [Remote host closed the connection]
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
spicerack has joined #ruby
P1RATEZ has quit []
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
jottr_ has joined #ruby
tagrudev has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jottr_ has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
Brozo has joined #ruby
sigurding has joined #ruby
oo_ has quit [Remote host closed the connection]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
Channel6 has joined #ruby
BradPitt has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
badhatter has joined #ruby
badhatter has joined #ruby
Contigi has quit [Quit: Leaving]
<shevy> vulix depends on whether people may find it useful
lxsameer has joined #ruby
<shevy> the best you can do is wrap it into a gem, have a logical, consistent and easy to use API, and provide high quality docs + working usage examples
<shevy> sevenseacat we need domestic cats messaging!
laurentide has quit [Ping timeout: 245 seconds]
A205B064 has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> messagecat: WhatsApp for cats
Lewix has quit [Remote host closed the connection]
<shevy> genetically engineer cats to become cleverer
dopie has quit [Ping timeout: 246 seconds]
<shevy> why should they not be allowed to program to make a living anyway? Not long ago, there was a court hearing for a chimpanzee made legally possible
<shevy> though actually, the title is a misnomer... it's not "human rights", it is just equivalent for habeas corpus (right to their own body http://en.wikipedia.org/wiki/Habeas_corpus )
Contigi has joined #ruby
mleung has quit [Quit: mleung]
plutonic has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
sigurding has joined #ruby
qnode has joined #ruby
konsolebox has joined #ruby
lolmaus has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qnode has quit [Quit: Leaving]
<eam> shevy: it was a mistake, corrected shortly after
dopie has joined #ruby
EricCartman has joined #ruby
Channel6 has quit [Quit: Leaving]
IronKoopa has joined #ruby
<EricCartman> are there any developers out there that only have a ged?
<havenwood> EricCartman: totally
michaeldeol has joined #ruby
wjimenez5271 has quit [Ping timeout: 264 seconds]
<EricCartman> I only have a ged and I want to make 100k a year as a rails dev. am I asking for too much?
<Radar> !8ball
<helpa> Signs point to yes.
<Radar> HELPA HAS SPOKEN
<Radar> EricCartman: how much experience do you have with Rails?
DerisiveLogic has quit [Ping timeout: 255 seconds]
<EricCartman> just learned it. I'm about to go to a programming boot camp will that help my chances?
Xiti has quit [Ping timeout: 250 seconds]
<Radar> Which programming boot camp?
joonty has joined #ruby
<EricCartman> coding dojo
<Radar> glhf trying to find a $100k job immedately.
krz has joined #ruby
<sevenseacat> 100k out of the box?
<EricCartman> is that a lot?
<Radar> Unless you move to SF in which case > 50% of that would be going towards rent
<Radar> EricCartman: With no experience? Yes, that's a lot.
BradPitt has quit [Ping timeout: 245 seconds]
<flughafen> hey guys sevenseacat certainty shevy
<sevenseacat> if you find somewhere offering 100k jobs, let me know plz? :)
<EricCartman> can't I live in homeless shelters?
<Radar> You can expect probably around the 65k mark
<flughafen> EricCartman: i don't have a degree and i make really good money. it's possible, you just need to work a lot.
<EricCartman> do you have a ged?
<flughafen> EricCartman: no, just a regular high school diploma, but I did bad in high school and never went to college
<Radar> I don't have a ged and I didn't go to uni
<Radar> I make more than 100k :)
codecop has joined #ruby
<EricCartman> wait you didn't graduate high school?
<Radar> I didn't go to your American high schools
<Radar> What I do have is 9 years experience in Ruby and Rails.
* sevenseacat pokes textual a bit for being silly
cocotton has joined #ruby
<eam> Radar: it's not that expensive in the SF bay area
<EricCartman> after how many years would you say your skills plateaued?
<eam> also uh, for six figure jobs try just about anywhere around SF
juanpaucar has joined #ruby
fabrice31 has joined #ruby
<sevenseacat> i dont think they do plateau
<EricCartman> I think they do
<sevenseacat> you think wrong
fabrice31 has quit [Read error: Connection reset by peer]
<EricCartman> you stop noticing the huge wall you're facing and can pick up advanced topics like a breeze. I consider that a plateau
aufi has joined #ruby
fabrice31 has joined #ruby
jgrevich has quit [Ping timeout: 256 seconds]
sohrab has quit [Quit: leaving]
<sevenseacat> if that actually existed, it might be considered one
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
<EricCartman> you stop noticing the struggle that you had when you initially struggled
<sevenseacat> the more you learn, the more you realize how much there is to learn
<EricCartman> it exists in every field
<flughafen> sevenseacat: +1
zorak8 has quit [Ping timeout: 272 seconds]
* Radar microwaves some popcorn
* sevenseacat goes back to poking at installing mysql on windows
<EricCartman> I realize that but how long did it take you to stop having your hand held by others?
<eam> gonna suggest that the work plateau occurs after reaching financial independence
<flughafen> sevenseacat: windows? i'm so sorry
cocotton has quit [Ping timeout: 250 seconds]
<EricCartman> because right now I am still learning a lot, but I know that with time I will learn everything about rails
<Radar> hahahahahahahahahahahahahahahahahahahahahahahaha
<EricCartman> so 65k a year for a guy with a GED right?
wottam has joined #ruby
<sevenseacat> flughafen: its not for me to use, its just for testing purposes :)
* Radar suffocates due to laughter
<Radar> "I will learn everything about Rails"
juanpaucar has quit [Ping timeout: 245 seconds]
<Radar> ahh such sweet ambition
sigurding has quit [Quit: sigurding]
* havenwood budgets two weeks.
* EricCartman kicks radar in his shins
<Radar> Like a young martial artist thinking he will be able to defeat anyone in man-to-man combat.
<EricCartman> that's different
felipecvo has joined #ruby
<sevenseacat> even if by some miracle you managed to forcefeed the entirety of rails into your head, which is impossible
dopie has quit [Ping timeout: 264 seconds]
<sevenseacat> building rails apps is not just 'i know rails'
<Radar> EricCartman: You think you can learn everything about Rails?
<EricCartman> how long did it take you to be comfortable with building rails apps?
<Radar> You think that even after 9 years I could explain in a decent manner what ActiveSupport::Autoload does?
<EricCartman> you should
<Radar> Or what comes first; loading config/environments/* or config/initializers?
<EricCartman> or am I wrong?
<sevenseacat> Radar: I don't think ${deity} knows how that works
<Radar> Or not having to look up the argument order for some methods *still*
<Radar> EricCartman: You are wrong.
<Radar> EricCartman: You think yourself smart and that is a good thing because it means you have reached the first (of four) stages of enlightement.
Xiti has joined #ruby
<EricCartman> but don't you look at the code?
<eam> well, by "learn rails" do you mean rote memorization? Or learning how to obtain the answer easily on demand?
<EricCartman> second answer ran
<eam> the former is nonsense, the latter comes pretty quickly
<EricCartman> eam
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> EricCartman: yeah, so that's reasonable then
dopie has joined #ruby
kyrylo has joined #ruby
Joufflu has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
<sevenseacat> oh thats a good chart.
<Radar> indeed
felipecvo has quit [Ping timeout: 256 seconds]
<flughafen> EricCartman: start developing. right now
EricCartman has quit [Remote host closed the connection]
<sevenseacat> Radar: and your autoloading doesnt even get a mention in it :P
slackbotgz has joined #ruby
<sevenseacat> oh sorry, it comes under the little leaf of ActiveSupport
<certainty> so if nobody knows how that works, what does that tell you about the system?
<sevenseacat> Radar: also, there we go, thats my next book XD
AlphaAtom has joined #ruby
tubuliferous has joined #ruby
dopie has quit [Read error: Connection reset by peer]
SouL_|_ has joined #ruby
<Radar> sevenseacat: hahaha you wouldn't write a book about all of that
<certainty> OTOH i wonder how many haskellers really understand lenses and use them in a day to day basis
<Radar> each "leaf" on that is its own book!
konsolebox has quit [Remote host closed the connection]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
arturaz has joined #ruby
<sevenseacat> so a series of books then <_<
turtil has quit [Quit: WeeChat 1.1.1]
konsolebox has joined #ruby
icarus has quit [Ping timeout: 265 seconds]
konsolebox has quit [Max SendQ exceeded]
tubuliferous has quit [Ping timeout: 246 seconds]
simonewestphal has joined #ruby
<Radar> There are books about a lot of that stuff already.
<shevy> eam awww :(
<Radar> I think a curated list of books w/ examples of applying the lessons in the books would be the way to go.
musashi1 has joined #ruby
oo_ has quit [Remote host closed the connection]
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
Cust0sL1men has quit [Ping timeout: 255 seconds]
nickjj has joined #ruby
oo_ has joined #ruby
krz has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
Brozo has quit [Remote host closed the connection]
vire has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
yogamixer_ has joined #ruby
Brozo has joined #ruby
krz has joined #ruby
_blizzy_ has joined #ruby
icarus has joined #ruby
aganov has joined #ruby
rkazak has quit [Quit: rkazak]
musashi1 has quit [Remote host closed the connection]
yogamixer_ has quit [Remote host closed the connection]
AlphaAtom has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Ping timeout: 240 seconds]
vire has quit [Ping timeout: 252 seconds]
joonty has quit [Quit: joonty]
longfeet_ has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
andikr has joined #ruby
RegulationD has joined #ruby
lidenskap has quit [Remote host closed the connection]
jud has quit [Quit: Leaving]
simonewestphal has left #ruby [#ruby]
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
lidenskap has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
rkazak___ has joined #ruby
amclain has quit [Quit: Leaving]
sigurding has joined #ruby
joonty has joined #ruby
rkazak has quit [Ping timeout: 256 seconds]
rkazak___ is now known as rkazak
lidenskap has quit [Ping timeout: 256 seconds]
spicerack has joined #ruby
badhatter has quit [Ping timeout: 272 seconds]
allenn has joined #ruby
mengu has joined #ruby
juanpablo__ has joined #ruby
psy__ has quit [Ping timeout: 245 seconds]
vire has joined #ruby
jheg has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Brozo has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
iotouch has joined #ruby
joonty has quit [Quit: joonty]
oo_ has joined #ruby
juanpablo__ has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
bal has joined #ruby
vdamewood has joined #ruby
cocotton has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
cocotton has quit [Ping timeout: 240 seconds]
TheHodge has joined #ruby
sigurding has quit [Quit: sigurding]
rshetty has quit [Remote host closed the connection]
krz has quit [Ping timeout: 264 seconds]
doertedev has joined #ruby
doertedev has quit [Client Quit]
bal has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
doertedev has joined #ruby
yfeldblum has quit [Remote host closed the connection]
krz has joined #ruby
kavita has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
bim has joined #ruby
bim is now known as Guest35510
alex88 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
IronKoopa has quit [Ping timeout: 272 seconds]
jheg has quit [Quit: jheg]
rrichardsr3 has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: night]
ta_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
simonewestphal has joined #ruby
blueOxigen has joined #ruby
sigurding has joined #ruby
User458764 has joined #ruby
Cloudhand has joined #ruby
lidenskap has joined #ruby
spider-mario has quit [Remote host closed the connection]
simonewestphal has quit [Client Quit]
bluOxigen has quit [Ping timeout: 256 seconds]
shoutsid has joined #ruby
simonewestphal has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
simonewestphal has left #ruby [#ruby]
Cloudzy has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 256 seconds]
avril14th has joined #ruby
Aswebb_ has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
tubuliferous has quit [Ping timeout: 256 seconds]
kyrylo has quit [Quit: Konversation terminated!]
kyrylo has joined #ruby
vire has quit [Quit: Leaving]
vire has joined #ruby
tubuliferous has joined #ruby
rshetty has joined #ruby
iotouch has joined #ruby
timonv has joined #ruby
<avril14th> morning
<apeiros> møin
vasilakisfil_ has joined #ruby
Guest35510 has quit [Remote host closed the connection]
coderhs has joined #ruby
rshetty has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
marr has joined #ruby
krz has joined #ruby
ascarter has joined #ruby
lidenskap has quit [Remote host closed the connection]
rshetty has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
mengu__ has joined #ruby
hanmac has joined #ruby
terlar has joined #ruby
rshetty has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
livathinos has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
msgodf has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
chinmay_dd has quit [Remote host closed the connection]
<apeiros> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<apeiros> DeBot: #:_ena
<DeBot> ␣␣en␣␣␣::␣␣e␣::E␣::␣␣␣␣␣#␣e␣␣ee [_a] 2/12
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
<apeiros> DeBot: rs
<DeBot> ␣␣enSS␣::␣␣e␣::E␣::␣r␣␣␣#␣e␣ree [_a] 2/12
<apeiros> DeBot: opl
<DeBot> OpenSSL::P␣e␣::E␣::␣ro␣p#␣e␣ree [_a] 2/12
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> DeBot: k
<DeBot> OpenSSL::PKe␣::E␣::␣ro␣p#␣e␣ree [_a] 2/12
OnBrokenWings has joined #ruby
<apeiros> DeBot: y
<DeBot> OpenSSL::PKey::E␣::␣ro␣p#␣e␣ree [_a] 2/12
<apeiros> DeBot: c
<DeBot> OpenSSL::PKey::EC::␣ro␣p#␣e␣ree [_a] 2/12
<apeiros> DeBot: gu
<DeBot> OpenSSL::PKey::EC::Group#␣egree [_a] 2/12
<certainty> apeiros is playing alon
<certainty> degree
<apeiros> DeBot: d
<DeBot> OpenSSL::PKey::EC::Group#degree [_a] 2/12 You won!
<avril14th> "hangman javascript" would make much more sense, at least for the name
<apeiros> it would?
<apeiros> would it?
blackmesa has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
ixti has quit [Ping timeout: 264 seconds]
simonewestphal_ has joined #ruby
konsolebox has joined #ruby
<apeiros> yay! gemfile got longer than 200 lines! time to celebrate!
<adaedra> Because JavaScript makes you hang yourself?
konsolebox has quit [Max SendQ exceeded]
<adaedra> wut
<adaedra> 200 lines Gemfile
elaptics_away is now known as elaptics
konsolebox has joined #ruby
Pumukel has joined #ruby
duncannz has quit [Quit: Leaving]
<apeiros> ok, 152 if you remove empty lines and comments
duncannz has joined #ruby
Cust0sL1men has quit [Ping timeout: 250 seconds]
<avril14th> you beat me, 125 here with no empty line
<apeiros> oh, haven't saved the new line! 153! :D
vtunka has joined #ruby
joonty has joined #ruby
vtunka has quit [Client Quit]
bricker has joined #ruby
afrianska has joined #ruby
kwd has joined #ruby
tesuji has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
tubuliferous_ has joined #ruby
icarus has quit [Ping timeout: 265 seconds]
chthon has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bal has joined #ruby
bruno- has joined #ruby
mengu__ has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
bruno- is now known as Guest80027
tubuliferous_ has quit [Ping timeout: 245 seconds]
doodlehaus has joined #ruby
ponga has joined #ruby
Pupeno has joined #ruby
bal1 has joined #ruby
jimms has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
bal has quit [Ping timeout: 276 seconds]
fabrice3_ has joined #ruby
lidenskap has joined #ruby
ponga has joined #ruby
granthatcher has joined #ruby
msgodf has joined #ruby
konsolebox has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 244 seconds]
bim has joined #ruby
bim is now known as Guest26625
fabrice31_ has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL_|_ has quit [Read error: Connection reset by peer]
riotingpacifist has joined #ruby
rshetty has joined #ruby
c0m0 has joined #ruby
SouL_|_ has joined #ruby
platzhirsch has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sevenseacat has quit [Ping timeout: 245 seconds]
bal1 has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty has quit [Remote host closed the connection]
relix has joined #ruby
rshetty has joined #ruby
ki0 has joined #ruby
RegulationD has joined #ruby
quimrstorres has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
C1V0 has joined #ruby
C1V0 has quit [Client Quit]
sevenseacat has joined #ruby
C1V0 has joined #ruby
michael_mbp has quit [Excess Flood]
Guest80027 has quit [Ping timeout: 245 seconds]
fabrice3_ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
fabrice31 has joined #ruby
michael_mbp has joined #ruby
shay_shay has joined #ruby
rshetty has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 255 seconds]
lolmaus has joined #ruby
rshetty has joined #ruby
lolmaus has quit [Client Quit]
platzhirsch has joined #ruby
lolmaus has joined #ruby
startupality has joined #ruby
oo_ has quit [Remote host closed the connection]
iotouch has quit [Ping timeout: 244 seconds]
mengu has quit [Remote host closed the connection]
yfeldblum has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
Stalkr^ has joined #ruby
mengu has joined #ruby
dvlwrk has quit [Ping timeout: 245 seconds]
<jhass> Bundle complete! 121 Gemfile dependencies, 273 gems now installed.
iotouch has joined #ruby
<jokester> wow
wldcordeiro has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Excess Flood]
juanpablo__ has joined #ruby
michael_mbp has joined #ruby
Igorshp has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
lolmaus has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
yfeldblum has joined #ruby
`sicks has joined #ruby
workmad3 has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
`sicks has quit [Client Quit]
cocotton has joined #ruby
<apeiros> jhass: hu? my bundler doesn't print that…
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<apeiros> aha
<apeiros> gem update bundler, and now it does too.
<apeiros> "only" 255 gems
plutonic has quit [Quit: plutonic]
lolmaus has quit [Quit: Konversation terminated!]
solars has joined #ruby
cocotton has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Remote host closed the connection]
konsolebox has joined #ruby
basiclaser has joined #ruby
<solars> hey, does anyone know if the "unless" condition doesn't work in erb templates? I don't understand how this is possible: https://gist.github.com/solars/9bc224f20d44ef3d9524
<solars> hm no it's the same with if !()
fabrice31_ has joined #ruby
<jhass> what's ._?. ? looks weird
mdw has joined #ruby
<apeiros> solars: so _?.blank? returns false?
* apeiros assumes _? is something like andand
<apeiros> or try
Joufflu has joined #ruby
allcentury has joined #ruby
jottr_ has joined #ruby
rshetty has quit [Remote host closed the connection]
<solars> trying different combinations now..
mengu has quit [Remote host closed the connection]
julieeharshaw has quit [Ping timeout: 240 seconds]
<solars> the ._? method only returns self
ponga has quit [Remote host closed the connection]
<solars> ah you're probably right
julieeharshaw has joined #ruby
<solars> .blank? is: respond_to?(:empty?) ? empty? : !self
vtunka has joined #ruby
<solars> so I get !nil
gaboesquivel has joined #ruby
Cloudhand has quit [Ping timeout: 244 seconds]
avril14th has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
gaboesquivel has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
vtunka has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
rkazak has left #ruby [#ruby]
systemd0wn has quit [Remote host closed the connection]
systemd0wn has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
robert_ has joined #ruby
shoutsid has quit [Remote host closed the connection]
<robert_> is there a kind of stream object for binary files that are generated in memory? (that is, not saved to disk.)
relix has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<apeiros> robert_: String
<apeiros> and/or StringIO if you need an IO interface
<robert_> ah, StringIO works for binary too?
<apeiros> why would it not?
mclee_ is now known as mclee
<robert_> well, binary is usually "Oh, you need a FileIOLikeObject" for that kind of thing.
Morkel has quit [Quit: Morkel]
<apeiros> ruby ain't java :-p
lidenskap has quit [Remote host closed the connection]
<robert_> but I suppose ass-u-me :p
<apeiros> just make sure you set your encodings correctly.
lidenskap has joined #ruby
<robert_> apeiros: My whole thing is that I'm going to be using sendgrid's web api for mail delivery and they don't let you attach dynamic files after the Mail object is created.
shoutsid has joined #ruby
<apeiros> I don't even know what a dynamic file is supposed to be :)
<robert_> that is
blackmesa has quit [Ping timeout: 240 seconds]
<robert_> add_attachment wants a file on the disk; it doesn't support streams or anything.
<apeiros> ah, such APIs are annoying
<apeiros> check its code
khebbie has joined #ruby
<apeiros> it has to read the file somehow too and process it as a string.
lidenskap has quit [Remote host closed the connection]
adac has joined #ruby
<robert_> I meant that it doesn't support add_file_attachment vs add_attachment, where add_attachment accepts arbitrary data.
<robert_> it wants you to pass that in when composing the object.
<adac> Does someone know ho to transform a "RGeo::Geographic::SphericalMultiPolygonImpl" object into geojson Multipolygon?
shoutsid has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<apeiros> robert_: and I still mean the same. look at the method's code.
ponga has joined #ruby
Mezjin has joined #ruby
<apeiros> adac: I'm pretty sure everybody else has to look at the docs just the same as you…
<robert_> I know, and I'll to use StringIO for that.
ponga has quit [Remote host closed the connection]
khebbie has quit [Ping timeout: 256 seconds]
vtunka has joined #ruby
<vulix> I have a question of practicality - if I write some data science tools in Ruby do you guys think they will actually be useful, or pointless since python and java have so many libraries already?
serivich has joined #ruby
<apeiros> vulix: if you can make use of them, they're useful
timonv has joined #ruby
<vulix> well my work flow is already in java and python, I just prefer to replace the python part with ruby >)>
<apeiros> and "language X already has Y" was never a good reason not to write something. otherwise we could just stop writing ruby altogether.
<vulix> true
<apeiros> (and would probably write COBOL or whatever came before that)
rshetty has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
iamninja_ has quit [Read error: Connection reset by peer]
<vulix> sometimes I just worry ruby isnt being used for anything outside of rials
<apeiros> it is
iamninja_ has joined #ruby
<apeiros> with regards to sciences, I often read bio/genetic related stuff here
AlexRussia has quit [Quit: WeeChat 1.2-dev]
<vulix> Ok speaking of bio, bioruby seems like a dead project?
timonv has quit [Client Quit]
vtunka has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
timonv_ has joined #ruby
<apeiros> no idea, I'm not a biologist
Joufflu has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
towski_ has joined #ruby
tkuchiki_ has joined #ruby
towski_ has quit [Remote host closed the connection]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
User458764 has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
Mezjin has quit [Remote host closed the connection]
tkuchiki_ has quit [Ping timeout: 245 seconds]
gfawcettpq has quit [Ping timeout: 264 seconds]
juanpaucar has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Read error: Connection reset by peer]
C1V0 has quit []
shoutsid has joined #ruby
jimms has joined #ruby
colorisco has quit [Ping timeout: 246 seconds]
colorisco has joined #ruby
bkxd has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
thecoolguy has joined #ruby
<thecoolguy> so when downloading rubygem, do i have to extract to to my ruby instalation folder ?
<adaedra> what
fgo has quit [Ping timeout: 272 seconds]
<thecoolguy> or are they suppose to be in seperate folders
<adaedra> what are you trying to do?
juanpaucar has quit [Ping timeout: 264 seconds]
<thecoolguy> install ruby, ruby on rails, and RubyGems
<adaedra> You install ruby though your package manager or rbenv/rvm, then use gem command to install gems like rails
<apeiros> thecoolguy: `gem install GEMNAME` does everything
AlphaAtom has joined #ruby
<apeiros> if you download the gem manually, then `gem install path/to/local/gemfile.gem` will do everything
<shay_shay> you guys really smell like dog buns
<thecoolguy> hm i see
<thecoolguy> does RubyGems(https://rubygems.org/pages/download) come with ruby or do i have to install it
<thecoolguy> using that command
<apeiros> if you're using a reasonably new ruby, the `gem` command comes with ruby.
oo_ has joined #ruby
<apeiros> (+ if you use a reasonable package manager…)
<adaedra> Your system should provide it, but sometimes ruby and rubygems are separate packages.
<adaedra> Otherwise, use rvm or rbenv which will setup a recent ruby for you and are able to manage multiple ruby versions at the same time if your need.
<thecoolguy> Ah, i see
postmodern has quit [Quit: Leaving]
ponga has joined #ruby
zenspider has quit [Ping timeout: 240 seconds]
OnBrokenWings has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
OnBrokenWings has joined #ruby
CloCkWeRX has joined #ruby
Mezjin has joined #ruby
doodlehaus has joined #ruby
Zai00 has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 276 seconds]
zenspider has joined #ruby
fabrice31 has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
vickleton has quit [Ping timeout: 252 seconds]
Igorshp has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
shredding has joined #ruby
shoutsid has joined #ruby
shoutsid has quit [Remote host closed the connection]
simonewestphal_ has quit [Quit: simonewestphal_]
iotouch has quit [Quit: This computer has gone to sleep]
serivich has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: Leaving]
mengu has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
anaeem1 has joined #ruby
tkuchiki_ has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
seal has joined #ruby
jottr_ has joined #ruby
seal has quit [Read error: Connection reset by peer]
anaeem1 has quit [Client Quit]
Cust0sL1men has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
yaw has joined #ruby
Nahra has quit [Remote host closed the connection]
shoutsid has joined #ruby
RegulationD has joined #ruby
Nahra has joined #ruby
quimrstorres has joined #ruby
shoutsid has quit [Remote host closed the connection]
User458764 has joined #ruby
Guest26625 has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
bim has joined #ruby
bim is now known as Guest42124
RegulationD has quit [Ping timeout: 250 seconds]
Darkwater has joined #ruby
doodlehaus has joined #ruby
shellfu_afk is now known as shellfu
oo_ has quit [Remote host closed the connection]
shellfu has quit [Remote host closed the connection]
vdamewood has joined #ruby
mdw has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
juanpablo__ has joined #ruby
rshetty_ has joined #ruby
vdamewood has quit [Max SendQ exceeded]
krz has quit [Ping timeout: 256 seconds]
zcreative has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<Darkwater> valid json can't contain NUL bytes, right?
dhvxox has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
rshetty_ has quit [Remote host closed the connection]
Guest99380 has quit [Ping timeout: 255 seconds]
cocotton has joined #ruby
<jhass> let's try!
workmad3 has quit [Ping timeout: 244 seconds]
<jhass> >> require "json"; JSON.parse %({"foo": "bar\x00"})
<ruboto> jhass # => 757: unexpected token at '{"foo": "bar' (JSON::ParserError) ...check link for more (https://eval.in/318276)
<jhass> looks like the answer is yes, it can't
Mohan has joined #ruby
Mohan is now known as Guest29575
<jhass> ?pry Darkwater
<ruboto> Darkwater, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<jhass> and is super awesome for such experiments ;)
fgo has joined #ruby
vdamewood has joined #ruby
zz_Haiiro has quit [Quit: ZNC - http://znc.in]
cocotton has quit [Ping timeout: 244 seconds]
shoutsid has joined #ruby
mikecmpbll has joined #ruby
fo2x has joined #ruby
Aswebb_ has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
shellfu has joined #ruby
_lovehandle_ has joined #ruby
Devoth has joined #ruby
NinjaOps has joined #ruby
_lovehandle_ has quit [Client Quit]
_lovehandle_ has joined #ruby
kp666 has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
<Devoth> Hey folks!. How can I set another character for :undef replacement in this chunk of code: str.encode!( "iso-8859-2", "utf-8", :invalid => :replace, :undef => :replace) ?
gfawcettpq has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
a5i has joined #ruby
livathinos has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
Mezjin has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shellfu is now known as shellfu_afk
<Devoth> ii I do str.encode!( "iso-8859-2", "utf-8", :invalid => :replace, :undef => '') it throws an error
<mikecmpbll> Devoth: have you looked at the docs? :)
sigurding has quit [Quit: sigurding]
mengu has quit [Ping timeout: 252 seconds]
<Devoth> yep here http://ruby-doc.org/core-1.9.3/String.html but I can't find it
<Devoth> sorry I'm not experienced with ruby
<mikecmpbll> well, it's there, in plain sight
<mikecmpbll> :)
Morkel has joined #ruby
<mikecmpbll> look at the options listed under `encode`
yeticry has quit [Ping timeout: 265 seconds]
DEA7TH has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
<Devoth> So I tried to do :undef => '' (so undefined characters are deleted)
<mikecmpbll> no, you didn't read it
<Devoth> Is that how I'm supposed to do it?
yeticry has joined #ruby
<mikecmpbll> look at all the options
Askilada has joined #ruby
jenrzzz has joined #ruby
<Askilada> Hi, is it possible to make the Time class, be relative to the unix timestamp instead of 1823-11-12
<mikecmpbll> Askilada: ?
<Askilada> mikecmpbll: yeah
lidenskap has joined #ruby
<Darkwater> jhass: cool, thanks
rodfersou has joined #ruby
<Askilada> mikecmpbll: It's because, then you use, Time object in MongoDB, it will give me the seconds from 1823-11-12 , and not Feb. 1. 1970
<mikecmpbll> Askilada: code pls, no idea what you're on about
sevenseacat has joined #ruby
<Darkwater> also pry looks cool
<Askilada> mikecmpbll: give me two min, then I'll make a pastebin
<mikecmpbll> Askilada: Time.new.to_i produces a unix timestamp, Time.at(131243243) parses one
<Devoth> mikecmpbll: ok now I got it - need to define :replace in the same array(hash)… but to be honest if you didn't explicitly say the answer is there I wouldn't figure it out on my own. This is really awkward concept for someone coming from PHP ;)
<mikecmpbll> Devoth: you got it
<Devoth> mikecmpbll: thanks man
<mikecmpbll> Devoth: you wouldn't have got it? why, you did get it?
<mikecmpbll> lol..
claw has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
<Devoth> mikecmpbll: dunno exactly It's a bit different approach to what I'm used to I guess
lidenskap has quit [Ping timeout: 250 seconds]
<mikecmpbll> Devoth: the only approach you need to know is the 'read the docs' approach :)
<mikecmpbll> and you've mastered that now. so go forth and conquer (ruby style)
rshetty has joined #ruby
<Devoth> mikecmpbll: if the docs / languages had the same conventions it would be easy, sometimes it requires switching to a different mindset, like e.g. when I'm digging through bash manual - so hard to understand. Ruby docs are somewhere between that and php (php as easy ;) )
shoutsid has joined #ruby
<mikecmpbll> Devoth: fair enough. maybe i'm too familiar with the ruby docs to see the trouble but it seems pretty clearly laid out to me
bkxd_ has joined #ruby
<Askilada> mikecmpbll: http://pastebin.com/kZfgpfJc
<ruboto> Askilada, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e104f6e7a9f1f6b808dc
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<mikecmpbll> thanks for the gist, ruboto ;)
doodlehaus has quit [Remote host closed the connection]
<Askilada> Ups sorry :(
<Askilada> Don't hate me, first time in this room
<Askilada> Thanks ruboto
<Askilada> Hope you can see my idear
dhvxox has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
_lovehandle_ has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
surs1 has joined #ruby
<mikecmpbll> Askilada: you've not shown the code that converts the DateTime/Time objects to the floats that you have in your output
bkxd has quit [Ping timeout: 256 seconds]
<mikecmpbll> Askilada: somewhere in Endpointresult.collection.aggregate i would imagine.
<Askilada> Yes, but if you try to take the number in the created, you'll se a greater then number, which not match the unix timestamp for that date
surs has quit [Ping timeout: 245 seconds]
<mikecmpbll> Askilada: yeah, but i don't know how that number is produced
timonv_ has quit [Quit: Leaving...]
<mikecmpbll> Askilada: also, the origin of your problem might be with: time.to_time - 7.days.ago
<mikecmpbll> you probably want time.to_time - 7.days
barkerd427 is now known as zz_barkerd427
<mikecmpbll> or simply 7.days.ago, depending on exactly what you want.
ugyqrs has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
<Askilada> Ohh the number should be all right, and the date as well. When i use the MongoDB query in my CLI i got the right result, but, its like, Time is as documentated returning the time sence 1823-11-12, and are build up on the unsigned bugnumber, instead of unsigned integer, so i don't get the unix timestamp, that mongodb want
<mikecmpbll> Askilada: what you're actually getting with your code, is the number of seconds in 7 days, with float precision errors
Darkwater has left #ruby ["so much to do, so much to see"]
<Askilada> It's more like an mongo-driver error, no help in #mongodb, so I was looking for how to make the number start from the unix Epoch. But what I'm trying to do it just use my Time object in my mongodb.collection agg
abyss has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
<mikecmpbll> Askilada
<mikecmpbll> oops. Askilada: i think you're missing the point
<mikecmpbll> because your example code is completely broken
<Askilada> mikecmpbll: It's an itteration of my code, but yeah. I have used the last 3 hours searching on google, that's why I'm here now
<mikecmpbll> Askilada: did you read what i said about your error in your code?
DEA7TH has quit [Ping timeout: 252 seconds]
<mikecmpbll> because i'm not understanding what in your example is a "problem", it all looks to run exactly as expected to me (and nothing to do with Time's epoch)
phutchins has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Guest42124 has quit [Remote host closed the connection]
Spami has joined #ruby
juanpaucar has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
timonv_ has joined #ruby
<Askilada> mikecmpbll: I found this earlier today: http://qnalist.com/questions/5225253/how-to-set-an-isodate-via-set-operation-with-ruby-driver, which descripe my problem pretty well. In the response. A quate "The Ruby driver uses Ruby's built in Time class for representing ISODate types from MongoDB. In your own code, just use Ruby's Time class and the driver will take care of serializing and deserializing this data for you." But i just got way more seconds
<Askilada> while doing it this way
hiyosi has joined #ruby
timonv_ has quit [Remote host closed the connection]
<mikecmpbll> Askilada: i'm not going to help you unless you can provide your own debugging which demonstrates some problem
<mikecmpbll> sorry, good luck though.
chinmay_dd has joined #ruby
krz has joined #ruby
Raboo has joined #ruby
<Askilada> mikecmpbll: Okay, I'll see what i can do
<Askilada> thanks
lolmaus has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
jimms has quit [Read error: Connection reset by peer]
bim has joined #ruby
jimms has joined #ruby
edwinvdgraaf has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
bim is now known as Guest91172
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simonewestphal has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
timonv_ has quit [Client Quit]
timonv has joined #ruby
mengu has joined #ruby
plutonic has joined #ruby
krz has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
vtunka has joined #ruby
nfk has joined #ruby
piotrj has quit [Remote host closed the connection]
surs1 has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby
piotrj has joined #ruby
shoutsid has quit [Remote host closed the connection]
livathinos has joined #ruby
tubuliferous_ has joined #ruby
OrbitalKitten has joined #ruby
djellemah has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 252 seconds]
piotrj has quit [Remote host closed the connection]
banister has joined #ruby
Guest29575 has quit [Ping timeout: 250 seconds]
shoutsid has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
avarice has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest24472
astrobunny has quit [Remote host closed the connection]
RegulationD has joined #ruby
doodlehaus has joined #ruby
mjuszczak has joined #ruby
edwinvdgraaf has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Askilada> '
predator217 has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Remote host closed the connection]
predator117 has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
surs1 has joined #ruby
djellemah has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
joonty has quit [Quit: joonty]
riotingpacifist has left #ruby [#ruby]
jsaak has joined #ruby
yalue has joined #ruby
_blizzy_ has joined #ruby
joonty has joined #ruby
scripore has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
rshetty_ has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
avarice has quit [Quit: this channel is bakas]
scripore has quit [Client Quit]
doodlehaus has joined #ruby
Guest91172 has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 265 seconds]
cranq has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
b4tm4n has joined #ruby
banister has joined #ruby
iotouch has joined #ruby
Pharaoh2 has joined #ruby
cranq has joined #ruby
mary5030 has joined #ruby
rshetty has joined #ruby
mjuszczak has quit []
jenrzzz has joined #ruby
Guest24472 has quit [Ping timeout: 256 seconds]
zz_barkerd427 is now known as barkerd427
doodleha_ has joined #ruby
Lewix has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
Mohan_ has joined #ruby
felipecvo has joined #ruby
terlar has joined #ruby
doodlehaus has quit [Ping timeout: 256 seconds]
_lovehandle_ has joined #ruby
rshetty_ has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
SouL_|_ has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
kedare has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
krz has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
felipecvo has quit [Ping timeout: 264 seconds]
lidenskap has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
dANO has joined #ruby
gkra has quit [Ping timeout: 244 seconds]
CloCkWeRX has left #ruby [#ruby]
gkra has joined #ruby
Mezjin has joined #ruby
catphish has joined #ruby
<catphish> totally pointless question: why has nil been moved from 4 to 8?
sdothum has joined #ruby
juanpablo__ has joined #ruby
diegoviola has joined #ruby
<sevenseacat> i did wonder that.
<catphish> true has also moved
Timba-as has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Devoth> Does this make sense (it works!), or should I approach it differently?:
<Devoth> html = 'Some string containing ® weird chars'
<Devoth> special_chars = [ '&reg;', '&raquo;' ]
<Devoth> special_chars.each { |x| string_with_weird_chars.gsub!( Regexp.new( HTMLEntities.new.decode x ), x) }
<catphish> interestingly no object now resides at id 4
doodleha_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
vtunka has quit [Quit: Leaving]
<catphish> looks like floats now have fixed object IDs to speed up float operations, make sense
sinkensabe has joined #ruby
workmad3 has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
juanpablo__ has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
elaptics is now known as elaptics_away
<apeiros> catphish: flonums
<apeiros> ah, I see, you already figured
cocotton has joined #ruby
Igorshp has joined #ruby
<catphish> yeah, for some crazy reason i decided to google it :)
banister has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
banister has quit [Max SendQ exceeded]
<apeiros> Devoth: I'd assume that HTMLEntities already has a method for that?
stef204 has joined #ruby
<apeiros> Devoth: and if not, if you have to do it often, then you can do it in a single gsub. that should be faster.
ndrei has joined #ruby
<apeiros> using: html.gsub(/©|«|»|…/, {"©" => "&copy;", …})
Mohan_ has quit [Ping timeout: 252 seconds]
<Devoth> apeiros: I 'cant run HTMLEntities on every char in the text, as some shouldn't be replaced (if that is what you mean)
Pumukel has joined #ruby
<apeiros> Devoth: that's not what I mean. I mean you can drop the special_chars.each.
<Devoth> apeiros: I was wondering if gsub can take pattern parameter as array, but it doesn't seem so ;)
<apeiros> and the other thing I mean is that I expect a method to exist in HTMLEntities, where you can replace your entire code from above with just `HTMLEntities.<magic method>(string_with_weird_chars)`
Mohan_ has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
<Devoth> apeiros: ok thanks, will look at these :)
mjuszczak has quit [Read error: Connection reset by peer]
mjuszcza_ has joined #ruby
gaboesquivel has joined #ruby
sinkensabe has quit [Remote host closed the connection]
krz has quit [Ping timeout: 250 seconds]
gaboesquivel has quit [Client Quit]
zorak8 has joined #ruby
Igorshp has quit [Remote host closed the connection]
Rapier- has joined #ruby
rshetty has joined #ruby
piotrj has joined #ruby
Igorshp has joined #ruby
scripore has joined #ruby
joonty has quit [Quit: joonty]
bim has joined #ruby
bim is now known as Guest752
iotouch has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
dvlwrk has joined #ruby
joonty has joined #ruby
dstarh has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<izzol> hi guys
ixti has joined #ruby
User458764 has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
ylluminarious has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
quimrstorres has quit [Remote host closed the connection]
<apeiros> hi girl
<izzol> I have a problem to hide "Missing dir..." if I execute ./code.rb --help :(
zorak8 has joined #ruby
<apeiros> store somewhere that you've shown the help, only proceed if no help was shown
<jhass> or use some sane option parser
dvlwrk has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
DerisiveLogic has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ixti has quit [Quit: WeeChat 1.1.1]
thatslifeson has joined #ruby
rshetty has quit [Remote host closed the connection]
glen has joined #ruby
<izzol> ok works now :P
lordkryss has joined #ruby
<glen> how do i print out percentage? basically i started with total=updated=0 and in aloop total+=1 and updated+=
rshetty has joined #ruby
<glen> and later: puts "progress: #{updated/total*100}%"
<glen> that gave me 0
<jhass> glen: .fdiv
<glen> so i casted updated to f,
thatslif_ has joined #ruby
<glen> but now i get too big fraction, want just two decimals, or maybe none
serivich has joined #ruby
<jhass> .round
thatslifeson has quit [Read error: Connection reset by peer]
<glen> (updated.fdiv(total)*100).round(2)
edwinvdgraaf has joined #ruby
<glen> looks a bit messy, maybe i init total as 0.0, not 0?
DerisiveLogic has quit [Ping timeout: 245 seconds]
<toretore> 'Progress: %.2f' % ((total.to_f/updated.to_f)*100)
<glen> ah, the python % operator, indeed
edwinvdgraaf has quit [Remote host closed the connection]
<toretore> heh
<jhass> I prefer .fdiv over .to_f
sgambino has joined #ruby
ylluminarious has quit [Quit: Leaving...]
Mohan_ has quit [Ping timeout: 256 seconds]
<glen> but it looks messy then, arguments, parameters, etc. nothing we teached in math class
thatslif_ is now known as thatslifeson
<glen> i think total = 0.0 as init will do the best
Outlastsheep is now known as zz_Outlastsheep
hectortrope has quit [Quit: WeeChat 0.4.2]
<apeiros> glen: repeatedly adding a float to a float is an smell
<apeiros> and teaching that is IMO bad
<glen> puts "progress: #{(updated/total*100).round(2)}%"
cefkamcau has quit [Remote host closed the connection]
<glen> you think there's different assembly behind if i add to float or to int?
<jhass> of course it is
rshetty has quit [Ping timeout: 256 seconds]
Mohan has joined #ruby
<apeiros> glen: yes. floats are approximations.
<glen> lucky me that i add just "whole" number :)
<glen> float += 1
<apeiros> -.-
<apeiros> what do you think happens when you add an integer to a float?
Mohan is now known as Guest96183
JDiPierro has joined #ruby
* apeiros really wants those "IT 101 knowledge" articles up…
cefkamcau has joined #ruby
<jhass> s/IT/CS/ you mean :)
OnBrokenWings has quit [Quit: Leaving]
<apeiros> jhass: no, it's totally internet technology!
<glen> i've written asm in early 90's, but didn't get into internals of float, so never deeply understood how it's layed into memory
<apeiros> (at least I think I misread that this is code which is intended for teaching)
<jhass> WS
griffindy has joined #ruby
<jhass> webscale 101
lkba has joined #ruby
<apeiros> ooooooh
<apeiros> yessir
<glen> ok. my final snip: puts "progress: #{(updated.to_f/total*100).round(2)}% updated=#{updated} total=#{total}"
piotrj has quit [Remote host closed the connection]
<jhass> glen: it's worthwhile to investigate, check my link
<apeiros> glen: in short - when you add an integer to a float, ruby will coerce the integer to a float. so you're not really adding an integer to a float - you're adding a float to a float. and get a float as a result.
tus has joined #ruby
<apeiros> and hence have to deal with all the issues floats have.
piotrj has joined #ruby
Pupeno has quit [Quit: Leaving...]
sankaber has joined #ruby
<glen> but i think adding float another float whose value is full integer, there won't be "loss". that's my point
<apeiros> it is correct that integers can be represented by floats up to a relatively large value
ixti has joined #ruby
<apeiros> my point that it's a bad habit/smell still stands
mjuszczak has joined #ruby
elaptics_away is now known as elaptics
Igorshp has quit [Remote host closed the connection]
blackmesa has joined #ruby
mjuszcza_ has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
fgo has joined #ruby
<a5i> If I have 2 similar hashes, and I want to find the difference (IE return the extra hash included in x hash and not in y array) how can I go about doing that?
doodlehaus has joined #ruby
<toretore> what
<a5i> y hash*
<c355E3B> a5i: you can get and compare the keys
quimrstorres has joined #ruby
glen has left #ruby [#ruby]
<a5i> hmm
<apeiros> a5i: use Hash#keys to get the keys
mjuszcza_ has joined #ruby
<toretore> a5i: you need to be more specific about the result you want
<apeiros> a5i: use Array#& to find common keys, Array#- to find differences (in both directions)
mjuszczak has quit [Read error: Connection reset by peer]
ylluminarious has joined #ruby
a346 has joined #ruby
juanpaucar has joined #ruby
Xiti has quit [Quit: Xiti]
jimms has quit [Read error: Connection reset by peer]
claptor has quit [Quit: this channel is bakas]
fgo has quit [Ping timeout: 250 seconds]
jimms has joined #ruby
Xiti has joined #ruby
lfox has joined #ruby
mjuszcza_ has quit [Client Quit]
lfox has quit [Client Quit]
tonyhb has joined #ruby
mengu has quit []
catphish has left #ruby ["Leaving"]
juanpaucar has quit [Ping timeout: 252 seconds]
Igorshp has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
kstuart has quit [Quit: WeeChat 1.1.1]
terlar has quit [Ping timeout: 256 seconds]
shazaum has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
Guest96183 has quit [Ping timeout: 276 seconds]
jerius has joined #ruby
agarie has joined #ruby
sigurding has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
Mohan_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
uri has joined #ruby
sigurding has joined #ruby
mary5030 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<a5i> oh what !
piotrj has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
tubuliferous_ has joined #ruby
devans_ has joined #ruby
jimms has quit [Ping timeout: 264 seconds]
krz has joined #ruby
Aswebb_ has joined #ruby
jimms has joined #ruby
piotrj has joined #ruby
edwinvdgraaf has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
<a5i> is there Hash#- ?
piotrj has quit [Remote host closed the connection]
decoponio has joined #ruby
iotouch has joined #ruby
allcentury has joined #ruby
<adaedra> The doc should reply to your answer.
<adaedra> to your question*.
RegulationD has joined #ruby
paulcsmith has joined #ruby
krz has quit [Ping timeout: 248 seconds]
piotrj has joined #ruby
terlar has joined #ruby
mtakkman has joined #ruby
coderhs has quit [Ping timeout: 248 seconds]
diego4 has joined #ruby
jimms has quit [Remote host closed the connection]
Feyn has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 250 seconds]
catphish has joined #ruby
<catphish> is there a trivial way to map integers to weekdays like 0=>"Monday"
<catphish> or am i better off just making a hash
tonyhb has quit [Quit: peace]
ndrei has joined #ruby
Askilada has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<c355E3B> catphish: DateTime#strftime may be what your looking for
cocotton has joined #ruby
<c355E3B> either %u or %w i think
OrbitalKitten has joined #ruby
ringarin has joined #ruby
<jhass> >> require "date"; Date::DAYNAMES
<ruboto> jhass # => ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] (https://eval.in/318359)
<catphish> jhass: perfect, thanks, though my week starts on Monday
<jhass> >> require "date"; Date::DAYNAMES.rotate(1)
<ruboto> jhass # => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] (https://eval.in/318360)
lavros has joined #ruby
<catphish> sexy, thanks
zorak8 has quit [Ping timeout: 250 seconds]
cphrmky has joined #ruby
mbwe has joined #ruby
juanpablo__ has joined #ruby
davedev24_ has joined #ruby
iasoon has joined #ruby
bigsky has quit [Read error: Connection reset by peer]
bigsky has joined #ruby
jottr_ has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
Aswebb_ has quit [Remote host closed the connection]
diego4 has quit [Quit: WeeChat 1.1.1]
rbennacer has joined #ruby
<adaedra> There are still places where weeks start on Sunday?
mbwe has quit [Quit: WeeChat 0.4.2]
afrianska has quit [Remote host closed the connection]
Dude007 has joined #ruby
<catphish> i expect so
jeffreylevesque has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150403141925]]
Igorshp has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
lidenskap has joined #ruby
arturaz has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
shazaum has quit [Quit: Leaving]
lidenskap has quit [Ping timeout: 265 seconds]
claw has quit [Ping timeout: 245 seconds]
Igorshp has joined #ruby
sh00p has quit [Remote host closed the connection]
_honning_ has joined #ruby
tjbiddle has joined #ruby
tagrudev has quit [Remote host closed the connection]
tonyhb has joined #ruby
ndrei has joined #ruby
camilasan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
camilasan has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
JDiPierro has quit [Remote host closed the connection]
<tjbiddle> Hey all. If I have an array of [['abc', '123], ['abc', '']] how would I go about returning only the unique objects going by the first column, yet ensuring that the second column is not empty or nil?
DerisiveLogic has joined #ruby
<tjbiddle> Using Array#uniq just returns whichever comes up first
<tjbiddle> Just using it without passing a block, at lest
<tjbiddle> least*
edwinvdg_ has joined #ruby
jerius has quit [Quit: /part]
<jhass> so that means if you have ["def", ""] without any other ["def", "123"] you still want the empty one?
<tjbiddle> No, I want the non-empty one
<tjbiddle> So if I have [['abc', '123'], ['abc', ''], ['def', '123]] it would return the two with '123' in the second column
workmad3 has joined #ruby
Channel6 has joined #ruby
<dudedudeman> Man, i feel like i was just reading about this in the prag prog book last night
<jhass> so you're guaranteed to have a non-empty one?
simonewestphal has quit [Quit: simonewestphal]
edwinvdg_ has quit [Remote host closed the connection]
mrmargolis has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
<tjbiddle> jhass: Hm. I mean - edge case, there could be an option where it's empty and that's the only option, but I was told to assume otherwise. So yes
hanmac1 has joined #ruby
<jhass> so just get rid of the empty ones first
riotjones has quit [Remote host closed the connection]
<jhass> .reject {|header, value| value.empty? }.uniq(&:first)
edwinvdgraaf has quit [Ping timeout: 245 seconds]
vdamewood has joined #ruby
<dudedudeman> would .compact be useful here?
<jhass> no
blackmesa has quit [Ping timeout: 265 seconds]
<tjbiddle> dudedudeman: I think compact only removes nil entries
<dudedudeman> tjbiddle: word. i'm going to go do some reading on all of the above
<tjbiddle> jhass: That works then, thanks!
jottr_ has joined #ruby
chrissonar has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
Igorshp has quit [Remote host closed the connection]
<tjbiddle> jhass: Hm, actually thinking about it again - There is a case where I'd have an empty second column make sense.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rhllor has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
_lovehandle_ has quit [Ping timeout: 255 seconds]
tonyhb has quit [Quit: peace]
mgberlin has joined #ruby
mgberlin has quit [Remote host closed the connection]
MasterPiece has joined #ruby
astrobunny has joined #ruby
<jhass> can't you parse into a desired format?
<jhass> like a hash and you only override an empty value?
<jhass> hash[header] = value if hash[header].nil? || hash[header].empty? ?
<jhass> if not do ^ in a .each_with_object({}) do |header, value|
piotrj has quit [Remote host closed the connection]
_lovehandle_ has joined #ruby
<jhass> and call to_a on the result if you absolutely have to keep the 2d array for some strange reason
thatslifeson has quit [Remote host closed the connection]
lfox has joined #ruby
fryguy9 has joined #ruby
relix has joined #ruby
pacMakaveli has joined #ruby
iasoon has quit [Ping timeout: 252 seconds]
shellfu_afk is now known as shellfu
<tjbiddle> jhass: I like the idea of a hash. I think this is working: When creating the initial array, making it to an array of hashes as you suggested, rather than array of arrays. Then just calling uniq
<jhass> that's not what I meant, but maybe I don't get your usecase fully
JDiPierro has joined #ruby
plutonic has quit [Quit: plutonic]
kaleido has joined #ruby
avelldiroll has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
avelldiroll has joined #ruby
enebo has joined #ruby
n008f4g_ has joined #ruby
vire has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 252 seconds]
krz has joined #ruby
tvw has quit [Remote host closed the connection]
<a5i> >> [12,3,4]-[11,3,4]
<ruboto> a5i # => [12] (https://eval.in/318367)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<a5i> >> {"a" => "1", "b" => "2"}- {"a" => "1", "c" => "3"}
rshetty has joined #ruby
<ruboto> a5i # => undefined method `-' for {"a"=>"1", "b"=>"2"}:Hash (NoMethodError) ...check link for more (https://eval.in/318368)
Igorshp has joined #ruby
<a5i> i cri
huddy has joined #ruby
segfalt has joined #ruby
Brozo has joined #ruby
banister has joined #ruby
_lovehandle_ has quit [Ping timeout: 276 seconds]
Brozo has quit [Remote host closed the connection]
krz has quit [Ping timeout: 245 seconds]
<jhass> tjbiddle: but where does arr come from? and do you really need that exact output format?
<tjbiddle> jhass: arr is coming from a CSV file
allenn has quit [Remote host closed the connection]
<tjbiddle> jhass: I'd like to throw it into that output afterwards; but I'm flexible. As long as I can manipulate date it doesn't matter
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
segfalt has quit [Quit: segfalt]
davedev24_ has quit [Ping timeout: 244 seconds]
mdw has joined #ruby
zorak8 has joined #ruby
iasoon has joined #ruby
<jhass> INSTANCE = 19; SUB_COMPANY = 21; instances = CSV.foreach(..).with_object({}) do |row, instances| instance, company = row.values_at(INSTANCE, SUB_COMPANY); if instance && instance.match(...); instances[instance] = company if instances[instance].nil? || instances[instance].empty?; end; end; end;
aawe has left #ruby ["undefined"]
<jhass> or so
davedev24_ has joined #ruby
Channel6 has quit [Quit: Leaving]
evanjs has joined #ruby
Dude007 has quit [Ping timeout: 255 seconds]
Darkwater has joined #ruby
ascarter has joined #ruby
<Darkwater> how the hell do literal hashes work as func argument
ndrei has quit [Ping timeout: 276 seconds]
<Darkwater> send({ :hello => 'world' })
<Darkwater> {:hello=>"asd"} is not a symbol nor a string (TypeError)
mistermocha has joined #ruby
<Darkwater> s/asd/world/
serivichi has joined #ruby
ascarter has quit [Client Quit]
ndrei has joined #ruby
serivich has quit [Ping timeout: 245 seconds]
iasoon has quit [Ping timeout: 248 seconds]
<jhass> the first argument to send and public_send must be a string or a symbol
ascarter has joined #ruby
User458764 has joined #ruby
<apeiros> WEEEEEEEEEEKEEEEEEEEEEEEEND!!!!!
<Darkwater> eh never mind
* apeiros friday-hugs the channel
<Darkwater> called the thing on the wrong object
rshetty has quit [Remote host closed the connection]
* Darkwater kills slef
* dudedudeman mo fo'ing friday twitches
vim_shimm has joined #ruby
rshetty has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
<tjbiddle> >> arr = [["xxx", "xxx", "xxx", "xxxx", "xxx", "xxxx", "xxx", "xx", "xx", "xxx", "xx", "xx", "x", "asdfsdf", "sdfsdf", "x", "x", "dsf", "sdf", "i-39skdh2k", "xx", ""],["xxx", "xxx", "xxx", "xxxx", "xxx", "xxxx", "xxx", "xx", "xx", "xxx", "xx", "xx", "x", "asdfsdf", "sdfsdf", "x", "x", "dsf", "sdf", "i-sdkjdj3d", "xx", ""],["xxx", "xxx", "xxx", "xxxx", "xxx", "xxxx", "xxx", "xx", "xx", "xxx", "xx", "xx", "x", "asdfsdf", "sdfsdf", "x",
<tjbiddle> "dsf", "sdf", "i-sdkjdj3d", "xx", "ABC"],["xxx", "xxx", "xxx", "xxxx", "xxx", "xxxx", "xxx", "xx", "xx", "xxx", "xx", "xx", "x", "asdfsdf", "sdfsdf", "x", "x", "dsf", "sdf", "i-xj3ksldk", "xx", "ABC"],["xxx", "xxx", "xxx", "xxxx", "xxx", "xxxx", "xxx", "xx", "xx", "xxx", "xx", "xx", "x", "asdfsdf", "sdfsdf", "x", "x", "dsf", "sdf", "i-sadfsdfd", "xx", "DEF"]];instances = arr.map { |x| x[19].to_s.match(/^(i-)[a-z0-9]{8}$/) ? { :instanc
<tjbiddle> => x[19], :sub_company => x[21].to_s } : nil }.compact.sort_by { |s| s[:sub_company] }.reverse.uniq { |r| r[:instance_id] ;puts instances.inspect
<ruboto> tjbiddle # => /tmp/execpad-bef64f13c7dd/source-bef64f13c7dd:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/318369)
evanjs has quit [Remote host closed the connection]
dfinninger has joined #ruby
serivichi has quit [Ping timeout: 255 seconds]
<tjbiddle> jhass: This works: https://eval.in/318373
<jhass> and mine doesn't?
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
msgodf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
segfalt has joined #ruby
mbff has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
jack_rabbit has quit [Ping timeout: 252 seconds]
astrobunny has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
evanjs has joined #ruby
rshetty has joined #ruby
vdamewood has joined #ruby
vdamewood has quit [Remote host closed the connection]
momomomomo has joined #ruby
m0r0n has joined #ruby
Igorshp has quit [Remote host closed the connection]
diegoviola has joined #ruby
segfalt has quit [Ping timeout: 246 seconds]
m0r0n has quit [Client Quit]
failshell has joined #ruby
failshell has quit [Client Quit]
terlar has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
zcreative has quit [Ping timeout: 245 seconds]
ssyrain has joined #ruby
juanpaucar has joined #ruby
<tjbiddle> jhass: Nice :)
<tjbiddle> Thanks for helping me work through it
aganov has quit [Remote host closed the connection]
<hanmac1> hm instead of Array of Hashs you might also use an Array of Struct or OpenStruct objects
<tjbiddle> hanmac: Why's that
mistermocha has quit [Ping timeout: 246 seconds]
juanpaucar has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
iotouch has quit [Quit: 离开]
alex88 has quit []
n008f4g_ has quit [Ping timeout: 245 seconds]
rshetty has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
vasilakisfil__ has joined #ruby
rshetty has joined #ruby
vasilakisfil_ has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
rhllor has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
ringarin has quit [Quit: Leaving]
thatslifeson has joined #ruby
thiagovsk has joined #ruby
baroquebobcat has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jimms has joined #ruby
grios has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
ReK2WiLdS has joined #ruby
ReK2WiLdS has quit [Changing host]
livathinos has quit []
cassianoleal has quit [Quit: (null)]
tubuliferous_ has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
dvlwrk has joined #ruby
segfalt has joined #ruby
ponga has quit [Remote host closed the connection]
tonyhb has joined #ruby
i8igmac has quit [Ping timeout: 246 seconds]
icebourg has joined #ruby
evanjs has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 240 seconds]
luser__ has joined #ruby
<luser__> Hi.
<dudedudeman> sup
<luser__> Got a 'small' problem
evanjs has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
<luser__> Is there any ruby function that would allow me to filter array of objects, eg order.supplier_orders (supplier orders is that array of objects) by object property?
<luser__> (order.supplier_orders.where(supplier_id: params[:supplier_id])) this wouldn't work obviously, because of 'where', but is there any way to replace it?
rhllor has joined #ruby
i8igmac has joined #ruby
RegulationD has joined #ruby
terlar has joined #ruby
jottr_ has joined #ruby
adac has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
redbaritone has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
redbaritone has quit [Client Quit]
Lewix has joined #ruby
momomomomo has quit [Quit: momomomomo]
GnuYawk has quit [Quit: WeeChat 1.0]
RegulationD has quit [Ping timeout: 250 seconds]
robustus has joined #ruby
agarie has quit [Remote host closed the connection]
<jhass> luser__: .select, whether that's the best solution to your problem is impossible to tell from your vague description
dseitz has joined #ruby
juanpablo__ has joined #ruby
sigurding has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
sinkensabe has joined #ruby
jaequery has joined #ruby
toretore has quit [Quit: Leaving]
sevvie has joined #ruby
<luser__> jhass: Ok, will look into it. Thank you.
Cust0sL1men has quit [Ping timeout: 272 seconds]
juanpablo__ has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
MatthewsFace has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
Crisix has joined #ruby
ssyrain has quit [Remote host closed the connection]
rshetty has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
mjuszczak has quit []
momomomomo has joined #ruby
gaussblurinc1 has joined #ruby
sigurding has quit [Quit: sigurding]
<catphish> luser__: assuming supplier_orders can't be made into a database scope, then .select{|order| order.supplier_id == params[:supplier_id]} might be your best option
kblake has joined #ruby
<gaussblurinc1> how to include methods from module to class, I want module methods be class methods, not instance methods
rshetty has quit [Ping timeout: 245 seconds]
<gaussblurinc1> extend will be ok?
<Devoth> Hey guys, anyone experienced an issue where Thor command line app wasn't running highline ask() methods properly?
<havenwood> Devoth: What happens when it run improperly?
<catphish> gaussblurinc1: i've never used extend, but a quick search suggests it does what you want
fabrice31 has joined #ruby
mbff has quit [Remote host closed the connection]
rhllor has quit [Quit: rhllor]
<Devoth> havenwood: ask("foo ", Integer) gives me:Integerfoo
<Darkwater> in what scope are symbols' object ids consistent?
mistermocha has joined #ruby
<Darkwater> I can fire up multiple irb instances and the ids will be consistent, but on my vps it's different
<Devoth> havenwood: also it completely ignores .in, .default, etc.
<Devoth> havenwood: same code pastd into irb works flawlessly
<Darkwater> is it per machine? per machine session?
momomomomo has quit [Ping timeout: 245 seconds]
<jhass> per process
<jhass> everything else is a coincidence
<Darkwater> that's a real coincidence then
Spami has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> anyway, if you depend on the object_id of a symbol you do something wrong ;)
Igorshp has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<catphish> they may get assigned in a consistent manner for some unknown value of consistent, but i can't think of a legitimate reason to use them like that
willharrison has joined #ruby
tonyhb has quit [Read error: Connection reset by peer]
tonyhb has joined #ruby
segfalt has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
<catphish> he's right though, it is amazingly consistent for (for example) :a
<catphish> in fact, it's no accident, some symbols seem to have constant object IDs even if they haven't been used
ascarter has quit [Max SendQ exceeded]
<catphish> on my host, ObjectSpace._id2ref(95368) always returns :b even if i never used :b
ascarter has joined #ruby
tonyhb_ has joined #ruby
<catphish> no idea how it works though
<catphish> its clearly not portable between hosts, or a solution to any problem that exists though :)
luser__ has quit [Remote host closed the connection]
ascarter has quit [Client Quit]
mleung has joined #ruby
<Devoth> havenwood: strange thing - I've commented out require "highline/import" line… and it doesn't throw an error. Perhaps something else is overriding ask method (maybe some thor method?)
Igorshp has quit [Ping timeout: 264 seconds]
<Devoth> havenwood: ok, got a temp solution. Using HighLine.new.ask() instead
ascarter has joined #ruby
tonyhb has quit [Ping timeout: 246 seconds]
<Devoth> havenwood: thank you :)
<havenwood> Devoth: de nada, seems you beat me to it ;)
<jhass> catphish: Darkwater keep in mind that Ruby creates a symbol of the same name when defining a method for example, so the bootup process creates a whole bunch of symbols already
<Devoth> havenwood: well I've read this: http://stackoverflow.com/questions/2903200/watir-changes-highlines-ask-method , but didn't exactly know what was the cause, which you've discovered - thank you :)
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
<jhass> catphish: Darkwater see Symbol.all_symbols
<Darkwater> ah
<catphish> jhass: that was my suspicion, thanks for confirming
Cloudhand has joined #ruby
<catphish> so just an artefact of the order libraries are loaded
<Darkwater> hm, it's still consistent with a completely random name though
<Darkwater> at least I hope asghjkvsikdbr is random enough
<catphish> Darkwater: with *any* time?
<catphish> *any name*
<Darkwater> at least just now
<catphish> its probably just assigned sequentially
<catphish> 2.1.5 :001 > :aaaaaaaaaaaa.object_id => 543848
<catphish> :aaaaaaaaaaab.object_id => 543848
cocotton has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<catphish> it's just the next sequential ID
<adaedra> >> :aaaaaaaaaaaa.object_id
<ruboto> adaedra # => 417458 (https://eval.in/318379)
workmad3 has joined #ruby
<catphish> >> :aaaaaaaaaaab.object_id
<ruboto> catphish # => 417458 (https://eval.in/318380)
<adaedra> so when is it not equal
<catphish> :)
<Darkwater> that doesn't make sense
<catphish> yes it does
<Darkwater> oh wait, I see
<adaedra> no, it doesn’t
<catphish> you start an irb, it assigns them sequentially as you use them
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> fish is with a ’f’, not ’ph'
yalue has quit [Read error: Connection reset by peer]
<Darkwater> no, those were different sessions
<adaedra> >> :abababababab; :aaaaaaaaaaaa.object_id
<ruboto> adaedra # => 417618 (https://eval.in/318382)
<adaedra> ahah
<Darkwater> fair enough
Hijiri has quit [Quit: WeeChat 1.0.1]
<catphish> so, the first symbol you create in a session will have the same ID, regardless of what symbol it is
edwinvdgraaf has quit [Remote host closed the connection]
<adaedra> >> :abababababab; :aaaaaaaaaaaz.object_id
<ruboto> adaedra # => 417618 (https://eval.in/318383)
<adaedra> I didn’t know that
<catphish> as per the examples above
<adaedra> It’s interesting
edwinvdgraaf has joined #ruby
shellfu is now known as shellfu_coffee
momomomomo has joined #ruby
aufi has quit [Quit: Konversation terminated!]
_honning_ has quit [Ping timeout: 276 seconds]
cocotton has joined #ruby
rshetty has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
blizzy has joined #ruby
yaw has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
yaw has quit [Max SendQ exceeded]
tus has quit [Remote host closed the connection]
tus has joined #ruby
mostlybadfly has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
lordkryss has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
ascarter has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
ascarter has quit [Max SendQ exceeded]
unreal_ has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
mjuszczak has joined #ruby
tus has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
mitchellhenke has quit [Read error: Connection reset by peer]
ascarter has quit [Max SendQ exceeded]
timonv has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
thumpba has joined #ruby
tus has joined #ruby
mitchellhenke has joined #ruby
ascarter has joined #ruby
bricker has joined #ruby
cocotton has quit [Remote host closed the connection]
sevvie has joined #ruby
cocotton has joined #ruby
Igorshp has joined #ruby
ascarter has quit [Client Quit]
cocotton has quit [Ping timeout: 272 seconds]
jimms_ has joined #ruby
ItSANg___ has joined #ruby
ItSANgo__ has quit [Read error: Connection reset by peer]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimms has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Quit: Leaving]
pietr0 has joined #ruby
MasterPiece has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 252 seconds]
sankaber has quit [Read error: Connection reset by peer]
mrmargolis has quit [Read error: Connection reset by peer]
<Mon_Ouie> They're not assigned sequentially in MRI, it's just a simple formula based on whatever address was returned by the allocator
nfk|laptop has quit [Quit: yawn]
sankaber has joined #ruby
cocotton has joined #ruby
mrmargolis has joined #ruby
jaequery has joined #ruby
agarie has joined #ruby
ascarter has joined #ruby
nfk|laptop has joined #ruby
MatthewsFace has joined #ruby
rhllor has joined #ruby
ascarter has quit [Max SendQ exceeded]
pacMakaveli has quit [Remote host closed the connection]
ascarter has joined #ruby
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
RegulationD has joined #ruby
dANO has quit []
Mon_Ouie has quit [Ping timeout: 245 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shellfu_coffee is now known as shellfu
sevvie has quit [Remote host closed the connection]
psy_ has joined #ruby
relix has joined #ruby
mistermocha has joined #ruby
fabrice31 has quit [Remote host closed the connection]
jimms_ has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 265 seconds]
tcrypt has joined #ruby
ramfjord has joined #ruby
sevvie has joined #ruby
rshetty has quit [Remote host closed the connection]
willharrison has quit [Quit: Lost terminal]
RTG` has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
rshetty has joined #ruby
workmad3 has joined #ruby
catphish has left #ruby ["Leaving"]
blizzy has quit [Ping timeout: 245 seconds]
zorak8 has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
RTG` has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
sohrab has joined #ruby
rshetty has quit [Ping timeout: 246 seconds]
hanmac1 has quit [Quit: Leaving.]
chthon has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Mohan_ has quit [Ping timeout: 246 seconds]
Pharaoh2 has quit [Read error: Connection reset by peer]
SouL_|_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
allcentury has quit [Ping timeout: 245 seconds]
Mohan has joined #ruby
DrCode has quit [Ping timeout: 256 seconds]
ki0 has quit [Ping timeout: 256 seconds]
CorySimmons has joined #ruby
diegoviola has joined #ruby
Mohan is now known as Guest95932
edwinvdgraaf has joined #ruby
rshetty has joined #ruby
rgb-one has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
ag4ve_ has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
edwinvdgraaf has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
shoutsid has quit [Remote host closed the connection]
juanpablo__ has joined #ruby
speakingcode has joined #ruby
shoutsid has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Ping timeout: 250 seconds]
shoutsid has quit [Remote host closed the connection]
_honning_ has joined #ruby
odin22 has joined #ruby
tubuliferous_ has joined #ruby
granthatcher has quit []
jimms has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Devoth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CorySimmons has quit [Quit: Bye!]
juanpaucar has joined #ruby
mistermocha has joined #ruby
blueOxigen has quit [Ping timeout: 245 seconds]
zorak8 has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
zorak8 has quit [Max SendQ exceeded]
juanpablo__ has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
tsipanov has joined #ruby
tsipanov has left #ruby [#ruby]
tsipanov has joined #ruby
Timba-as has quit [Quit: Be back later ...]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
jimms_ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
OtterCoder has joined #ruby
devans_ has quit [Ping timeout: 252 seconds]
juanpablo__ has joined #ruby
tsipanov has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
juanpaucar has quit [Ping timeout: 248 seconds]
Igorshp has quit [Remote host closed the connection]
jimms_ has quit [Read error: Connection reset by peer]
jimms has joined #ruby
blazes816 has joined #ruby
vickleton has joined #ruby
djmittens has joined #ruby
wallerdev has joined #ruby
juanpablo__ has quit [Ping timeout: 265 seconds]
Filete has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
agarie has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
rbennacer has quit [Remote host closed the connection]
vudew has quit [Quit: Lost terminal]
juanpablo__ has joined #ruby
drocsid has quit [Ping timeout: 255 seconds]
ahmetkapikiran has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
ascarter has quit [Client Quit]
terlar has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
lkba_ has joined #ruby
jcutrell has joined #ruby
<a5i> How can I check if a file exists or not?
gaussblurinc1 has quit [Quit: Leaving.]
<jcutrell> a5i: my guess is File.exists? is what you’re probably needing.
<a5i> o
<jcutrell> File.exists? "Gemfile"
<jcutrell> (If it’s in the cwd)
lkba has quit [Ping timeout: 272 seconds]
sufyan has quit [Remote host closed the connection]
<Senjai> jcutrell: Gotta point those questioins towards google :P
workmad3 has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
<jcutrell> You can also use this to get the absolute path of the current dirname: File.expand_path File.dirname(__FILE__)
<jcutrell> Senjai: yeah, I suppose so.
<Senjai> a5i: That is one of those "first result" questions on google. Google "How to check if a file exists in ruby"
<Senjai> guarenteed first result
<Senjai> I havent even checked, im that confident
<a5i> Yeah your right, I just didnt know how to word the search
<jcutrell> a5i learning how to google right is definitely a skill in and of itself. :)
<jcutrell> Now you know.
<a5i> ok, thanks anyway
ascarter has quit [Max SendQ exceeded]
<jcutrell> Glad to help.
<Senjai> a5i: We're all here to help, but googling is necssary to learn
<a5i> okay
<Senjai> Its kind of upsetting to get askes a question that would have been answered by a quick google search
ascarter has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk|laptop has quit [Quit: yawn]
<jhass> a5i: jcutrell modern ruby has __dir__ for File.dirname(__FILE__)
<jcutrell> Ah yes.
edwinvdgraaf has joined #ruby
<jcutrell> Modern as in <=2.1 ?
<jhass> 2.0+
<havenwood> jcutrell: 2.0.0
scripore has joined #ruby
<jhass> so by now every officially supported ruby version
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mjuszcza_ has joined #ruby
nfk|laptop has joined #ruby
<havenwood> jcutrell: Ruby 2.0 is in maintenance mode until it's end-of-life this February and 2.1 and 2.2 are fully supported releases.
ponga has joined #ruby
<jcutrell> Good deal.
shoutsid has joined #ruby
<havenwood> s/it's/its
mjuszczak has quit [Ping timeout: 272 seconds]
sevvie has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
<Senjai> s/its/its'
<Senjai> i think <.< >.> #ijustwantedtocontribute
Eiam_ has joined #ruby
<havenwood> oh right, possessive
allcentury has joined #ruby
agarie has joined #ruby
<havenwood> i think i'm waffling between "it's (it is) end-of-lifed" and "it's (possessive) end-of-life." I don't even know what I was thinking with "its." :O
ndrei has joined #ruby
MasterPiece has joined #ruby
Lewix has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
piotrj has joined #ruby
<bricker> "its" is possessive.
rshetty has quit [Remote host closed the connection]
<bricker> "its'" is just you typing 4 characters when you only need to type 3
ValicekB has quit []
vim_shimm has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
kirun has joined #ruby
AlphaAtom has quit [Ping timeout: 244 seconds]
<xxneolithicxx> wth, its' is a thing?
<havenwood> bricker: oh right
<havenwood> bricker: it's like i have negative coffee this morning
<havenwood> i'm two cups in and feel like i'm at -1, so musta started at -3
rshetty has joined #ruby
<bricker> xxneolithicxx: no
<bricker> xxneolithicxx: it's = "it is". its = everything else.
tvw has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
Mezjin has quit [Remote host closed the connection]
sankaber has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 255 seconds]
<shevy> ohhhh
<shevy> bricker is teaching ze people ze english!
ramfjord has quit [Ping timeout: 264 seconds]
<shevy> bricker have you seen Conan, or Red Sonja? What can you say about the old accent by Arnie? :)
zz_Outlastsheep is now known as Outlastsheep
hollywood has joined #ruby
shoutsid has quit [Remote host closed the connection]
<bricker> *impeccable*
rrichardsr3 has joined #ruby
ValicekB has joined #ruby
nfk|laptop has quit [Ping timeout: 250 seconds]
vim_shimm has quit [Ping timeout: 250 seconds]
rrichardsr3 has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
diegoviola has joined #ruby
Brozo has joined #ruby
jaequery has joined #ruby
rshetty has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
rshetty has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
tonyhb_ has quit [Quit: peace]
mjmac has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 264 seconds]
ki0 has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
jaequery has quit [Ping timeout: 272 seconds]
frem has joined #ruby
mjmac has joined #ruby
jaequery has joined #ruby
ebernhardson has joined #ruby
andikr has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
ki0 has quit [Ping timeout: 252 seconds]
peterhu has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
jonatin has quit [Quit: Textual IRC Client: www.textualapp.com]
jaequery has joined #ruby
GnuYawk has joined #ruby
zachrab has joined #ruby
blackmesa has joined #ruby
elaptics is now known as elaptics_away
Lissie has joined #ruby
jaequery has quit [Client Quit]
zorak8 has quit [Quit: Leaving]
joonty has joined #ruby
chrishough has joined #ruby
djmittens has quit [Ping timeout: 256 seconds]
joonty has quit [Client Quit]
rubyonrailed has joined #ruby
Hijiri has joined #ruby
c0m0 has quit [Ping timeout: 245 seconds]
razrunelord has joined #ruby
mdw has quit [Read error: Connection reset by peer]
_honning_ has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dude007 has joined #ruby
<rubyonrailed> HOw can I sort this array in descending order by it's value? https://gist.github.com/anonymous/9a58333fa3d7053c1a1a
relix has joined #ruby
<hanmac> rubyonrailed: array.sort_by {|o| -o.low_income_percent }
<rubyonrailed> hanmac Thanks
n008f4g_ has joined #ruby
shay_shay has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
ugyqrs has quit [Remote host closed the connection]
<hanmac> i would have liked a reverse_sort_by for something like that, but it seems i dont always get what i want ... maybe i have the wrong gender to nag like that ...
RegulationD has quit [Ping timeout: 256 seconds]
<shevy> possibly because the name is quite long
<jhass> hanmac: not cool
<shevy> .sort_by is already pretty long too :)
wldcordeiro has joined #ruby
shay_shay has joined #ruby
shay_shay has quit [Changing host]
shay_shay has joined #ruby
<hanmac> shevy i also would be happy with a desc_sort_by
<shevy> still long!
<shevy> you are too long hanmac
<shevy> shorten yourself
Dude007 has quit [Remote host closed the connection]
piotrj has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
Oka has joined #ruby
plribeiro3000 has joined #ruby
OtterCoder has quit [Quit: No Ping reply in 180 seconds.]
OtterCoder has joined #ruby
jottr_ has joined #ruby
jenrzzz has joined #ruby
dkphenom has joined #ruby
<ebernhardson> random noob question ... i've loaded up my cucumber suite via `ruby -r debug $(which bundle) exec cucumber feature/foo.feature` and added the line `debugger` to the function where i want it to stop, but it just runs the whole thing straight through without doing the breakpoint. what gives? i know its running this line because cucumber reports a failure at the foo.should == true a couple lines farther down in same method
OtterCoder has quit [Read error: Connection reset by peer]
OtterCoder has joined #ruby
platzhirsch has quit [Quit: Leaving.]
Lissie has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
_honning_ has joined #ruby
Lissie has joined #ruby
failshell has joined #ruby
thatslifeson has quit [Remote host closed the connection]
mjuszcza_ has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
vasilakisfil__ is now known as vasilakisfil
ki0 has joined #ruby
mjuszczak has joined #ruby
baweaver has joined #ruby
blackmesa has joined #ruby
tonyhb has joined #ruby
agarie has joined #ruby
x1337807x has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
claptor has joined #ruby
yeticry has joined #ruby
charliesome has joined #ruby
allcentury has joined #ruby
Limix has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
lfox has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
relix has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest752 has quit [Remote host closed the connection]
bim has joined #ruby
DerisiveLogic has joined #ruby
bim is now known as Guest16192
Guest16192 has quit [Remote host closed the connection]
wottam has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
vim_shimm has joined #ruby
baroquebobcat has joined #ruby
icarus__ has joined #ruby
yekta has joined #ruby
djbkd has joined #ruby
gnfz has joined #ruby
ramfjord has joined #ruby
gaussblurinc1 has joined #ruby
shoutsid has joined #ruby
DEA7TH has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
ebernhardson has left #ruby [#ruby]
Guest95932 has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest24252
yekta has quit [Ping timeout: 248 seconds]
cphrmky has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
piotrj has quit [Ping timeout: 265 seconds]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
Lissie has quit []
Flowrhent has joined #ruby
_honning_ has quit [Ping timeout: 276 seconds]
quimrstorres has joined #ruby
yekta has joined #ruby
vim_shimm has quit [Ping timeout: 256 seconds]
DerisiveLogic has quit [Ping timeout: 264 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
dseitz has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
chrishough has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
postmodern has joined #ruby
rbennacer has quit [Remote host closed the connection]
NinjaOps has quit [Quit: Konversation terminated!]
mrsolo has joined #ruby
_blizzy_ has joined #ruby
shoutsid has quit [Remote host closed the connection]
juanpaucar has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit []
havenwood has joined #ruby
yekta has quit [Ping timeout: 252 seconds]
maciejczyzewski has joined #ruby
maciejczyzewski has quit [Client Quit]
lolmaus has joined #ruby
yekta has joined #ruby
lkba has joined #ruby
jimms has quit [Read error: Connection reset by peer]
juanpaucar has quit [Ping timeout: 264 seconds]
vim_shimm has joined #ruby
jimms has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jheg has joined #ruby
mikemac has joined #ruby
aufi has joined #ruby
momomomomo has joined #ruby
sohrab has quit [Ping timeout: 250 seconds]
Hijiri has quit [Ping timeout: 245 seconds]
yekta has quit [Ping timeout: 248 seconds]
crazymykl has quit [Ping timeout: 246 seconds]
bigsky has quit [Ping timeout: 244 seconds]
sohrab has joined #ruby
mjuszczak has quit []
bigsky has joined #ruby
Hijiri has joined #ruby
mjuszczak has joined #ruby
startupality_ has joined #ruby
workmad3 has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Ping timeout: 252 seconds]
startupality_ is now known as startupality
DEA7TH has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
wallerdev has quit [Quit: wallerdev]
workmad3 has quit [Ping timeout: 250 seconds]
vickleton has quit [Read error: Connection reset by peer]
sohrab has quit [Ping timeout: 252 seconds]
evanjs has quit [Remote host closed the connection]
vickleton has joined #ruby
rbennacer has joined #ruby
failshell has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
vasilakisfil has quit [Ping timeout: 265 seconds]
shoutsid has joined #ruby
agarie has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vudew has joined #ruby
djmittens has joined #ruby
geggam has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
_honning_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
failshell has joined #ruby
mjuszczak has quit []
Hijiri has quit [Ping timeout: 252 seconds]
cocotton has quit [Read error: Connection reset by peer]
agarie has joined #ruby
bim has joined #ruby
bim is now known as Guest71480
blazes816 is now known as tcrypt
zachrab has joined #ruby
<rubyonrailed> How do I append to the beginning of an array?
<pipework> rubyonrailed: Google, mostly.
<pipework> As a hint, look for the inverse of 'shift'.
<pipework> It's a basic array operation.
lavros has quit [Quit: leaving]
tonyhb has quit [Read error: Connection reset by peer]
<dudedudeman> would a .insert(0, foo) work for this?
tonyhb has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
Squarepy has quit [Quit: Leaving]
thiagovsk has quit [Quit: Connection closed for inactivity]
tjbiddle has quit [Quit: tjbiddle]
lolmaus has quit [Quit: Konversation terminated!]
lele is now known as Guest24
plribeiro30001 has joined #ruby
tjbiddle has joined #ruby
plribeiro3000 has quit [Ping timeout: 264 seconds]
mjuszczak has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
<jhass> dudedudeman: yes, but there's a dedicated method
yaw has joined #ruby
baweaver has joined #ruby
Pumukel has joined #ruby
agent_white has joined #ruby
<agent_white> moin
thatslifeson has joined #ruby
icarus__ has quit [Ping timeout: 250 seconds]
doertedev has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
stef204 has quit [Read error: Connection reset by peer]
Crisix has left #ruby ["Textual IRC Client: www.textualapp.com"]
diegoviola has quit [Quit: WeeChat 1.1.1]
vickleton has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
kadoppe has joined #ruby
lidenskap has quit [Remote host closed the connection]
DexterLB has quit [Read error: Connection reset by peer]
vickleton has joined #ruby
chinmay_dd has joined #ruby
ItSANg___ has quit [Quit: Leaving...]
<geggam> what process makes the directory /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.18/buildout/
<geggam> buildout being the directory i want
Oog has joined #ruby
<Oog> ive got a function it takes two params. i have an array with two values. how do i pass the array to the function
<Oog> like array.expand or whatever - i forget what its usually called
DexterLB has joined #ruby
rikai has quit [Ping timeout: 245 seconds]
willharrison has joined #ruby
ddarkpassenger has joined #ruby
<gr33n7007h> Oog: *array
<willharrison> if I include 'Singleton' on a class of mine, do I have to rename the methods with self.?
quimrstorres has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
chrishough has joined #ruby
<Oog> thanks
lolmaus has joined #ruby
<pipework> willharrison: Did you read the singleton docs?
<willharrison> pipework: I haven't, just some things on stack overflow
<pipework> willharrison: I'd consider doing that then.
_honning_ has joined #ruby
<willharrison> k
ponga has quit [Quit: Leaving...]
towski_ has joined #ruby
rikai has joined #ruby
jenrzzz has joined #ruby
mengu has joined #ruby
Guest24252 has quit [Ping timeout: 252 seconds]
sevvie has joined #ruby
m8 has joined #ruby
QualityAddict has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest25999
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
shoutsid has quit [Remote host closed the connection]
shay_shay has quit [Quit: WeeChat 1.2-dev]
shay_shay has joined #ruby
uri has quit [Quit: Textual IRC Client: www.textualapp.com]
ki0 has quit [Remote host closed the connection]
jimms has quit [Read error: Connection reset by peer]
sohrab has joined #ruby
jcutrell has quit [Quit: jcutrell]
jimms has joined #ruby
ItSANgo has joined #ruby
ki0 has joined #ruby
BTRE has quit [Quit: Leaving]
shoutsid has joined #ruby
Ellistaa has joined #ruby
Lewix has joined #ruby
vim_shimm has quit [Ping timeout: 265 seconds]
DEA7TH has joined #ruby
<willharrison> EllisTAA: it is comparing to a regex
<Ellistaa> ah gotcha
<jhass> EllisTAA: or more generically: http://symbolhound.com/
<Oog> beset way to generate a random number of X digits?
havenwood has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Oog> i found return Random.new.bytes(length).bytes.join[0, length] but that doesnt look exactly random to me... i think certain digits are weighted more
BTRE has joined #ruby
<jhass> rand(10*n..10*(n+1)-1) I guess
towski_ has quit [Remote host closed the connection]
<Ellistaa> that only returns 1 digit
<jhass> no
<Ellistaa> yuh hu i just did it in irb :)
startupality has quit [Quit: startupality]
<jhass> uh, ** of course
zachrab has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
zachrab has joined #ruby
<Ellistaa> :0
djbkd has quit [Remote host closed the connection]
<Ellistaa> :)
piotrj has joined #ruby
jaequery has joined #ruby
<jhass> >> n = 15; rand(10**n...10**(n+1))
razrunelord has quit []
<ruboto> jhass # => 4459464737441361 (https://eval.in/318433)
failshell has quit []
<jhass> >> n = 15; rand(10**n...10**(n+1)).to_s.size
<ruboto> jhass # => 16 (https://eval.in/318434)
<jhass> off by one
<jhass> but you get the idea
davedev2_ has joined #ruby
<Oog> yes tanks
<jhass> (I suck at math :P)
davedev24_ has quit [Ping timeout: 245 seconds]
<dudedudeman> luckily, ruby can do it for you!
<ytti> i calculated today 150k/16 = <1000
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has quit [Remote host closed the connection]
<jhass> you'd be surprised how many of my mathy assignments it did already
<ytti> realized only at home
<ytti> no one stopped one :(
<ytti> i said it MANY TIMES
mrmargolis has quit [Remote host closed the connection]
evanjs has joined #ruby
wallerdev has joined #ruby
lidenskap has joined #ruby
mrmargolis has joined #ruby
evanjs has quit [Read error: Connection reset by peer]
wallerdev has quit [Client Quit]
evanjs has joined #ruby
banister has joined #ruby
vickleton has quit [Read error: Connection reset by peer]
chrishough has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
wallerdev has joined #ruby
vickleton has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
ddarkpassenger has quit [Quit: Leaving]
ta has quit [Remote host closed the connection]
stef204 has joined #ruby
mjuszczak has quit []
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
lidenskap has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
ascarter has joined #ruby
<Ellistaa> can someone explain sprintf works?
aufi has quit []
GnuYawk has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
charliesome has quit [Quit: zzz]
mikekellyio has joined #ruby
x1337807x has joined #ruby
QualityAddict has quit [Ping timeout: 256 seconds]
<shevy> it is simple EllisTAA
<shevy> you just have a format there
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150403141925]]
<shevy> the string will be formatted according to the rules you use
<shevy> '%3s' % '1' will become ' 1'
<shevy> '%03d' % 3 # => '003'
<shevy> '%.3f' % '3.0'.to_f # => '3.000'
<shevy> this uses the same rules as does sprintf() I think
<shevy> so with %3, we have a padding towards the right, of 3 characters
<shevy> f means float there
<Ellistaa> got cha
<shevy> >> sprintf("%+d", 123)
<ruboto> shevy # => "+123" (https://eval.in/318435)
<Ellistaa> what are flags?
<Ellistaa> , is 3s the flag in %3s?
<shevy> EllisTAA you can have a look here: http://ruby-doc.org/core-2.2.0/Kernel.html#method-i-format
<shevy> there are lots of examples after the method description
<shevy> the simplest way to learn them is to try it out :)
<Ellistaa> but i dont understand what flags or widths are and percision
momomomomo has quit [Quit: momomomomo]
BTRE has quit [Ping timeout: 276 seconds]
lidenskap has joined #ruby
icarus has joined #ruby
codecop has quit [Remote host closed the connection]
tonyhb has quit [Read error: Connection reset by peer]
tonyhb has joined #ruby
<shevy> well
<shevy> how do you want to format your given string
<shevy> can you give input, and desired output? we can fill in the rest to achieve that
juanpablo___ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
_honning_ has joined #ruby
vim_shimm has joined #ruby
juanpablo__ has quit [Ping timeout: 246 seconds]
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
dvlwrk has quit [Ping timeout: 255 seconds]
jheg has quit [Quit: jheg]
_ixti_ has joined #ruby
phutchins has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
icarus has joined #ruby
Filete has joined #ruby
ixti has quit [Ping timeout: 250 seconds]
plribeiro30001 has quit [Quit: Leaving.]
bkxd_ has quit [Ping timeout: 250 seconds]
Guest25999 has quit [Ping timeout: 256 seconds]
elaptics_away is now known as elaptics
Lewix has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Client Quit]
BTRE has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest29495
<Ellistaa> what is IVAR i’ve seen it around but nothing coems up on google
<jhass> sounds like an abbreviation for instance variable
<Ellistaa> ahhh that makes sense
ki0 has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
shoutsid has quit [Remote host closed the connection]
dvlwrk has joined #ruby
neanderslob has joined #ruby
_honning_ has quit [Ping timeout: 256 seconds]
juanpaucar has joined #ruby
momomomomo has joined #ruby
quimrstorres has joined #ruby
yaw has joined #ruby
baweaver has quit [Remote host closed the connection]
blazes816 has joined #ruby
Hijiri has joined #ruby
Morkel has quit [Quit: Morkel]
dopie has joined #ruby
tcrypt has quit [Ping timeout: 245 seconds]
dfinninger has quit [Remote host closed the connection]
agarie has quit []
juanpaucar has quit [Ping timeout: 276 seconds]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
scripore has joined #ruby
rubyonrailed has quit []
AlexRussia has quit [Ping timeout: 245 seconds]
BTRE has quit [Quit: Leaving]
workmad3 has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
djbkd has joined #ruby
m8 has quit [Quit: Sto andando via]
yxhuvud has quit [Remote host closed the connection]
Ellistaa has quit [Quit: EllisTAA]
workmad3 has quit [Ping timeout: 250 seconds]
Rapier- has quit [Quit: (null)]
Musashi007 has joined #ruby
tonyhb has quit [Ping timeout: 250 seconds]
momomomomo has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Ping timeout: 264 seconds]
shoutsid has joined #ruby
Ellistaa has joined #ruby
joonty has joined #ruby
grios has quit [Quit: Textual IRC Client: www.textualapp.com]
DerisiveLogic has joined #ruby
quimrstorres has quit [Remote host closed the connection]
peterhu has joined #ruby
mrmargol_ has joined #ruby
djmittens has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
kirun has quit [Quit: Client exiting]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
vim_shimm has quit [Ping timeout: 245 seconds]
mrmargolis has quit [Ping timeout: 264 seconds]
vim_shimm has joined #ruby
JDiPierro has quit [Remote host closed the connection]
OrbitalKitten has quit [Client Quit]
dcarmich has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
parduse is now known as Guest89836
tonyhb has joined #ruby
jenrzzz_ has joined #ruby
pardusf has joined #ruby
Guest89836 has quit [Ping timeout: 272 seconds]
barkerd427 is now known as zz_barkerd427
pardusf has quit [Client Quit]
allcentury has quit [Quit: WeeChat 1.1.1]
BTRE has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Read error: Connection reset by peer]
parduse has joined #ruby
jottr_ has joined #ruby
joonty has quit [Quit: joonty]
jenrzzz has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
djmittens has joined #ruby
freerobby has joined #ruby
nfk|laptop has joined #ruby
luluapple has joined #ruby
DerisiveLogic_ has joined #ruby
DerisiveLogic_ has quit [Remote host closed the connection]
RTG` has quit [Ping timeout: 250 seconds]
DerisiveLogic_ has joined #ruby
nfk|laptop has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
sleepee has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
RTG` has joined #ruby
nateberkopec has joined #ruby
tvw has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
i8igmac has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
piotrj has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
djmittens has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
workmad3 has joined #ruby
piotrj has joined #ruby
Flowrhent has quit [Quit: Flowrhent]
hollywood has quit [Quit: Leaving]
jenrzzz_ has quit [Ping timeout: 265 seconds]
<Oog> how to do while loop in ruby? loop do break end ?
claw has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djmittens has joined #ruby
vim_shimm has quit [Ping timeout: 240 seconds]
nfk|laptop has joined #ruby
<apeiros> Oog: while condition; do_stuff; end
<Oog> i want it to guarantee run once
<apeiros> ah
mengu has quit [Ping timeout: 250 seconds]
<apeiros> begin; do_stuff; end while condition
<apeiros> Oog: but note that often there are more idiomatic constructs available
dopie has quit [Quit: This computer has gone to sleep]
<pipework> Oog: You can use loop to run at least once.
ascarter has joined #ruby
relix has joined #ruby
scripore has joined #ruby
sleepee has quit [Quit: Leaving]
<apeiros> IMO loop is in itself a code smell.
Lewix has joined #ruby
<ytti> what about main loop in daemon
tonyhb has quit [Quit: peace]
<apeiros> ytti: even daemons usually have an exit condition. e.g. sigint.
jaxxstorm has quit [Ping timeout: 256 seconds]
<ytti> how would that be in ruby as while condition
<apeiros> terminate = false; trap("SIGINT") { terminate = true }; until terminate; run daemon; end
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
<apeiros> f.ex.
doodlehaus has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
mitchellhenke has joined #ruby
<apeiros> that also allows it to terminate a full loop properly. unlike a mid-code exit.
Lewix has joined #ruby
ki0 has joined #ruby
jonr22 has joined #ruby
<pipework> apeiros: I bet loop is better for when you genuinely want to loop.
<Oog> thx
<apeiros> pipework: no.
<pipework> apeiros: Disagree.
<pipework> But I'm okay with leaving it at that.
<apeiros> pipework: unless you truly loop forever, you just create spaghetti code.
<pipework> apeiros: Again, disagre.
<jhass> apeiros: interestingly matz said that he regrets begin; end while; and recommends loop do; break if
<apeiros> jhass: I know. but he regrets the syntax, not the construct itself.
gfawcettpq has joined #ruby
<apeiros> often mistaken.
AlphaAtom has joined #ruby
<apeiros> pipework: you disagree with it being spaghetti or with it being bad?
<pipework> apeiros: I disagree with the black-and-white nature of your statement.
<pipework> Everything is spaghetti.
vim_shimm has joined #ruby
<apeiros> then you don't understand that term and should educate yourself.
RegulationD has joined #ruby
dopie has joined #ruby
<apeiros> and in that case, it's probably pointless to argue with you about it.
mistermocha has quit [Read error: Connection reset by peer]
<pipework> I feel exactly the same way towards you about this.
<pipework> Mutual disagreement is okay though.
mistermocha has joined #ruby
<apeiros> if you're fine with having your argument based on ignorance - sure.
<pipework> I like how you're choosing to assert ignorance on my part rather than address my assertion.
chrishough has joined #ruby
<apeiros> there's no assertion about that.
<jhass> gosh, relax
<pipework> I prefer objective arguments.
<pipework> It's rare I even agree with Matz.
<apeiros> 23:32 pipework: Everything is spaghetti.
frem has quit [Quit: Connection closed for inactivity]
rhllor has quit [Quit: rhllor]
<apeiros> zero assertion there that you don't understand the term.
baweaver has joined #ruby
* dudedudeman needs an adult
baweaver has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<pipework> Oog: My suggestion going forward is to just not write terrible code. Anything can become spaghetti if you suck at using it, rarely is something like a loop a 'smell', it's just a preferential decision to dislike them without any objective reasoning other than a possible tendency to not be able to restrain yourself as a developer.
<Oog> ?
<pipework> If you like the begin block, use that, if you like the loop, go with that. Either way, don't write terrible code. :)
<Oog> im generating an email verificationc ode - i need to make sure its not already in use
quimrstorres has joined #ruby
<jhass> and share your actual problem so we can suggest a solution that needs neither ;)
<pipework> Oog: Oh, so it's not necessarily just a loop that must happen once?
<Oog> do user.code=x break if code in use loop
nfk|laptop has quit [Quit: yawn]
RegulationD has quit [Ping timeout: 256 seconds]
<Oog> maybe there is a better way i dont know it?
<pipework> Oog: You'll need a way to determine if something's being used. There are many ways to do such a thing.
<apeiros> and for the records - with regards to the syntax ruby uses for do/while, I too agree that it's not good. mostly because of how suffix while/until works (and that's matz' concern with it too afaik)
Lewix has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
Lewix has joined #ruby
elaptics is now known as elaptics_away
<wasamasa> scat.rb?
<wasamasa> is that sfw?
FernandoBasso has joined #ruby
<jhass> yes
<dudedudeman> lol
<apeiros> wasamasa: it's the core mailing list
<wasamasa> apeiros: ok, I didn't know
<apeiros> and I wondered about that name too :D
jonr22 has quit [Ping timeout: 272 seconds]
<wasamasa> would have expected a more official looking domain and path
<apeiros> I think this one is quite ancient
<pipework> wasamasa: It's just a web-based mailing list archive, iirc.
A205B064 has joined #ruby
ylluminarious has quit [Quit: Leaving...]
<apeiros> I think it's the same as on ruby-forum
nfk|laptop has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<pipework> Just like many mailing lists have web-archives hosted by many parties because the mailing lists are open or otherwise allow the archive.
Igorshp has joined #ruby
djmittens has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
ebernhardson has joined #ruby
piotrj has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
dcarmich has joined #ruby
solars has quit [Ping timeout: 272 seconds]
speakingcode has quit [Read error: Connection reset by peer]
rodfersou has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
icebourg has quit []
mjuszczak has quit []
mostlybadfly has quit [Quit: Connection closed for inactivity]
shoutsid has quit [Remote host closed the connection]
baweaver has joined #ruby
shoutsid has joined #ruby
zachrab has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
scripore has joined #ruby
x1337807x has joined #ruby
rodfersou has joined #ruby
scripore has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shoutsid has quit [Remote host closed the connection]
joonty has joined #ruby
mostlybadfly has joined #ruby
shoutsid has joined #ruby
willharrison has quit [Quit: leaving]
odin22 has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
evanjs has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Ellistaa has quit [Quit: EllisTAA]
Lissie has joined #ruby
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
pipework is now known as |work
EllisTAA_ has joined #ruby
EllisTAA_ has quit [Client Quit]
gnfz has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
|work is now known as pipework
michael_mbp has joined #ruby
joonty has quit [Quit: joonty]
ramfjord has quit [Ping timeout: 264 seconds]
Someguy123 has quit [Excess Flood]
Stalkr_ has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
agent_white has quit [Quit: workteim]
_honning_ has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
dmariano has joined #ruby
piotrj has quit [Remote host closed the connection]
troyready has joined #ruby
nfk|laptop has quit [Quit: yawn]
momomomomo has quit [Quit: momomomomo]
Lissie has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 240 seconds]
jaxxstorm has joined #ruby
jimms has quit [Ping timeout: 246 seconds]
Someguy123 has joined #ruby
jenrzzz has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Brozo has quit [Remote host closed the connection]
Brozo has joined #ruby
vim_shimm has joined #ruby
juanpaucar has joined #ruby
dopie has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
vudew has quit [Quit: Lost terminal]
Zamerick__ has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
michael_mbp has quit [Excess Flood]
mary5030_ has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
michael_mbp has joined #ruby
freerobby has quit [Quit: Leaving.]
<sohrab> how do i check if a hash has a key that is not "x" or "y"?
mjuszczak has joined #ruby
<sohrab> is there an elegant way?
<Senjai> sohrab: yes
<Senjai> my_hash.keys.include?
Zamerick_ has quit [Ping timeout: 256 seconds]
<Senjai> You could also remove those from the keys array
<Senjai> and test if the array is empty
<sohrab> hsh.keys.include? !x && hsh.keys.include? !y
<ytti> hash.select { |k,v| k != 'x' and k != 'y' }
a346 has quit [Quit: a346]
<Senjai> derp
<Senjai> ofc
<ytti> #empty? if needed
<sohrab> ytti: nice :)
ramfjord has joined #ruby
<Senjai> hash.keys.detect {|key| key != "x" || key != "y"}
<Senjai> sohrab: Would be my prefered solution
yfeldblum has joined #ruby
<ytti> i think you want and
<Senjai> to determin if there are any keys not x or y
<ytti> that should be always true
<ytti> unless superposition
mary5030 has quit [Ping timeout: 265 seconds]
<Senjai> hash.keys.detect {|key| key != "x" && key != "y"}
<Senjai> Yes
<Senjai> nearing end of day on friday
<ytti> more beer
<Senjai> excuse me for being retarded atm
<Senjai> ytti: Well on my way :P
Nowaker has quit [Ping timeout: 248 seconds]
piotrj has joined #ruby
dmariano has quit [Quit: Saindo]
<Senjai> hash.keys.detect {|key| !["x", "y"].include?(key) }
<Senjai> sohrab: ^^
tearan has joined #ruby
<ytti> %w(x y) :&
Nowaker has joined #ruby
shoutsid has quit [Remote host closed the connection]
<apeiros> the other way round would be much more efficient
<Senjai> hash.keys.any? {|key| !["x", "y"].include?(key) }
<Senjai> actually
<Senjai> :P
rootsudo has joined #ruby
kyrylo has quit [Ping timeout: 256 seconds]
<apeiros> hash.include?("key") # is O(1), does not create a temporary array
djbkd has quit [Remote host closed the connection]
<apeiros> hash.keys.include?("key") # is O(n), and does additionally create a temporary array
<Senjai> I typically am just used to something like whitelisted_attributes.include?(attribute)
<Senjai> apeiros: Yes, I was of course not caring about performance, but you're correct ofc
<Senjai> as per usj
<apeiros> hm… though, reading the question again I'm not actually sure I understood it correctly
<Senjai> apeiros: took me a second too
<Senjai> sohrab: Btw, having to do this is a hint that you should probably not be using a hash, for whatever your using it for
ki0 has joined #ruby
<Senjai> just an fyi
<apeiros> sohrab: by 'a key that is not "x" or "y"?' - do you mean you want to check whether there are additional keys in the hash and not just "x" and/or "y"?
<apeiros> sohrab: or do you mean you want to test whether the hash contains neither "x" nor "y" as keys?
<Senjai> apeiros: The first one I believe, but yeah, I got caught on the wording too
<Senjai> apeiros: j/c do I have access to the bot?
<Senjai> For facts and stuff
<apeiros> Senjai: factoids and eval are public
<apeiros> not sure whether we already restricted it to authenticated people, though
Dude007 has joined #ruby
<apeiros> and if not, that'll happen soon
<apeiros> authenticated with nickserv that is. you don't need a registration with the bot.
bkxd has joined #ruby
scripore has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<apeiros> additional keys: !(hash.keys - test_keys).empty?
<apeiros> none of the keys: test_keys.none? { |key| hash.has_key?(key) }
sevvie has quit [Ping timeout: 256 seconds]
<apeiros> though I'd probably use array's set operations for the second one too if I'd expect test_keys to become large. not because its algorithmic complexity would be better, but because method call overhead in ruby is significant.
<Senjai> mmm sets
ki0 has quit [Ping timeout: 248 seconds]
dopie has joined #ruby
<Senjai> apeiros: Why do you know so much, for reals
sevvie has joined #ruby
<apeiros> I had a bit of time to learn that stuff
quimrstorres has joined #ruby
Igorshp has quit [Remote host closed the connection]
yqt has joined #ruby
ebbflowgo has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
shoutsid has joined #ruby
<apeiros> set variant for none of the keys: (test_keys & hash.keys).empty?
<apeiros> and now I'm curious for when which is faster and by how much :<
towski_ has joined #ruby
duderonomy has joined #ruby
crdpink2 has quit [Ping timeout: 245 seconds]
crdpink has joined #ruby
<Senjai> Set intersection ftw
quimrstorres has quit [Ping timeout: 250 seconds]
<Senjai> I often forget certain use cases for it
<Senjai> I used to use it extensively, it was like a phase
<Senjai> apeiros: lol :( #firstworldproblems
<Senjai> I bet sohrab will never ask another question again
ebbflowgo has quit [Ping timeout: 250 seconds]
Dude007 has quit [Remote host closed the connection]
<apeiros> I wish ruby's Set class was in C. Set is often slower than Array for set operations :(
<Senjai> No way
<apeiros> and it'd be nice if Hash#keys returned a Set
<Senjai> Really
<Senjai> Are you talking about set intersection or the rest of it
Dude007 has joined #ruby
<apeiros> intersection, union, subtraction
<Senjai> For preventing duplicates and stuff, and testing inclusion, I found sets to be incredibly more productive than arrays
<sohrab> Senjai: huh, i'm just trying to hack this together quickly. dunno if it's a bad idea
roshanavand has joined #ruby
<apeiros> testing inclusion is O(n) in arrays, so yes, that'll be slower than with sets.
<ght> Question: As an old habit from preivous languages, I like to declare variables at the top of methods, often setting them to nil. Is there any advantage in Ruby to this in terms of allocating space in ram?
<Senjai> sohrab: Hack away, but yeah, hashes arent typically used that way
<ght> previous*
<apeiros> ght: no
<Senjai> apeiros: So I guess I've only used the good parts of set then
<ght> Ok.
roshanavand has quit [Client Quit]
<apeiros> ght: and for local variables I don't do that. but for ivars, I usually assign all in initialize to make it easy to find all of them.
roshanavand has joined #ruby
<Senjai> ght: Thats not necessarily a bad practice
<apeiros> Senjai: all parts of set are good. just some are not as fast as they could/should be
<Senjai> ght: It has more value in statically typed languages imop
ebbflowgo has joined #ruby
<ght> Senjai: Ok, thank you.
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> and unless you really need the performance, I'd use the datastructure which semantically fits
<Senjai> Well, just for sohrab
<Senjai> 's example
<Senjai> I assume its a coordinate system or something
<Senjai> I would rather pass a Coordinate class or something
<Senjai> instead of a hash of attributes
roshanavand has quit [Client Quit]
hiyosi has joined #ruby
Spami has joined #ruby
nfk|laptop has joined #ruby
Dude007 has quit [Ping timeout: 264 seconds]
yqt has quit [Ping timeout: 245 seconds]
dopie has quit [Quit: This computer has gone to sleep]
juanpablo___ has quit [Quit: (null)]
juanpablo___ has joined #ruby
nfk has quit [Remote host closed the connection]
nfk|laptop has quit [Ping timeout: 245 seconds]
vickleton has quit [Quit: Ex-Chat]
Dude007 has joined #ruby
juanpablo___ has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
pdoherty has joined #ruby
jonr22 has joined #ruby
enebo has quit [Quit: enebo]
mitchellhenke has joined #ruby
a5i has joined #ruby
mikecmpbll has quit [Quit: ciao.]
nfk has quit [Ping timeout: 256 seconds]
predator217 has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
hellome has joined #ruby
FernandoBasso has quit [Read error: Connection reset by peer]
thatslifeson has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 265 seconds]
FernandoBasso has joined #ruby
baweaver has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
dopie has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lfox has quit [Ping timeout: 245 seconds]
Guest71480 has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Cloudhand has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
bim has joined #ruby
jonr22 has quit [Ping timeout: 276 seconds]
bim is now known as Guest3092
baweaver has joined #ruby
ItSANgo has quit [Quit: Leaving...]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
workmad3 has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
baweaver has joined #ruby
Schmidt has quit [Ping timeout: 255 seconds]
<a5i> Is there a Ruby formatter somewhere ?
blackmesa has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
Guest3092 has quit [Remote host closed the connection]
rkazak_ has joined #ruby
ddarkpassenger has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
Schmidt has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
ItSANgo has joined #ruby
x1337807_ has joined #ruby
DigitallyBorn has joined #ruby
Dibillilia has joined #ruby
zachrab has quit [Ping timeout: 244 seconds]
<apeiros> a5i: what would a ruby formatter do?
<DigitallyBorn> Hi, everybody. New-ish to ruby and I'm trying to do a regex match and loop through each of the matches. I need char index for each. Is the best way to use .match(text, index) and shift the index after each match?
<a5i> format ruby code
<a5i> I think it's just github screwing up
<apeiros> ah
x1337807_ has quit [Client Quit]
<a5i> it automatically sets my formatting to tab size 8
<a5i> and i cant chnage it :/
wottam has joined #ruby
<ytti> space, eleastic tab stops, tabs
chrishough has joined #ruby
<ytti> in order of preference
<Dibillilia> Hey guys, maybe you can help me. I'm having a problem installing Gems. It looks like SSL connection is failing. I'm on Windows. Here's the error: Unable to download data from https://rubygems.org/ - SSL_connect retur
<Dibillilia> ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
<ytti> or maybe elastic would be best, if it would be widely supported
<apeiros> DigitallyBorn: scan + Regexp class methods could also be used
RegulationD has quit [Ping timeout: 255 seconds]
<a5i> ytti, my format keeps getting screwed up by github,
<apeiros> Dibillilia: I think for that specific error there exist a couple of answers on stackoverflow. google is your friend (I'd do the same to help)
x1337807x has quit [Ping timeout: 256 seconds]
x1337807_ has joined #ruby
<DigitallyBorn> apeiros: Scan doesn't return match positions, does it?
<apeiros> DigitallyBorn: hence Regexp class methods. they provide that information
<apeiros> or the relevant $vars if that's more your thing
<Dibillilia> I've checked Stack Overflow. All of the errors seem to have been problems with the gem package manager.
mistermocha has joined #ruby
<apeiros> DigitallyBorn: actually just Regexp.last_match or $~ (contains MatchData)
rgb-one has quit [Remote host closed the connection]
<apeiros> and MatchData has #offset
Zai00 has quit [Quit: Zai00]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
dopie has quit [Quit: This computer has gone to sleep]
ddarkpassenger has quit [Quit: Leaving]
fryguy9 has quit [Quit: Leaving.]
piotrj has quit [Remote host closed the connection]
* rootsudo doesn't know what ruby is.
* rootsudo is going to learn this tonight.
wallerdev has quit [Quit: wallerdev]
pdoherty has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
* Brozo feels it rootsudo
slawrence00 has joined #ruby
quimrstorres has joined #ruby
dudedudeman has quit [Quit: Leaving.]
mjuszczak has quit []
marr has quit [Read error: Connection reset by peer]
constantinexvi has quit [Quit: Exiting]
pengin__ has quit [Remote host closed the connection]
Dibillilia has left #ruby [#ruby]
jenrzzz has joined #ruby
quimrstorres has quit [Ping timeout: 276 seconds]
DigitallyBrn has joined #ruby
ChoiKyuSang has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
towski__ has joined #ruby
DigitallyBorn has quit [Ping timeout: 264 seconds]
towski_ has quit [Ping timeout: 240 seconds]
JDiPierro has joined #ruby
juanpablo___ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
_honning_ has quit [Remote host closed the connection]
ascarter has joined #ruby
djbkd has quit [Quit: My people need me...]
mrsolo has quit [Quit: Leaving]
banister has quit [Read error: Connection reset by peer]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo___ has quit [Ping timeout: 256 seconds]
<a5i> how do I run ruby files with crontabs ?
bim has joined #ruby
<apeiros> a5i: are you using rvm?
<a5i> No
bim is now known as Guest29354
<apeiros> do you know how to run other stuff with cron?
<ramfjord> /path/to/ruby /path/to/file ?
predator117 has joined #ruby
wallerdev has joined #ruby