apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
cnj has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
britneywright has joined #ruby
SilkFox_ has joined #ruby
<mocfive> Has anyone seen a tool that generates ERR diagrams and relationship lines, from a MySQL db that doesn't have foreign keys? This link is close, but doesn't quite work for the rails table name conventions: http://planet.mysql.com/entry/?id=26363
amacou has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
Zebroid has quit [Remote host closed the connection]
razum2um has quit [Quit: Leaving.]
Rollabunna has joined #ruby
Testor has joined #ruby
Testor has left #ruby [#ruby]
sepp2k1 has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
terrellt has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
andrewjanssen has joined #ruby
lw has joined #ruby
startupality has joined #ruby
Wolland has joined #ruby
amacou has quit [Ping timeout: 250 seconds]
AlexBlomCOM has joined #ruby
AlexBlomCOM has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
icarus has quit [Quit: Lost terminal]
chridal has quit [Ping timeout: 240 seconds]
natewalck has quit [Ping timeout: 256 seconds]
natewalck has joined #ruby
AlexBlom has quit [Ping timeout: 256 seconds]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Quit: leaving]
jarto has joined #ruby
chridal has joined #ruby
Guest68046 has joined #ruby
tkuchiki has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
beauby has quit [Ping timeout: 256 seconds]
razum2um has joined #ruby
Guest68046 is now known as CassioAlmeidas
lxsameer has quit [Quit: Leaving]
poguez_ has quit [Quit: Connection closed for inactivity]
jarto has quit [Client Quit]
CassioAlmeidas has quit [Quit: Saindo]
ramfjord has quit [Ping timeout: 256 seconds]
Hobogrammer has quit [Ping timeout: 255 seconds]
CassioAlmeidas has joined #ruby
cnj has quit [Ping timeout: 240 seconds]
mattalexx has quit [Ping timeout: 246 seconds]
nmokru has quit [Quit: nmokru]
britneywright has quit [Ping timeout: 256 seconds]
<CassioAlmeidas> How do I separate the field description, alt, title of this string: "a: 3: {s: 11: \" description \ "s: 18: \" Second description \ "s: 3: \" alt \ "; s: 10: \ "alt Second \ 's: 5: \" title \ "; s: 12: \" Second title \ ";}"
<CassioAlmeidas> ?
jisiadjoiasdhopa has joined #ruby
<jisiadjoiasdhopa> new Ruby distro out called etc
<jisiadjoiasdhopa> its channel is ##etc
<jisiadjoiasdhopa> join ##etc
<jisiadjoiasdhopa> join ##etc
<jisiadjoiasdhopa> join ##etc
jisiadjoiasdhopa has quit [Killed (idoru (Spam is off topic on freenode.))]
cnj has joined #ruby
lw has quit [Quit: s]
hgl__ has joined #ruby
Bira has joined #ruby
jzml has quit [Quit: This computer has gone to sleep]
lw has joined #ruby
freerobby has joined #ruby
lw has quit [Client Quit]
britneywright has joined #ruby
sevvie has joined #ruby
ramfjord has joined #ruby
thesheff17 has quit [Quit: Leaving]
oo_ has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
thesheff17 has joined #ruby
vincent has joined #ruby
vincent is now known as Guest40788
hgl__ has quit [Remote host closed the connection]
mgberlin has joined #ruby
hgl__ has joined #ruby
jimms has joined #ruby
<wallerdev> CassioAlmeidas: is that yaml?
<CassioAlmeidas> wallerdev: no, it's data from a table from a legacy database
<wallerdev> well figure out the rules for formatting of your results and write a parser if its not regular
Dude007 has quit [Remote host closed the connection]
Lucky____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larissa has joined #ruby
Dude007 has joined #ruby
<toretore> it looks messed up. is this what the actual string is?
skysploit has joined #ruby
skysploit has joined #ruby
terrellt has joined #ruby
Soda has quit [Remote host closed the connection]
zz_karupa is now known as karupa
oo_ has quit [Remote host closed the connection]
<CassioAlmeidas> yes, that is how the ImageField drupal module saves these data
Guest40788 has quit [Ping timeout: 264 seconds]
terrellt has quit [Ping timeout: 255 seconds]
macclearich has joined #ruby
EminenceHC has quit [Remote host closed the connection]
<toretore> it's not the result of a .inspect ?
GriffinHeart has joined #ruby
<toretore> you're going to have to figure out what format that is before you can parse it
godd2 has joined #ruby
<macclearich> hey, guys, bit of a meta-question: I've been handed ownership of a bunch of social network graph code in python, primarily using networkx
<macclearich> is there anything like networkx for ruby?
oo_ has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
<godd2> Is that the category you're looking for?
fgo has joined #ruby
tricon_ has quit [Quit: Leaving...]
sevenseacat has joined #ruby
beneggett has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
ghr has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
sputnik13 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Quit: WeeChat 0.4.3]
teenwolf has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
<banister> k
Dude007 has quit [Ping timeout: 260 seconds]
banisterone has quit [Quit: Bye]
Zenigor has quit [Remote host closed the connection]
<banister> can anyone here answer a rails question? i can't seem to join any rails channels right now due to god knows what
<Wolland> maybe
sdrew has joined #ruby
benzrf is now known as benzrf|offline
mikesplain has joined #ruby
beneggett has joined #ruby
SilkFox_ has joined #ruby
benzrf|offline is now known as benzrf
moted has quit [Quit: moted]
Spami has quit [Quit: This computer has gone to sleep]
vincent has joined #ruby
vincent is now known as Guest58559
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
bruno- has joined #ruby
beneggett has quit [Client Quit]
bmurt has quit []
beakshy has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
<banister> Wolland includes(hello:, hello: :goodbye) is equivalent to just includes(hello: :goodbye) right?
maestrojed has quit [Quit: Computer has gone to sleep.]
<sevenseacat> thats a syntax error, no?
<macclearich> godd2: didn't see anything on the ruby-toolbox that might fit the bill; networkx is actually more of a statistical package. I'll maybe do a dive on some of the stuff there but nothing reached out and grabbed me
<macclearich> I don't *wanna* port python!!! /whine
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimms has quit []
<banister> sevenseacat i mean :hello
<beakshy> howdy, everyone.
lethjakman has joined #ruby
<Wolland> includes method of what class?
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> its a rails thing
<banister> Wolland hehe, it's an activerecord method
<Wolland> ok just making sure
<wallerdev> i imagine rails would make it work the same
<wallerdev> just check if it runs the same sql
macclearich has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 260 seconds]
macclearich has joined #ruby
<Wolland> not the way I would think it does it
echevemaster has joined #ruby
<Wolland> well, no. if it works, it should be the same, Parent > Hello > Goodbye
geggam has quit [Remote host closed the connection]
AskSteve has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Wolland> includes([:hello, :goodbye]) would be different
lw has joined #ruby
macclearich has quit [Ping timeout: 260 seconds]
Guest58559 has quit [Ping timeout: 245 seconds]
startupality has quit [Quit: startupality]
cpruitt has quit [Quit: cpruitt]
spastorino has quit [Quit: Connection closed for inactivity]
startupality has joined #ruby
beneggett has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
danielpclark has quit [Ping timeout: 250 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
inside has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
saarinen has quit [Quit: saarinen]
ftj has joined #ruby
dvb_ua has quit [Ping timeout: 272 seconds]
banjara has quit [Quit: Leaving.]
jamto11 has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
Bira has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
Alina-malina has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
robustus has joined #ruby
Hobogrammer has joined #ruby
Kricir has joined #ruby
coca_rails has joined #ruby
jamto11 has quit [Ping timeout: 256 seconds]
zzak__ has quit [Ping timeout: 240 seconds]
xMopxShell has quit [Ping timeout: 240 seconds]
weems|nix has quit [Ping timeout: 240 seconds]
gil has quit [Ping timeout: 240 seconds]
s_e has quit [Ping timeout: 240 seconds]
Kovensky has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qsun has quit [Ping timeout: 240 seconds]
qsun has joined #ruby
jamto11 has joined #ruby
xMopxShell has joined #ruby
zzak__ has joined #ruby
amacou has joined #ruby
gil has joined #ruby
s_e has joined #ruby
deavid has quit [Ping timeout: 240 seconds]
Vivekananda has quit [Excess Flood]
weems|nix has joined #ruby
danielpclark has joined #ruby
Vivekananda has joined #ruby
deavid has joined #ruby
Kovensky has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
yfeldblu_ has joined #ruby
MZAWeb has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
lw has quit [Quit: s]
amacou has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
krz has joined #ruby
Aryasam has quit [Read error: No route to host]
yfeldblum has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Leaving...]
andrewjanssen has joined #ruby
havenwood has joined #ruby
glebm has joined #ruby
startupality has quit [Quit: startupality]
krz has quit [Client Quit]
iamjarvo has joined #ruby
andrewjanssen has quit [Ping timeout: 260 seconds]
AskSteve has left #ruby [#ruby]
AlexBlom has joined #ruby
camilasan has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
bonhoeffer has joined #ruby
edgarjs is now known as edgarjs_afk
jack_rabbit has joined #ruby
ghr has joined #ruby
pietr0 has quit [Quit: pietr0]
yetanotherdave has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 250 seconds]
Kricir has quit [Remote host closed the connection]
davispuh has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lethjakman has quit [Ping timeout: 255 seconds]
tokik has joined #ruby
maestrojed has joined #ruby
dvb_ua has joined #ruby
SilkFox_ has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
hamakn has joined #ruby
k0m has joined #ruby
golgo_13 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
maestrojed has quit [Client Quit]
hamakn has joined #ruby
wallerdev has quit [Quit: wallerdev]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gr33n7007h has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
mocfive has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
CassioAlmeidas has left #ruby [#ruby]
thomas3141592653 has joined #ruby
orionstein_away is now known as orionstein
coca_rails has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Ping timeout: 260 seconds]
coca_rails has joined #ruby
xybre has quit [Ping timeout: 260 seconds]
mr_snowf1ake has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Ping timeout: 245 seconds]
RandyT has quit [Quit: ZNC - http://znc.in]
jack_rabbit has joined #ruby
maestrojed has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
zB0hs has joined #ruby
RandyT has joined #ruby
yeticry has joined #ruby
mary5030 has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
reset has joined #ruby
diegoviola has joined #ruby
SilkFox_ has joined #ruby
CodeLicker has quit [Ping timeout: 264 seconds]
sdrew has joined #ruby
rubyNooby has joined #ruby
reset has quit [Ping timeout: 272 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
golgo_13 has quit [Quit: [BX] Mr. Rogers uses BitchX. Won't you be my neighbor?]
krz has joined #ruby
chipotle has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
Kricir has joined #ruby
fgo has joined #ruby
agent_white has joined #ruby
GlenK has joined #ruby
sailias has joined #ruby
<rubyNooby> can someone tell me how i can join two arrays of hashes? i have hashes that share common keys. If they have a common key i want to create a new key with data from one of the hashes into the other.
vincent has joined #ruby
radic has quit [Ping timeout: 256 seconds]
vincent is now known as Guest22257
Deele has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
Bira has quit [Ping timeout: 256 seconds]
<zenspider> rubyNooby: each
radic has joined #ruby
p0sixpscl has joined #ruby
hgl__ has quit [Read error: Connection reset by peer]
<rubyNooby> i figured i could use each to search for matching keys but i figured there is probably an easier way to accomplish this.
andrewjanssen has joined #ruby
bonhoeffer has quit [Quit: Page closed]
andrewjanssen has quit [Client Quit]
mikemac has joined #ruby
amacou has joined #ruby
sixxy has joined #ruby
crazymykl has quit [Ping timeout: 256 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0sixpscl has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby
Guest22257 has quit [Ping timeout: 245 seconds]
<rubyNooby> was also wondering if anyone had a good tutorial on how to write mysql queries in ruby? I want to do a query that involves date but also has a few conditions too.
<sevenseacat> curious
<sevenseacat> i would assume you were writing queries in sql, not in ruby
toastynerd has quit [Remote host closed the connection]
<benzrf> rubyNooby: mysql?
troyready has quit [Ping timeout: 260 seconds]
<benzrf> why the heck are you using mysql
toastynerd has joined #ruby
amacou has quit [Ping timeout: 256 seconds]
<rubyNooby> have to for class
<benzrf> rubyNooby: did they explicitly say mysql
<benzrf> and not just 'sql'
<rubyNooby> might be sql not 100% sure. i am sure the syntax is similar though
<benzrf> tsk
GriffinHeart has quit [Remote host closed the connection]
orionstein is now known as orionstein_away
RandyT has quit [Quit: ZNC - http://znc.in]
<zenspider> his class probably does specify mysql
<zenspider> why would they generically say sql?
<rubyNooby> i know i have to use the active record query interface but when i look at documentation for this it seems to show very basic examples but not how to combine ideas to make more complex queries
RandyT has joined #ruby
<sevenseacat> ah, activerecord, thats some new information
<zenspider> there's plenty out there for complex queries in activerecord if you google around
<zenspider> a talk just came out of reddotruby in the last week on confreaks.com about using arel to do stuff that AR doesn't make easy
<zenspider> etc
orionstein_away is now known as orionstein
<sevenseacat> it doesnt sound like he wants a complex query
jxf has joined #ruby
bMalum__ has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has quit [Remote host closed the connection]
magic_ has joined #ruby
bMalum__ has joined #ruby
magic_ has quit [Client Quit]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<zenspider> "involves date but also has a few conditionals too"
<sevenseacat> i wanted to go to reddotrubyconf - maybe next year
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inside has joined #ruby
inside has joined #ruby
<rubyNooby> thanks for the help :)
mikepack has quit [Remote host closed the connection]
bMalum__ has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
nanoyak_ has joined #ruby
bruno- has joined #ruby
nanoyak has quit [Ping timeout: 245 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
PanPan has joined #ruby
beneggett has joined #ruby
winny has joined #ruby
danielpclark has quit [Ping timeout: 255 seconds]
<winny> hi, what is the difference between bin/bundle and bin/bundler?
<winny> hi, what is the difference between bin/bundle and bin/bundler?
<winny> oops sorry.
yetanotherdave has joined #ruby
yetanotherdave has quit [Client Quit]
toretore has quit [Quit: This computer has gone to sleep]
cleopatra has joined #ruby
<cleopatra> hellouu people
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
dayepa1 has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
magic_ has joined #ruby
momomomomo has joined #ruby
sdrew has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
lethjakman has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
magic_ is now known as magic
momomomomo has quit [Client Quit]
sailias has quit [Ping timeout: 256 seconds]
RandyT has joined #ruby
braincrash has quit [Quit: bye bye]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
fgo_ has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
Kricir has quit [Remote host closed the connection]
grimsie has joined #ruby
nateberkopec has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
braincrash has joined #ruby
braincrash is now known as braincras
fgo has quit [Ping timeout: 245 seconds]
danielpclark has joined #ruby
zkay11 has joined #ruby
fgo has joined #ruby
mr_rich101 has joined #ruby
mr_rich101 has quit [K-Lined]
<grimsie> hi
m3_del has quit [Quit: Leaving...]
<winny> puts "hello world"
freerobby has joined #ruby
mocfive has joined #ruby
edmellum has quit [Quit: Connection closed for inactivity]
xcesariox has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
fgo_ has quit [Ping timeout: 256 seconds]
magic has quit [Quit: WeeChat 1.0-dev]
magic has joined #ruby
bMalum__ has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
grimsie has left #ruby [#ruby]
RandyT has joined #ruby
fold has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
orionstein is now known as orionstein_away
britneywright has joined #ruby
nszceta has joined #ruby
arup_r has joined #ruby
NinoScript has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
fold has joined #ruby
GriffinHeart has joined #ruby
nateberkopec has quit [Quit: Leaving...]
rubyNooby has quit [Ping timeout: 246 seconds]
Aryasam has joined #ruby
asmodlol has joined #ruby
kaspergrubbe has quit []
JoshGlzBrk has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has joined #ruby
yfeldblum has joined #ruby
jobewan has joined #ruby
tylersmith has joined #ruby
mikepack has joined #ruby
skysploit has quit []
CodeLicker has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnj has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
cnj has joined #ruby
andrewjanssen has joined #ruby
narcan has joined #ruby
ghr has joined #ruby
oo_ has quit [Remote host closed the connection]
arup_r1 has joined #ruby
oo_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdrew has joined #ruby
frellnet has quit []
lw has quit [Quit: s]
ghr has quit [Ping timeout: 240 seconds]
alvaro_o has quit [Quit: Ex-Chat]
baroquebobcat_ has joined #ruby
jobewan has quit [Quit: Leaving]
<agent_white> Ello everyone
zkay11 has left #ruby [#ruby]
<nszceta> good morning
andrewjanssen has quit [Quit: Leaving...]
sunya7a has joined #ruby
beakshy has quit []
Rollabunna has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
<arup_r1> hi
frankle has quit [Quit: Connection closed for inactivity]
GriffinHeart has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
mgberlin_ has joined #ruby
Rollabunna has quit [Ping timeout: 250 seconds]
GriffinH_ has joined #ruby
<arup_r1> agent_white: Still waiting for the book name from you ;-)
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has joined #ruby
lw has quit [Client Quit]
mgberlin has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
sigurding has joined #ruby
<agent_white> arup_r1: What's that? :P
coca_rails has quit [Quit: coca_rails]
<agent_white> Can't say I remember... my memory is horrid.
<winny> if i say hello, you say
arup_r2 has joined #ruby
SilkFox_ has joined #ruby
arup_r1 has quit [Ping timeout: 255 seconds]
dbasch has joined #ruby
<arup_r2> agent_white: TDD book
vincent has joined #ruby
<agent_white> arup_r2: Oh! Well... the only one I know of it for learning Rails as well.
mgberlin_ has quit [Remote host closed the connection]
<agent_white> That's Rails 4 In Action.
vincent is now known as Guest90680
tommm has joined #ruby
<sevenseacat> !r4ia
<helpa> Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Steve Klabnik, Ryan Bigg, Yehuda Katz
Mon_Ouie has joined #ruby
<agent_white> sevenseacat: Thank you :D
sunya7a has quit [Ping timeout: 256 seconds]
danielpclark has quit [Ping timeout: 240 seconds]
<arup_r2> sevenseacat: Vim user ?
<sevenseacat> yw
mikepack has quit [Remote host closed the connection]
<sevenseacat> arup_r2: no, i use sublime text
AlexBlom has quit [Ping timeout: 250 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
<arup_r2> Ohh! I said because you used *!* :-)
<sevenseacat> `!` is for commands to helpa, the bot.
SilkFox_ has quit [Ping timeout: 250 seconds]
Lucky__ has joined #ruby
<sevenseacat> helpa responds to a *lot* of commands.
<benzrf> sevenseacat: >using st
<benzrf> yw is a vim
<benzrf> u lie about st
<sevenseacat> i'm not sure that was enlish.
<sevenseacat> english even.
<benzrf> it certainly wasn
<benzrf> t
<benzrf> i was pointing out that pressing `yw' in normal mode will yank a word
baroquebobcat_ has joined #ruby
<arup_r2> helpa and agent_white thanks for the book... :-) Too many pages I see
<sevenseacat> i hate when books have pages.
<Mon_Ouie> Always thank the bots, their feelings are important :)
<Mon_Ouie> !cookie
<sevenseacat> !botsnack
<helpa> Nom nom. Thanks, sevenseacat!
<arup_r2> sevenseacat: Me too.. When book has more than 400 pages Lollz
GriffinH_ has quit [Remote host closed the connection]
mikepack has joined #ruby
GlenK has quit []
philcris_ has joined #ruby
Channel6 has quit [Quit: Leaving]
baroquebobcat_ has quit [Quit: baroquebobcat_]
arup_r2 has quit [Quit: Leaving.]
banjara has joined #ruby
AlexBlom has joined #ruby
amacou has joined #ruby
fgo has quit [Remote host closed the connection]
danielpclark has joined #ruby
theharshest has joined #ruby
danielpclark has quit [Client Quit]
yacks has quit [Quit: Leaving]
charliesome has joined #ruby
amacou has quit [Ping timeout: 240 seconds]
lw has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> arup_r: I hope you get it. It's really helpful :)
zenojis has quit [Ping timeout: 240 seconds]
dvb_ua has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
phinfonet has quit []
bruno- is now known as Guest5408
goshdarnyou has quit [Quit: Connection closed for inactivity]
GriffinHeart has joined #ruby
yacks has joined #ruby
Guest5408 has quit [Ping timeout: 264 seconds]
lw has quit [Read error: Connection reset by peer]
isthisreallife has joined #ruby
isthisreallife has left #ruby [#ruby]
havenn has joined #ruby
havenn has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
newUser1234 has joined #ruby
froy has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
inside has quit [Ping timeout: 255 seconds]
vsoftoiletpaper has quit []
benzrf is now known as benzrf|offline
CaptainJet has quit []
JoshGlzB_ has joined #ruby
lw has joined #ruby
JoshGlzBrk has quit [Read error: No route to host]
bMalum__ has quit [Quit: Computer has gone to sleep.]
codabrink has quit [Ping timeout: 264 seconds]
bMalum__ has joined #ruby
djbkd has joined #ruby
EvanR_ has quit [Read error: Connection reset by peer]
teenwolf has quit [Quit: Leaving...]
EvanR_ has joined #ruby
aganov has joined #ruby
larissa has quit [Quit: Leaving]
vsoftoiletpaper has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
mocchi has quit [Ping timeout: 240 seconds]
tokik has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
mocchi has joined #ruby
bMalum__ has quit [Ping timeout: 250 seconds]
paradisaeidae has joined #ruby
beneggett has joined #ruby
tobago has joined #ruby
bMalum__ has joined #ruby
TheAtomicGoose has joined #ruby
fgo has joined #ruby
BadQuanta has joined #ruby
agent_white has quit [Ping timeout: 255 seconds]
<TheAtomicGoose> when i installed bundler, i was told to add /home/<username>/.gem/ruby/2.1.0/bin to my path to get gem executables to run. I added the said directory to my path, and bundle install still throws zsh: command not found: bundle. I'm on arch linux.
agent_white has joined #ruby
tokik has joined #ruby
gbaway has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
Sauvin has joined #ruby
bMalum__ has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 250 seconds]
heftig has quit [Quit: Quitting]
nobodyzzz has joined #ruby
NinoScript has joined #ruby
sixxy has quit [Remote host closed the connection]
oo_ has quit [Quit: Leaving...]
thomasfedb_ is now known as thomasfedb
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
agent_white has quit [Quit: brb]
ndrei has joined #ruby
Morkel has joined #ruby
agent_white has joined #ruby
fgo has joined #ruby
agent_white has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: chrishough]
agent_white has joined #ruby
agent_white has quit [Client Quit]
oo_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Dreamer3 has quit [Quit: Leaving...]
SilkFox_ has joined #ruby
havenwood has joined #ruby
jaequery has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
lazyguru has quit [Ping timeout: 240 seconds]
lazyguru has joined #ruby
lw has joined #ruby
whyy has joined #ruby
JoshGlzB_ has quit [Read error: No route to host]
JoshGlzBrk has joined #ruby
tkuchiki_ has joined #ruby
TheAtomicGoose has quit [Ping timeout: 250 seconds]
rezzack1 has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
cschneid has joined #ruby
JoshGlzBrk has quit [Read error: No route to host]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
bricker`LA has joined #ruby
arup_r has quit []
amacou has joined #ruby
arup_r has joined #ruby
bruno-_ has joined #ruby
tagrudev has joined #ruby
amacou has quit [Ping timeout: 245 seconds]
jamto11 has quit [Remote host closed the connection]
IceDragon has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
bruno-_ has quit [Ping timeout: 256 seconds]
tectonic has joined #ruby
doev has joined #ruby
sevvie has joined #ruby
Morkel has quit [Quit: Morkel]
Hanmac has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
Hanmac has joined #ruby
apeiros has joined #ruby
pabloh has joined #ruby
agent_white has joined #ruby
dayepa1 has joined #ruby
darkxploit has quit [Ping timeout: 255 seconds]
JoshGlzBrk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
Gooder has joined #ruby
lanox has quit [Quit: leaving]
goshdarnyou has joined #ruby
arup_r_ has joined #ruby
why_away has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dangerousdave has joined #ruby
mocfive has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 240 seconds]
vsoftoiletpaper has quit []
whyy has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
darkxploit has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
apeiros has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
sputnik13 has joined #ruby
MatthewsFace has joined #ruby
lethjakman has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
fabrice31 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
duncannz has joined #ruby
narcan has quit [Client Quit]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
_tpavel has joined #ruby
Macaveli has joined #ruby
wallerdev has joined #ruby
<Macaveli> Textual IRC is today free in the Mac App Store -> in my opinion best IRC Client
jamto11 has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
Guest90680 has quit []
dbasch has quit [Quit: dbasch]
bal has joined #ruby
radic has quit [Ping timeout: 256 seconds]
Pharaoh2 has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 255 seconds]
why_away is now known as whyy
sigurding has quit [Quit: sigurding]
magic has quit [Quit: WeeChat 1.0-dev]
magic_ has joined #ruby
vincent has joined #ruby
fgo has joined #ruby
vincent is now known as Guest10387
AlexBlom has quit [Ping timeout: 250 seconds]
Elhu has joined #ruby
relix has joined #ruby
GriffinHeart has joined #ruby
jamto11 has quit [Ping timeout: 256 seconds]
SilkFox_ has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
magic_ is now known as magic
alem0lars has joined #ruby
Ilyas has joined #ruby
fgo has joined #ruby
havenwood has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
agent_white has quit [Read error: Connection reset by peer]
Bira has joined #ruby
coderhs has joined #ruby
coderhs has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
sigurding has joined #ruby
Pharaoh2 has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
codabrink has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Morkel has joined #ruby
theharshest has joined #ruby
newUser1234 has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
amacou has joined #ruby
theharshest has quit [Client Quit]
newUser1234 has quit [Ping timeout: 240 seconds]
nanoyak_ has quit [Quit: Computer has gone to sleep.]
kiri has joined #ruby
amacou has quit [Ping timeout: 250 seconds]
Photism has joined #ruby
lbwski has quit [Quit: leaving]
musl has quit [Read error: Connection reset by peer]
philcris_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
musl has joined #ruby
uxp_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kyb3r_ has quit [Ping timeout: 255 seconds]
benzrf|offline has quit [Ping timeout: 255 seconds]
kyb3r_ has joined #ruby
MZAWeb has quit [Ping timeout: 272 seconds]
MrL0ngbowman has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
uxp has joined #ruby
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
drawingthesun has quit [Ping timeout: 272 seconds]
jdj_dk has joined #ruby
drawingthesun has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 250 seconds]
sdrew has joined #ruby
senayar has joined #ruby
ndrei has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Bumptious has quit [Ping timeout: 240 seconds]
GriffinH_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
toastynerd has joined #ruby
Dude007 has joined #ruby
tylersmith has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has quit [Remote host closed the connection]
thomas3141592653 has quit [Quit: Connection closed for inactivity]
tylersmith has quit [Ping timeout: 245 seconds]
sigurding has quit [Quit: sigurding]
tectonic has quit []
toastynerd has quit [Ping timeout: 255 seconds]
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
jdj_dk has joined #ruby
vali has left #ruby [#ruby]
ndrei has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
banjara has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
Macaveli has joined #ruby
banjara has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
Akagi201 has joined #ruby
<Akagi201> How to install gem(in ruby) command in gentoo?
<Akagi201> I am not familiar with ruby
zenojis has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Elhu has quit [Quit: Computer has gone to sleep.]
<sevenseacat> as in, how to install a specific gem, or how to install rubygems itself?
claymore has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
SilkFox_ has joined #ruby
ndrei has joined #ruby
<zenspider> Macaveli: what makes it good? I normally do IRC in emacs, but I know lots of mac users
<Macaveli> the interface looks like it could be designed by steve jobs
<Macaveli> and it's black with green letters which makes me look like an old skool hacker
dumdedum has joined #ruby
jamto11 has joined #ruby
<Macaveli> to be honest I havn't had time to check out irssi
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
havenwood has joined #ruby
<zenspider> welp. it's crashed twice on me. trashing it
<agent_white> Hey now, you're giving far too much credit to a suit-and-tie.
<agent_white> Steve Jobs couldn't code his way out of a wet paper bag.
SilkFox_ has quit [Ping timeout: 264 seconds]
Bira has joined #ruby
<sevenseacat> to be fair Macaveli made no reference to Jobs' coding ability, only his design ability
<Macaveli> sevenseacat that is correct
jamto11 has quit [Ping timeout: 255 seconds]
<agent_white> sevenseacat: I was trying to think about the second portion to that... but I can't figure out how he would 'design his way out of a wet paper bag'.
codabrink has quit [Ping timeout: 260 seconds]
<Macaveli> I'm reading his book and I'm fascinated by the way he handles things
<agent_white> I am not a designer. ;)
<sevenseacat> neither am i, unfortunately
<sevenseacat> i wish i had some design skills
<agent_white> Macaveli: How so? -- I haven't read his book, but what I've heard of him is not good things.
<Macaveli> I have a meeting I will try to discuss later
oo_ has quit [Remote host closed the connection]
<agent_white> Good deal ;)
<agent_white> My design ideas look good on paper. But I haven't tried to code them.
<agent_white> One day when I just code well enough, I'll look into it.
newUser1234 has joined #ruby
<sevenseacat> when i try to build software for myself, i become a crazy perfectionist and therefore i never even come close to finishing anything
havenwood has quit [Ping timeout: 264 seconds]
Guest10387 has quit []
Bira has quit [Ping timeout: 240 seconds]
Dude007 has quit [Remote host closed the connection]
nanoyak has joined #ruby
<agent_white> sevenseacat: I am a clone of you... minus many years experience.
<agent_white> ;)
Dude007 has joined #ruby
<sevenseacat> dunno about minus >_> that makes me sound old
MrL0ngbowman has quit [Ping timeout: 256 seconds]
<agent_white> Hahah not in that way! :) There's folks in their teens that code better than I.
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
pabloh has quit [Quit: Saliendo]
<agent_white> I just found recently I need to accept that I should not even focus on design, but just need to crank out crappy code until I start to "filter the crap" as I write it.
<agent_white> It's going well so far :)
Macaveli is now known as Macaveli|Away
newUser1234 has quit [Ping timeout: 260 seconds]
Mooneye has joined #ruby
<sevenseacat> awesome :)
anarang has joined #ruby
sputnik13 has joined #ruby
banjara has quit [Quit: Leaving.]
jheg_ has joined #ruby
Dude007 has quit [Ping timeout: 272 seconds]
amacou has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
St_Marx has joined #ruby
sputnik13 has quit [Client Quit]
amacou has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
why_away has joined #ruby
sk87 has joined #ruby
dANOKELOFF has joined #ruby
codabrink has joined #ruby
dawkirst has joined #ruby
riotjones has quit [Quit: waT]
whyy has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
havenwood has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
apeiros has joined #ruby
Photism has quit [Quit: Leaving]
Elhu has joined #ruby
joonty has joined #ruby
tesuji has joined #ruby
BadQuanta has joined #ruby
tkuchiki has joined #ruby
LiohAu has joined #ruby
chipotle has joined #ruby
Wolland has quit []
Wolland has joined #ruby
timonv_ has joined #ruby
oo_ has quit [Remote host closed the connection]
schaary|afk is now known as schaary
mikecmpbll has joined #ruby
sputnik13 has joined #ruby
<Hanmac> havenwood: and did you begin with the next season of DoctorWho?
ghr has joined #ruby
Macaveli|Away is now known as Macaveli
mercwithamouth has quit [Ping timeout: 250 seconds]
banjara has quit [Quit: Leaving.]
sputnik13 has quit [Client Quit]
mozzarella has quit [Ping timeout: 272 seconds]
Rollabunna has joined #ruby
haroldwu has quit [Quit: Changing server]
alem0lars_ has joined #ruby
haroldwu has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
alem0lars_ is now known as alem0lars
roolo has joined #ruby
<atmosx> anyone familiar with oauth?
Rollabunna has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
claymore has quit [Ping timeout: 255 seconds]
Joulse has joined #ruby
kaspergrubbe has joined #ruby
claymore has joined #ruby
bruno- has joined #ruby
jamto11 has joined #ruby
oo_ has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
haroldwu has quit [Quit: leaving]
haroldwu has joined #ruby
pdelaneau has joined #ruby
SilkFox_ has joined #ruby
elaptics`away is now known as elaptics
chipotle has quit [Quit: cya]
jamto11 has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
postmodern has quit [Ping timeout: 240 seconds]
crudson has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
alexju has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
kaspergr_ has joined #ruby
alexju has quit [Remote host closed the connection]
haroldwu has quit [Client Quit]
haroldwu has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
narcan has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
fgo has quit []
newUser1234 has quit [Ping timeout: 240 seconds]
narcan has quit [Client Quit]
postmodern has quit [Ping timeout: 240 seconds]
Bira has quit [Ping timeout: 255 seconds]
postmodern has joined #ruby
timonv_ has quit [Remote host closed the connection]
kiri has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
olivier_bK has joined #ruby
Dude007 has joined #ruby
amacou has joined #ruby
DivineEntity has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
postmodern has quit [Ping timeout: 240 seconds]
Mooneye has quit [Quit: Leaving]
postmodern has joined #ruby
kiri has joined #ruby
oo_ has quit [Remote host closed the connection]
DivineEntity has joined #ruby
whyy has joined #ruby
amacou has quit [Ping timeout: 250 seconds]
Akagi201 has quit [Read error: Connection reset by peer]
rdark has joined #ruby
alexju has joined #ruby
decoponio has joined #ruby
andrewlio has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
<arup_r_> listening music and working.. Yayy!!
haroldwu has quit [Quit: Changing server]
Emmanuel_Chanel has joined #ruby
alexju has quit [Read error: No route to host]
why_away has quit [Ping timeout: 240 seconds]
haroldwu has joined #ruby
alexju has joined #ruby
d4nk has quit [Ping timeout: 240 seconds]
haroldwu has quit [Changing host]
haroldwu has joined #ruby
haroldwu has quit [Client Quit]
haroldwu has joined #ruby
sputnik13 has joined #ruby
chth0n has joined #ruby
Mon_Ouie has joined #ruby
haroldwu has quit [Client Quit]
haroldwu has joined #ruby
Bumptious has joined #ruby
AlSquire has joined #ruby
Hobogrammer has quit [Ping timeout: 260 seconds]
haroldwu has quit [Changing host]
haroldwu has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24_ has quit [Remote host closed the connection]
ylluminarious has quit [Quit: Leaving...]
davedev24_ has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
<apeiros> docs <3
sputnik13 has joined #ruby
<apeiros> "constraints [Hash] the constraints to use"
<apeiros> much wow, very information, so help. wow.
<DefV> it's missing
<DefV> "DUH"
timonv_ has joined #ruby
wmp has joined #ruby
<wmp> hello, i have paid task for ruby programmer
<apeiros> when somebody writes that kind of docs, I'd prefer they just leave it off entirely.
<apeiros> then at least I don't waste time reading useless junk
claymore has joined #ruby
sputnik13 has quit [Client Quit]
davedev24_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
sputnik13 has joined #ruby
workmad3 has joined #ruby
<zenspider> not paid task! say it isn't so!
Xiti has quit [Read error: Connection reset by peer]
dANOKELOFF has quit [Read error: Connection reset by peer]
aaronmcadam has joined #ruby
benlieb has quit [Quit: benlieb]
<wmp> zenspider: why?
Xiti has joined #ruby
dANOKELOFF has joined #ruby
sevenseacat has quit [Quit: Leaving.]
<zenspider> why what?
toastynerd has joined #ruby
7GHAACOOI has joined #ruby
robscormack has joined #ruby
end_guy_ has joined #ruby
end_guy has quit [Remote host closed the connection]
t_p has joined #ruby
CorpusCallosum has joined #ruby
why_away has joined #ruby
tommm has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
<DefV> this conversation is strange
whyy has quit [Ping timeout: 250 seconds]
toastynerd has quit [Ping timeout: 250 seconds]
agent_white has left #ruby [#ruby]
<zenspider> DefV: quick too
Takle has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
doev has quit [Quit: Verlassend]
jamto11 has joined #ruby
echooo has joined #ruby
echooo has left #ruby [#ruby]
echooo has joined #ruby
alex88 has joined #ruby
gr33n7007h has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
coca_rails has joined #ruby
tvw has joined #ruby
arup_r_ has quit [Remote host closed the connection]
klaut has joined #ruby
newUser1234 has quit [Ping timeout: 260 seconds]
radic has joined #ruby
jaimef has quit [Excess Flood]
SilkFox_ has joined #ruby
arup_r has joined #ruby
startupality has joined #ruby
jaimef has joined #ruby
malditogeek has joined #ruby
arup_r has quit [Remote host closed the connection]
Bira has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mehlah has joined #ruby
alex88 has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
qba73 has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
zenojis has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 264 seconds]
malditogeek has quit [Quit: Leaving.]
kalz has quit [Quit: exit]
pdelaneau has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
Skwallinux has joined #ruby
benlieb has joined #ruby
alexju has quit [Ping timeout: 250 seconds]
echevemaster has quit [Quit: Leaving]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
alexju_ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
karupa is now known as zz_karupa
claymore has quit [Ping timeout: 260 seconds]
kaspergr_ is now known as kaspergrubbe
qba73 has joined #ruby
klaut has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
malditogeek has joined #ruby
claymore has joined #ruby
ramfjord has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
t_p has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
bayed has joined #ruby
jheg_ has quit [Quit: jheg_]
kalz has joined #ruby
jheg_ has joined #ruby
<zenspider> tomorrow... I'm not allowed to code. Only work on my talk. damnit.
<zenspider> stupid algorithms
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
agent_white has joined #ruby
lkba has joined #ruby
why_away is now known as whyy
tommm has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
toastynerd has joined #ruby
marr has joined #ruby
echooo has quit [Quit: echooo]
<olivier_bK> i try to find all file with .avi .mpeg etc.. but when i call the methode extension_video i get nil array ?
bruno- has joined #ruby
banjara has joined #ruby
echooo has joined #ruby
<zenspider> you're not calling extension_video
glebm has joined #ruby
Rollabunna has joined #ruby
olcsmn has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
<zenspider> olivier_bK: /.*\.extension_video/ is a regexp that matches files that have ".extension_video" somewhere in their name
<zenspider> (note I didn't say "ends with", because it doesn't check that)
echooo has quit [Client Quit]
echooo has joined #ruby
<zenspider> is there a reason why that code is so horribly formatted as to make it painful to read?
claymore has quit [Ping timeout: 255 seconds]
bruno- has quit [Ping timeout: 264 seconds]
banjara has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
startupality has quit [Quit: startupality]
jamto11 has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
<zenspider> well... that was fun. good luck olivier_bK. you need to respond for this 'communication' thing to work
banisterfiend has joined #ruby
claymore has joined #ruby
klaut has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
newUser1234 has quit [Ping timeout: 264 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
Atttwww has quit [Ping timeout: 240 seconds]
jeffreybaird_ has quit [Quit: Connection closed for inactivity]
adebabs has joined #ruby
adebabs has quit [Remote host closed the connection]
bruno- has joined #ruby
qba73 has quit [Quit: Leaving]
decoponyo has joined #ruby
Bira has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
agjacome has joined #ruby
decoponio has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
moritzs has joined #ruby
dawkirst has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
benlieb has quit [Quit: benlieb]
alem0lars has quit [Quit: Going AFK...]
coca_rails has quit [Quit: coca_rails]
jzigmund has quit [Ping timeout: 256 seconds]
<canton7> zenspider, olivier_bK always turns up here with really basic questions, with horrible code and doesn't respond to questions
eka has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
narcan has joined #ruby
_1_charly2 has joined #ruby
godd2 has quit [Ping timeout: 264 seconds]
zenojis has joined #ruby
_1_charly2 has quit [Remote host closed the connection]
dawkirst has joined #ruby
phoo1234567 has joined #ruby
sdrew has quit [Quit: *poof*]
roolo has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
fgo has joined #ruby
jottr_ has joined #ruby
avril14th has joined #ruby
<avril14th> Hello, I have an almighty question. Is prepending a module to a class the same as derivating this class and writing the module's code in that class?
amacou has joined #ruby
jzigmund has joined #ruby
mr_foobar_baz has joined #ruby
amacou has quit [Ping timeout: 250 seconds]
LadyRainicorn has joined #ruby
banjara has joined #ruby
nszceta has quit []
avril14th has quit [Read error: Connection reset by peer]
<wasamasa> lol
<wasamasa> asking and quitting is also nice
echooo has quit [Quit: echooo]
<apeiros> but if you say something you're "a hostile community". *sobs*
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
phinfonet has joined #ruby
_fumk is now known as fumk
CorpusCallosum has quit [Ping timeout: 240 seconds]
why_away has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
ylluminarious has joined #ruby
Rollabunna has joined #ruby
jheg_ has quit [Quit: jheg_]
whyy has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
pandaant_ has joined #ruby
toastynerd has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
dawkirst has quit [Remote host closed the connection]
Elhu has quit [Read error: Connection reset by peer]
thrownaway has quit []
alem0lars has joined #ruby
postmodern has quit [Quit: Leaving]
toastynerd has quit [Ping timeout: 256 seconds]
newUser1234 has quit [Ping timeout: 255 seconds]
h0lyalg0rithm has joined #ruby
h0lyalg0rithm has quit [Max SendQ exceeded]
Soda has joined #ruby
Elhu has joined #ruby
jamto11 has joined #ruby
<dangerousdave> My code is working perfectly, could I get a final code review please? https://gist.github.com/deathwishdave/f1e4151eb1915bc641e6
Ilyas has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 260 seconds]
tkuchiki_ has joined #ruby
Neomex has joined #ruby
<nobodyzzz> too many obvious comments and method send has too many arguments =)
tkuchiki has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 272 seconds]
Elhu has quit [Read error: Connection reset by peer]
tkuchiki_ has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
pothibo has joined #ruby
<dangerousdave> nobodyzzz, ok, whats the alternative to the arguments?
MZAWeb has joined #ruby
jdj_dk has quit [Remote host closed the connection]
Bira has joined #ruby
Elhu has joined #ruby
<nobodyzzz> at least you can get rid of from argument - it always the same
dvb_ua has joined #ruby
Deele has joined #ruby
<nobodyzzz> and body_text, body_html seems to be redundant as you always pass the same value
<wasamasa> hmm, apparently not even switching to ruby saves me from encoding madness
phutchins has joined #ruby
<arup_r> Experts - Is there any difference between subclassing and prepending ? https://gist.github.com/aruprakshit/875b665e429468e69383
<arup_r> I see, both ancestor chains are defined in the same order.
SilkFox_ has joined #ruby
<wasamasa> thought reading in a file as latin-1, then passing it to the csv parser were enough to use unicode names for header columns, but no, apparently not
Bira has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
nuck has quit [Read error: Connection reset by peer]
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
browndawg has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
SilkFox_ has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
nuck has joined #ruby
Takle_ has joined #ruby
agent_white has left #ruby [#ruby]
jheg_ has joined #ruby
<Hanmac> wasamasa: how did you specify the encoding? thy to set both internal and external encoding to the right values
ldnunes has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
Aryasam has quit [Read error: No route to host]
GriffinH_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 250 seconds]
Aryasam has joined #ruby
mehlah has quit [Quit: Leaving...]
GriffinH_ has joined #ruby
schickung has joined #ruby
<wasamasa> internal and external?
<apeiros> wasamasa: CSV lib behaved weird for me too. usually everything worked fine when I used File.read and passed a properly encoded String to CSV instead
<Hanmac> wasamasa: make a gist of your code, for File.open and similar you can set the internal and external encoding ... like open the file as latin1 but use utf8 internal
TomyWork has quit [Ping timeout: 250 seconds]
mr_snowf1ake has joined #ruby
<wasamasa> Hanmac: hmm, I've got to check whether what exactly it's returning first (just printing it out atm)
<wasamasa> apeiros: yes, I'm using CSV.parse now with a file object
DaniG2k has joined #ruby
sputnik13 has joined #ruby
AskSteve has joined #ruby
sputnik13 has quit [Client Quit]
AskSteve has left #ruby [#ruby]
TomyWork has joined #ruby
<arup_r> Is my question so tough ? ;)
mehlah has joined #ruby
lazyguru has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
amacou has joined #ruby
lazyguru has joined #ruby
<Hanmac> arup_r: they are two different things only the result might be the same
<wasamasa> hmm, so it was just the representation
<wasamasa> still, thanks
jheg_ has quit [Quit: jheg_]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banjara has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Quit: Leaving.]
banisterfiend has joined #ruby
valner has joined #ruby
banister has joined #ruby
<arup_r> May be my question is not clear... :-(
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Neomex_ has joined #ruby
Neomex has quit [Ping timeout: 245 seconds]
jheg_ has joined #ruby
Morkel_ has joined #ruby
browndawg has joined #ruby
alexju_ has quit [Read error: Connection reset by peer]
MCDev has quit [Ping timeout: 250 seconds]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
alexju has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
banjara has quit [Ping timeout: 260 seconds]
CorpusCallosum has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
anaeem1_ has quit [Remote host closed the connection]
bruno- has joined #ruby
<tobago> is it inperformant to have a Hash with keys beeing large objects?
Bira has joined #ruby
timonv_ has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 255 seconds]
<robscormack> it is, why would you want it?
qmfnp has joined #ruby
nemesit|znc has joined #ruby
mr_foobar_baz has quit [Ping timeout: 264 seconds]
<robscormack> tobago, it's a waste of memory. AR object representations are larger than plain old strings.
pontiki has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
memph1s has joined #ruby
<tobago> robscormack, I have to have a Hash store, and think about having ActiveRecord objects as keys (which would make it far more easy to handle). but is it a good choice in general to have large objects as Hash keys?
Sgeo has quit [Read error: Connection reset by peer]
<robscormack> nope, it's a memory waste
davedev24_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
<tobago> robscormack, o.k. but if I had already to store those objects in the Hash store, there is no additional waste.
davedev24_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> robscormack: nonsense
<robscormack> apeiros, why?
<apeiros> tobago: the object is already in memory. it doesn't cost more memory to have it as a hash key
<apeiros> tobago: but depending on how #hash and #eql? are implemented, it may be expensive CPU wise
Gooder` has joined #ruby
<tobago> apeiros, right. my question rather would be: how does the finding of the right key works in ruby? is it a simpöle comparison of the keys?
<apeiros> tobago: also if those objects would normally go out of scope and hence garbage collected, you may want to think twice. keeping them around as a hash key will deter ruby from collecting them (since they're still referenced)
<tobago> apeiros, o.k.
<apeiros> tobago: two steps. #hash to find the bucket, #eql? to determine whether they're in fact the same key
<tobago> apeiros, o.k. does #eql? compare by the object_id?
<apeiros> if you implement it to do that
<apeiros> #eql? is a normal method. you can make it compare on whatever you want.
claymore has quit [Ping timeout: 250 seconds]
<tobago> apeiros, i don't want to overwrite the eql? method...
britneywright has joined #ruby
<apeiros> Object#eql? tests object identity
<tobago> apeiros, o.k. i take a look at the Hash API.
<apeiros> tobago: well, check what AR::Base#eql? does
<tobago> apeiros, ahh. well.
mr_foobar_baz has joined #ruby
<apeiros> I'd assume it will check class + attributes
spastorino has joined #ruby
<tobago> apeiros, that would be expensive, though...
davedev24_ has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
newUser1234 has quit [Ping timeout: 272 seconds]
<robscormack> apeiros, it does by class and id.
toastynerd has joined #ruby
<tobago> robscormack, u'r right.
claymore has joined #ruby
memph1s has quit [Read error: Connection reset by peer]
<tobago> comparison_object.instance_of?(self.class) && id.present? && comparison_object.id == id
browndawg has joined #ruby
<apeiros> you omitted a `super ||`
browndawg has quit [Max SendQ exceeded]
<tobago> apeiros, true.
memph1s has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
bruno- has quit [Ping timeout: 272 seconds]
dawkirst has joined #ruby
<tobago> apeiros, that said, having AR::Base objects as the keys, finding is a liitle more expensive than having symbol keys, but since the objects have to to be in the Hash store anyway...
<tobago> and the Hash won't be larger than 200 pairs.
tjr9898 has joined #ruby
toastynerd has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 240 seconds]
MCDev has joined #ruby
<apeiros> tobago: what are you trying to achieve?
browndawg has joined #ruby
jespada has joined #ruby
jamto11 has joined #ruby
browndawg has quit [Max SendQ exceeded]
<tobago> apeiros, improve an already exsisting Hash store. heck!
<tobago> i hate it...
<apeiros> that doesn't really tell anything :)
dawkirst has quit [Ping timeout: 256 seconds]
mrgrieves has joined #ruby
<tobago> apeiros, i know. but i don't want to decay your day. ;) anyway. your answers helped me a lot.
St_Marx has joined #ruby
<mrgrieves> hi, any suggestions on how to check if a tcp port is open on a remote host?
<apeiros> btw., the `super` in AR::Base#eql? is Object#==, which is object identity.
<apeiros> so object-identity + class + id isn't very expensive IMO
memph1s has quit [Read error: Connection reset by peer]
<tobago> apeiros, true. thank you.
dblessing has joined #ruby
memph1s has joined #ruby
Zebroid has joined #ruby
sambao21 has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
linojon has joined #ruby
<tobago> since the hash store will be limited to 200 pairs.
<canton7> mrgrieves, try and connect to it?
jamto11 has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
DaniG2k has joined #ruby
beauby has joined #ruby
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
jackneill has joined #ruby
<robscormack> mrgrieves, there is a piece of code I used a few days ago for that. Found it at http://stackoverflow.com/questions/517219/ruby-see-if-a-port-is-open
havenwood has quit [Remote host closed the connection]
<mrgrieves> robscormack: thanks, I was just looking at that same link ...
lsmola has joined #ruby
<mrgrieves> it is a shame that there doesn't seem to be a way to declare the timeout value in the socket class
<robscormack> why should it?
<apeiros> I think you can set a connect timeout, but that's lower level.
Jake232 has joined #ruby
jshultz has joined #ruby
SilkFox_ has joined #ruby
jdj_dk has joined #ruby
<apeiros> from a quick google it seems you'd have to use raw socket with connect_nonblock + IO.select (== Kernel#select)
pandaant_ has quit [Quit: leaving]
arup_r has quit [Remote host closed the connection]
timonv_ has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
vsoftoiletpaper has joined #ruby
davedev24_ has joined #ruby
<mrgrieves> robscormack: so I don't have to wait for the tcp timeout but just wait a second or 2 as intended with Timeout in the stackoverflow example
SilkFox_ has quit [Ping timeout: 250 seconds]
<mrgrieves> apeiros: thanks, but using Timeout seems easy enough
<apeiros> mrgrieves: it's broken, though
jdj_dk has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
p0sixpscl has joined #ruby
sk87 has joined #ruby
<apeiros> and it seems https://github.com/lann/tcp-timeout-ruby/ already did all the work
<robscormack> mrgrieves, go for the recipe given by apeiros. I'm testing it too.
arup_r has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<robscormack> bosom, if I have a son I'll call him apeiros.
nszceta has joined #ruby
yfeldblum has joined #ruby
<apeiros> poor lad :D
<robscormack> s/bosom/awesome/g
hfp has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<apeiros> http://www.mikeperham.com/2009/03/15/socket-timeouts-in-ruby/ looks interesting too. mike is the guy behind sidekiq
hfp has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
<kaspergrubbe> and dalli
<apeiros> I think he passed dalli on
<apeiros> or at least is searching for a maintainer
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
claymore has quit [Ping timeout: 240 seconds]
obscured has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
tjr9898 has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
frankle has joined #ruby
jamto11 has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has joined #ruby
banister has joined #ruby
tjr9898 has joined #ruby
mercerist has joined #ruby
timonv_ has joined #ruby
alexju has quit [Remote host closed the connection]
banjara has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
MCDev has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
oo_ has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
poguez_ has joined #ruby
xcesariox has joined #ruby
ndrei has joined #ruby
newUser1234 has joined #ruby
nateberkopec has joined #ruby
spyderman4g63 has joined #ruby
banjara has quit [Ping timeout: 260 seconds]
Dr3amc0d3r|away is now known as Dr3amc0d3r
bmurt has joined #ruby
why_away is now known as whyy
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
oo_ has quit [Ping timeout: 240 seconds]
Neomex__ has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
Morkel_ has joined #ruby
Skwallinux has quit [Ping timeout: 264 seconds]
Neomex_ has quit [Ping timeout: 250 seconds]
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
<olivier_bK> how i can gsub [ i tyr like that / \ [ / but i get nothing normally it's a special character
benzrf is now known as benzrf|offline
vsoftoiletpaper has quit []
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
* apeiros chooses not to help olivier_bK
toastynerd has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
<olivier_bK> ??
<apeiros> you don't react to follow up questions
<wasamasa> olivier_bK: ever heard of escaping?
<apeiros> see your question 3h ago
Takle_ has quit [Remote host closed the connection]
<wasamasa> >> '[]'.sub(/\[/, '')
<Mon_Robot> wasamasa: => "]" (https://eval.in:443/170988)
<wasamasa> magic
<wasamasa> olivier_bK: now, bake me some cookies
Tricon has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
Zenigor has joined #ruby
Bumptious has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
<olivier_bK> i found the solution juste before your answear wasamasa thank you very much men : )
Wolland has joined #ruby
toretore has joined #ruby
bruno- has joined #ruby
jerius has joined #ruby
<wasamasa> which was?
<wasamasa> being more careful with typing?
iamjarvo has joined #ruby
andrewjanssen has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
amacou has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
philcris_ has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
kiri has quit [Ping timeout: 250 seconds]
DeanH has joined #ruby
amacou has joined #ruby
DeanH has quit [Max SendQ exceeded]
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
<robscormack> apeiros, you're a hostile community. lol
centrx has joined #ruby
AlexBlom has joined #ruby
davispuh has joined #ruby
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
EMoreth has joined #ruby
milkohol has joined #ruby
milkohol has quit [Max SendQ exceeded]
<apeiros> robscormack: aaahaha :)
<apeiros> yes, I am!
amacou has quit [Remote host closed the connection]
dawkirst has joined #ruby
<pontiki> a hostile community of one!
<pontiki> we are all a hostile community of one!
<pontiki> rahr!
<apeiros> hostile to inveterate help vampires
<robscormack> that reminds me of a spanish comic about an IT guy
<apeiros> I love how executing a query utterly stuns sql developer…
<apeiros> <3 oracle
<robscormack> one of his last attempts to quit the company was when the junior suggested to run a distributed processing system in a single box.
jdj_dk has joined #ruby
Channel6 has joined #ruby
DeanH has joined #ruby
GriffinH_ has quit [Remote host closed the connection]
<apeiros> robscormack: why, that sounds sensible. just virtualize a couple of machines on the single box ;-)
<robscormack> yes, now you can... that was before XEN
yfeldblum has joined #ruby
kiri has joined #ruby
bruno- has joined #ruby
lxsameer has quit [Quit: Leaving]
Zebroid has quit [Remote host closed the connection]
obscured has quit [Quit: leaving]
<robscormack> (now that I think, it still doesn't make sense, distributed processing is for a service that can't run in just one machine because it requires more power)
benzrf|offline is now known as benzrf
<apeiros> I was actually kidding. I thought the ";-)" was sufficient indication of that :D
<apeiros> it can make sense - for testing. but for a productive system? you just reduce performance.
yfeldblum has quit [Ping timeout: 250 seconds]
JohnFord has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
<bmurt> hey guys, i'm trying to store json for chef for vagrant inline as an array or hash, but im not sure how to format nested json values: https://gist.github.com/bmurtagh/f8d65eeee5e36b57b6c9
<bmurt> but those examples don't expand out
<arup_r> What does it mean ? where(:orders => {"date > ? and date < ?", date_start, date_end})
<arup_r> I didn't see the syntax before..
<apeiros> bmurt: `'web' => ":snmpd => {` not valid
<bmurt> i think date_start and date_end get substituted during execution
<apeiros> the => after ":snmpd" indicates that you're in a hash. hashes are wrapped in {}
<bmurt> yeah, that's the prob
jottr_ is now known as jottr
noop has joined #ruby
<bmurt> i also found http://stackoverflow.com/questions/3183786/how-to-convert-a-ruby-hash-object-to-json apeiros, but its that nesting that's killing me
jheg_ has quit [Quit: jheg_]
<apeiros> also you open a quote but don't close it?
<bmurt> its probably a typo
<apeiros> ooooh… no, you have a string value spanning ~20 lines
<apeiros> you close it at line 26
<bmurt> righttt
<bmurt> because the chef.json takes one thing
<apeiros> but your string value contains unescaped quotes
<apeiros> which of course is not valid
<bmurt> gotcha
<bmurt> but how would you write out the nested stuff?
<robscormack> validate your json file first: http://jsonlint.com/
<apeiros> bmurt: I think you should clear up your understanding of what expects what
<apeiros> bmurt: because if that string is supposed to be json, then let me tell you that json does not look like that.
<bmurt> i have valid json in a secondary file that i wasn't able to incorporate into the vagrantfile and interpolate
<apeiros> also json can't have code constructs in it (ternary on line 3)
<apeiros> and if it's supposed to be ruby code - why on earth is it then in a string literal?
<bmurt> here is a previous example inline
<bmurt> from the vagrantfile
<apeiros> so chef.json= takes a ruby hash. not a string.
SilkFox has joined #ruby
<bmurt> right, but how do i do that nesting
<apeiros> what's your problem with the nesting? the example already has nesting
ghr has quit [Ping timeout: 250 seconds]
<bmurt> so i should be able to write it out as is?
<apeiros> that looks correct. apart from being in a (broken) string literal
jdj_dk has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jonno11 has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
sailias has joined #ruby
Bumptious has joined #ruby
kiri has quit [Ping timeout: 250 seconds]
kiri has joined #ruby
mercwithamouth has joined #ruby
DaniG2k has joined #ruby
IceDragon has joined #ruby
jcromartie has joined #ruby
lbwski has joined #ruby
iamjarvo has joined #ruby
jaequery has joined #ruby
kiri has quit [Ping timeout: 256 seconds]
TomyWork has quit [Ping timeout: 250 seconds]
cpruitt has joined #ruby
kiri has joined #ruby
kkh has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
mercerist has quit [Quit: Computer has gone to sleep.]
whyy has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
whyy has joined #ruby
philcris_ has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
startupality has quit [Quit: startupality]
doub has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
csq has left #ruby [#ruby]
doub has joined #ruby
banjara has joined #ruby
zkay11 has joined #ruby
<centrx> Clojure anyone?
startupality has joined #ruby
St_Marx has joined #ruby
<benzrf> clojure schmojure
<benzrf> if im doing FP let it be statically typed
<benzrf> B)
<ericwood> boom
kkh has quit [Quit: Leaving]
eka has joined #ruby
whyy has quit [Ping timeout: 256 seconds]
newUser1234 has joined #ruby
kkh has joined #ruby
escues has joined #ruby
amacou has joined #ruby
startupality has quit [Client Quit]
<centrx> benzrf has spoken
<centrx> I wonder what language I should look at instead...
kevind has joined #ruby
<ericwood> OCaml
<centrx> ok
<centrx> hold on
mikesplain has joined #ruby
<centrx> This languages ends each line with _two_ semicolons?
<ericwood> lol idk I've never really looked into
<ericwood> honestly if I were to pick up something new it'd be erlang/elixir
aganov has quit [Remote host closed the connection]
<ericwood> lots of my Ruby friends are going down that path, they seem really happy
<ericwood> I'd love to learn more about erlang's VM and elixir seems to be a great way to
k0m has joined #ruby
Aryasam has quit [Read error: No route to host]
<centrx> elixir looks a lot like Ruby, could be good
jamto11 has quit [Remote host closed the connection]
ghr has joined #ruby
itspots has joined #ruby
<ericwood> yeah it'll mesh well with your refined ruby sensibilities
<ericwood> Dave Thomas (the pickaxe book guy) is breaking a lot of ground in that area learning-wise
<ericwood> love that dude
banjara has quit [Ping timeout: 260 seconds]
benzrf is now known as benzrf|offline
<centrx> The #ocaml channel is silent regarding the use of two semicolons
jespada has quit [Ping timeout: 260 seconds]
<centrx> Is there no Elixir channel?
Channel6 has quit [Quit: Leaving]
<ericwood> I bet there is
<ericwood> #elixir-lang
<centrx> aha
<centrx> I guess #elixir must be about a famous love potion or something
<ericwood> probably
coca_rails has joined #ruby
<robscormack> elixir is not a potion but a powder, to heal injuries
snath has quit [Ping timeout: 240 seconds]
<mrgrieves> apeiros: robscormack: thanks guys!
<robscormack> it's like powder juice.
SilkFox_ has joined #ruby
<robscormack> np mrgrieves
Sirupsen has joined #ruby
arup_r has quit [Remote host closed the connection]
tylersmith has joined #ruby
<centrx> Elixir may be the answer. The benefits of Erlang and LISP, etc., without parentheses.
<wasamasa> what ere the benefits of erlang again?
<robscormack> distributed programming
<wasamasa> *were
<robscormack> from the core
startupality has joined #ruby
<wasamasa> as in, what does it have clojure doesn't
<centrx> It has elixir!
<ericwood> ))(((()))())))
<wasamasa> I take regular over irregular syntax every day
Aryasam has joined #ruby
<centrx> That's why Elixir!
_tpavel has quit [Quit: Leaving]
kiri has quit [Ping timeout: 240 seconds]
<ericwood> Lisp hurt my head, felt like I was reading everything from the inside out
jdj_dk has joined #ruby
toastynerd has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
mikesplain has quit []
beauby has quit [Ping timeout: 245 seconds]
mikesplain has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
Ankhers has joined #ruby
<robscormack> I love Lisp, just played his Hungarian Rhapsody in piano.
freerobby has joined #ruby
ndrei has joined #ruby
toastynerd has quit [Ping timeout: 250 seconds]
goshdarnyou has joined #ruby
baweaver has joined #ruby
sahoal has joined #ruby
qwyeth_ has joined #ruby
tobago has quit [Remote host closed the connection]
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
tesuji has quit [Ping timeout: 255 seconds]
qwyeth has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
sahoal has left #ruby [#ruby]
sambao21 has joined #ruby
tesaf has joined #ruby
namxam has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
jdj_dk has quit [Ping timeout: 245 seconds]
Aaaal has joined #ruby
AlSquirrel has joined #ruby
tziOm has quit [Ping timeout: 245 seconds]
AlSquire has quit [Ping timeout: 260 seconds]
mgberlin has joined #ruby
orionstein_away is now known as orionstein
yfeldblum has quit [Ping timeout: 260 seconds]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phantomtiger has joined #ruby
tagrudev has quit [Remote host closed the connection]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jobewan has joined #ruby
Tricon has quit [Quit: Leaving...]
Zebroid has joined #ruby
theharshest has joined #ruby
mercerist has joined #ruby
theharshest has quit [Client Quit]
theharshest has joined #ruby
bl4ckdu5t is now known as prison_v2
sputnik13 has joined #ruby
theharshest has quit [Client Quit]
prison_v2 is now known as bl4ckdu5t
Zebroid has quit [Read error: Connection reset by peer]
sputnik13 has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
jaequery has joined #ruby
Sirupsen has joined #ruby
AlSquirrel has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
doub has quit [Ping timeout: 245 seconds]
dvb_ua has quit [Ping timeout: 255 seconds]
doub has joined #ruby
fgo has quit [Remote host closed the connection]
duggiefresh has joined #ruby
braincras has quit [Ping timeout: 264 seconds]
Aaaal has quit [Quit: Aaaal]
timonv_ has quit [Remote host closed the connection]
Dude007_ has joined #ruby
timonv_ has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 260 seconds]
jheg has joined #ruby
mgberlin has quit [Remote host closed the connection]
chinaguy has joined #ruby
jerius has joined #ruby
<chinaguy> hello
<chinaguy> 早
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clinicalpain has joined #ruby
clinicalpain has left #ruby [#ruby]
jdj_dk has joined #ruby
braincrash has joined #ruby
wildroman2 has quit []
timonv_ has quit [Ping timeout: 256 seconds]
noop has quit [Ping timeout: 255 seconds]
DaniG2k_ has joined #ruby
Dude007 has joined #ruby
soc42 has joined #ruby
maestrojed has joined #ruby
krz has joined #ruby
Dude007_ has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cya]
DaniG2k has quit [Ping timeout: 245 seconds]
lsmola has quit [Ping timeout: 264 seconds]
bal has quit [Quit: bal]
xerxas has joined #ruby
jaequery has joined #ruby
TheAtomicGoose has joined #ruby
e4xit_ has joined #ruby
jerius has quit []
mercerist has quit [Quit: Computer has gone to sleep.]
marr has quit [Read error: Connection reset by peer]
Bumptious has quit [Remote host closed the connection]
mikepack has joined #ruby
banjara has joined #ruby
jaequery has quit [Client Quit]
e4xit_ has quit [Client Quit]
kreisys has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
schickung_ has joined #ruby
schickung has quit [Ping timeout: 240 seconds]
schickung_ is now known as schickung
jlovick has joined #ruby
jamto11 has quit [Remote host closed the connection]
Bumptious has joined #ruby
Bumptious has quit [Remote host closed the connection]
mary5030 has joined #ruby
arup_r has joined #ruby
Bumptious has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
t_p has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
ixti has joined #ruby
larissa has joined #ruby
ebanoid has joined #ruby
Bira has quit [Remote host closed the connection]
freezey has joined #ruby
lmickh has joined #ruby
theharshest has joined #ruby
SilkFox_ has joined #ruby
<lagweezle> mornin'
<lagweezle> -ish
pothibo has joined #ruby
<chinaguy> hello
* lagweezle glares at Thor.
Bumptious has quit []
AskSteve has joined #ruby
theharshest has quit [Client Quit]
<chinaguy> good night
<chinaguy> go to sleep
AskSteve has left #ruby [#ruby]
Bumptious has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ffranz has joined #ruby
Bumptiou_ has joined #ruby
MrL0ngbowman has joined #ruby
anarang has quit [Quit: Leaving]
toastynerd has joined #ruby
terrellt has joined #ruby
Gooder` has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 250 seconds]
RandyT has quit [Quit: ZNC - http://znc.in]
newUser1234 has quit [Remote host closed the connection]
AlexBlom has quit [Ping timeout: 256 seconds]
Bumptious has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
fgo has joined #ruby
arup_r has quit [Quit: Leaving.]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
RandyT has joined #ruby
toastynerd has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
fuzzyhorns has joined #ruby
fuzzyhorns has left #ruby [#ruby]
snath has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 240 seconds]
andrewjanssen has joined #ruby
banjara has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
MrL0ngbowman has quit [Remote host closed the connection]
tylersmith has joined #ruby
vsoftoiletpaper has joined #ruby
alem0lars has joined #ruby
mikepack has quit [Remote host closed the connection]
TheAtomicGoose has quit [Quit: WeeChat 0.4.3]
<lagweezle> I obviously am not understanding something, as Thor via bundler command line isn't running anything like what the docs claim.
Darryl has joined #ruby
gruz0[russia] has joined #ruby
coca_rails has left #ruby [#ruby]
benzrf is now known as benzrf|offline
LadyRainicorn has quit [Ping timeout: 245 seconds]
DaniG2k_ has quit [Quit: leaving]
tylersmith has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
andrewjanssen has joined #ruby
Dude007 has quit [Remote host closed the connection]
<pontiki> what's it running?
Dude007 has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
theharshest has joined #ruby
AlexBlom has joined #ruby
jdj_dk has joined #ruby
chinaguy has quit [Remote host closed the connection]
amacou has quit [Remote host closed the connection]
ebanoid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theharshest has quit [Client Quit]
jdj_dk has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Client Quit]
sputnik13 has joined #ruby
andrewjanssen has joined #ruby
LadyRainicorn has quit [Ping timeout: 250 seconds]
jdj_dk has joined #ruby
rippa has joined #ruby
andrewjanssen has quit [Client Quit]
andrewjanssen has joined #ruby
LadyRainicorn has joined #ruby
jaequery_ has joined #ruby
Dude007 has quit [Ping timeout: 250 seconds]
theharshest has joined #ruby
theharshest has quit [Client Quit]
<lagweezle> The output shows what looks like a description of the specification of the aliases for the command, rather than the aliases themselves. Also, defining an alias of '-c' results in '-c' as an argument tno being recognized. :/
larissa has quit [Quit: Leaving]
<lagweezle> That's the code I'm playing with as it was when I got off the train.
Elhu has quit [Ping timeout: 256 seconds]
sputnik13 has quit [Client Quit]
arup_r has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
orionstein is now known as orionstein_away
havenwood has joined #ruby
Bira has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
jheg has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
LadyRainicorn has quit [Ping timeout: 260 seconds]
andrewjanssen has quit [Ping timeout: 272 seconds]
blahbl has joined #ruby
<blahbl> hi
jdj_dk has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
<blahbl> how can I search through a 2D array ? something like ary_2d.bsearch { |val| val == 'A' }
orionstein_away is now known as orionstein
sam113101 has joined #ruby
arup_r has joined #ruby
<lagweezle> Binary search I suspect won't do what you want...
<pontiki> top-o-me-head, lagweezle, i don't see anything wrong. lemme poke at it a bit
olcsmn has quit [Ping timeout: 272 seconds]
<lagweezle> a = [[a, b], [c, d]]
<lagweezle> actually ...
rp__ has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
LadyRainicorn has joined #ruby
rp__ has joined #ruby
<blahbl> lagweezle: I see, I just need to find the position - if ary[0][2] == 'A', then I want to know 0,2
<blahbl> I was trying to avoid to loop twice
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Dude007 has joined #ruby
<lagweezle> >> [[a, b], [c, d]].bsearch { |element| element == 'c' }
<Mon_Robot> lagweezle: => NameError: undefined local variable or method `a' for main:Object (https://eval.in:443/171056)
<lagweezle> Oh. Derp.
davedev24_ has quit [Read error: Connection reset by peer]
<lagweezle> >> [[2, 4], [6, 8]].bsearch { |element| element == '6' }
<Mon_Robot> lagweezle: => nil (https://eval.in:443/171057)
* lagweezle facepalms.
davedev24_ has joined #ruby
<lagweezle> >> [[2, 4], [6, 8]].bsearch { |element| element == 6 }
<Mon_Robot> lagweezle: => nil (https://eval.in:443/171058)
<lagweezle> Okay, I think I stopped doing stupid things, and that is the correct rendition of it...
gheegh has joined #ruby
jamto11 has joined #ruby
nszceta has quit []
p0sixpscl has quit [Quit: p0sixpscl]
<blahbl> haha, thanks anyway
ebanoid has joined #ruby
<pontiki> oh, wait, lagweezle, you didn't spec the actual option
<alexherbo2> given hash, how call a method using named parameters ?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lagweezle> pontiki: pardon?
jheg has quit [Quit: jheg]
<alexherbo2> use case is with params in Rails
beneggett has joined #ruby
<pontiki> method_option :option, :aliases => "-o"
beneggett has quit [Client Quit]
<pontiki> you have to specify the option in the latest version
Pharaoh2 has quit [Remote host closed the connection]
<lagweezle> Oh. Huh. *opens up docs*
pietr0 has joined #ruby
<lagweezle> pontiki: I thought you were referring to the array thing. ^^;
<alexherbo2> params = { name: "foo", email: "foo@bar.com" }
mikepack has joined #ruby
<pontiki> nopers, the Thor thing :)
SilkFox_ has joined #ruby
<lagweezle> blahbl: I think this means you are stuck having to do the usual nested loop type thing, or something creative. Although ... what are you trying to get as the result? The location of the entity?
<alexherbo2> User.new hash_to_named_arguments params
<alexherbo2> def User.new name: nil, email: nil
<blahbl> lagweezle: the locations of all entities that match element == 'A'
<alexherbo2> @name = name
<alexherbo2> @email = email
<alexherbo2> end
<blahbl> lagweezle: I've got the feeling there must be a simpler way of doing it, but couldn't figure out yet!
jay__ has joined #ruby
Fire-Dragon-DoL has joined #ruby
jay__ is now known as rubyonrailed
Photism has joined #ruby
Aryasam has quit [Read error: No route to host]
baroquebobcat has joined #ruby
macclearich has joined #ruby
Aryasam has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
arup_r has quit [Quit: Leaving.]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
mikepack has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
Bumptious has joined #ruby
sprihodko has joined #ruby
acrussell has joined #ruby
thomas3141592653 has joined #ruby
Shidash has joined #ruby
ndrei has joined #ruby
nszceta has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
mr_snowf1ake has quit [Quit: Leaving]
choke has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bumptiou_ has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
sailias1 has joined #ruby
<pontiki> blahbl: what if you used element.any?{|e| e == 6} inside the bsearch block?
benzrf|offline is now known as benzrf
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Quit: Leaving.]
<pontiki> i'm not *quite* sure what you want to detect tho...
sambao21 has joined #ruby
<pontiki> or element.include?(6)
maestrojed has joined #ruby
cpruitt has quit [Quit: cpruitt]
Barrayar has joined #ruby
jxf has joined #ruby
RandyT has joined #ruby
jonno11 has joined #ruby
renderful has joined #ruby
renderful has quit [Remote host closed the connection]
macclearich has quit [Quit: Lingo - http://www.lingoirc.com]
jonno11 has quit [Max SendQ exceeded]
ybit is now known as heath
jdj_dk has joined #ruby
mattstratton has joined #ruby
edgarjs_afk is now known as edgarjs
kiri has joined #ruby
yfeldblum has joined #ruby
froy has joined #ruby
toastynerd has quit [Remote host closed the connection]
arup_r has joined #ruby
hobodave has joined #ruby
newUser1234 has joined #ruby
schickung has quit [Quit: schickung]
<lagweezle> Still need to know the location of the element, which I think means that you have to iterate through them all.
bmurt has quit [Quit: reboot]
yfeldblum has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
Blue_Ice has joined #ruby
adamdh has joined #ruby
adamdh has left #ruby ["Leaving"]
<lagweezle> Either that, or start doing creative things using Matrix.
benzrf is now known as benzrf|offline
alem0lars has quit [Quit: alem0lars]
bmurt has joined #ruby
jgt has joined #ruby
<pontiki> blahbl wants the location of the found element?
jxf has quit [Quit: Leaving]
jxf has joined #ruby
<pontiki> bsearch doesn't give the location, i thought
banjara has quit [Ping timeout: 240 seconds]
Rainicorn has joined #ruby
hamakn has quit [Remote host closed the connection]
mocfive has joined #ruby
ebanoid has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
<lagweezle> pontiki: Where the heck did you find info on needing to specify ':option'?
b00stfr3ak has joined #ruby
<pontiki> the wiki page on method option?
<pontiki> near the bottom, of course...
jdj_dk has quit [Ping timeout: 240 seconds]
<pontiki> prizes if you read to the end!
katlogic has quit [Read error: Connection reset by peer]
<pontiki> it was news to me, too, lagweezle .. i must have some old thor scripts
frankle has joined #ruby
djbkd has joined #ruby
blahbl has quit [Ping timeout: 244 seconds]
<lagweezle> pontiki: I'm not seeing anything that indicates it must be one of the things specified...
LadyRainicorn has quit [Ping timeout: 250 seconds]
orionstein is now known as orionstein_away
gruz0[russia] has quit [Quit: Leaving]
wallerdev has joined #ruby
CorpusCallosum has quit [Ping timeout: 264 seconds]
tvw has quit []
jcromartie has joined #ruby
Joulse has quit [Quit: Joulse]
katlogic has joined #ruby
AlexBlomCOM has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.3]
timonv_ has quit [Remote host closed the connection]
sam113101 has joined #ruby
juanjo has joined #ruby
AlexBlom has quit [Read error: Connection reset by peer]
qwyeth_ has quit [Quit: Leaving]
<juanjo> Hi
timonv_ has joined #ruby
<pontiki> lagweezle: search for this text: "In previous versions," -- it's around there, near the bottom
workmad3 has quit [Ping timeout: 260 seconds]
<juanjo> I'm tryin to use mocha
<juanjo> but I'm not getting the behaibour I want
<olivier_bK> how i can ignore the sensitive case with gsub ?
<juanjo> do anyone now why this doesnt mock?
<juanjo> Gibbon::API.lists.expects(:subscribe)
<juanjo> Gibbon::API.lists.subscribe()
deric_skibotn has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<juanjo> Gibbon::GibbonError: You must set an api_key prior to making a call
<juanjo> olivier_bK, /regex/i ?
klaut has quit [Remote host closed the connection]
jerius has joined #ruby
<lagweezle> pontiki: I'm wondering if you are seeing a different page than I am...
sambao21 has quit [Quit: Computer has gone to sleep.]
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lagweezle> pontiki: https://github.com/erikhuda/thor/wiki/Method-Options has as it's examples just after the text you noted nothing with ":option" in it
apeiros has quit [Remote host closed the connection]
RandyT has quit [Quit: ZNC - http://znc.in]
Kricir has joined #ruby
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
<pontiki> see where it shows 'method_option :force, :type => :boolean, :aliases => "-f"' ?
jaequery has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
<lagweezle> I do. Okay. We are looking at the same page. I'm still confused on the need for ':option' tho'...
jaequery has quit [Max SendQ exceeded]
<pontiki> the option in :option is the generic replaceable option name
renderful has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
<pontiki> e.g.: ':force' in the example on the page
Dude007_ has joined #ruby
jaequery has quit [Max SendQ exceeded]
namxam has quit [Remote host closed the connection]
<pontiki> and the first parameter passed to method_option in the code
<lagweezle> OH! Derp.
jaequery has joined #ruby
<lagweezle> Rather than "method_option :aliases => '-c'" I want "method_option :compress, :aliases => '-c'" ?
jaequery has quit [Max SendQ exceeded]
<pontiki> i'm questioning that because that's your command name
jaequery has joined #ruby
Bumptious has quit [Remote host closed the connection]
<pontiki> which means your cli would be novel compress --compress ..
RandyT has joined #ruby
<pontiki> are you looking for an alias for the command instead?
<lagweezle> Ahh.
<lagweezle> I'm getting more lcue...
orionstein_away is now known as orionstein
<lagweezle> What I want is 'compressor -c <infile> <outfile>', where 'compressor' is the name of the executable.
Dude007 has quit [Ping timeout: 260 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CorpusCallosum has joined #ruby
MCDev has joined #ruby
senayar has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0sixpscl has joined #ruby
sputnik13 has joined #ruby
Gooder` has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bricker`work has joined #ruby
choke has joined #ruby
moritzs has joined #ruby
bradleyprice has joined #ruby
wallerdev has quit [Quit: wallerdev]
CaptainJet has joined #ruby
sambao21 has joined #ruby
Pharaoh2 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
charliesome has joined #ruby
Gooder` has quit [Ping timeout: 260 seconds]
bradleyprice has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
mikecmpbll has joined #ruby
magic has quit [Ping timeout: 260 seconds]
dANOKELOFF has quit [Remote host closed the connection]
johnmolina has joined #ruby
dANOKELOFF has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fschuindt has joined #ruby
havenwood has quit [Remote host closed the connection]
fschuindt has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
Soda has joined #ruby
fschuindt has joined #ruby
jmbrown412 has joined #ruby
AlexBlomCOM has quit [Ping timeout: 264 seconds]
Dude007_ has quit [Remote host closed the connection]
jdj_dk has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
Dude007 has joined #ruby
<pontiki> i don't think you want to use thor then, as it's a subcommand-based system
<pontiki> like rake, git, etc
jdj_dk has quit [Read error: Connection reset by peer]
chth0n has quit [Ping timeout: 256 seconds]
jdj_dk has joined #ruby
maestrojed has joined #ruby
dANOKELOFF has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
Bumptious has joined #ruby
Dude007 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
troyready has joined #ruby
mocfive has quit [Remote host closed the connection]
edgarjs is now known as edgarjs_afk
mocfive has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
endash has joined #ruby
claymore has joined #ruby
<lagweezle> You may be right. :/
moritzs has joined #ruby
apeiros has joined #ruby
blahbl has joined #ruby
startupality has quit [Quit: startupality]
soc42 has quit [Remote host closed the connection]
moritzs has quit [Max SendQ exceeded]
jimms has joined #ruby
wallerdev has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
Dr3amc0d3r is now known as Dr3amc0d3r|away
mocfive has quit [Ping timeout: 240 seconds]
xenomorph is now known as {xenomorph}
jdj_dk has quit [Ping timeout: 250 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
edgarjs_afk is now known as edgarjs
endash has quit [Client Quit]
Alina-malina has joined #ruby
{xenomorph} is now known as xenomorph
gr33n7007h has quit [Quit: Leaving]
maestrojed has quit [Quit: Computer has gone to sleep.]
qwyeth has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
aaronrl has quit [Quit: Leaving]
Tricon has joined #ruby
maestrojed has joined #ruby
blahbl has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
wjimenez5271 has joined #ruby
RandyT has joined #ruby
moritzs has joined #ruby
wjimenez5271 has quit [Client Quit]
mercerist has joined #ruby
gregf has joined #ruby
Rainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
k0m has joined #ruby
<pontiki> if your command line is dead simple as that, you can use optparse pretty easily
orionstein is now known as orionstein_away
<pontiki> also look at methodone for a more complete simple cli app maker
jmbrown412 has quit [Remote host closed the connection]
echevemaster has joined #ruby
<pontiki> methadone ?
jmbrown412 has joined #ruby
toastynerd has joined #ruby
roolo has quit [Quit: Leaving...]
charliesome has joined #ruby
saarinen has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
dbasch has joined #ruby
JohnFord has joined #ruby
brandonshowers has joined #ruby
ramfjord has joined #ruby
brandonshowers has quit [Client Quit]
wjimenez5271 has joined #ruby
jmbrown412 has quit [Ping timeout: 256 seconds]
brandonshowers has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 0.4.3]
mercerist has quit [Quit: Computer has gone to sleep.]
dbasch has quit [Client Quit]
nanoyak has joined #ruby
moritzs has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
vitkovsky has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
SegFaultAX has quit [Excess Flood]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Sirupsen has joined #ruby
arup_r has joined #ruby
Sirupsen has quit [Client Quit]
nmokru has joined #ruby
Sirupsen has joined #ruby
sputnik13 has joined #ruby
SegFaultAX has joined #ruby
mr_snowf1ake has joined #ruby
RandyT has joined #ruby
mercerist has joined #ruby
mesamoo has quit [Ping timeout: 264 seconds]
arup_r has quit [Client Quit]
juanjo has quit [Quit: Ex-Chat]
beneggett has joined #ruby
dbasch has joined #ruby
arup_r has joined #ruby
Photism has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
LadyRainicorn has quit [Quit: Bye]
CorpusCallosum has quit [Remote host closed the connection]
macclearich has joined #ruby
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
fms has joined #ruby
jdj_dk has joined #ruby
hector_ has joined #ruby
xmad has joined #ruby
hector_ is now known as Guest6543
fabrice31 has joined #ruby
Guest6543 is now known as h3ct0r
h3ct0r is now known as hect0r
razorgfx has joined #ruby
hect0r has left #ruby [#ruby]
NinoScript has quit [Quit: Textual IRC Client: www.textualapp.com]
freezey_ has joined #ruby
sk87 has joined #ruby
cantonic has joined #ruby
NinoScript has joined #ruby
Spami has joined #ruby
newUser1234 has quit [Quit: Leaving...]
cantonic has quit [Client Quit]
dbasch has quit [Ping timeout: 255 seconds]
RandyT has quit [Quit: ZNC - http://znc.in]
fabrice31 has quit [Ping timeout: 245 seconds]
zoo-zed has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nickname1 has joined #ruby
dbasch has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
Squarepy has joined #ruby
charliesome has joined #ruby
Greg_ has joined #ruby
hectorrr has joined #ruby
charliesome has quit [Client Quit]
vitkovsky has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
jxf has quit [Ping timeout: 256 seconds]
olivier_bK has quit [Ping timeout: 255 seconds]
Bira has quit [Read error: Connection reset by peer]
Bira has joined #ruby
IcyDragon has joined #ruby
jbwiv has joined #ruby
rdark has quit [Quit: leaving]
dscrd has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jbwiv> all, is there a technical term for the type of if statement which uses if at the end? such as "x = 3 if x.nil?"
davedev24_ has quit [Read error: Connection reset by peer]
jdj_dk has quit [Ping timeout: 240 seconds]
davedev24_ has joined #ruby
wallerdev has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
<centrx> jbwiv, in-line post-fix ?
zoo-zed has quit [Quit: Leaving.]
Greg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<jbwiv> centrx: works for me...just looking for something which i can google. thanks
zoo-zed has joined #ruby
end_guy_ has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
<razorgfx> shorthand ternary?
Ankhers has quit [Ping timeout: 264 seconds]
<shevy> razorgfx the ?
atmosx has quit [Ping timeout: 264 seconds]
<benzrf> just postfix
end_guy has joined #ruby
blahbl has joined #ruby
sputnik13 has joined #ruby
mercerist has joined #ruby
mikepack has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
atmosx has joined #ruby
Elhu has joined #ruby
ndrei has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
mikesplain has quit []
bMalum__ has joined #ruby
rebelshrug has joined #ruby
<shevy> var ^= true
<shevy> var = !var
<shevy> what is the difference here
<shevy> both seem to toggle var to true and false and true and false...
charliesome has joined #ruby
<benzrf> shevy: uh
<benzrf> var ^= true <-> var = var ^ true, of course
iamjarvo has joined #ruby
startupality has joined #ruby
AlSquire has joined #ruby
Greg_ has joined #ruby
mikesplain has joined #ruby
jottr has joined #ruby
senayar has joined #ruby
zoo-zed has quit [Quit: Leaving.]
Greg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zoo-zed has joined #ruby
gruz0[russia] has joined #ruby
mocfive has joined #ruby
bjornar has joined #ruby
Hobogrammer has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.2]
bMalum__ has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
NinoScript has quit [Ping timeout: 256 seconds]
james2 has joined #ruby
bMalum__ has joined #ruby
blahbl has quit [Ping timeout: 244 seconds]
banjara has joined #ruby
NinoScript has joined #ruby
Dude007 has joined #ruby
SilkFox_ has joined #ruby
nszceta has quit []
terrell_t has joined #ruby
axl_ has joined #ruby
jheg_ has joined #ruby
yekta has joined #ruby
bradleyprice has joined #ruby
bMalum__ has quit [Ping timeout: 250 seconds]
nmokru has quit [Ping timeout: 240 seconds]
NinoScript has quit [Ping timeout: 240 seconds]
terrellt has quit [Ping timeout: 245 seconds]
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
NinoScript has joined #ruby
zoo-zed has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
malditogeek has quit [Quit: Leaving.]
SilkFox_ has quit [Ping timeout: 255 seconds]
reset has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
jxf has joined #ruby
dscrd has quit [Remote host closed the connection]
claymore has joined #ruby
zoo-zed has quit [Client Quit]
elico has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
elico has joined #ruby
startupality has quit [Quit: startupality]
james2 has quit [Ping timeout: 244 seconds]
jdj_dk has joined #ruby
tvw has joined #ruby
jaequery has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
sarlalian has joined #ruby
jaequery has quit [Max SendQ exceeded]
reset has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
jaequery has joined #ruby
nanoyak has joined #ruby
mikepack has quit [Remote host closed the connection]
niharvey has quit [Read error: Connection reset by peer]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jaequery has quit [Client Quit]
albedoa has joined #ruby
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
niharvey has joined #ruby
sputnik13 has joined #ruby
timonv_ has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
nanoyak has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
nanoyak has joined #ruby
NinoScript has quit [Ping timeout: 255 seconds]
jheg_ has quit [Quit: jheg_]
aaronmcadam has quit [Quit: Linkinus - http://linkinus.com]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev24_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
davedev24_ has joined #ruby
zoo-zed has joined #ruby
sputnik13 has quit [Client Quit]
sputnik13 has joined #ruby
Dude007 has quit [Ping timeout: 240 seconds]
NinoScript has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamto11 has quit [Remote host closed the connection]
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
tbrock_ has joined #ruby
zoo-zed has joined #ruby
zoo-zed has quit [Excess Flood]
theRoUS has quit [Ping timeout: 255 seconds]
chrisja has joined #ruby
tbrock_ has quit [Client Quit]
orionstein_away is now known as orionstein
carraroj has joined #ruby
amargherio has joined #ruby
zoo-zed has joined #ruby
<rubyonrailed> Whats the equivalent to "Class.find_by(:email => @user.emal)" in ruby 1.8.7?
davedev24_ has quit [Read error: Connection reset by peer]
aaronmcadam has joined #ruby
jheg_ has joined #ruby
davedev24_ has joined #ruby
<baweaver> upgrading Ruby from a deprecated version
dawkirst has quit [Remote host closed the connection]
<shevy> Class.find
<shevy> NoMethodError: undefined method `find' for Class:Class
<rubyonrailed> that isn't an option?
<shevy> sorry
<shevy> Class.find_by # NoMethodError: undefined method `find_by' for Class:Class
<baweaver> that's rails
jdj_dk has quit [Ping timeout: 264 seconds]
<baweaver> and 1.8.7 is way out of date.
<shevy> well it is not in ruby 2.1.2 either
<baweaver> still, they need to upgrade
NinoScript has quit [Ping timeout: 250 seconds]
<shevy> :D
<baweaver> which is why I said that's rails before that
vsoftoiletpaper has quit []
<eam> "they need to upgrade" isn't super helpful since 1.8.7 is the distro standard on a lot of systems
niharvey has quit [Ping timeout: 255 seconds]
<baweaver> RVM or RBENV
<baweaver> done.
<eam> naive
<baweaver> pretentious
dawkirst has joined #ruby
<shevy> well the upgrade won't make the error go away
yfeldblum has quit [Remote host closed the connection]
<baweaver> Didn't say it would
<havenwood> baweaver: chruby :P
<shevy> btw what is @user.emal
NinoScript has joined #ruby
<rubyonrailed> ...
<shevy> source compilations!
davedev24_ has quit [Read error: Connection reset by peer]
<baweaver> the question is whether they're using rails
fms has quit [Quit: Lost terminal]
<shevy> he is :(
<baweaver> and which version as well
<shevy> probably an ancient one
<baweaver> indeed
davedev24_ has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<baweaver> so still monkeypatched probably
tvw has quit []
<baweaver> find_by_email
<baweaver> rails -v
<shevy> I wonder how the rails folks manage to remember all those APIs
<rubyonrailed> its rails 2.3
sputnik13 has joined #ruby
aaronmcadam has quit [Ping timeout: 260 seconds]
<baweaver> rubyonrailed, you really need to upgrade if at all possible
<baweaver> you're going to give yourself some serious headaches like that
<havenwood> rubyonrailed: Your Ruby and your Rails are both past end-of-life.
<baweaver> Ruby most recent is ~2.1.2
<baweaver> Rails is ~4.1.x
terrell_t has quit [Remote host closed the connection]
<rubyonrailed> We will be upgrading in the future
nickname1 has quit [Quit: Page closed]
roolo has joined #ruby
mehlah has quit [Quit: Leaving...]
<baweaver> future is now mate
AlexBlomCOM has joined #ruby
terrellt has joined #ruby
freezey_ has quit [Remote host closed the connection]
MZAWeb has quit [Ping timeout: 250 seconds]
<baweaver> because the nightmare of security vulnerabilities you've unleashed is going to be terrifying.
<baweaver> there's a reason not to use end of life stuff.
postmodern has joined #ruby
apeiros has quit [Remote host closed the connection]
<baweaver> your method is #find_by_email
<baweaver> but you absolutely need to upgrade, that's dangerous
<havenwood> rubyonrailed: the rails channel is #rubyonrails
Sauvin has quit [Remote host closed the connection]
apeiros has joined #ruby
<rubyonrailed> Thank you for the help, it's a big project to upgrade it's going to take some time
<baweaver> Do it soon, because those versions are full of holes
<baweaver> enough so that your clients / customers are screwed.
sputnik13 has quit [Client Quit]
niharvey has joined #ruby
<baweaver> letting tech debt get away from you like that will always come back to bite you. Stay on top of upgrades.
CodeLicker2 has joined #ruby
MZAWeb has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 250 seconds]
CodeLicker has quit [Ping timeout: 255 seconds]
<shevy> now there is one topic that gets baweaver going
banister has joined #ruby
beauby has joined #ruby
<baweaver> old sysadmin
<shevy> like eam !
<shevy> he is a perl guru
theRoUS has joined #ruby
<shevy> even more so than hoelzro
freezey has joined #ruby
<baweaver> 9/10 times a security breach is failure to upgrade or silly users talking too much
<eam> I'm a ruby guru now
theRoUS has quit [Changing host]
theRoUS has joined #ruby
renderful has quit [Remote host closed the connection]
<shevy> eam why didn't you pick python actually?
<baweaver> I still have a special fondness for regex and special vars
<eam> I do a little bit of python
<eam> I'm currently employed by a ruby/java shop so
terrellt has quit [Ping timeout: 256 seconds]
<baweaver> that'd do it
<shevy> baweaver I found regexes to, when they become rather long, rather complicated and brain-power intensive
apeiros has quit [Ping timeout: 255 seconds]
toretore has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
<shevy> it's like when I see some regular ruby code, and then suddenly a longer regex, my brain has to halt and slow down
<baweaver> python feels a bit too restrictive for my tastes, but I can still use it.
wombo has joined #ruby
<eam> I really wish ruby just used libpcre
<eam> there are just enough changes that it drives me nuts
<baweaver> Heh, I always imagine Crocodile Dundee with the scene "That's not a knife! THIS is a knife!"
<baweaver> s/knife/regex/g
<shevy> yeah
<shevy> that was a good one
<shevy> I had to watch it in german though
<eam> as long as /x is used, regexes aren't too bad, even big ones
renderful has joined #ruby
<eam> people forget how ugly a .y file is ...
<baweaver> and named groups
maoko has joined #ruby
benzrf is now known as benzrf|offline
ramfjord has joined #ruby
Snarkz has joined #ruby
Aryasam has quit [Read error: No route to host]
sputnik13 has joined #ruby
Aryasam has joined #ruby
fgo has joined #ruby
hobodave has quit [Ping timeout: 256 seconds]
hobodave has joined #ruby
<wombo> I wish someone would create a regular expressions library that used something more sane that arbitrary symbols
yfeldblum has joined #ruby
<baweaver> Yeah, the one problem I had with perl is it was like a code golf competition
<baweaver> wombo: they're perfectly sane, and not hard to memorize.
jgt has quit []
<eam> they massively contribute to readability
<baweaver> No kidding
<eam> in ruby you have people doing ad-hoc hungarian notation
<eam> why not just formalize a symbol that means the variable is an Array, and let the interpreter type-check it?
sambao21 has quit [Quit: Computer has gone to sleep.]
<eam> no one freaks out about var, @var, @@var or $var to denote scope types
toretore has joined #ruby
<baweaver> You could always do the hackery me and banister were screwing with a few days ago: https://gist.github.com/baweaver/eebce3daceabd4055a4e
<eam> but suggest that $var means strings/numbers and @var means arrays and the world is ending
thams has joined #ruby
<baweaver> note: hackery, not production everyone should use this.
fgo has quit [Ping timeout: 260 seconds]
<eam> I'll just stick to an ml-alike
Pharaoh2 has quit [Quit: Leaving...]
tylersmith has quit [Read error: Connection reset by peer]
braincrash has quit [Read error: Connection reset by peer]
chamblin has joined #ruby
tylersmith has joined #ruby
thams has quit [Quit: thams]
<baweaver> parse uses pattern matching, right?
<baweaver> looks like it at least, not immediately familiar with the language
<baweaver> but definitely a lot nicer to read.
<eam> yeah so not entirely regex free, but they're individually simple
IcyDragon is now known as IceDragon
britneywright has joined #ruby
<baweaver> OCaml is one of the languages I need to read more into
<baweaver> Livescript seems like a mix between that and Haskell.
<eam> anything less complex than this I'd prefer the regex case -- this is just over the line of "use a real parser"
<albedoa> https://gist.github.com/albedoa/4b7db5e05be6a31cd9f9 i'm trying to calculate successive word frequency (see line 28). is there a more elegant approach? thanks for any input
<baweaver> heh, I still remember hacking together a regex json parser before I knew what json even was
<baweaver> that was a mess.
thams has joined #ruby
Hanmac has joined #ruby
reset has joined #ruby
pandaant has quit [Quit: leaving]
<baweaver> bit more than a quick glance for sure.
Squarepy has quit [Quit: Leaving]
<baweaver> look into auto-vivification for one
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> reduce for a second
g0d0t has joined #ruby
<baweaver> anything more than that I'd have to sit down with some paper and think for more than a few minutes on a better way.
jdj_dk has joined #ruby
thomas3141592653 has quit [Quit: Connection closed for inactivity]
<albedoa> thank you
SBoolean has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
<k0m> When extending a class, on init do you want to call its super at the beginning or end of the function?
<baweaver> av is really handy for deep maps like that
<shevy> k0m usually beginning
nanoyak has joined #ruby
<k0m> Why?
kaspergrubbe has joined #ruby
<baweaver> that way it gets overridden
<shevy> because you delegate towards the parent method
<hoelzro> shevy: you always mention me when I'm gone
<hoelzro> =(
<shevy> hoelzro I am sorry if you sleep too long!!!
djbkd has quit [Remote host closed the connection]
<shevy> hoelzro it just striked me that eam is an ancient perl guru like you are as well
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy> I want to bring together all friendly methusalems :-)
jheg_ has quit [Quit: jheg_]
havenwood has quit [Remote host closed the connection]
<shevy> back when the railroad was invented...
djbkd has joined #ruby
* shevy sighs happily ...
mikepack has joined #ruby
Zebroid has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
gregf has quit [Quit: WeeChat 0.4.3]
kloeri_ has quit [Quit: plop]
dangerousdave has quit [Ping timeout: 250 seconds]
jaimef has quit [Excess Flood]
kloeri_ has joined #ruby
jheg_ has joined #ruby
vsoftoiletpaper has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
orionstein is now known as orionstein_away
havenwood has joined #ruby
Zenigor has quit [Remote host closed the connection]
thams has quit [Quit: thams]
Photism has joined #ruby
SilkFox_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
alvaro_o has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
renderful has quit [Remote host closed the connection]
Zenigor has joined #ruby
Takle has quit [Remote host closed the connection]
axilla has joined #ruby
arup_r1 has joined #ruby
dangerousdave has joined #ruby
claymore has quit [Quit: Leaving]
gr33n7007h has joined #ruby
jaimef has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<eam> shevy: I'm only 17 years old
SilkFox_ has quit [Ping timeout: 260 seconds]
arup_r has quit [Ping timeout: 272 seconds]
<shevy> :(
<shevy> that is no fun man
<shevy> then you are like benzrf|offline
<shevy> I need to make fun of people older than me
<shevy> the gurus
<shevy> the wise men
<shevy> old, venerable
<baweaver> My beard is not enough to qualify me as a guru yet.
andrewjanssen has joined #ruby
testcore has joined #ruby
andrewjanssen has quit [Client Quit]
arup_r has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<shevy> haha
<shevy> put some more food into it
senayar has quit [Remote host closed the connection]
arup_r1 has quit [Ping timeout: 245 seconds]
Barrayar has quit [Ping timeout: 250 seconds]
thumpba has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
thumpba has joined #ruby
Elhu has joined #ruby
davedev24_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
beauby has quit [Ping timeout: 250 seconds]
acrussell has quit [Quit: Leaving.]
beauby has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<hoelzro> shevy: how old are you?
<hoelzro> I might be younger than you too =)
davedev24_ has joined #ruby
<baweaver> heh, I'm probably not.
dscrd has joined #ruby
jamto11 has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
nanoyak has quit [Read error: Connection reset by peer]
<shevy> hoelzro awwww way past those young days...
Zenigor has quit [Remote host closed the connection]
nanoyak has joined #ruby
djbkd has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
yekta has quit [Quit: yekta]
dscrd has quit [Client Quit]
Tricon has quit [Quit: Leaving...]
iamjarvo has quit [Ping timeout: 240 seconds]
orionstein_away is now known as orionstein
<eam> I may not actually be 17
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
Tricon has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
davedev24_ has joined #ruby
Zenigor has joined #ruby
Lulzon has joined #ruby
dangerousdave has joined #ruby
Lulzon has quit [K-Lined]
Kricir has joined #ruby
memph1s has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
vdmgolub has joined #ruby
lbwski has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acrussell has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qwyeth has quit [Quit: Leaving]
<shevy> that's much better!
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 250 seconds]
testcore has quit [Ping timeout: 264 seconds]
jdj_dk has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
brandonshowers has joined #ruby
davedev24_ has joined #ruby
jam__ has joined #ruby
djbkd has joined #ruby
fabrice31 has joined #ruby
Jam___ has joined #ruby
mikepack has joined #ruby
vsoftoiletpaper has quit []
Lucky__ has quit [Ping timeout: 250 seconds]
vdmgolub has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
mrsolo has joined #ruby
mrsolo has left #ruby [#ruby]
<baweaver> shevy: 24, I'm an old man
Kricir has joined #ruby
mercerist has quit [Remote host closed the connection]
Atrumx has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy> nah
<shevy> that is still ok
spyderma_ has joined #ruby
<shevy> once you go past 30, it's all downhill from there
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<centrx> What if you start off beyond 30
Tricon has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
bazy has joined #ruby
<eam> oh god now I'm having a midlife crisis
dvb_ua has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
JohnFord has joined #ruby
mattmcclure has joined #ruby
* eam buys a lambo
bMalum__ has joined #ruby
spyderma_ has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
arup_r1 has joined #ruby
<shevy> centrx don't depress me
arup_r has quit [Ping timeout: 260 seconds]
<shevy> centrx like when a 35 years old starts writing php
thumpba has joined #ruby
bazy has left #ruby [#ruby]
carraroj has quit [Quit: Konversation terminated!]
arup_r has joined #ruby
memph1s has joined #ruby
j_mcnally has joined #ruby
relix has joined #ruby
<eam> in '98 I was in high school and took some computer related night classes at a local jr college. They were full of random 30-50 year olds who "wanted to get into computers" because they could "make 100k/yr programming html"
frankle has quit [Quit: Connection closed for inactivity]
<eam> it was pretty bleak, they were completely lost with even basic concepts
baweaver has quit [Remote host closed the connection]
freggles has joined #ruby
<eam> like at the level of "you know this is a C++ class right? And you say you want to do html?"
arup_r1 has quit [Ping timeout: 264 seconds]
thumpba has quit [Ping timeout: 240 seconds]
<shevy> now I am depressed
testcore has joined #ruby
<eam> you're depressed? you've tricked me into telling old man stories
<katlogic> eam: node.js was yet to be invented back then.
anaeem1 has joined #ruby
razum2um1 has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
baweaver has joined #ruby
CorpusCallosum has quit [Ping timeout: 240 seconds]
jimms has quit []
DrShoggoth has quit [Quit: Leaving]
godd2 has joined #ruby
razum2um has quit [Ping timeout: 260 seconds]
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<baweaver> If it makes you feel better eam, they still do that today
gr33n7007h has quit [Ping timeout: 255 seconds]
wombo has quit [Ping timeout: 250 seconds]
<baweaver> except now it's .NET and web development
<baweaver> and they all want to make the next facebook
blackmesa has joined #ruby
sigurding has joined #ruby
MCDev has quit [Read error: Connection reset by peer]
jheg_ has quit [Quit: jheg_]
wombo has joined #ruby
CodeLicker2 has quit [Quit: Nettalk6 - www.ntalk.de]
MCDev has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
CodeLicker has joined #ruby
jheg_ has joined #ruby
cleopatra has quit [Remote host closed the connection]
decoponyo has quit [Quit: Leaving...]
mattstratton has joined #ruby
Georg3 has joined #ruby
lele has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
Georg3 has quit [Client Quit]
Macaveli has joined #ruby
elaptics is now known as elaptics`away
jlovick has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
jlovick has joined #ruby
amystephen has joined #ruby
jbckmn has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CorpusCallosum has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
RandyT has quit [Quit: ZNC - http://znc.in]
sambao21 has joined #ruby
gr33n7007h has joined #ruby
blasius has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
benzrf|offline is now known as benzrf
RandyT has joined #ruby
yfeldblum has joined #ruby
Zebroid has quit [Remote host closed the connection]
sepp2k has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
zB0hs has joined #ruby
linojon has quit [Quit: linojon]
davedev24_ has joined #ruby
gregf has joined #ruby
terrellt has joined #ruby
jdj_dk has joined #ruby
dbasch has quit [Quit: dbasch]
lw has quit [Quit: s]
lele has joined #ruby
benzrf is now known as benzrf|offline
arup_r has quit [Ping timeout: 240 seconds]
p0sixpscl has quit [Quit: p0sixpscl]
benzrf|offline is now known as benzrf
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
frankle has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pasties has quit [Ping timeout: 250 seconds]
asmodlol has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
nanoyak_ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
MZAWeb has quit [Ping timeout: 250 seconds]
Moonlightning has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
dumdedum has quit [Quit: foo]
jamto11 has joined #ruby
mehlah has joined #ruby
wombo has quit [Quit: wombo]
pasties has joined #ruby
tomblomfield has joined #ruby
mehlah has quit [Client Quit]
NCS_One has joined #ruby
<NCS_One> hi
jdj_dk has quit [Ping timeout: 250 seconds]
hectorrr has quit [Remote host closed the connection]
Mooneye has joined #ruby
Sirupsen has joined #ruby
benzrf is now known as benzrf|offline
jamto11 has quit [Ping timeout: 245 seconds]
jbckmn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<NCS_One> I have a multi dimensional hash how do I get the number of rows and cols? myhash.length gives the total
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
JoshGlzBrk has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
marr has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
dawkirst has quit [Remote host closed the connection]
acrussell has quit [Quit: Leaving.]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Zebroid has joined #ruby
dawkirst has joined #ruby
<winny> goodbye, morning club
winny has left #ruby [#ruby]
dawkirst has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
thumpba has joined #ruby
<shevy> NCS_One you probably have to traverse it
<shevy> through .each or .each_pair
<sam113101> guys help
Takle_ has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
Zebroid has quit [Ping timeout: 255 seconds]
<shevy> sam113101 what do you need
havenwood has joined #ruby
<shevy> eam are you publishing ruby stuff as gems on rubygems or ruby projects that can be made public on github?
renderful has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
Zebroid has joined #ruby
fgo has joined #ruby
dawkirst has quit [Ping timeout: 272 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbasch has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
Zebroid has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dawkirst has joined #ruby
jaequery has joined #ruby
g0d0t has left #ruby ["Leaving"]
Zebroid has joined #ruby
zB0hs has quit [Ping timeout: 240 seconds]
craigbowen3 has joined #ruby
orionstein is now known as orionstein_away
timonv_ has quit [Remote host closed the connection]
sputnik13 has joined #ruby
craigbowen3-1 has joined #ruby
<sam113101> I'm doing this but it doesn't seem to be taking care of newlines properly: text.gsub(/^>.*$/, '<span class="greentext">\0</span>')
craigbowen3-2 has joined #ruby
craigbowen3-1 has quit [Client Quit]
craigbowen3 has quit [Client Quit]
craigbowen3-2 has quit [Read error: Connection reset by peer]
<shevy> sam113101 what is \0
<sam113101> the whole match
<shevy> huh
craigbowen3 has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
<shevy> are you sure?
<shevy> do you have example input for text variable
<sam113101> well that's usually the case, no?
namxam has joined #ruby
<shevy> not that I am aware of
<shevy> usually when I do a match, I have to use ()
Wolland has joined #ruby
<shevy> it's difficult to know what the input data is here
<NCS_One> shevy: soo how do I do a for on each row?
Zebroid has quit [Ping timeout: 260 seconds]
<shevy> NCS_One hmm
<shevy> I would not use for
<NCS_One> or each
<shevy> but you could pass through a method, and count, and have the method return the amount o rows
<shevy> do you have a short subset hash
mikepack has joined #ruby
<NCS_One> shevy: short subset? nooby here :)
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
<sam113101> shevy: that would be an input: http://fpaste.org/120304/14812114/
jdj_dk has joined #ruby
<shevy> NCS_One I mean just a short example of your multi-dimensional hash
rezzack has joined #ruby
<shevy> NCS_One so that it can be reproduced easily. It is easier to work with a specific dataset
<sam113101> and the output is:
bmurt has quit []
Wolland has quit [Ping timeout: 255 seconds]
<shevy> sam113101 this is all assigned to text, the variable, yes?
chrishough has joined #ruby
<sam113101> yes
<sam113101> see, </span> is on its own line
<sam113101> I want it to be on the same line as the opening tag
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jdj_dk has quit [Read error: Connection reset by peer]
<robscormack> then remove the newline
Zenigor has quit [Remote host closed the connection]
jdj_dk has joined #ruby
<sam113101> I don't understand why there is a newline to begin with
<shevy> ah, so only the newline is annoying you?
<sam113101> yeah
<shevy> hmm
<shevy> /^>.*$/
<shevy> so ^ for beginning
<sam113101> it's on a rails project btw
<shevy> > for the end tag
<shevy> . for any char
<shevy> * for multiples of any char
<shevy> $ for end of line
Wolland has joined #ruby
<NCS_One> shevy: its a multi array of a class, myhash[[0, 0]] = myclass.new, ..., myhash[[1, 0]] = myclass.new, ...
<shevy> I am not quite sure where the newline comes from either...
<robscormack> a stupid way would be text.gsub(/\n/, '').gsub(/^>.*$/, '<span class="greentext">\0</span>')
<NCS_One> s/multi array/multi dimensional hash
Zebroid has joined #ruby
<sam113101> the newline only seems to happen on rails >.>
lw has joined #ruby
<sam113101> the struggle is real
<robscormack> sam113101, are you on windows?
<sam113101> robscormack: no
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<robscormack> are you opening a file or sth?
Tricon has joined #ruby
sputnik13 has joined #ruby
<sam113101> does \0 catch the newline? (from the captured string)
<havenwood> sam113101: text.split($/).map { |line| line.start_with?('>') ? "<span class='greentext'>#{line[1..-1]}</span>" : line }
MartynKeigher has joined #ruby
sputnik13 has quit [Read error: Connection reset by peer]
sputnik13 has joined #ruby
Morkel has quit [Quit: Morkel]
yakko has joined #ruby
<robscormack> havenwood, sam113101: that'd work but it's /$/ on the split call
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has quit [Quit: Computer has gone to sleep.]
Snarkz has quit [Quit: Textual IRC Client: www.textualapp.com]
Sirupsen has joined #ruby
<havenwood> robscormack: hem?
<havenwood> robscormack: oh, a regexp literal, yeah...
St_Marx has joined #ruby
jdoles has joined #ruby
<havenwood> robscormack: it's a global
<sam113101> yeah, but I want to use gsub
<jdoles> How can I step line by line through ruby code?
<havenwood> >> $/
thesheff17 has quit [Quit: Leaving]
<Mon_Robot> havenwood: => "\n" (https://eval.in:443/171096)
jdj_dk has quit [Ping timeout: 264 seconds]
<shevy> jdoles File.foreach possibly
<jdoles> Most annoyingly code which used to work 5 months ago stopped working with not a single error message in sight.
mercwithamouth has quit [Read error: Connection reset by peer]
<havenwood> sam113101: why do you want to use #gsub?
<havenwood> sam113101: just curious.
<jdoles> shevy: are you drunk?
tesaf has quit [Quit: Lost terminal]
<shevy> jdoles: are you fat?
<jdoles> shevy: I don't disclose such data.
<shevy> jdoles: neither do I
<robscormack> jdoles, shevy: are you both angry or just divorcing?
<havenwood> robscormack: "an\nexample".split($/) #=> => ["an", "example"]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jdoles> shevy: in that case, I will tell you that you are drunk or retarded.
<havenwood> robscormack: or did you mean something else?
<havenwood> robscormack: i don't follow
<jdoles> robscormack: annoyed with morons talking to me.
<shevy> robscormack hey, marriage is a risky, costly business
JoshGlzBrk has joined #ruby
jbckmn has joined #ruby
<havenwood> robscormack: (input record separator)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> jdoles: in that case, I will tell you that you are childish.
<jdoles> shevy: see me care.
<robscormack> havenwood, nope, didn't know about that global, saw the code and seemed like a typo.
<shevy> jdoles: yes, you reply - if you would not, you would not reply at all.
Takle_ has quit [Remote host closed the connection]
<MartynKeigher> hey all... im working on some code and I know im so close... but its just not working! Here is the code: http://pastebin.com/JF8n1rE1 can someone tell me what bit is wrong, and point me in the right direction!?? Thanks.
<havenwood> robscormack: ah, gotcha ;)
<baweaver> jdoles - pry
<jdoles> shevy: you can apologize for your behaviour or you are on my permanent ignore list.
<jdoles> shevy: 10 seconds to comply.
<shevy> jdoles: I want you to apologize instantly or you will be banned.
SilkFox_ has joined #ruby
<baweaver> well jdoles is on my ignore list
<baweaver> childish nonsense
mercwithamouth has joined #ruby
mike32 has joined #ruby
charliesome has joined #ruby
<jdoles> Ok, perm ignore done.
<jdoles> I don't have time for morons.
<MartynKeigher> you should be able to see what im doing here, but im passing a variable INTO a sql query, - and fyi, if i do this the 'non variable way' it works fine. im just trying to save my self from making lots of ruby files, for all my queries.
<shevy> jdoles why don't you have time for yourself man
<wallerdev> wow this channel is getting crazy today!
<havenwood> wallerdev: rampage!!
<baweaver> so much emo, so much ignore listing
valner has quit [Remote host closed the connection]
<shevy> careful - he might ignore you too
<wallerdev> theres no a/c where i work today and im dying
<robscormack> havenwood, anyway, how about \r\n on unix?
<wallerdev> productivity is at a negative
dbasch has quit [Quit: dbasch]
<baweaver> already ignored him, not sure I care.
<shevy> wallerdev do pushups!
<havenwood> robscormack: how about it?
<wallerdev> i had hot soup for lunch
<wallerdev> so already hate myself
lw has quit [Quit: s]
<havenwood> robscormack: ah
<shevy> hehehe
nanoyak_ has quit [Read error: Connection reset by peer]
thesheff17_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<baweaver> >>"string\ntest".lines
<Mon_Robot> baweaver: => ["string\n", "test"] (https://eval.in:443/171098)
<shevy> cooool
<baweaver> >>"string\ntest".lines.map(&:chomp)
SBoolean has quit [Remote host closed the connection]
<Mon_Robot> baweaver: => ["string", "test"] (https://eval.in:443/171099)
<havenwood> robscormack: who knows, i took a blind stab assuming the author created the string
<shevy> that is, I think the first time I see .lines
<havenwood> robscormack: it may not be UTF8! :O
nanoyak has joined #ruby
<robscormack> havenwood, never mind, just wanted to be famous.
Tricon has quit [Quit: Leaving...]
<robscormack> (it didn't work, btw)
<havenwood> robscormack: i was going to say good to be famous on Thurs, but it's Wed :(
sambao21 has joined #ruby
darkxploit has quit [Ping timeout: 240 seconds]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<robscormack> I failed to die at 27, so fame is not for me :B
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> >> "string\r\ntest".lines
<Mon_Robot> baweaver: => ["string\r\n", "test"] (https://eval.in:443/171100)
<sam113101> havenwood: this is not the only replacement I need to do
<baweaver> >> "string\r\ntest".lines.map(&:chomp)
<shevy> robscormack you could reach 150 years in age!
<Mon_Robot> baweaver: => ["string", "test"] (https://eval.in:443/171101)
<havenwood> MartynKeigher: please mention if you're going to crosspost
<baweaver> aha, does work.
<havenwood> sam113101: i always like replacing regexp with iteration :P
SilkFox_ has quit [Ping timeout: 260 seconds]
<shevy> is .lines and alias to .split("\n") ?
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> *an
<havenwood> sam113101: but a named block might be more clear with #gsub
<havenwood> shevy: no
<havenwood> shevy: lines returns an array that includes newlines
<shevy> oh right, I forgot that havenwood
<shevy> well that is pretty cool
<shevy> the beaver taught me a new trick today
<havenwood> shevy: `split($/)` versus `lines.map(&:chomp)`
<havenwood> shevy: or each_line.map(&:chomp)
vsoftoiletpaper has joined #ruby
thesheff17_ is now known as thesheff17
<havenwood> shevy: chomp default is already $/
davedev24_ has quit [Read error: Connection reset by peer]
<sam113101> '.' in ruby regexes doesn't capture newlines, right?
davedev24_ has joined #ruby
<havenwood> >> "\n"[/./]
<Mon_Robot> havenwood: => nil (https://eval.in:443/171102)
<robscormack> >> "Just testing how the bot works".reverse
<Mon_Robot> robscormack: => "skrow tob eht woh gnitset tsuJ" (https://eval.in:443/171103)
<baweaver> speaking of the beaver
Atttwww has joined #ruby
<robscormack> nice!
chrishough has quit [Quit: chrishough]
<shevy> lol
<shevy> too many Mon_s
claymore has joined #ruby
razorgfx has quit [Quit: Textual IRC Client: www.textualapp.com]
mehlah_ has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 245 seconds]
<shevy> baweaver cool
<shevy> you like drama movies
<baweaver> That one was far more of a comedy than anything
<baweaver> Doctor Who and Sherlock
Bira has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
Hobogrammer has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
havenn has joined #ruby
jamto11 has joined #ruby
<sam113101> >> "test\n".gsub(/^.+$/, '\0ni')
<Mon_Robot> sam113101: => "testni\n" (https://eval.in:443/171104)
ldnunes has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
darkxploit has joined #ruby
<sam113101> >> "test\ntest\n".gsub(/^.+$/, '\0ni')
<Mon_Robot> sam113101: => "testni\ntestni\n" (https://eval.in:443/171106)
<havenn> sam113101: so you want a negative lookbehind?
<sam113101> havenn: no
<havenn> oh, just no newline, so chomp it or don't match it
kreisys has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
<havenn> i still think a block arg would be more readable
albedoa has left #ruby ["Textual IRC Client: www.textualapp.com"]
beauby has quit [Ping timeout: 245 seconds]
<sam113101> havenn: it's not supposed to be there, bro
dawkirst has quit [Remote host closed the connection]
<sam113101> it doesn't make any sense
<havenn> sam113101: why a line would have a newline?
freezey has joined #ruby
<sam113101> >> "test\n".gsub(/^.+$/, '\0ni')
<Mon_Robot> sam113101: => "testni\n" (https://eval.in:443/171112)
* havenn ponders
<sam113101> see, I get "testni", on rails I would get "test\nni"
<shevy> wat
<sam113101> I don't know why
<shevy> why is rails modifying that
Zenigor has joined #ruby
<havenn> lol rails
<shevy> and btw, you got "testni\n" now or? not "testni"
<eam> does rails use the /sm modifiers?
<shevy> sado maso?
<eam> >> "test\ntest\n".gsub(/^.+$/m, '\0ni')
<Mon_Robot> eam: => "test\ntest\nni" (https://eval.in:443/171113)
memph1s has joined #ruby
<eam> my guess is you're using a function that explicitly turns on multiline mode
yfeldblum has joined #ruby
Wolland has quit []
<eam> perldoc perlre # best docs on ruby regex
<havenn> sam113101: I don't understand the confusing. You're subbing out before the newline. So that works. But after the substitution the newline is still there. You haven't removed it.
jdj_dk has joined #ruby
freerobby has quit [Quit: Leaving.]
zorak has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
yakko has quit []
Duckily has joined #ruby
<sam113101> havenn: yes but it's supposed to be AFTER the </span>, no?
<robscormack> no
<Duckily> emails_json_array << { '0' => ['label' => 'Work', 'value' => "val"] }
<Duckily> => [{"0"=>[{"label"=>"Work", "value"=>"val"}]}]
<Duckily> when i convert this to json it adds a bunch of curlys
<Duckily> is there a way around this?
Tricon has joined #ruby
chrishough has joined #ruby
Zenigor has quit [Remote host closed the connection]
<sam113101> it's not valid json
duggiefresh has quit []
tomblomfield has quit [Quit: Computer has gone to sleep.]
benzrf is now known as benzrf|offline
kyb3r_ has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
<havenn> >> "test\ntest\n".gsub(/^.+$#{$/}/, '\0ni')
<Mon_Robot> havenn: => "test\nnitest\nni" (https://eval.in:443/171114)
<Duckily> sam113101: exactly
<Duckily> sam113101: im trying to output "emai": [ “0”: {“label”: “Work”, “primary”: “false", "value": "some_email” } ]
poguez_ has quit [Quit: Connection closed for inactivity]
<Duckily> and that should be within a json object Person
SilkFox has quit [Ping timeout: 250 seconds]
<Duckily> which is a hash
<robscormack> duck, paste your cod
<robscormack> s/cod/code/g
pothibo has joined #ruby
djbkd has joined #ruby
<shevy> paste your cods man
jheg_ has quit [Quit: jheg_]
<wallerdev> idk why ruby even uses its own hashes intsead of using json
cleopatra has joined #ruby
sirene has joined #ruby
<wallerdev> so weird
<sirene> hello
<shevy> wallerdev the soup is changing your mind!
<robscormack> damn a ky in my kyboard is damagd, it dos not work proprly
<sirene> how i can get the offline reference of any gem
<sirene> ?
<wallerdev> i think it might be the 10 hour pokemon remix im listening to on ytoubue
<sirene> for example compass!
<Duckily> wallerdev: the new hash syntax is quite similar
<havenn> wallerdev: naw, what's weird is that we use JSON at all :P Ruby Object Model ftw!
<havenn> Object Notation**
bMalum__ has quit [Quit: Computer has gone to sleep.]
<wallerdev> ron isnt as catchy
<wallerdev> jason is a much more popular name than ron
<havenn> wallerdev: protocal buffers
<wallerdev> i used protobufs at my last job
bMalum__ has joined #ruby
<wallerdev> pretty useful
<havenn> wallerdev: not too painful?
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
<wallerdev> although omg i was doing it on windows
<wallerdev> to communicate between two processes
<wallerdev> and i was doing it over STDOUT and STDIN for communication
<wallerdev> and it would convert byte 10 which i think is like \n
<wallerdev> it would add a \r in front of it
<wallerdev> which would corrupt the buffers
<wallerdev> took me forever to track that down lol
shlant1 has joined #ruby
<sirene> ?
<wallerdev> cuz you put the length of the message in the first 4 bytes or whatever, so you get the length 120, but theres 121 bytes of data to read since it added an extra \r
shlant1 has left #ruby [#ruby]
<havenn> wallerdev: oh the humanity...
<wallerdev> its ok i work on a mac now which has no bugs like that
yfeldblum has quit [Remote host closed the connection]
<jdoles> Why is a debugger a fucking addon in Ruby?
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenn> jdoles: why are you writing bugs?
<havenn> jdoles: stop that!
<sam113101> robscormack: what do you mean no?
fgo has joined #ruby
davedev2_ has joined #ruby
Shidash has quit [Quit: Leaving.]
bMalum__ has quit [Ping timeout: 255 seconds]
ffranz has quit [Quit: Leaving]
<sam113101> >> "test\n>test\nlol".gsub(/^>.*$/, '<span class="greentext">\0</span>')
<Mon_Robot> sam113101: => "test\n<span class=\"greentext\">>test</span>\nlol" (https://eval.in:443/171117)
<sam113101> ^ the </span> is IN FRONT of the newline
jdj_dk has quit [Ping timeout: 250 seconds]
<sam113101> exactly what I want
<havenn> sam113101: you are subbing before the newline
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Quit: Blue Sky Fish]
<robscormack> >> "test\n>test\nlol".gsub($/, '').gsub(/^>.*$/, '<span class="greentext">\0</span>')
<Mon_Robot> robscormack: => "test>testlol" (https://eval.in:443/171118)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Duckily> how do you insert an array into a hash?
jdj_dk has joined #ruby
<jdoles> havenn: I don't write bugs.
<havenn> sam113101: consider this: >> "\n" =~ /^>.*$/
<agent_white> Afternoon everyone
<havenn> sam113101: #=> nil
<jdoles> havenn: however, some fucking people think it is useful to change websites.
<havenn> jdoles: Change away!
<havenn> jdoles: Don't let gems phase you.
<jdoles> havenn: so, the problem I basically have is that the tools I am working with are not abstract enough.
<havenn> jdoles: Many Ruby gems are better maintained that stdlib.
momomomomo has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
Azure has joined #ruby
<jdoles> havenn: so, I basically need an abstraction like "do whatever is needed to obtain a link named foo" on a website.
davedev2_ has quit [Remote host closed the connection]
tomblomfield has joined #ruby
<jdoles> havenn: e.g. accept cookies, etc.
<havenn> jdoles: mechanize
<jdoles> havenn: not abstract enough.
davedev24_ has joined #ruby
* havenn ponders more abstract than mechanize
<jdoles> havenn: the problem is that things still change.
banjara has quit [Quit: Leaving.]
Aryasam has quit [Read error: No route to host]
fgo has quit [Ping timeout: 240 seconds]
Azure has quit [Client Quit]
<jdoles> havenn: take for example css text fields.
<havenn> jdoles: you may need to create a soul, an AI soul
<jdoles> havenn: you can make those look the same like html text fields.
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
yfeldblum has joined #ruby
<jdoles> havenn: right, that's exactly the problem.
Azure has joined #ruby
<jdoles> havenn: I think it's possible to do it better if you are hooked into the browser on a very low level.
<jdoles> havenn: i.e. that you can do point location queries like "find some text foo within x pts of a text field and then bind that text field to a name tf".
<havenn> jdoles: so mechanize is perfect?
<jdoles> havenn: does mechanise have an interface for that specific query?
<jdoles> mechanize*
<jdoles> havenn: please point me at that API then (not the general thing)
<baweaver> Duckily, clarify
<baweaver> >> {a: []}
<havenn> Clarify, duckily.
<Mon_Robot> baweaver: => {:a=>[]} (https://eval.in:443/171121)
<Duckily> havenn: im trying to do this in ruby https://gist.github.com/anonymous/cbdaf19d020aa9c0785b
Tricon has quit [Quit: Leaving...]
hectorrr has joined #ruby
djbkd has quit [Remote host closed the connection]
<Mon_Ouie> thing['phone'] = [hash_a, hash_b]
jerius has quit []
<Mon_Ouie> You probably should consider creating classes to represent those things at that point, too
Azure has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
<Duckily> Mon_Ouie: i’m trying to write a quick script to import some data
<jdoles> havenn: ok, I am going to assume that you were talking out of your ass after having looked at the API myself.
<baweaver> Commented
b00stfr3ak has quit [Ping timeout: 256 seconds]
jobewan has quit [Quit: Leaving]
Azure has joined #ruby
<baweaver> but yes, classes or structs
<baweaver> making a second comment
<Duckily> Mon_Ouie: the keys won’t be 0 and 1 when i convert to json though
djbkd has joined #ruby
<eam> >> require 'json'; h={};h[h]=h; h.to_json
<Mon_Robot> eam: => (https://eval.in:443/171131)
davedev2_ has joined #ruby
<Duckily> eam: to me?
gheegh has quit [Ping timeout: 249 seconds]
<eam> no json?
<havenn> jdoles: assume away, sounds like you have mechanize mastered
<Duckily> eam: was that comment to me?
* havenn bows
Hobogrammer has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
tomblomfield has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> I'd look into Virtus for more advanced serialization though. OpenStruct is just a fast hack for it.
davedev2_ has joined #ruby
<robscormack> being this the first time I'm here, I'm happy that i'm not thaaat lost. I thought I was going to find more complex questions
davedev24_ has quit [Read error: Connection reset by peer]
<robscormack> thank you everyone, I'm off!
<baweaver> Then Valor to take a JSON response and get you the virtus classes without having to bother: https://github.com/baweaver/valor
moritzs has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
dblessing has quit [Quit: dblessing]
blasius has quit [Remote host closed the connection]
rebelshrug has joined #ruby
mikeg has joined #ruby
benlieb has joined #ruby
Atrumx has quit [Quit: exit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
Vivekananda has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
<Mon_Ouie> eam: eval-in cant load C extensions
sailias1 has quit [Quit: Leaving.]
MartynKeigher has quit [Remote host closed the connection]
<shevy> but Mon_Robot can!
<havenn> ha
<shevy> he is the upgraded version
wombo has joined #ruby
<havenn> Mon_Ouie: Working on anything these days you can talk about? Anything interesting?
axl_ has quit [Quit: axl_]
Olipro has quit [Read error: Connection reset by peer]
<Mon_Ouie> Nothing special, no
djbkd has joined #ruby
<shevy> he used to have his graphical thingy
<shevy> Mon_Draw
<shevy> or was it Mon_Dieu
lw has joined #ruby
mikeg has quit [Remote host closed the connection]
<Mon_Ouie> Oh, you mean ray? :p
Elhu has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
<shevy> ah, ray
DeanH has joined #ruby
<shevy> yeah
<shevy> that's what you were famous for before
<shevy> and now you are famous for Mon_Robot as well
TripTastic has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
apeiros has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
axl_ has joined #ruby
<benzrf> Mon_Robot: usp
<benzrf> *sup
<benzrf> !version
apeiros has joined #ruby
<benzrf> lame
jbckmn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> that's not a version benzrf
<shevy> 1.0.6
<shevy> that might be a version
baweaver has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 255 seconds]
Sgeo has joined #ruby
Kricir has joined #ruby
havenn has quit [Remote host closed the connection]
Shidash has joined #ruby
Olipro has joined #ruby
jaimef has quit [Excess Flood]
jaimef has joined #ruby
mikepack has quit [Remote host closed the connection]
dbasch has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
renderful has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 255 seconds]
soulcake has joined #ruby
dbasch has quit [Client Quit]
jdj_dk has quit [Remote host closed the connection]
xybre has joined #ruby
j_mcnally has quit [Quit: さよなら]
yokel has joined #ruby
j_mcnally_ has joined #ruby
johnmolina has quit []
roolo has quit [Quit: Leaving...]
nowthatsamatt has quit [Quit: nowthatsamatt]
axl_ has quit [Quit: axl_]
j_mcnally_ has quit [Quit: ZNC - http://znc.in]
j_mcnally has joined #ruby
dh64 has joined #ruby
renderful has joined #ruby
Bira has joined #ruby
djbkd has joined #ruby
Bira has quit [Ping timeout: 256 seconds]
j_mcnally_ has joined #ruby
banjara has joined #ruby
andrewlio has quit [Quit: Leaving.]
jheg_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
AlexBlomCOM has quit [Ping timeout: 256 seconds]
j_mcnally has quit [Remote host closed the connection]
escues has quit [Quit: escues]
sambao21 has quit [Quit: Computer has gone to sleep.]
riotjones has joined #ruby
j_mcnally has joined #ruby
NinoScript has quit [Ping timeout: 272 seconds]
shevy has quit [Quit: ""]
djbkd has quit [Remote host closed the connection]
namxam has quit [Remote host closed the connection]
djbkd has joined #ruby
NinoScript has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<sam113101> >> "\n" =~ /^>.*$/
<Mon_Robot> sam113101: => nil (https://eval.in:443/171138)
icarus_ has joined #ruby
lw has quit [Quit: s]
<sam113101> how do I print a string with special characters being escaped?
<sam113101> >> "\n"
<Mon_Robot> sam113101: => "\n" (https://eval.in:443/171139)
<sam113101> >> "\n".to_s
<Mon_Robot> sam113101: => "\n" (https://eval.in:443/171140)
<sam113101> >> "\n".inspect
<Mon_Robot> sam113101: => "\"\\n\"" (https://eval.in:443/171141)
<sam113101> aaaww shit I found my bug
AntelopeSalad has quit [Read error: Connection reset by peer]
AntelopeSalad has joined #ruby
jlovick has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
fgo has joined #ruby
<wallerdev> 211213123123123123123+
yfeldblum has quit [Remote host closed the connection]
<robscormack> the same bug?
<sam113101> robscormack: the $ in the regex is not including \r as part of the "end of the line", so I get /r in the substitution
tylersmith has quit [Ping timeout: 245 seconds]
<sam113101> which appears as a newline in my browser
<sam113101> (  ;____;)
phantomtiger has quit [Quit: phantomtiger]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 250 seconds]
Kricir has quit [Remote host closed the connection]
<robscormack> do you have a hammer? I asked for \r\n at a certain time just because I had a hunch...
MCDev has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
senayar has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
senayar has joined #ruby
<sam113101> well you did ask me if I was on windows
mjuszcza1 has quit [Quit: leaving]
<sam113101> not sure why firefox is sending \r\n newlines?
<sam113101> I'm on fedora
mjuszczak has joined #ruby
tylersmith has joined #ruby
<eam> \r\n is the standard newline separator for internet protocols
frankle has quit [Quit: Connection closed for inactivity]
johnmolina has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<eam> http uses \r\n, for example
bMalum__ has joined #ruby
djbkd has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
<sam113101> well I know it uses \r\n for the http headers
blasius has joined #ruby
<sam113101> but didn't know about the content
lmickh has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has joined #ruby
_djbkd has joined #ruby
thumpba has quit [Ping timeout: 255 seconds]
Bira has joined #ruby
thams has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
bMalum__ has quit [Ping timeout: 264 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freezey has quit [Remote host closed the connection]
<NCS_One> with an hash like "myhash[[0, 0]]" how do I itenerate through the rows and then through the cols of that current row?
renderfu_ has joined #ruby
dbasch has joined #ruby
banister has joined #ruby
Bira has quit [Ping timeout: 264 seconds]
weems|nix has quit [Quit: Leaving]
LiohAu has quit [Quit: LiohAu]
weems|nix has joined #ruby
<Karunamon> So here's a completely for-funsies question. Say I've got a hash, and I want to populate an array with stringified versions of them. Right now, I can do this by setting up an array, and then doing .keys.each {|k| ary << k.to_s}
renderful has quit [Ping timeout: 240 seconds]
<Karunamon> seems like that's one step too many, though.
mercwithamouth has joined #ruby
Photism has joined #ruby
<Karunamon> err, stringified versions of the hash keys, that is.
mary5030 has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
<gzl> Karunamon: hash.keys.map(&:to_s)
narcan has joined #ruby
<Karunamon> Huh, that was even shorter than I thought it was going to be. Does the & work in this case because Symbols can be turned into procs?
blackmesa has quit [Ping timeout: 264 seconds]
kyb3r_ has joined #ruby
<benzrf> Karunamon: yep
<benzrf> Karunamon: something like:
<benzrf> class Symbol
<benzrf> def to_proc
<benzrf> proc {|o, *args| o.send self, *args}
<benzrf> end
<benzrf> end
namxam has joined #ruby
brandonshowers has joined #ruby
<Karunamon> and self in this case would be each individual symbol. Bloody clever!
<benzrf> :-)
<Karunamon> thanks much :)
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
<rubyonrailed> Why is this happeing? https://gist.github.com/anonymous/82b51b1bc7f23a56e7d4
namxam has quit [Read error: Connection reset by peer]
<Karunamon> rubyonrailed: Resolv isn't in the namespace of your code
wjimenez5271 has quit [Read error: Connection reset by peer]
<robscormack> where is Resolv defined?
<robscormack> rubyonrailed, ^
bradleyprice has quit [Remote host closed the connection]
<rubyonrailed> I thought it was built in :{
bradleyprice has joined #ruby
lw has joined #ruby
<Karunamon> Actually wait, is this an old ruby? I might be wrong here but.. yeah, isn't that a builtin as of 1.9.something)
<rubyonrailed> i'm using 1.8.7
<Karunamon> 2.1, works for me as soon as I do a `require 'resolv'`
wjimenez5271 has joined #ruby
<rubyonrailed> thanks
<rubyonrailed> just had ot require it
* Karunamon is still a little unclear on what parts of the standard lib need to be required and which are there by default
terrellt has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
terrellt has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
bradleyprice has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
Fusl has quit [Quit: Contact: http://hallowe.lt/]
skysploit has joined #ruby
skysploit has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
snath has quit [Ping timeout: 245 seconds]
lazyguru has quit [Ping timeout: 250 seconds]
<robscormack> Karunamon, it's specified on the API: http://www.ruby-doc.org/stdlib-2.1.2/libdoc/resolv/rdoc/Resolv.html doesn't say anything about being built-in
lw has quit [Quit: s]
thumpba has joined #ruby
tylersmith has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
baweaver has joined #ruby
udoprog1 has quit [Ping timeout: 264 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hobodave has quit [Ping timeout: 260 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
johnmolina has quit []
MZAWeb has joined #ruby
hackeron has quit [Ping timeout: 245 seconds]
Neomex__ has quit [Quit: Leaving]
NCS_One has quit [Quit: leaving]
renderfu_ has quit [Remote host closed the connection]
Kricir has joined #ruby
jaequery has joined #ruby
Soda has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
dik_dak has joined #ruby
mehlah_ is now known as mehlah
yfeldblum has joined #ruby
lethan has joined #ruby
matchaw has quit [Ping timeout: 260 seconds]
danman has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jaequery has quit [Ping timeout: 250 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
Zenigor has joined #ruby
dbasch has quit [Quit: dbasch]
reset has quit [Quit: Leaving...]
reset has joined #ruby
britneywright has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Quit: Leaving...]
matchaw has joined #ruby
terrellt has quit [Ping timeout: 260 seconds]
Atrumx has joined #ruby
vifino has joined #ruby
lw has joined #ruby
reset has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 240 seconds]
cuqa has joined #ruby
cuqa has quit [K-Lined]
<vifino> How can I embed a variable into regex?
inside has joined #ruby
diegoviola has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
SilkFox_ has joined #ruby
startupality has joined #ruby
terrellt has joined #ruby
<gr33n7007h> vifino, #{}
Kricir has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
<vifino> Yeah
phoo1234567 has quit [Quit: Leaving]
<vifino> I got it working now, the reason it wasnt was because it wasnt escaped right
<vifino> Thanks!
vifino has quit [Quit: Ze Cat now leaves...]
j_mcnally_ has quit [Ping timeout: 255 seconds]
dik_dak has quit [Ping timeout: 255 seconds]
Zebroid has quit [Remote host closed the connection]
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox has joined #ruby
Bira has joined #ruby
kevind has quit [Quit: kevind]
troulouliou_dev has quit [Quit: Leaving]
nowthatsamatt has joined #ruby
serb has joined #ruby
<serb> hello
<serb> can i ask some questions regarding ruby on rails here
<mostlybadfly> hi guys, say i have the following: arry = [[1, "test", 4], [2, "hello", 5]] . what i want to do is change this so that the 3rd element in the inner array is sorted in descending order so arry.sort_by { |x| x[2] }.reverse
<wallerdev> you can but might get more help in #rubyonrails
<serb> ok thx
<mostlybadfly> what is the most appropriate way to change arry to just become the new sort?
Bira has quit [Ping timeout: 240 seconds]
matchaw_ has joined #ruby
<mostlybadfly> would i do arry = arry.sort_by { |x| x[2] }.reverse ?
mike32 has quit [Ping timeout: 264 seconds]
<wallerdev> sure
<sam113101> or use the ! versions
<wallerdev> i dont usually use the ! at all
maestrojed has quit [Quit: Computer has gone to sleep.]
<mostlybadfly> i saw you can do reverse! but that doesn't seem to do anything
<wallerdev> imagine someone passed in an array to your method
<wallerdev> and they use that array later
<wallerdev> youve changed what they use with teh ! methods
ixti has quit [Quit: WeeChat 0.4.3]
MCDev has joined #ruby
<sam113101> wallerdev: sometimes that's what you want
<wallerdev> just leads to unexpecteed behavior sometimes
<sam113101> you can create a duplicate if you want
<wallerdev> its usually not what you expect
<wallerdev> and if your method does that you might as well add a ! to it as well
<wallerdev> to warn people
<rubyonrailed> So, i'm writing a script to find the webhosts of all of my accounts. its in ruby 1.8.7. The problem is that it gets an error if the website doesn't exist anymore. How can I ignore the ones that don't exist? https://gist.github.com/anonymous/b1c8bd21cf3ec79d13dd
<mostlybadfly> looks like it works if you do sort_by! and reverse! both at once
<mostlybadfly> but that seems dumb
<mostlybadfly> but either individually doesn't remap
matchaw has quit [Ping timeout: 272 seconds]
<wallerdev> just assign it back
<mostlybadfly> in this case it's ok because it'll always be a ranking based on the last element
<wallerdev> theyre not the same thing anyway
<mostlybadfly> but i think i'll do my method
<wallerdev> one changes the passed in object, one assigns the result to a variable locally
<mostlybadfly> arry = arry.sort_by { |x| x[2] }.reverse
<mostlybadfly> ah i see
Deele has quit [Ping timeout: 250 seconds]
<mostlybadfly> well what i'm saying is that arry itself doesn't change unless i do it like this :
<mostlybadfly> arry.sort_by! { |x| x[2] }.reverse!
nateberkopec has joined #ruby
<mostlybadfly> doing ! on one or the other doesn't change the final result for me
dik_dak has joined #ruby
<wallerdev> right, but people dont exepect things to be changed when passed into a method, they expect the result of the method to come in the return value
<wallerdev> like if you had amethod to combine two arrays, you might do ary1 = [1, 2, 3]; ary2 = [4, 5, 6]; result = combine(ary1, ary2)
<wallerdev> at that point youd expect ary1 to still be [1, 2, 3]
<mostlybadfly> yeah true
<wallerdev> but if they used the ! methods, ary1 would be [1, 2, 3, 4, 5, 6] possibly
<wallerdev> or []
<chamblin> arry.sort_by{|x| -x[2]} ?
<mostlybadfly> i guess i was more curious about changing it in one fell swoop
<mostlybadfly> but the more i think about it i dont like doing that
<wallerdev> chamblin has a good suggestion for a shorter version
<lagweezle> rubyforge is dead-ish ?
<mostlybadfly> nice thanks chamblin
<mostlybadfly> wallerdev: i'm just going to reassign it, so when you read it you can see what i'm doing
<mostlybadfly> arry = arry.sort_by { |x| x[2] }.reverse
<wallerdev> sounds good
<mostlybadfly> i prefer that anyway, i just wanted to make sure it wasn't dumb lol
dik_dak has quit [Client Quit]
<mostlybadfly> thanks guys :)
<chamblin> yeah, i think your way is much clearer.
yfeldblum has quit [Remote host closed the connection]
<mostlybadfly> ah the beauty of ruby love that variation chamblin
edgarjs is now known as edgarjs_afk
yfeldblum has joined #ruby
Deele has joined #ruby
j_mcnally_ has joined #ruby
sixxy has joined #ruby