<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]
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]
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]
<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]
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]
<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]]
<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]
<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.
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…]
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. :/
<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?
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]
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]
<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.
<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…]
<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)
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!
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>
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