apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
NeilCarvalho has joined #ruby
nomenkun has joined #ruby
vasilakisFiL has quit [Remote host closed the connection]
erikgj has quit [Quit: erikgj]
zeromodulus has quit [Ping timeout: 240 seconds]
atno has quit [Ping timeout: 246 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
Michael__ has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: Leaving]
Michael__ has joined #ruby
Soliah has joined #ruby
jimg has joined #ruby
nycjv321 has quit [Ping timeout: 246 seconds]
zets2 has joined #ruby
julweber has quit [Remote host closed the connection]
ericmathison has joined #ruby
zets has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
Michael__ has quit [Read error: Connection reset by peer]
ashleyis has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
dodosan has quit [Remote host closed the connection]
arya_ has joined #ruby
lewix has joined #ruby
twoism has quit [Remote host closed the connection]
erikgj has joined #ruby
atno has joined #ruby
zeromodulus has joined #ruby
hogeo has joined #ruby
dragonfist has joined #ruby
Slick` has joined #ruby
viszu has joined #ruby
Slick` has quit [Killed (idoru (Spam is off topic on freenode.))]
erikgj has quit [Ping timeout: 240 seconds]
<bnagy> la la la look at us being active
<bnagy> chat chat chat OH DID YOU SEE THAT EPISODE OF ARCHER
Michael__ has joined #ruby
rickmasta has quit [Quit: Leaving...]
wsterling has joined #ruby
jefflyne has joined #ruby
rickmasta has joined #ruby
GeissT has joined #ruby
nomenkun has joined #ruby
hamakn has quit [Remote host closed the connection]
gstamp has quit [Read error: Connection reset by peer]
<CaptainJet> shhh I'm busy watching people join and quit
cofin has quit [Quit: cofin]
<CaptainJet> look there was another!
v0n has joined #ruby
nomenkun has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
gstamp has joined #ruby
EricKamsky has quit [Quit: EricKamsky]
classix_ is now known as classix
DonRichie has quit [Ping timeout: 276 seconds]
DonRichie has joined #ruby
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
wsterling has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
gstamp has joined #ruby
gstamp has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
moos3 has joined #ruby
julweber has joined #ruby
queston has joined #ruby
<Columcille> CaptainJet: amateur.
gstamp has joined #ruby
reset has quit [Quit: Leaving...]
ntus1017 has quit [Remote host closed the connection]
queston has quit [Ping timeout: 268 seconds]
freerobby has quit [Quit: Leaving.]
hamakn has joined #ruby
alainus is now known as alainus[-_-]
nari has quit [Ping timeout: 276 seconds]
julweber has quit [Ping timeout: 256 seconds]
sepp2k1 has quit [Quit: Leaving.]
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
kvodlecks is now known as Quadlex
queston has joined #ruby
paissad_ has quit [Quit: This computer has gone to sleep]
hamakn has quit [Ping timeout: 276 seconds]
CaptainJet has quit []
paissad has joined #ruby
alainus[-_-] is now known as alainus
gildo has joined #ruby
hamakn has joined #ruby
nomenkun has joined #ruby
AndroUser has joined #ruby
freerobby has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
hamakn has quit [Ping timeout: 268 seconds]
MHI has joined #ruby
AndroUser has quit [Read error: Connection reset by peer]
ehaliewicz has joined #ruby
Kruppe has joined #ruby
codesoda_ has joined #ruby
nari has joined #ruby
fomatin has joined #ruby
codesoda has quit [Ping timeout: 260 seconds]
redgirl has quit [Quit: This computer has gone to sleep]
sevenseacat1 has joined #ruby
airtonix_ has joined #ruby
n1p2 has joined #ruby
erikgj has joined #ruby
airtonix has quit [Ping timeout: 246 seconds]
<n1p2> Hello
<n1p2> I have a question .. I am using ruby on rails tutorial (second edition)
<n1p2> Should i install ruby version 1.9 as mentioned in the book
<n1p2> Or do ruby 2.0 will do all the job ?
n1p2 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
erikgj has quit [Ping timeout: 246 seconds]
gstamp has joined #ruby
<Columcille> I'm still a nub, but from what I understand the difference between 1.9 and 2.0 are not major so I'd say 2.0
lys has joined #ruby
emmanuelux has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
matematikaadit has quit [Quit: Leaving]
Tobarja has left #ruby ["PING 1373247137"]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<bnagy> you should ask in #rubyonrails
<bnagy> for general ruby stuff I'd say 2.0 but rails ecosystem has a ton of hoopy shit
<popl> not in the HGTTG sense of the word
airtonix_ has quit [Remote host closed the connection]
sahil has joined #ruby
viszu has joined #ruby
airtonix has joined #ruby
nomenkun has joined #ruby
vlad_starkov has joined #ruby
Domon has joined #ruby
codelurker has joined #ruby
Levin_22 has joined #ruby
hamakn has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
codelurker has quit [Client Quit]
Zeeraw has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 260 seconds]
sevenseacat1 is now known as sevenseacat
ttt has joined #ruby
codesoda_ is now known as codesoda
bubblehead has joined #ruby
Anarch has quit [Ping timeout: 264 seconds]
jmsbrwr has quit [Quit: Leaving]
huoxito has joined #ruby
Zeeraw has joined #ruby
brennanMKE has quit [Remote host closed the connection]
Kabaka has quit [Ping timeout: 240 seconds]
rickmasta has quit [Quit: Leaving...]
kevinykchan has quit [Quit: Computer has gone to sleep.]
blischalk has joined #ruby
jalcine has quit [Excess Flood]
arya__ has joined #ruby
CaptainJet has joined #ruby
CaptainJet has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
Mars` has joined #ruby
iamjarvo has joined #ruby
Guest33512 has joined #ruby
ILoveYou[ has joined #ruby
arya_ has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
ILoveYou has quit [Ping timeout: 276 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Anarch has joined #ruby
ILoveYou[ has quit [Read error: Connection reset by peer]
viszu has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 256 seconds]
splittingred has joined #ruby
Anarch has quit [Client Quit]
niklasb has quit [Ping timeout: 256 seconds]
ILoveYou has joined #ruby
Anarch has joined #ruby
Guest33512 is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
jds has quit [Ping timeout: 240 seconds]
cads has joined #ruby
Kabaka has joined #ruby
Devo has joined #ruby
nycjv321 has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.1]
ILoveYou has quit [Read error: Connection reset by peer]
matematikaadit has joined #ruby
ILoveYou has joined #ruby
cofin has joined #ruby
cburyta has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 248 seconds]
bigkm has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
queston has quit [Remote host closed the connection]
ILoveYou has quit [Read error: Connection reset by peer]
robustus has joined #ruby
ILoveYou has joined #ruby
matematikaadit has quit [Quit: Leaving]
jonahR has joined #ruby
matematikaadit has joined #ruby
nfk has quit [Ping timeout: 264 seconds]
brennanMKE has joined #ruby
thecreators has joined #ruby
Wesley has joined #ruby
queston has joined #ruby
Wesley is now known as Guest26120
buzzybron has joined #ruby
Devo has quit [Quit: Devo]
<buzzybron> where should attribute accessors be placed in the class? end of it or in the initalize method?
Mars` has quit [Ping timeout: 256 seconds]
gstamp has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 246 seconds]
vivmbbs has joined #ruby
v0n has quit [Read error: Connection reset by peer]
Guest26120 has quit [Quit: Page closed]
machuga is now known as machuga|away
reset has joined #ruby
jds has joined #ruby
wsterling has joined #ruby
iamjarvo has quit [Quit: Leaving.]
nycjv321 has quit [Ping timeout: 246 seconds]
<bnagy> anywhere in the class body, but traditionally near the top
nomenkun has joined #ruby
Astral_ has quit [Ping timeout: 256 seconds]
gstamp has joined #ruby
wsterling has quit [Ping timeout: 260 seconds]
<alainus> I'm using Sequel to make some queries, and my script is freezing at some point. I've checked that the method used is correct in irb. Any suggestions on how to debug that ?
bubblehead has quit [Remote host closed the connection]
radic__ has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
bubblehead has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
ILoveYou has quit [Read error: Connection reset by peer]
<popl> alainus: freezing?
Astralum has joined #ruby
<popl> do you know where it's freezing?
freeayu has joined #ruby
ILoveYou has joined #ruby
<alainus> popl. Yes, I'm making an update statement: @usuarios.update(:usu_email => Sequel.function(:REPLACE, :usu_email, o, r))
<alainus> it just stays there.
radic_ has quit [Ping timeout: 256 seconds]
<alainus> I started the script with rdebug and does the same. Doesn't get past that line.
<bnagy> freezing comes in two flavours, looping and blocking
echevemaster has joined #ruby
<bnagy> if it's using a full core then it's looping, if it's using 0 then it's blocking
<alainus> I'm getting this in the trace: usuarios.update(:usu_email => Sequel.function(:REPLACE, :usu_email, o, r))
<alainus> and from ./script.rb:104:in `block in <main>'
<alainus> could that be it ?
<alainus> sorry, bad paste on the first one.
<bnagy> uh
NeilCarvalho has quit [Quit: NeilCarvalho]
<bnagy> that just looks like an exception
<alainus> from /home/alainus/.rvm/gems/ruby-head/gems/sequel-4.0.0/lib/sequel/adapters/mysql2.rb:75:in `block in _execute'
<alainus> that's it.
<alainus> oh.
<alainus> Any idea how to debug it?
<bnagy> wait is this running standalone or what? usually if it starts throwing exceptions stuff will blow up
<bnagy> if it's running inside some web crap then I have nfi
<bnagy> but if you can pull it out and run it standalone then we might get somewhere
blischalk has quit [Read error: Operation timed out]
<alainus> nope, it's just an .rb script
<alainus> standalone
bubblehead has quit [Read error: Connection reset by peer]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<bnagy> so what's ouputting this exception info?
bubblehead has joined #ruby
<bnagy> I think you're going to have to gist some code
<alainus> I think I got something here with the debugger, tell me if it tells you something, and If not, I'll gist the code for you: http://i.imgur.com/xdOkHT5.png
<popl> :|
twoism has joined #ruby
<bnagy> not really
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
<bnagy> I imagine your replace function is wrong somehow, but it's hard to say
cofin has quit [Quit: cofin]
<bnagy> anyway whatever is outputting that exception - just change it to dump $@ as well - that's the full exception stack
<alainus> The thing is that if I put that complete statement with replace_sql on irb, and then copy that output to the database, and works 100%
<alainus> maybe Sequel is having some kind of short-circuit because I'm using the variables o, and r there ?
<alainus> perhaps I should use Sequel.lit, or something.
<alainus> How do I do that about $@ ?
<bnagy> I don't know, because you haven't gisted any code
<bnagy> so this isn't really going anywhere at the moment
<alainus> I'll get that inmediately
Zeeraw has joined #ruby
Zeeraw has quit [Client Quit]
blischalk has joined #ruby
banjara1 has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
CaptainJet has joined #ruby
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
Zeeraw has joined #ruby
banjara has joined #ruby
<alainus> What else should I send you
<alainus> ?
browndawg has joined #ruby
rickmasta has joined #ruby
<bnagy> ok forget it, fix it yourself
<bnagy> 'the code' is not like some of the code, or 'the bit I think might be wrong'
<bnagy> anyway I got shit to do
<alainus> ok, thanks anyway
<alainus> that's all the code anyway
NeilCarvalho has joined #ruby
<bnagy> no it's not
<alainus> forgive me for changing the password and variable names from spanish to english ...
NeilCarvalho has quit [Client Quit]
<bnagy> dude @fake_emails isn't even defined, that would exit immediately
<alainus> it's the same variable
<alainus> I just simplified the code for you
<zendeavor> that isn't helpful
fomatin has quit [Quit: Computer has gone to sleep.]
<zendeavor> censoring sensitive data is okay, "simplifying code" that you don't understand doesn't do anyone any favours
<zendeavor> (ignoring that sensitive data doesn't belong in plaintext in the first place)
nomenkun has joined #ruby
<alainus> here you go
<alainus> full code
renderful has quit [Remote host closed the connection]
fomatin has joined #ruby
renderful has joined #ruby
<alainus> I did remove parts of the script that are triggered when another slop option is used
<bnagy> yeah and also the whole rescue structure which is ...
<alainus> but those aren't evaluated at any moment, since my problem is with -u
dragonfist has quit [Remote host closed the connection]
serp` has joined #ruby
<alainus> the rescue blocks are intact
<bnagy> what does it output, exactly, before it hangs?
burlyscudd has joined #ruby
rehat has quit [Remote host closed the connection]
<bnagy> I think it's hanging on the disconnect, btw
<alainus> it does the "puts o" successfully
<alainus> probably
burlyscudd has quit [Client Quit]
<alainus> but if I use the SQL literally, like this:
<alainus> DB["UPDATE usuario SET usu_email REPLACE(usu_email, ?, ?)", o, r]
nomenkun has quit [Ping timeout: 256 seconds]
<alainus> it works perfectly
burlyscudd has joined #ruby
<alainus> I'll even try using DB[@usuarios.update_sql(:usu_email => Sequel.function(:REPLACE, :usu_email, o, r) )]
<bnagy> right, so your Sequel.function is probably wrong
haxrbyte has joined #ruby
<bnagy> see if :usu_email needs to be a string instead of a symbol
blischalk has quit [Ping timeout: 252 seconds]
<alainus> I looked at it on the docs before. Seems fine. Here's on IRB:
<alainus> > puts DB[:usuario].update_sql(:usu_email => Sequel.function(:replace, :usu_email, "string1", "string2"))
<alainus> UPDATE "USUARIO" SET "USU_EMAIL" = replace("USU_EMAIL", 'string1', 'string2')
haxrbyte has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
<bnagy> ok... so use that line instead of the completely different line in your script?
haxrbyte has joined #ruby
<alainus> The only thing different is update_sql isn't it ?
<alainus> maybe I have I typo
<bnagy> update != update_sql and :REPLACE != :replace
<alainus> .update_sql is supposed to just output the sql statement that .update builds, according to the docs
<alainus> so it doesn't work for actually performing the update
<alainus> I'll change the case on replace, though
<alainus> 1 sec.
<alainus> Nope. Still hangs.
swordsmanz has quit [Quit: swordsmanz]
swordsmanz has joined #ruby
<bnagy> and what does it do in irb?
thecreators has quit [Quit: thecreators]
ILoveYou has quit [Read error: Connection reset by peer]
<bnagy> also I'm still confused at to what it outputs before it hangs, because none of those prints look like what you pasted before
<alainus> I changed it for @usuarios.update(:usu_email => "REPLACE(usu_email, #{o}, #{r})" ) and still hangs
<alainus> so it's not the function
<alainus> the only difference with the debug I pasted before was that I was setting the function in a variable func
ILoveYou has joined #ruby
<alainus> Do I rdebug that again and gist you the result ?
<bnagy> no forget rdebug
<bnagy> first, comment out line 78
<bnagy> see if it still hangs
rickmasta has quit [Quit: Leaving...]
<alainus> ok
<bnagy> I mean, it's going to end up being a problem with your update call, it would also be easier to debug this in irb
<bnagy> by trying to make an actual update
<alainus> it does.
<bnagy> instead of looking at what sql it might produce
<alainus> Yeah, I'll do it on irb with a real mysql2 connection this time
<alainus> 1 sec
<alainus> wait, something's wrong with my mysql connection apparently.
<alainus> I tried just doing @usuarios.select(:usu_id).limit(1).all
ILoveYou has quit [Read error: Connection reset by peer]
<alainus> and it hanged
v0n has joined #ruby
ILoveYou has joined #ruby
<alainus> ok I'm getting somewhere now.
v0yager has joined #ruby
<zendeavor> imagine that
<zendeavor> x.x
* zendeavor hides this buffer for sanity
<alainus> :D sorry and thanks
osvico has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<alainus> yeah. doing it in the mysql client also hangs.
<alainus> it's #mysql's problems now
<alainus> bnagy, thanks
cofin has joined #ruby
ILoveYou[ has joined #ruby
troker has joined #ruby
Davey has joined #ruby
<chee> <3
ILoveYou has quit [Ping timeout: 240 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
matematikaadit has quit [Quit: Leaving]
thecreators has joined #ruby
darth_chatri has joined #ruby
freerobby1 has quit [Client Quit]
Davey has quit [Client Quit]
matematikaadit has joined #ruby
vlad_starkov has joined #ruby
nomenkun has joined #ruby
tommyvyo has joined #ruby
jmimi has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
ntus1017 has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
troker has quit [Quit: troker]
mary5030 has joined #ruby
CaptainJet_ has quit [Ping timeout: 268 seconds]
browndawg has left #ruby [#ruby]
materialdesigner has joined #ruby
CaptainJet has joined #ruby
NeilCarvalho has joined #ruby
alainus has left #ruby ["Leaving"]
NeilCarvalho has quit [Client Quit]
Inside has quit [Ping timeout: 252 seconds]
eldariof has joined #ruby
lewix has quit [Ping timeout: 268 seconds]
charliesome has joined #ruby
thecreators has quit [Quit: thecreators]
twoism_ has joined #ruby
Michael__ has quit [Remote host closed the connection]
nomenkun has joined #ruby
Michael__ has joined #ruby
twoism has quit [Ping timeout: 268 seconds]
cofin has quit [Quit: cofin]
gsvolt has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 246 seconds]
julweber has joined #ruby
materialdesigner has quit [Quit: Page closed]
zeromodulus has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 246 seconds]
v0yager has quit [Remote host closed the connection]
Zeeraw has quit [Quit: Computer has gone to sleep.]
Kruppe has quit [Remote host closed the connection]
Liothen has quit []
Davey has joined #ruby
Liothen has joined #ruby
stingeyb has joined #ruby
vivmbbs has quit [Quit: This computer has gone to sleep]
splittingred has quit [Quit: splittingred]
adeponte has joined #ruby
serp` has quit [Quit: serp`]
milardovich has joined #ruby
<milardovich> Hello guys, I have an array of type [[a,b],[a,b]] and I need to order it with the criteria of a/b, I don't know how to explain it
<milardovich> For example, I have [[1,1],[2,1]] then I should do 1/1 and 2/1 and order it with that coeficient
Rolenun has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<milardovich> Is that possible to do it automatically or I need to hard-code it?
agjacome has quit [Quit: leaving]
<milardovich> sevenseacat, thanks, I will take a look at it
<sevenseacat> sort_by even, sort_by { |array| array[0]/array[1] }
gildo has quit [Ping timeout: 268 seconds]
Deele has joined #ruby
yeban has joined #ruby
serp` has joined #ruby
serp` has quit [Client Quit]
darth_chatri has quit [Ping timeout: 240 seconds]
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
darth_chatri has joined #ruby
stingeyb has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
[narcan] has joined #ruby
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
renderful has quit [Remote host closed the connection]
nomenkun has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
v0yager has joined #ruby
bassir has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
pootler has quit [Ping timeout: 240 seconds]
CaptainJet_ has quit []
thebastl has joined #ruby
<bassir> I have an array a and a method a.nextpage that creates another array. How can I create another array b that equals a.nextpage.nextpage + a.nextpage + a, where the number of terms is the number of pages that exist until the nextpage method returns nil.
Jefus has quit [Ping timeout: 268 seconds]
paissad has quit [Quit: This computer has gone to sleep]
tonini has joined #ruby
burlyscudd has quit [Quit: Leaving.]
_seanc_ has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
Guga_ has quit [Quit: ~]
Byllida has joined #ruby
<Byllida> he niggers
<Byllida> hey niggers*
rien has joined #ruby
<Byllida> FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK
Byllida has quit [Killed (idoru (Spam is off topic on freenode.))]
milardovich_ has joined #ruby
optobear has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich_ has quit [Max SendQ exceeded]
milardovich_ has joined #ruby
jeffreyio has joined #ruby
_seanc_ has quit [Quit: _seanc_]
ruslo has joined #ruby
keanehsiao has joined #ruby
ananthakumaran has joined #ruby
tomzx_ has joined #ruby
<keanehsiao> hi. guys... asking for ruby string again... I am trying to display ".match(/\d{1,}/)" correctly in string..
eldariof has quit [Ping timeout: 260 seconds]
tomzx_ has quit [Client Quit]
<rien> what are you trying to do?
<keanehsiao> with "\\\"" can display """ correctly in ruby... and how can I display "\" in ruby?? same?? "\\\\"
<rien> keanehsiao: try all combinations
<keanehsiao> rien: just wanna output javascript in string..
<rien> use 'single quotes'
<keanehsiao> rien: I actually tired "\\" "\\\" "\\\\" and non of them work... so I am confusing
<bnagy> >> puts "\\"
<eval-in> bnagy => \ ... (https://eval.in/36755)
thebastl has quit [Remote host closed the connection]
<keanehsiao> bnagy: ok.. let me try again
cj3kim has quit [Remote host closed the connection]
<bnagy> keanehsiao: when you're inspecting the string it will show as "\\", but that's normal
<bnagy> >> "\\".bytesize
<eval-in> bnagy => 1 (https://eval.in/36756)
Mattix has quit [Ping timeout: 240 seconds]
anay has joined #ruby
nbouscal has joined #ruby
blackmesa has joined #ruby
nbouscal has quit [Client Quit]
gstamp has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
Nisstyre has quit [Quit: Leaving]
tomzx_mac has quit [Ping timeout: 246 seconds]
matematikaadit has quit [Quit: Leaving]
fridim_ has quit [Read error: Operation timed out]
Astralum has quit [Ping timeout: 252 seconds]
gstamp has joined #ruby
nomenkun has joined #ruby
tommyvyo has quit [Quit:]
Jefus has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Astralum has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
wookiehangover has quit [Quit: i'm out]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
Guest27539 has joined #ruby
<Guest27539> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0". A modern-day "digital" computer,
<Guest27539> as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
<Guest27539> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0". A modern-day "digital" computer,
<Guest27539> as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
<Guest27539> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0". A modern-day "digital" computer,
Guest27539 has quit [Killed (idoru (Spam is off topic on freenode.))]
CaptainJet has joined #ruby
Guest27539 has joined #ruby
wookiehangover has joined #ruby
Quadlex is now known as AwayLex
Astralum has quit [Ping timeout: 268 seconds]
<Guest27539> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0". A modern-day "digital" computer,
<Guest27539> as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
Guest27539 has quit [K-Lined]
lethjakman has joined #ruby
Astralum has joined #ruby
rickmasta has joined #ruby
codesoda has quit [Ping timeout: 246 seconds]
lethjakm1 has quit [Ping timeout: 256 seconds]
voglster has quit [Ping timeout: 252 seconds]
codesoda has joined #ruby
freeayu has joined #ruby
<keanehsiao> bnagy: hi.. I tried "\\" and it's work... and what if I wanna display it correctly after eval?? for example : eval("\"12345\\\\6 \"") and I want it display as "12345\6"
ruslo has left #ruby ["Leaving"]
<bnagy> keanehsiao: irb is an awesome tool, you should try it
<bnagy> >> puts eval("\"12345\\\\6 \"")
<eval-in> bnagy => 12345\6 ... (https://eval.in/36762)
valta has joined #ruby
<valta> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
<keanehsiao> bnagy: ok.. let me try it
gstamp has quit [Read error: Connection reset by peer]
<joelteon> man i love spammers
<valta> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
<joelteon> he's sure showing us
<valta> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
valta has quit [Killed (idoru (Spam is off topic on freenode.))]
<keanehsiao> spammers.. you are so cool
apeiros_ has quit [Remote host closed the connection]
jazar_ has joined #ruby
<jazar_> A modern-day "digital" computer, as opposed to an older "analog" computer, operates on the principle of two possible states of something – "on" and "off". This directly corresponds to there either being an electrical current present, or said electrical current being absent. The "on" state is assigned the value "1", while the "off" state is assigned the value "0".
jazar_ has quit [Killed (idoru (Spam is off topic on freenode.))]
hans has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<hans> fuckig scummy little shitbags.
hans has quit [Killed (idoru (Spam is off topic on freenode.))]
bassir has quit [Quit: bassir]
bondar has quit []
gstamp has joined #ruby
Jefus has quit [Ping timeout: 246 seconds]
<bnagy> this is now nazi germany started
<bnagy> death to all spammers
brennanMKE has joined #ruby
<bnagy> it's worse than rape, really
<joelteon> that's a pretty dumb/offensive assumption
<joelteon> or a bad joke
jmimi has quit [Ping timeout: 276 seconds]
ecart has joined #ruby
<bnagy> I was suggesting that hans might have been overreacting
<joelteon> oh, good
timonv has joined #ruby
ehaliewicz has quit [Read error: Connection reset by peer]
<bnagy> like they didn't even have IRC in the late 30s
saarinen has joined #ruby
lovio has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 246 seconds]
MrZYX|off is now known as MrZYX
_seanc_ has joined #ruby
reset has quit [Ping timeout: 256 seconds]
timonv has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
timonv has joined #ruby
wallerdev has quit [Quit: wallerdev]
tagrudev has joined #ruby
nomenkun has joined #ruby
rickmasta has quit [Quit: Leaving...]
adeponte has quit [Remote host closed the connection]
thebastl has joined #ruby
jmimi has joined #ruby
cj3kim has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
thebastl has quit [Remote host closed the connection]
thebastl has joined #ruby
saarinen has quit [Quit: saarinen]
Sp4rKy is now known as Sp4rKy_
Sp4rKy_ is now known as Sp4rKy
ecart has left #ruby ["[CyberScript]"]
Mendon has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
renderful has joined #ruby
Zeeraw has joined #ruby
codecop has joined #ruby
zets2 has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
saarinen has joined #ruby
darth_chatri1 has joined #ruby
pkrnj has joined #ruby
fgo has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
darth_chatri has quit [Disconnected by services]
darth_chatri1 is now known as darth_chatri
timonv has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
kris_ has joined #ruby
swordsmanz has quit [Read error: Operation timed out]
kris_ is now known as Guest58165
marcdel has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
poseid has joined #ruby
pootler has joined #ruby
nomenkun has joined #ruby
legend has joined #ruby
legend is now known as Guest68814
DanKnox is now known as DanKnox_away
sumark_ is now known as sumark
tonini has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
ssvo has quit [Ping timeout: 240 seconds]
Guest68814 is now known as lewis
staafl_alt has joined #ruby
r0bby has joined #ruby
Levin_22 has quit []
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
codesoda has quit [Remote host closed the connection]
Kabaka has quit [Ping timeout: 240 seconds]
poseid has quit [Quit: poseid]
paissad has joined #ruby
dhruvasagar has joined #ruby
adeponte has joined #ruby
AlHafoudh has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
darth_chatri1 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
Kabaka has joined #ruby
gstamp has quit [Read error: Connection reset by peer]
darth_chatri has quit [Ping timeout: 240 seconds]
banghouse has quit [Remote host closed the connection]
dinnertime has joined #ruby
luckyruby has joined #ruby
staafl_123 has joined #ruby
gstamp has joined #ruby
rickmasta has joined #ruby
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
ayaz has joined #ruby
saarinen has quit [Quit: saarinen]
gstamp has quit [Read error: Connection reset by peer]
adeponte has quit [Ping timeout: 268 seconds]
tonini has joined #ruby
staafl_alt has quit [Ping timeout: 260 seconds]
darth_chatri has joined #ruby
darth_chatri1 has quit [Ping timeout: 240 seconds]
r0bby_ has joined #ruby
julweber has joined #ruby
banjara has quit [Ping timeout: 276 seconds]
darth_chatri1 has joined #ruby
lovio has quit [Quit: Page closed]
pranny has joined #ruby
renderful has joined #ruby
ffio_ has joined #ruby
banjara has joined #ruby
gstamp has joined #ruby
darth_chatri has quit [Ping timeout: 246 seconds]
girija has joined #ruby
ffio has quit [Ping timeout: 240 seconds]
r0bby has quit [Ping timeout: 240 seconds]
k610 has joined #ruby
takezawa has quit [Read error: Connection reset by peer]
takezawa has joined #ruby
JohnBat26 has joined #ruby
adeponte has joined #ruby
Guest58165 has quit [Quit: Page closed]
dash_ has joined #ruby
workmad3 has quit [Read error: Operation timed out]
brennanMKE has joined #ruby
oceanbreeze has joined #ruby
banjara1 has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
axeman- has quit [Remote host closed the connection]
zz_jinie is now known as jinie
bubbajones has quit [Ping timeout: 252 seconds]
axeman- has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
r0bby_ has quit [Ping timeout: 246 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
jprovazn has joined #ruby
vlad_starkov has joined #ruby
axeman- has quit [Remote host closed the connection]
Davey has joined #ruby
axeman- has joined #ruby
bubbajones has joined #ruby
tvw has joined #ruby
vlad_sta_ has joined #ruby
adeponte has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 268 seconds]
bigkevmcd has joined #ruby
axeman- has quit [Ping timeout: 240 seconds]
MrZYX is now known as MrZYX|off
thebastl_ has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jinie is now known as zz_jinie
renderful has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
v0yager has quit [Remote host closed the connection]
thebastl has quit [Ping timeout: 260 seconds]
jds has quit [Remote host closed the connection]
rien has quit [Quit: leaving]
jds has joined #ruby
Brando753 has joined #ruby
v0yager has joined #ruby
anay has quit [Remote host closed the connection]
anay has joined #ruby
dinnertime is now known as LemurCharlie
anay has quit [Ping timeout: 246 seconds]
alup has joined #ruby
twoism_ has quit [Ping timeout: 256 seconds]
LemurCharlie is now known as dinnertime
dodosan has joined #ruby
tonini has quit [Remote host closed the connection]
cads has quit [Quit: Leaving]
anay has joined #ruby
cads has joined #ruby
filipe has joined #ruby
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
threesome has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
emergion has joined #ruby
k610 has quit [Quit: Leaving]
elentras has joined #ruby
mist has quit [Quit: leaving]
fgo has quit [Remote host closed the connection]
brianpWins has joined #ruby
julweber has quit [Remote host closed the connection]
axeman- has joined #ruby
axeman- has quit [Remote host closed the connection]
Zeeraw has joined #ruby
adeponte has joined #ruby
pootler has quit [Ping timeout: 268 seconds]
buibex has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
anay has quit [Remote host closed the connection]
anay has joined #ruby
tonini has joined #ruby
mrmist has joined #ruby
anay has quit [Read error: Connection reset by peer]
anay has joined #ruby
mrmist is now known as mist
TIJ has joined #ruby
jbpros has joined #ruby
romockee has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
_adeponte has joined #ruby
dinnertime has quit [Quit: Leaving]
lewis has quit [Remote host closed the connection]
ephemerian has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
senayar has joined #ruby
noop has joined #ruby
Ortuna has quit [Ping timeout: 252 seconds]
anay has quit [Ping timeout: 268 seconds]
persand has joined #ruby
anay has joined #ruby
axeman- has joined #ruby
marr has joined #ruby
v0yager has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
dawkirst_ is now known as dawkirst
axeman- has quit [Remote host closed the connection]
dawkirst has quit [Quit: Leaving]
maxmanders has joined #ruby
icecandy has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
_adeponte has quit [Remote host closed the connection]
optobear has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
goshakkk has joined #ruby
milardovich_ has quit [Quit: Leaving]
matematikaadit has joined #ruby
Bry8Star{T2 has joined #ruby
julweber has joined #ruby
byprdct has joined #ruby
<maloik> Last friday I made a gem that allows my colleague to use their terminal to do some stuff via our api. Right now their api token goes into a file, but I'd like to handle this better so that only them can see and access the token, and not any other users on the system (if any)
<maloik> where's a good place to store this ?
lethjakman has quit [Ping timeout: 240 seconds]
<rcs> Environment variables are a popular choice.
<maloik> i was thinking of letting the method that gets the token check their env vars, if it's not there read the file and export it
tacos1de has joined #ruby
<maloik> sound about right ?
<rcs> My favorite pattern is explicit in constructor, with fallback to env variables.
<rcs> I don't generally think it should be the responsibility of an api gem to read from a filesystem.
<maloik> rcs: it's not an api gem, down the line we'll use our api wrapper in that gem
<maloik> but it's sole function is to add tools to the command line
<rcs> ah. then yeah. env with file fallback is pretty good.
emergion has joined #ruby
<rcs> You can always set mode 600 on sensitive files.
<maloik> Yep I planned on doing that
<maloik> Going to try and figure out if I can ask for user input when installing the gem so they can set it right there and then
obs has joined #ruby
<rcs> Strongly suggest against that. Informative error messages, a "--init" option to a command, might be a better place.
<rcs> Installs shouldn't require user interaction
nomenkun has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
ybart has joined #ruby
pootler has joined #ruby
timonv has joined #ruby
dawkirst has joined #ruby
mengu has joined #ruby
leonid__ has joined #ruby
lsmola has joined #ruby
Soliah has quit [Quit: Soliah]
tonini has joined #ruby
madb055 has quit [Quit: Konversation terminated!]
arya__ has quit [Ping timeout: 276 seconds]
renderful has joined #ruby
jds has quit [Remote host closed the connection]
jds has joined #ruby
_Andres has joined #ruby
renderful has quit [Read error: Connection reset by peer]
troessner has joined #ruby
renderful has joined #ruby
yashshah has joined #ruby
dodosan has quit [Remote host closed the connection]
TIJ has quit [Ping timeout: 256 seconds]
relix has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bamdad has joined #ruby
jds has quit [Ping timeout: 260 seconds]
shaunbaker has joined #ruby
jonahR has quit [Quit: jonahR]
pwnfactory has joined #ruby
pootler_ has joined #ruby
<oceanbreeze> Hey guys i am trying to launch some windows software wthich has authentication menu ( login, password), how to fill these fields using Ruby?
vigintas has joined #ruby
pwnfactory has quit [Client Quit]
pwnfactory has joined #ruby
camilasan has joined #ruby
dayepa has quit [Quit: dayepa]
DaniG2k has joined #ruby
dayepa has joined #ruby
bamdad has quit [Quit: bamdad]
keanehsiao has quit [Quit: Leaving...]
queequeg2 has quit [Ping timeout: 268 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
<nouitfvf> it is impossible
<oceanbreeze> really?
timonv_ has joined #ruby
Soliah has joined #ruby
timonv__ has joined #ruby
bamdad has joined #ruby
Soliah has quit [Client Quit]
subbyyy has quit [Ping timeout: 256 seconds]
vlad_sta_ has quit [Remote host closed the connection]
joonty has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
<nouitfvf> I think so :)
emergion has joined #ruby
Banistergalaxy has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
Muz_ is now known as Muz
lkba has quit [Ping timeout: 256 seconds]
Muz has quit [Changing host]
Muz has joined #ruby
bamdad has quit [Quit: bamdad]
cj3kim has quit [Remote host closed the connection]
workmad3 has joined #ruby
tatsuya_o has joined #ruby
niceguyjames has joined #ruby
TIJ has joined #ruby
<effbiai> trying to install gitlab. bundle is failing with missing psych. here's full updated output plus some debugging http://pastebin.com/c4amG3XB should i file a bugreport to (fedoras) bugzilla?
blaxter_ has joined #ruby
CaptainJet_ has quit []
mklappstuhl has joined #ruby
TIJ has quit [Ping timeout: 246 seconds]
DaniG2k has quit [Quit: Leaving.]
blaxter_ is now known as blaxter
jds has joined #ruby
adeponte has joined #ruby
julweber has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
goodgame has joined #ruby
<oceanbreeze> Damn, thought Ruby can do everything!
vlad_starkov has joined #ruby
nomenkun has joined #ruby
<bnagy> oceanbreeze: check out autoit, but you'll have to mess with bindings
<bnagy> there's a rubyonwindows blog which has some autoit snippets
timonv__ has quit [Remote host closed the connection]
queequeg1 has joined #ruby
noname001 has joined #ruby
adeponte has quit [Remote host closed the connection]
ffio_ has quit [Ping timeout: 246 seconds]
colonolGron has joined #ruby
buibex has quit [Remote host closed the connection]
vivmbbs has joined #ruby
flaritycat has joined #ruby
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
buibex has joined #ruby
Zai00 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ericmathison has quit [Ping timeout: 276 seconds]
alem0lars has joined #ruby
TIJ has joined #ruby
rdark has joined #ruby
vigintas has joined #ruby
sk87 has joined #ruby
redgirl has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
epic has joined #ruby
maxmanders has quit [Ping timeout: 268 seconds]
krainbol_ has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
afd___ has joined #ruby
afd__ has quit [Ping timeout: 248 seconds]
krainboltgreene has quit [Ping timeout: 246 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
Axsuul has quit [Ping timeout: 276 seconds]
<epic> I am trying to write a ruby script that takes a array if file names and launches system commands on them in parallell, using peach for parallellism, the problem is that ruby/peach does not seem to wait for the commands to end so even though i use peach(2) it ends up launching millions of system procs.
elaptics`away is now known as elaptics
maxmanders has joined #ruby
Bry8Star{T2 has joined #ruby
<bnagy> what is this peach?
flaritycat has quit [Remote host closed the connection]
buibex has quit [Read error: Operation timed out]
timonv has joined #ruby
<matematikaadit> epic: this peach? http://peach.rubyforge.org/
b0oh has joined #ruby
<bnagy> hm ok
krisfremen-home has quit [Ping timeout: 248 seconds]
ferdev has quit [Quit: ferdev]
emergion has quit [Quit: Computer has gone to sleep.]
<bnagy> what's in your block?
banjara1 has quit [Ping timeout: 260 seconds]
darth_chatri1 is now known as darth_chatri
browndawg has joined #ruby
<epic> matematikaadit: yeah
sevenseacat has quit [Quit: Leaving.]
buibex has joined #ruby
<bnagy> wow this is ancient
<matematikaadit> epic: have you tried #pmap instead?
<epic> I could probably do that
<bnagy> and.. bad
<epic> ok?
<bnagy> but nevertheless, what's in your block?
<epic> more or lesss: system({"PATH"=>script_folder}, cmd1+" ; " + cmd2)
<epic> -s :)
Nies has joined #ruby
reset has joined #ruby
<bnagy> ok weird
Michael__ has quit [Ping timeout: 240 seconds]
<bnagy> you have millions of entries in this file?
anderson has joined #ruby
<bnagy> system blocks, so either the processes themselves are getting backgrounded or something is screwed
<epic> I run files.peach(2){ |file|, and I may not have millions of files, but tens of thousands
<epic> ah
<epic> damnit my fault!
julweber has joined #ruby
banjara has joined #ruby
<epic> i end my command with "2&> log.log"
<epic> to avoid the output..
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
ashleyis has quit [Ping timeout: 246 seconds]
<epic> but that also backgrounds the proc
<bnagy> it does :)
<epic> i actually like backtick way of launching procs better as i can control the output
<epic> but I doesnt let me set system envs for the system proc
Domon has quit [Remote host closed the connection]
<bnagy> surely you can just `ENV=XXX something`
<bnagy> otherwise you should be able to access ENV from ruby anyway
<epic> so the system proc inherits the ruby env?
ferdev has joined #ruby
<epic> that would make it easy
eka has joined #ruby
maxmanders has quit [Ping timeout: 268 seconds]
<bnagy> >> ENV['FOO']='3'; `echo $FOO`
<eval-in> bnagy => (https://eval.in/36833)
<bnagy> evil.in is a whiny bitch
<bnagy> but yes :)
<epic> thank you :)
vivmbbs has quit [Quit: This computer has gone to sleep]
goodgame has quit [Remote host closed the connection]
<bnagy> np
maxmanders has joined #ruby
mikecmpbll has joined #ruby
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
DaniG2k has joined #ruby
matematikaadit has quit [Excess Flood]
cj3kim has joined #ruby
matematikaadit has joined #ruby
goodgame has joined #ruby
Domon has joined #ruby
jds has quit [Ping timeout: 240 seconds]
maxmanders has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
chxane has quit [Quit: Leaving]
goodgame has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving.]
cj3kim has quit [Ping timeout: 268 seconds]
matematikaadit has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
r0bgleeson has quit [Ping timeout: 268 seconds]
goodgame has joined #ruby
matematikaadit has joined #ruby
matematikaadit has quit [Max SendQ exceeded]
BizarreCake has joined #ruby
matematikaadit has joined #ruby
Spooner has joined #ruby
buibex has quit [Remote host closed the connection]
blackmesa has joined #ruby
bigkevmcd has quit [Ping timeout: 268 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
pipework has joined #ruby
tomoyuki28jp has joined #ruby
Kabaka has joined #ruby
LennyLinux has joined #ruby
<tomoyuki28jp> Is there a way to prevent change for a const? freeze is not the one I want because we can re-assign values.
echevemaster has quit [Ping timeout: 246 seconds]
binaryplease has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
sam113101 is now known as sam113101_afk
<apeiros> tomoyuki28jp: no
<tomoyuki28jp> apeiros: thanks
kevinykchan has joined #ruby
jbpros has joined #ruby
leonid__ has quit [Ping timeout: 246 seconds]
b0oh has quit [Quit: Leaving.]
bigkevmcd has joined #ruby
anildigital has quit [Changing host]
anildigital has joined #ruby
DaniG2k has joined #ruby
leonid__ has joined #ruby
bigkevmcd has quit [Client Quit]
bigkevmcd has joined #ruby
colonolGron has quit [Quit: leaving]
colonolG1on has joined #ruby
b0oh has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
sam113101_afk is now known as sam113101
BizarreCake has quit [Ping timeout: 240 seconds]
jibi has joined #ruby
jds has joined #ruby
adeponte has joined #ruby
tonini has quit [Remote host closed the connection]
vigintas has joined #ruby
horrror has joined #ruby
<horrror> is there a "string".to_const something?
KRF_ is now known as KRF
horrror has quit [Client Quit]
<waxjar> there's const_get
<waxjar> but you have to give it the capitalised form
pootler_ has quit [Ping timeout: 240 seconds]
banjara1 has joined #ruby
pootler_ has joined #ruby
arya_ has joined #ruby
adeponte has quit [Ping timeout: 256 seconds]
banjara has quit [Ping timeout: 276 seconds]
freeayu has quit [Ping timeout: 246 seconds]
ashleyis has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
BizarreCake has joined #ruby
razi has joined #ruby
buibex has joined #ruby
oceanbreeze has quit [Remote host closed the connection]
lkba has joined #ruby
freeayu has joined #ruby
jds has quit [Ping timeout: 276 seconds]
arya_ has joined #ruby
jefflyne has joined #ruby
vigintas has quit [Remote host closed the connection]
<Mon_Ouie> He left though
vigintas has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
pen has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
buibex has quit [Ping timeout: 256 seconds]
ffio has joined #ruby
r0bgleeson has joined #ruby
chichou has joined #ruby
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
beiter has joined #ruby
arya_ has joined #ruby
agjacome has joined #ruby
Evixion has quit []
LennyLin_ has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
emergion has joined #ruby
rickmasta has joined #ruby
ggordan has joined #ruby
LennyLinux has quit [Ping timeout: 246 seconds]
beiter has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 248 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
matematikaadit_ has joined #ruby
matematikaadit has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
matematikaadit_ is now known as matematikaadit
maxmanders has joined #ruby
ryanhirsch has joined #ruby
reset has quit [Ping timeout: 248 seconds]
vigintas has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
jbpros has quit [Quit: jbpros]
jds has joined #ruby
rickmasta has quit [Quit: Leaving...]
niceguyjames has quit [Quit: Computer has gone to sleep.]
cads has quit [Read error: Operation timed out]
niklasb has joined #ruby
MrZYX|off is now known as MrZYX
cofin has joined #ruby
krainbol_ has quit [Ping timeout: 260 seconds]
codeplay has joined #ruby
whowantstolivefo has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
AlSquire has joined #ruby
yashshah has quit [Read error: Operation timed out]
cj3kim has joined #ruby
colonolG1on has quit [Quit: leaving]
<codeplay> hi everyone.
fixl has joined #ruby
danielesalatti has joined #ruby
danielesalatti has left #ruby [#ruby]
mklappstuhl has quit [Remote host closed the connection]
vivmbbs has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
AllStruck has quit [Remote host closed the connection]
b0oh has quit [Quit: Leaving.]
cj3kim has quit [Ping timeout: 245 seconds]
Ortuna has joined #ruby
chxane has joined #ruby
<matematikaadit> codeplay: hi
relix has joined #ruby
osvico has joined #ruby
DestinyAwaits has joined #ruby
buibex has joined #ruby
Domon has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
jokke has quit [Ping timeout: 240 seconds]
niceguyjames has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
matematikaadit has quit [Excess Flood]
maxmanders has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
puzanov has joined #ruby
matematikaadit has joined #ruby
jibi_ has joined #ruby
<puzanov> what is the stable and fast gem for mysql for ruby193 now?
filipe has quit [Read error: Operation timed out]
<puzanov> found https://github.com/brianmario/mysql2 but not sure to use it in prod end
<puzanov> *env
jibi has quit [Ping timeout: 246 seconds]
cofin has quit [Quit: cofin]
julweber has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 240 seconds]
jijjel has joined #ruby
jijjel is now known as armitage
armitage has left #ruby [#ruby]
maxmanders has quit [Ping timeout: 260 seconds]
ryanhirsch has quit [Quit: Computer has gone to sleep.]
razi has quit [Quit: Leaving.]
anderson has quit [Quit: Leaving]
emergion has joined #ruby
jokke has joined #ruby
maxmanders has joined #ruby
AllStruck has joined #ruby
staafl_123 has quit [Ping timeout: 260 seconds]
eka has quit [Ping timeout: 260 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
eka has joined #ruby
staafl has joined #ruby
keanehsiao has joined #ruby
staafl has quit [Max SendQ exceeded]
nari has joined #ruby
staafl has joined #ruby
LennyLin_ has quit [Read error: Connection reset by peer]
filipe has joined #ruby
dysth has joined #ruby
Beoran__ has joined #ruby
maxmanders has quit [Ping timeout: 268 seconds]
BizarreCake has joined #ruby
<airtonix> feed the beast wiki
Beoran_ has quit [Ping timeout: 248 seconds]
_Andres has joined #ruby
tonini has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
LennyLinux has joined #ruby
Maoko has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Aiea has joined #ruby
puzanov has quit [Ping timeout: 256 seconds]
Evixion has joined #ruby
tommyvyo has joined #ruby
browndawg has quit [Quit: Leaving.]
julweber has joined #ruby
krisfremen-home has joined #ruby
b0oh has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
browndawg has joined #ruby
sepp2k has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
jonkri has joined #ruby
jonkri has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
vlad_starkov has joined #ruby
keanehsiao has quit [Quit: Linkinus - http://linkinus.com]
romockee has quit [Quit: romockee]
bigkevmcd has joined #ruby
takezawa has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
pranny has joined #ruby
cj3kim has joined #ruby
devoldmx has joined #ruby
gildo has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
ewag has joined #ruby
jonkri has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
maxmanders has joined #ruby
brbcoding has joined #ruby
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
buibex has quit [Remote host closed the connection]
jbpros has joined #ruby
bcarrell has joined #ruby
buibex has joined #ruby
moufe has joined #ruby
<moufe> hi
<moufe> can someone tell me why line 15 is not the instance variable https://gist.github.com/anonymous/1cdb744b41ccec6cfc89
danslo has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Ping timeout: 268 seconds]
<moufe> @unique.size instead of unique.size
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<pontiki> @unique references the instvar. unique references a localvar
merovingien has joined #ruby
<moufe> pontiki: in my gist unique would reference a method
vlad_starkov has quit [Remote host closed the connection]
<merovingien> Hello, i need some help. I'm trying to set capabilities on ruby, the way a normal user can bind port under 1080. but whenever i setcap cap_net_raw,cap_net_admin,cap_net_bind_service+p /usr/bin/ruby1.9.1, and run ruby1.9.1 i got segmentation fault. any idea?
<pontiki> i don't think ruby has enough context. put self.unique instead and see?
kirun has joined #ruby
nezumi has quit [Ping timeout: 268 seconds]
<moufe> pontiki: i think it's self.unique, but i was just wondering why would someone use it instead of @unique in this situation
<moufe> Banistergalaxy: ?
<waxjar> moufe, i think Ruby chokes on (@unique << unique.size) - 1 vs @unique << (unique.size - 1)
jibi_ has quit [Quit: .]
jibi has joined #ruby
<pontiki> moufe: is your code failing?
jonkri has joined #ruby
<moufe> pontiki: waxjar : it works fine
vivmbbs has quit [Quit: Leaving]
<moufe> waxjar: + and - have a higher precedence than <<
<waxjar> yea, i just realised that
<waxjar> what's the problem exactly, though?
Maoko has quit [Read error: Connection reset by peer]
<moufe> waxjar: im wondering why in this code unique.size was used instead of @unique.size
buzzybron has quit [Quit: Leaving.]
<waxjar> sloppyness, probably :P
takezawa has joined #ruby
<moufe> hmm
niceguyjames has joined #ruby
<moufe> waxjar: something tells me it wasnt
devoldmx has quit [Ping timeout: 246 seconds]
BizarreCake has quit [Quit: Leaving]
Evixion has quit [Remote host closed the connection]
Evixion has joined #ruby
<waxjar> only reason i can think of the way unique is accessed might change in the future. using the method won't break #initialize
<waxjar> though it is slower
Aiea has quit [Ping timeout: 250 seconds]
<MrZYX> yeah, it's just inconsistent, either line 10 should be i = unique.index word or line 15 @unique << @unique.size -1
<MrZYX> and I've never seen such a spacing... ( var)
<moufe> waxjar: both work but the author prefer the former for a reason
kpshek has joined #ruby
<moufe> MrZYX: what about line 14
<moufe> unique << word ?
<MrZYX> hm, right, that should use the attr_reader too
<MrZYX> yeah
<MrZYX> since << really is just a method call too
<moufe> MrZYX: it's from eloquent ruby
<MrZYX> also line 12 should be index << i then
<moufe> rihgt
<moufe> thanks i feel better
<moufe> i thought i was nuts
<MrZYX> I can't say I prefer either way
<MrZYX> but it needs to be consistent IMO
<moufe> i agree
Zeeraw has quit [Quit: Computer has gone to sleep.]
<MrZYX> I'd probably move lines 8-18 into a private method too
ArchBeOS has joined #ruby
Zeeraw has joined #ruby
<MrZYX> so it's just def initialize; @foo = initial_value; compute_stuff; end
<MrZYX> then you don't mix attr_reader and @ in a method at all
bamdad has joined #ruby
ggordan has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
k610 has joined #ruby
<moufe> MrZYX: right this part is what the author changes later on
LarsSmit has joined #ruby
<moufe> but he sticks with the inconsistency of using @unique and unique
LarsSmit has quit [Client Quit]
LarsSmit has joined #ruby
<moufe> MrZYX: thanks
sumark has quit [Ping timeout: 248 seconds]
andredieb has quit [Quit: Coyote finally caught me]
<MrZYX> oh and btw, most ruby code I read uses two spaces for indentation, not tabs ;)
sumark has joined #ruby
girija has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
<moufe> MrZYX: this one is my fault alone. lazyness
<moufe> =)
philcrissman_ has quit [Remote host closed the connection]
<MrZYX> nah, I don't want to convince you about any style, just sayin' :P
devoldmx has joined #ruby
andredieb has joined #ruby
<moufe> -)
LennyLin_ has joined #ruby
DaniG2k has quit [Quit: Leaving.]
DaniG2k has joined #ruby
LennyLinux has quit [Ping timeout: 260 seconds]
bamdad has quit [Quit: bamdad]
mark_locklear has joined #ruby
maxmanders has quit [Ping timeout: 268 seconds]
bamdad has joined #ruby
bamdad has quit [Client Quit]
pipework has quit [Remote host closed the connection]
sambao21 has joined #ruby
maxmanders has joined #ruby
<Dwarf> Hello wonderful people, what does this mean? https://gist.github.com/anonymous/37b65ba7c6322b05fc84
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
goodgame has quit [Ping timeout: 256 seconds]
huttan_ has quit [Quit: leaving]
<MrZYX> let me highlight the important part: checking for sqlite3.h... no
ashleyis has quit [Ping timeout: 256 seconds]
<Dwarf> Odd thing, it's installed
huttan has joined #ruby
<MrZYX> the header files too?
bcarrell has quit [Quit: bcarrell]
ezkl has quit [Ping timeout: 246 seconds]
<MrZYX> most distributions put them into separate packages
<Dwarf> Oh I see, my system admin says it's installed in /opt/
ldnunes has joined #ruby
LennyLinux has joined #ruby
tomoyuki28jp has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
LennyLin_ has quit [Ping timeout: 268 seconds]
marvelous has joined #ruby
mljsimone|away is now known as mljsimone
marvelous has left #ruby [#ruby]
keanehsiao has joined #ruby
breakingthings has joined #ruby
subbyyy has joined #ruby
chrisja has joined #ruby
buibex has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
marvelous has joined #ruby
marvelous has left #ruby [#ruby]
ravster has joined #ruby
camilasan has quit [Remote host closed the connection]
sambao21 has joined #ruby
mljsimone is now known as mljsimone|away
ryannielson has joined #ruby
Mattix has joined #ruby
MHI has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
goodgame has joined #ruby
pipework has joined #ruby
ravster has left #ruby [#ruby]
tk_ has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
YaNakilon has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 240 seconds]
moufe has quit [Ping timeout: 250 seconds]
kofno has joined #ruby
codesoda has joined #ruby
ElCapitanMarklar has joined #ruby
DaniG2k has quit [Quit: Leaving.]
<ryannielson> Is there a good way to convert a time string like 12:50 to the number of seconds since the start of the day? I'll be then appending that to an existing DateTime object.
postmodern has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
johnmilton has joined #ruby
krawchyk has joined #ruby
tomzx_mac has joined #ruby
<ElCapitanMarklar> ive got a hash like {1 => 9, 2=>99, 3=>999} and i want to perform an operation on each of the keys. say square them all. what would be my easiest way of doing this
Uranio has joined #ruby
<waxjar> ryannielson: something like existing_date_time + DateTime.parse("12.50")
<ElCapitanMarklar> e.g. i want to end up with {1 => 9, 4=>99, 9=>999}
angusiguess has joined #ruby
<ElCapitanMarklar> the only way i can think of right now is by using map hash.map{|k, v| {k*k, v}}
<bnagy> >> h={1 => 9, 2=>99, 3=>999}; Hash[h.keys.map {|k|k**2}.zip(h.values)]
<eval-in> bnagy => {1=>9, 4=>99, 9=>999} (https://eval.in/36885)
<ryannielson> waxjar: Seems to almost work, but DateTime.parse("12.50") gives the datetime of today with that time. So I guess now it's just a matter of finding out how many seconds to add to the last date time.
mljsimone|away is now known as mljsimone
ferdev has quit [Quit: ferdev]
<r0bgleeson> ryannielson: cant you just calculate the number of seconds in 12 hours 50 minutes
ferdev has joined #ruby
ferdev has quit [Client Quit]
bklane has joined #ruby
alem0lars has quit [Quit: Leaving]
<ryannielson> r0bgleeson: Well there are a ton of different formats, so I'm trying to find a way to do it programmatically. Unfortunetely the data I'm writing an importer for wasn't validated to a proper format. :(
blackmesa has joined #ruby
<bnagy> why not just use parse or strftime or whatever for the correct date at that time?
pipework has quit [Remote host closed the connection]
dawkirst has quit [Read error: Connection reset by peer]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
<ElCapitanMarklar> bnagy - thanks :D
<bnagy> DateTime.parse is fairly smart..
wmoxam has joined #ruby
jibi has quit [Quit: .]
fuzzyhorns has joined #ruby
<r0bgleeson> bnagy: it is, but he wants the number of seconds since EPOCH, and Time.parse("12.50") defaults to current day
JZTech101 has joined #ruby
vlad_starkov has joined #ruby
<bnagy> r0bgleeson: oh, sorry, he said "I'll be then appending that to an existing DateTime object" so I assumed not
<bnagy> like some date + epoch is not going to end well
<ryannielson> bnagy: Well, I do have another DateTime object which holds the date, and I want to append "12:30" to it, basically add the amount of seconds since midnight to that time (or various other formats) to the existing DateTimess
fixl has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 256 seconds]
Guedes1 has quit [Quit: Saindo]
Guedes has joined #ruby
Guedes has joined #ruby
Tarathiel has joined #ruby
anay has quit [Remote host closed the connection]
<Tarathiel> hi
baordog has joined #ruby
anay has joined #ruby
romockee has joined #ruby
<bnagy> ryannielson: oh.. I htink you can add seconds to a time
<bnagy> but I think you add days to a datetime
<bnagy> >> Time.now + (12*3600 + 50*60)
<eval-in> bnagy => 2013-07-09 04:08:24 +0200 (https://eval.in/36886)
jefflyne has joined #ruby
<wmoxam> How can one parse an internation DateTime string?
codecop has quit [Quit: Išeinu]
emptymag00 has quit [Remote host closed the connection]
<Tarathiel> i'm trying to execute a window command with the help of ruby, i've tried witihn the same console with ruby -e `psloglist` and with ruby -e system("C:\....\psloglist), but neither could run it (i can run it without ruby)
<wmoxam> ex: Time.parse('do, 16 mei 2013 09:36:36 +0200').to_s
<ryannielson> bnagy: Ya, time's are in different formats though. Some are 12:50, some 1:25 some 5:15pm, some 5:15 pm, etc. It's kind of a mess haha. So I guess the big issue is parsing all those different formats.
vigintas_ has joined #ruby
rickruby has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 240 seconds]
<bnagy> Tarathiel: ruby -e "`blah`"
h8R has quit [Ping timeout: 248 seconds]
dysth has quit [Quit: Textual IRC Client: www.textualapp.com]
YaNakilon has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
JZTech101 has joined #ruby
adambeynon has joined #ruby
anay has quit [Ping timeout: 256 seconds]
<Tarathiel> bnagy, nope, i tried it with `"blah"` too, the error was in both cases no such file or directory (with full path it's invalid argument)
goodgame has quit [Ping timeout: 268 seconds]
<bnagy> ryannielson: honestly, I'd just add it to the date as a string and hope datetime.parse can figure it out
<ryannielson> bnagy: ya, I'm considering that to be honest. Thanks for your help.
<Tarathiel> bnagy, i'm using 1.9.3p194 if that matters
devdazed has joined #ruby
<bnagy> otherwise strptime will parse the time, based on today I guess
<bnagy> Tarathiel: it doesn't
JZTech101 has quit [Read error: Connection reset by peer]
jerius has joined #ruby
splittingred has joined #ruby
<bnagy> ryannielson: try and do DateTime.parse(some_date.strftime(whatever) << time_string)
JZTech101 has joined #ruby
Guga_ has joined #ruby
<bnagy> tbh basic ruby's date / time stuff is not the shinest area
sixteneighty has quit [Ping timeout: 240 seconds]
b0oh has quit [Quit: Leaving.]
banghouse has joined #ruby
<bnagy> activesupport has fancy stuff, but it's also activesupport which means it's evil and bad and wrong
banghouse is now known as Guest41379
rickmasta has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Guest41379 is now known as banghouse
ffio has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby
jdripper has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<bnagy> right, out :P
maxmanders has joined #ruby
Fire-Dragon-DoL has joined #ruby
merovingien1 has joined #ruby
Ziarkaen has joined #ruby
merovingien has quit [Ping timeout: 260 seconds]
fredjean has quit [Ping timeout: 264 seconds]
maxmanders has quit [Ping timeout: 260 seconds]
sixteneighty has joined #ruby
rickmasta has quit [Quit: Leaving...]
goodgame has joined #ruby
darth_chatri has quit [Ping timeout: 268 seconds]
maxmanders has joined #ruby
Jefus has joined #ruby
jbpros has quit [Quit: jbpros]
kofno has quit [Remote host closed the connection]
b0oh has joined #ruby
noop has quit [Ping timeout: 268 seconds]
tomzx_mac has quit [Read error: Operation timed out]
ElCapitanMarklar has quit [Quit: Textual IRC Client: www.textualapp.com]
ananthakumaran has quit [Quit: Leaving.]
carlyle has joined #ruby
maxmanders has quit [Ping timeout: 268 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
cofin has joined #ruby
nikoKovac has joined #ruby
<nikoKovac> hi all
<nikoKovac> help me with me ruby code
Davey has joined #ruby
Tarathiel has quit [Quit: Leaving]
vdandre has joined #ruby
<vdandre> Hi. What's the best way (based on your experience) to run Rubt 1.9 / 2.0 on CentOS6 / RHEL6 based machines?
<nikoKovac> fuckign bitch
Tarathiel has joined #ruby
Tarathiel has quit [Client Quit]
javiferrer has joined #ruby
javiferrer has quit [Changing host]
javiferrer has joined #ruby
merovingien has joined #ruby
niklasb has joined #ruby
_seanc_ has joined #ruby
merovingien1 has quit [Ping timeout: 260 seconds]
DrCode_ has joined #ruby
nikoKovac has quit [Killed (idoru (Spam is off topic on freenode.))]
YaNakilon has quit [Ping timeout: 240 seconds]
nikoKovac has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
cofin has quit [Quit: cofin]
DrCode_ is now known as DrCode
ttt has quit [Remote host closed the connection]
huoxito has joined #ruby
<nikoKovac> niggers
thesheff17 has quit [Remote host closed the connection]
statarb3 has joined #ruby
kindjal has joined #ruby
nikoKovac has quit [K-Lined]
dawkirst has joined #ruby
cofin has joined #ruby
anay has joined #ruby
Evixion has quit []
v0n has joined #ruby
bobthecookie has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
mark_locklear has quit [Remote host closed the connection]
mrfoo has joined #ruby
cofin has quit [Client Quit]
mmitchell has joined #ruby
Banistergalaxy has joined #ruby
_seanc_ has quit [Quit: _seanc_]
YaNakilon has joined #ruby
bobthecookie has left #ruby [#ruby]
jlast has joined #ruby
pipework has joined #ruby
erikgj has joined #ruby
freerobby has joined #ruby
cofin has joined #ruby
DaniG2k has joined #ruby
vlad_starkov has joined #ruby
chxane has quit [Ping timeout: 268 seconds]
erikgj has quit [Client Quit]
cha1tanya has quit [Ping timeout: 246 seconds]
interactionjaxsn has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
Devo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
tk_ has quit [Quit: ばいばい]
troker has joined #ruby
chxane has joined #ruby
kobain has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arya_ has joined #ruby
khushildep has joined #ruby
mark_locklear has joined #ruby
bamdad has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
DanKnox_away is now known as DanKnox
niceguyjames has quit [Quit: Computer has gone to sleep.]
yashshah has joined #ruby
niceguyjames has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
bamdad has quit [Client Quit]
daidoji has quit [Ping timeout: 268 seconds]
devoldmx has joined #ruby
emergion has joined #ruby
obs has joined #ruby
lkba has joined #ruby
dhruvasagar has joined #ruby
BillCriswell has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
jmimi has left #ruby [#ruby]
GeissT has quit [Quit: MillBroChat AdIRC User]
ner0x has joined #ruby
thebastl_ has quit [Read error: Operation timed out]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
zets has joined #ruby
ryannielson has quit [Quit: ryannielson]
angusiguess has joined #ruby
burlyscudd has joined #ruby
sailias has joined #ruby
tagrudev has quit [Remote host closed the connection]
mary5030 has joined #ruby
redgirl_ has joined #ruby
cofin has quit [Quit: cofin]
emergion has quit [Quit: Computer has gone to sleep.]
yekta has joined #ruby
brennanMKE has joined #ruby
redgirl has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
cofin has joined #ruby
seejohnrun has joined #ruby
jco__ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
redgirl_ has quit [Ping timeout: 246 seconds]
yashshah has quit [Read error: Connection reset by peer]
soukihei has joined #ruby
haxrbyte has joined #ruby
Roa_ has quit [Quit: leaving]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
Roa is now known as Roa
haxrbyte_ has joined #ruby
tonini has quit [Remote host closed the connection]
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
jbw has quit [Quit: ┌∩┐(◣_◢)┌∩┐]
cj3kim has joined #ruby
axl_ has joined #ruby
cburyta has joined #ruby
burlyscudd has quit [Quit: Leaving.]
haxrbyte has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
gustavn has joined #ruby
persand has quit [Quit: persand]
elux has joined #ruby
zodiak has quit [Remote host closed the connection]
h8R has joined #ruby
hogeo has quit [Remote host closed the connection]
queston has quit [Remote host closed the connection]
_seanc_ has joined #ruby
yashshah has joined #ruby
queston has joined #ruby
sebastia_ has joined #ruby
h8R has quit [Client Quit]
will_grr has joined #ruby
jeffreyio has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
<sebastianb> haha
<sebastianb> what a guy
javiferrer_ has joined #ruby
asteve has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
javiferrer has quit [Read error: Operation timed out]
<DestinyAwaits> Hey guys
Drekonus has joined #ruby
geekbri has joined #ruby
<DestinyAwaits> Need Help
Drekonus has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby
<DestinyAwaits> Want to learn Ruby fast as possible for a project.. Any help?
jprovazn has quit [Quit: Leaving]
<DestinyAwaits> Java to Ruby?
<DestinyAwaits> Anything that can help me get started?
burlyscudd has joined #ruby
<petru> I learned the basics from the lynda.com tutorial
b0oh has quit [Quit: Leaving.]
johchri has joined #ruby
<DestinyAwaits> any direct link?
<DestinyAwaits> and is it good for a java background ?
burlyscudd has quit [Client Quit]
<petru> DestinyAwaits: I have no idea. http://www.lynda.com/Ruby-tutorials/essential-training/47905-2.html that's the link, but you'll need a subscription, though
<DestinyAwaits> is it free?
<petru> afraid not
<will_grr> DestinyAwaits: http://jruby.org/
anonymuse has joined #ruby
brasten has joined #ruby
LarsSmit has quit [Quit: Leaving.]
<DestinyAwaits> will_grr: it's not ruby?
javiferrer_ is now known as javiferrer
javiferrer has quit [Changing host]
javiferrer has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
<will_grr> that is writing Java in Ruby, essentially. Would be a good middleground for coming from Java and getting used to Ruby at the same time
<DestinyAwaits> ah no.. well the requirement is ruby on rails...
<DestinyAwaits> :(
burlyscudd has joined #ruby
<will_grr> https://github.com/jruby/jruby/wiki should also be of interest
<DestinyAwaits> I am afraid that wont help much
<will_grr> well, that's exactly what you can do
<DestinyAwaits> Without a J is it possible?
devoldmx has joined #ruby
cofin has joined #ruby
<DestinyAwaits> RubyOnRails
<will_grr> you should read to ensure this is what you're looking for. You would be writing a java application in ruby on rails.
<waxjar> http://www.apeth.com/rubyIntro/justenoughruby.html should give you a quick, basic overview of the language
<DestinyAwaits> no I got the requirement
<DestinyAwaits> and it's honestly saying Ruby on Rails
<DestinyAwaits> so I need something around that
Trynemjoel has quit [Ping timeout: 245 seconds]
b0oh has joined #ruby
<will_grr> okay, well ruby syntax is fairly straightforward. If you want to get your toes wet with ruby syntax and writing a simple rails app, I would recommend using http://www.codeschool.com/paths/ruby
<will_grr> all the code is run within the browser so you don't need to worry about configuring an environment yet, slides and videos are free to accompany you on the Try Ruby and Rails for Zombies Redux courses.
nbouscal has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<will_grr> but if you do plan on getting an env going, http://rvm.io is one of the better ways to go.
cha1tanya has joined #ruby
<DestinyAwaits> ah Great
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<DestinyAwaits> in short you gave me what I was looking for.. thanks will_grr :)
ttt has joined #ruby
moshee has joined #ruby
<will_grr> DestinyAwaits: you're very welcome :)
seejohnrun has left #ruby [#ruby]
jonathanwallace has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
acrussell has joined #ruby
acrussell has left #ruby [#ruby]
queston has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
persand has joined #ruby
DanKnox is now known as DanKnox_away
ttt has quit [Ping timeout: 252 seconds]
rhys has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
thebastl has joined #ruby
DaniG2k has left #ruby [#ruby]
ckrailo has joined #ruby
osvico has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
havenwood has joined #ruby
anay has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
Banistergalaxy has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
blackmesa has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tvw has quit []
thebastl has joined #ruby
erikgj has joined #ruby
takezawa has quit [Remote host closed the connection]
slash_ni1k is now known as slash_nick
wallerdev has joined #ruby
lethjakman has joined #ruby
osvico has joined #ruby
pranny has quit [Quit: Leaving.]
awarner has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
cofin has quit [Quit: cofin]
interactionjaxsn has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
interactionjaxsn has joined #ruby
moshee has joined #ruby
wallerdev has quit [Quit: wallerdev]
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
cofin has joined #ruby
erikgj has quit [Quit: erikgj]
sambao21 has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has joined #ruby
erikgj has joined #ruby
lethjakman has quit [Ping timeout: 246 seconds]
interactionjaxsn has quit [Ping timeout: 264 seconds]
lethjakman has joined #ruby
freerobby has quit [Quit: Leaving.]
_Andres has quit [Read error: No buffer space available]
burlyscudd has joined #ruby
JZTech101 has quit [Read error: No buffer space available]
ILoveYou[ has quit [Read error: Connection reset by peer]
staafl_alt has joined #ruby
johnnyfuchs1 has joined #ruby
thebastl has quit [Remote host closed the connection]
_Andres has joined #ruby
JZTech101 has joined #ruby
tommyvyo has quit [Quit:]
threesome has quit [Read error: Operation timed out]
s0ber has quit [Read error: Connection reset by peer]
fredjean has joined #ruby
ILoveYou has joined #ruby
s0ber has joined #ruby
ssvo has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
viszu has joined #ruby
haxrbyte has joined #ruby
cortexman has joined #ruby
staafl has quit [Ping timeout: 276 seconds]
baordog has quit [Read error: No buffer space available]
anay has joined #ruby
johnnyfuchs has quit [Ping timeout: 278 seconds]
b0oh has quit [Quit: Leaving.]
baordog has joined #ruby
_seanc_ has quit [Quit: _seanc_]
ananthakumaran has joined #ruby
Mattix has quit [Ping timeout: 260 seconds]
camilasan has joined #ruby
leonid__ has quit [Ping timeout: 268 seconds]
flagg0204 has quit [Quit: leaving]
BarneyRubble has joined #ruby
senayar_ has joined #ruby
bigoldrock has joined #ruby
flagg0204 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
v0n has quit [Quit: WeeChat 0.4.1]
nikeita has joined #ruby
v0n has joined #ruby
persand has quit [Quit: persand]
senayar has quit [Ping timeout: 260 seconds]
erikgj has quit [Quit: erikgj]
timonv has quit [Remote host closed the connection]
will_grr has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
burlyscudd has quit [Quit: Leaving.]
moshee has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
DanKnox_away is now known as DanKnox
interactionjaxsn has joined #ruby
codeplay has quit [Quit: Page closed]
asellus has joined #ruby
merovingien has left #ruby [#ruby]
jblack has joined #ruby
djbkd has joined #ruby
cj3kim has joined #ruby
havenwood has joined #ruby
pootler has quit [Ping timeout: 240 seconds]
djbkd has quit [Client Quit]
djbkd has joined #ruby
thebastl has joined #ruby
johnnyfuchs1 has quit [Remote host closed the connection]
pootler has joined #ruby
niceguyjames has joined #ruby
pootler_ has quit [Ping timeout: 270 seconds]
wallerdev has quit [Quit: wallerdev]
pootler_ has joined #ruby
johnnyfuchs has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
cj3kim has quit [Ping timeout: 256 seconds]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cj3kim has joined #ruby
julweber has quit [Remote host closed the connection]
jefflyne has joined #ruby
DanKnox is now known as DanKnox_away
vlad_starkov has quit [Remote host closed the connection]
burlyscudd has joined #ruby
niceguyjames has quit [Remote host closed the connection]
niceguyjames has joined #ruby
havenwood has quit [Remote host closed the connection]
matematikaadit has quit [Quit: Leaving]
jocellyn has joined #ruby
jocellyn has left #ruby [#ruby]
havenwood has joined #ruby
geggam has quit [Remote host closed the connection]
b0oh has joined #ruby
freerobby has joined #ruby
geggam has joined #ruby
nari has quit [Ping timeout: 276 seconds]
carlyle has quit [Remote host closed the connection]
mary5030_ has quit [Ping timeout: 276 seconds]
[[thufir]] has joined #ruby
Brando753 has quit [Quit: o_O_o]
Maoko has joined #ruby
[[thufir]] has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
LennyLinux has quit [Write error: Broken pipe]
viszu has quit [Ping timeout: 251 seconds]
RichardBaker has joined #ruby
bklane has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 260 seconds]
davidboy has quit [Read error: Operation timed out]
TheHodge has quit [Read error: Operation timed out]
randym_ has quit [Read error: Operation timed out]
jhowarth_ has quit [Read error: Operation timed out]
Guest85414__ has quit [Read error: Operation timed out]
heidar has quit [Read error: Operation timed out]
mroth has quit [Read error: Operation timed out]
b0oh has quit [Read error: Connection reset by peer]
moeSeth has quit [Read error: Operation timed out]
b0oh has joined #ruby
pothibo has joined #ruby
mary5030 has joined #ruby
marcdel has joined #ruby
cam`_ has quit [Ping timeout: 245 seconds]
octarine has quit [Ping timeout: 245 seconds]
phasma has quit [Ping timeout: 245 seconds]
NimeshNeema has quit [Ping timeout: 245 seconds]
kapowaz has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
geoffw8_ has quit [Ping timeout: 252 seconds]
shaileshg has quit [Ping timeout: 264 seconds]
ziyadb has quit [Ping timeout: 264 seconds]
xerxas has quit [Ping timeout: 264 seconds]
cool has quit [Ping timeout: 264 seconds]
JoeTheGuest has quit [Ping timeout: 245 seconds]
[0x1a] has quit [Read error: Operation timed out]
karnowski has quit [Ping timeout: 264 seconds]
pcarrier has quit [Ping timeout: 245 seconds]
didlix has quit [Ping timeout: 245 seconds]
notbrent___ has quit [Ping timeout: 245 seconds]
nouitfvf_ has joined #ruby
eneon has left #ruby [#ruby]
chuk has quit [Ping timeout: 245 seconds]
Spaceghost|cloud has quit [Ping timeout: 245 seconds]
sarcilav has quit [Ping timeout: 245 seconds]
strax has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
yeban has quit [Ping timeout: 264 seconds]
dotemacs has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Ping timeout: 252 seconds]
guilleiguaran_ has quit [Ping timeout: 245 seconds]
bluehavana has quit [Ping timeout: 245 seconds]
ILoveYou[ has joined #ruby
[Neurotic] has quit [Ping timeout: 264 seconds]
dnyy has quit [Ping timeout: 264 seconds]
keyvan has quit [Ping timeout: 264 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
cofin has quit [Quit: cofin]
thmzlt has joined #ruby
thebastl has quit [Remote host closed the connection]
ziyadb has joined #ruby
mikepack has joined #ruby
mary5030 has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
nouitfvf has quit [Ping timeout: 276 seconds]
strax has joined #ruby
senayar_ has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
sambao21 has joined #ruby
pcarrier has joined #ruby
mary5030 has joined #ruby
ILoveYou has quit [Ping timeout: 276 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
zmike123 has joined #ruby
Cooler__ has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
noname001 has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
zigomir has quit [Quit: zigomir]
brianpWins has quit [Quit: brianpWins]
k610 has quit [Ping timeout: 260 seconds]
dodosan has joined #ruby
mikepack has quit [Ping timeout: 259 seconds]
cofin has joined #ruby
bklane has joined #ruby
camilasan has quit [Remote host closed the connection]
angusiguess has joined #ruby
rsahae has joined #ruby
hamakn has quit [Remote host closed the connection]
mljsimone is now known as mljsimone|away
DestinyAwaits1 has joined #ruby
[[thufir]] has joined #ruby
m8 has joined #ruby
jbueza has joined #ruby
viszu has joined #ruby
DestinyAwaits1 has quit [Client Quit]
sebastia_ has quit [Remote host closed the connection]
DestinyAwaits has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
TheHodge has joined #ruby
anay has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 256 seconds]
yeban has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
BarneyRubble has quit [Ping timeout: 256 seconds]
cofin has quit [Quit: cofin]
nomenkun has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
blitz has joined #ruby
b0oh has left #ruby [#ruby]
asellus has quit [Quit: WeeChat 0.4.0]
Maoko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylersmi_ has quit [Remote host closed the connection]
zavier has joined #ruby
ericwood_ is now known as ericwood
lethjakman has quit [Quit: WeeChat 0.4.0]
ericmathison has joined #ruby
thebastl has joined #ruby
yekta has quit [Quit: yekta]
colinafoley has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
momomomomo has joined #ruby
goodgame has quit [Quit: Quitte]
[[thufir]] has quit [Ping timeout: 256 seconds]
swordsmanz has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
hogeo has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
pitzips has joined #ruby
dodosan has quit [Remote host closed the connection]
Evixion has joined #ruby
blackmesa has joined #ruby
burlyscudd has quit [Quit: Leaving.]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
alex__c2022 has joined #ruby
r0bgleeson has quit [Read error: Connection reset by peer]
pranny has joined #ruby
pranny has quit [Remote host closed the connection]
angusiguess has joined #ruby
dodosan has joined #ruby
<_br_> Curious question, COMET aka LongPolling aka ServerPush. Node community has the nice socket.io. Does the ruby community have something that is not since 2 years abandoned?
angusiguess has quit [Read error: Connection reset by peer]
<codesoda> _br_: isn't there a ruby version of Faye?
hogeo has quit [Remote host closed the connection]
zigomir has joined #ruby
<Eiam> Pusher ?
<havenwood> _br_: nio4r
<havenwood> _br_: What Celluloid::IO uses internally: https://github.com/celluloid/nio4r#readme
daidoji has joined #ruby
angusiguess has joined #ruby
timonv has quit [Remote host closed the connection]
<_br_> You guys are awesome! Thank you! Going back to do rtfm on those links :)
vlad_starkov has joined #ruby
Evixion has quit []
daidoji has quit [Client Quit]
<_br_> nifty
tjbiddle has joined #ruby
<havenwood> _br_: ^ Best of both worlds, threaded and evented. :)
<_br_> thanks
mengu has quit [Quit: Leaving]
moos3 has quit [Quit: Computer has gone to sleep.]
octarine has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
[[thufir]] has joined #ruby
<_br_> Yeah, this is interesting. :)
headius has joined #ruby
carlyle has joined #ruby
mljsimone|away is now known as mljsimone
colinafoley has left #ruby [#ruby]
Fire-Dragon-DoL has quit [Quit: Leaving.]
Zeeraw has joined #ruby
mahmoudimus has joined #ruby
poseid has joined #ruby
_seanc_ has joined #ruby
adeponte has joined #ruby
twoism has joined #ruby
_seanc_ has quit [Client Quit]
burlyscudd has joined #ruby
<_br_> eh a minigame as google logo ... ohh kay. http://www.google.co.uk/
moos3 has joined #ruby
_seanc_ has joined #ruby
lusory has joined #ruby
apeiros has quit [Remote host closed the connection]
[[thufir]] has quit [Ping timeout: 256 seconds]
popl has joined #ruby
carlyle has quit [Remote host closed the connection]
Zeeraw has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Client Quit]
Shirakawasuna has quit [Quit: Leaving]
codecop has joined #ruby
pootler_ has quit [Ping timeout: 260 seconds]
pootler has quit [Ping timeout: 264 seconds]
prophile has quit [Read error: Operation timed out]
didlix has joined #ruby
khushildep has quit [Read error: Operation timed out]
guilleiguaran_ has joined #ruby
Neomex has joined #ruby
mary5030_ has joined #ruby
freerobby has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
stkowski has joined #ruby
flaritycat has joined #ruby
rupee has joined #ruby
mary5030_ has quit [Remote host closed the connection]
saarinen has joined #ruby
kpshek has quit []
prophile has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cam`_ has joined #ruby
carlyle has joined #ruby
r0bgleeson has joined #ruby
Neomex has quit [Ping timeout: 259 seconds]
anay has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
gustavn has quit [Ping timeout: 260 seconds]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
alvaro_o has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
asteve has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
cha1tanya_ has joined #ruby
DanKnox_away is now known as DanKnox
jco__ has quit [Quit: leaving]
elentras has quit [Quit: Linkinus - http://linkinus.com]
shaunbaker has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
tylersmith has joined #ruby
jdripper has quit [Quit: Leaving.]
freerobby has joined #ruby
banghouse has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
pwnfactory has quit [Quit: Leaving]
JMcAfreak has quit [Quit: Dang it, Moon Moon!]
_main_ has joined #ruby
nomenkun has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
realDAB has joined #ruby
gustavn has joined #ruby
Evixion has joined #ruby
DanKnox is now known as DanKnox_away
Maoko has joined #ruby
spider-mario has joined #ruby
brianpWins has joined #ruby
pedda has joined #ruby
Kruppe has joined #ruby
wallerdev has joined #ruby
[[thufir]] has quit [Ping timeout: 264 seconds]
__main__ has quit [Ping timeout: 264 seconds]
_main_ is now known as __main__
jonathanwallace has quit [Quit: WeeChat 0.4.0]
pietr0_ is now known as pietr0
arietis has joined #ruby
saarinen has quit [Quit: saarinen]
julweber has joined #ruby
JZTech101 has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
AliRezaTaleghani has joined #ruby
cortexman has quit [Quit: Leaving.]
<AliRezaTaleghani> I get confused....
cheese1756 has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
<AliRezaTaleghani> how can I parse the result or output of a system(command) ?
rdark has quit [Quit: leaving]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
Ry0_ has joined #ruby
<AliRezaTaleghani> ?
<r0bgleeson> AliRezaTaleghani: use backticks, out = `ls`
JMcAfreak has joined #ruby
<heftig> or %x, if backticks are ugly
nicoulaj has joined #ruby
<havenwood> i think backticks are pretty!
saarinen has joined #ruby
<AliRezaTaleghani> r0bgleeson: :- ) tnx... perfect
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
jonathanwallace has joined #ruby
xardas has joined #ruby
<AliRezaTaleghani> heftig: how is the complete syntax? or an example
hadees has joined #ruby
gustavn has quit [Quit: Leaving]
RonScagz has joined #ruby
<heftig> %x followed by a delimiter
burlyscudd has joined #ruby
<havenwood> %x|ls|
<heftig> e.g. %x"ls"
<heftig> %x(ls)
gustavn has joined #ruby
<heftig> %x{ls} %x[ls] %x@ls@
<havenwood> %x ls
<r0bgleeson> oh yeah perl all up in my shit
<havenwood> ^ there is a space after ls (evil, don't do that)
c0rn has joined #ruby
kpshek has joined #ruby
<AliRezaTaleghani> heftig: wow :D I preffer to use backticks... ;-)
baordog has quit [Remote host closed the connection]
<heftig> system(*%w"rm -rf pkg src")
carlyle has quit [Remote host closed the connection]
<heftig> i actually wrote that to avoid the shell fork. wee.
milardovich has joined #ruby
bzitzow has joined #ruby
JZTech101 has joined #ruby
pootler has joined #ruby
pootler_ has joined #ruby
adeponte has joined #ruby
jbpros has joined #ruby
Ziarkaen` has joined #ruby
mklappstuhl has joined #ruby
_seanc_ has quit [Quit: _seanc_]
codesoda has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 246 seconds]
anay has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
Ziarkaen has quit [Ping timeout: 268 seconds]
poseid_ has joined #ruby
fenicks has joined #ruby
fomatin has joined #ruby
Zai00 has quit [Quit: Zai00]
mklappstuhl has quit [Ping timeout: 246 seconds]
poseid has quit [Ping timeout: 260 seconds]
poseid_ is now known as poseid
Ziarkaen` has quit [Ping timeout: 256 seconds]
airlok has joined #ruby
moshee has joined #ruby
DanKnox_away is now known as DanKnox
carlyle has joined #ruby
paul_k has joined #ruby
brianpWins has quit [Quit: brianpWins]
ffranz has joined #ruby
cortexman has joined #ruby
mrfoo has quit [Ping timeout: 250 seconds]
_ffio_ has joined #ruby
poseid has quit [Quit: poseid]
ffio_ has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
<r0bgleeson> heftig: system *["foo", "bar", "baz"] seems more readable
brianpWins has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
DrShoggoth has joined #ruby
icecandy has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
icecandy has joined #ruby
eladmeidar has joined #ruby
jonathanwallace has joined #ruby
tatsuya_o has joined #ruby
Voodoofish430 has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
milardovich has quit [Ping timeout: 276 seconds]
interactionjaxsn has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
[[thufir]] has quit [Ping timeout: 260 seconds]
poseid has joined #ruby
jonahR has joined #ruby
poseid has quit [Client Quit]
mklappstuhl has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
apeiros has joined #ruby
mklappstuhl has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
krawchyk has quit [Remote host closed the connection]
eldariof has joined #ruby
Mars` has joined #ruby
Solnse has joined #ruby
krisfremen-home has quit [Ping timeout: 268 seconds]
Nisstyre-laptop has joined #ruby
krawchyk has joined #ruby
optimusprimem has quit [Quit: Saindo]
Nisstyre-laptop is now known as Nisstyre
blackmesa has quit [Ping timeout: 240 seconds]
zeade has joined #ruby
optimusprimem has joined #ruby
Targen has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
krisfremen-home has joined #ruby
eladmeidar has quit [Quit: eladmeidar]
mklappstuhl has joined #ruby
codezombie has joined #ruby
cj3kim has quit [Remote host closed the connection]
xardas has quit [Read error: Connection reset by peer]
zigomir has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
xardas has joined #ruby
maxmanders has joined #ruby
verto has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
interactionjaxsn has joined #ruby
ebobby has joined #ruby
dnyy has joined #ruby
jbpros has quit [Ping timeout: 245 seconds]
obs has quit [Quit: Konversation terminated!]
devoldmx has quit [Ping timeout: 256 seconds]
shaileshg has joined #ruby
chichou has quit [Remote host closed the connection]
keyvan has joined #ruby
cool has joined #ruby
phasma has joined #ruby
heidar has joined #ruby
mroth has joined #ruby
notbrent___ has joined #ruby
karnowski has joined #ruby
bluehavana has joined #ruby
davidboy has joined #ruby
xerxas has joined #ruby
JoeTheGuest has joined #ruby
moeSeth has joined #ruby
dotemacs has joined #ruby
[[thufir]] has joined #ruby
sarcilav has joined #ruby
sambao21 has joined #ruby
chuk has joined #ruby
Spaceghost|cloud has joined #ruby
realDAB has quit [Quit: realDAB]
randym_ has joined #ruby
burlyscudd has joined #ruby
geoffw8_ has joined #ruby
niftylettuce has joined #ruby
Guest85414__ has joined #ruby
thebastl has quit [Remote host closed the connection]
kapowaz has joined #ruby
[0x1a] has joined #ruby
<Spooner> I'm giving up a contract to write Ruby docs, to concentrate on coding. The client asked if I could recommend anyone (PM me if interested and I've seen you here enough to know you are Ruby-wise).
jhowarth_ has joined #ruby
zmike123 has quit [Quit: ~]
Maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
zmike123 has joined #ruby
_Andres has joined #ruby
AliRezaTaleghani has left #ruby [#ruby]
maxmanders has quit [Quit: Computer has gone to sleep.]
NimeshNeema has joined #ruby
nikeita has quit [Quit: sleep]
x1337807x has joined #ruby
_seanc_ has joined #ruby
poseidon_ has quit [Quit: leaving]
voglster has joined #ruby
[[thufir]] has quit [Ping timeout: 256 seconds]
nbouscal has quit [Ping timeout: 256 seconds]
blaxter has quit [Quit: foo]
badquanta has joined #ruby
maxmanders has joined #ruby
Ry0_ has quit [Remote host closed the connection]
cortexman has quit [Quit: Leaving.]
reset has joined #ruby
troessner has quit [Remote host closed the connection]
inpo has joined #ruby
timonv has joined #ruby
rickmasta has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
rsahae has quit [Quit: rsahae]
inpo has quit [Client Quit]
zmike123 has quit [Read error: Connection reset by peer]
rsahae has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jbueza has quit [Quit: Leaving.]
pierre1 has joined #ruby
realDAB has joined #ruby
cads has joined #ruby
mary5030 has joined #ruby
tmosh has quit [Remote host closed the connection]
BlakeRG has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
icco has quit [Ping timeout: 240 seconds]
<BlakeRG> is there anything like frenzy_bunnies but MRI ?
nbouscal has joined #ruby
icco has joined #ruby
mary5030_ has quit [Ping timeout: 256 seconds]
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
maxmanders has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
havenwood has quit [Remote host closed the connection]
bondar has quit [Excess Flood]
dodosan has quit [Remote host closed the connection]
cofin has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
bondar has joined #ruby
bondar has quit [Client Quit]
bondar has joined #ruby
bondar has quit [Excess Flood]
vlad_starkov has joined #ruby
bondar has joined #ruby
bondar has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 264 seconds]
[[thufir]] has joined #ruby
poseid has joined #ruby
cburyta has quit [Remote host closed the connection]
bondar has joined #ruby
bondar has quit [Client Quit]
xardas has quit [Read error: Connection reset by peer]
bondar has joined #ruby
bondar has quit [Excess Flood]
Ry0_ has joined #ruby
bondar has joined #ruby
bondar has quit [Client Quit]
<_br_> Anyone here got Rack::Livereload, guard-livereload working with SLIM ?
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
bondar has joined #ruby
[[thufir]] has quit [Ping timeout: 246 seconds]
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
__main__ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
bondar has joined #ruby
bondar has quit [Excess Flood]
baordog has joined #ruby
johnnyfuchs has joined #ruby
browndawg has left #ruby [#ruby]
jonathanwallace has quit [Ping timeout: 246 seconds]
romockee has quit [Quit: romockee]
sventon has joined #ruby
goodgame has joined #ruby
thepumpkin has joined #ruby
johnmilton has quit [Remote host closed the connection]
bondar has joined #ruby
bondar has quit [Excess Flood]
__main__ has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
<flaritycat> Any suggestions on what could be a good first project in ruby?, just for learning?
Nisstyre has quit [Quit: Leaving]
v0n has joined #ruby
NsOmNiAc has quit [Ping timeout: 246 seconds]
codesoda has joined #ruby
Ry0_ has quit [Remote host closed the connection]
<MrZYX> try to automate a task you do daily to weekly
ananthakumaran has quit [Quit: Leaving.]
icco has quit [Ping timeout: 256 seconds]
NsOmNiAc has joined #ruby
<flaritycat> Well, I need something of value or else I just gonna quit.
Fire-Dragon-DoL has joined #ruby
<popl> Then quit.
<popl> :P
<_br_> flaritycat: Depends, if you like math e.g. Project Euler is fun.
<flaritycat> Thats really why I have started and quit every programming lang so far.
icco has joined #ruby
<Beoran__> what do you like, flaritycat?
<Beoran__> for game programming there is Gosu
<flaritycat> I have actually no intention of game programming, but something that displays a GUI is more of an giving project.
<_br_> green shoes.
yekta has joined #ruby
BlakeRG has quit [Remote host closed the connection]
cortexman has joined #ruby
pootler_ has quit [Ping timeout: 260 seconds]
pootler has quit [Ping timeout: 260 seconds]
<flaritycat> _br_: Thanks, green shoes seems to be like something that will get me farther in the learning process.
TheFuzzball has quit [Quit: Leaving...]
<flaritycat> further*
<_br_> well, happy hacking.
BlakeRG has joined #ruby
codesoda has quit [Ping timeout: 268 seconds]
shaunbaker has joined #ruby
<Beoran__> looks like fun, really
cha1tanya_ has quit [Ping timeout: 256 seconds]
shaunbaker has quit [Remote host closed the connection]
<Beoran__> is green shoes the best offshoot of shoes nowadays?
<_br_> Sort of, imo
blaxter_ has joined #ruby
<flaritycat> Why can't it actually install in the right place...once in a while ...
<Beoran__> are there other shoes soffshoots that are useful?
[[thufir]] has joined #ruby
Skelz0r_ has quit [Ping timeout: 264 seconds]
* _br_ points at the shoe rack over there
<Beoran__> flagg0204, how so?
reset has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
eladmeidar has joined #ruby
jztech101_ has joined #ruby
JZTech101 has quit [Ping timeout: 264 seconds]
Guest77334 has quit [Quit: EOF]
rsahae has quit [Quit: rsahae]
autumn has joined #ruby
kindjal has joined #ruby
brennanMKE has joined #ruby
thesheff17 has joined #ruby
<Beoran__> I mean flaritycat how so?
johnmilton has joined #ruby
braincrash has joined #ruby
workmad3 has joined #ruby
khushildep has joined #ruby
<flaritycat> Beoran__: Oh, I thought it where installed in wrong dir, but it wasn't. It just wasn't installed at all, a wall of errors occured.
v0n has quit [Read error: Operation timed out]
v1n has joined #ruby
<flaritycat> ERROR: Failed to build gem native extension.
machuga|away is now known as machuga_
viszu has quit [Quit: Leaving.]
icco has quit [Read error: Operation timed out]
rsahae has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<Beoran__> flaritycat, on what operating system are you working?
<Eiam> If I have two arrays a,b with numbers, and I want the numbers in b that are not in a, is there a math construct for this? its not the union or the intersection
<flaritycat> Beoran__: Ubuntu 12.04
k610 has joined #ruby
<flaritycat> I see there is some problems on debian/ubuntu when updating... But it is up to date.
<MrZYX> Eiam: b-a
<Beoran__> flaritycat, this means you are missing the development headers of the various libraries
machuga_ is now known as machuga
chrisja has quit [Quit: leaving]
<Eiam> MrZYX: hmmm
fomatin has joined #ruby
[[thufir]] has quit [Ping timeout: 264 seconds]
* Eiam stares at irb
<Eiam> I already tried that and swear it wasn't the right answer
icecandy has quit [Remote host closed the connection]
<Eiam> upon further consideration, it appears perhaps it was ;)
icco has joined #ruby
fuzzyhorns has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby
<sventon> hi all
<sventon> I struggle to understand how to write regular expressions
Ry0_ has joined #ruby
<Eiam> sventon: rubular is pretty useful for that
<Eiam> sventon: perhaps Regexp.union ?
nbouscal has quit [Read error: Connection reset by peer]
<Beoran__> you'll need to apt-get install them, ... hmm but which one, ssomething gtk2-ish
lkba has joined #ruby
<Beoran__> try the "red" shoes in stead.
Mars` has quit [Ping timeout: 256 seconds]
rezzack has joined #ruby
sambao21 has joined #ruby
<MrZYX> sventon: that is actually working, your result is in group 2, you can make the first and last group non capturing with (?:'|")
rezzack has quit [Client Quit]
<flaritycat> Beoran__: Thanks, ill try.
rezzack has joined #ruby
ArchBeOS is now known as enroxorz
Mars` has joined #ruby
mary5030 has quit [Ping timeout: 276 seconds]
enroxorz has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
timonv has joined #ruby
<Beoran__> sventon, we all do... there are som tools out there that help with writing rexeps
skane has joined #ruby
<Beoran__> but I forgot which ones :p
skane has quit [Client Quit]
<Eiam> I use http://rubular.com/
<Eiam> it shows you match groups too which is helpful
eladmeidar_ has joined #ruby
brennanM_ has joined #ruby
<sventon> MrZYX: ah, you are right! should been able to figure thatone out! : )
eladmeidar has quit [Ping timeout: 240 seconds]
eladmeidar_ is now known as eladmeidar
<sventon> thanks!
vdandre has quit [Quit: Ab ins Kino.]
<sventon> Eiam: will start using that page, thanks
mary5030 has joined #ruby
<Eiam> MrZYX: further testing confirms, you indeed are successful at math
<Eiam> and I am a failure =)
<MrZYX> :P
<MrZYX> it's first semester math :P
<Eiam> hey man i was working on set theory alright!!
<Eiam> I was looking for some fancy operator
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<Eiam> like |&~|
<Eiam> not
<Eiam> -
<Morrolan> Like a '-'? :o
cburyta has joined #ruby
<Eiam> shut it!
<Eiam> lol
<Morrolan> <3
brennanMKE has quit [Ping timeout: 260 seconds]
<MrZYX> I wonder if ruby has complement...
braincrash has quit [Ping timeout: 256 seconds]
<Eiam> I guess this is the modern day equivalent of "oh, you forgot your semi colon there"
<Eiam> back when borland builder didn't tell you errors like that in a useful way.
Ripp__ has joined #ruby
dodosan has joined #ruby
Neomex has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Neomex has quit [Client Quit]
realDAB has quit [Quit: realDAB]
<Eiam> anyway, thank you =)
saarinen has quit [Quit: saarinen]
nbouscal has joined #ruby
khushildep has quit [Quit: khushildep]
runa has joined #ruby
brennanM_ has quit [Read error: Connection reset by peer]
<runa> aj. how should I fix this fiber-fork problem? http://pastebin.com/MsRba1FV
brennanMKE has joined #ruby
pootler_ has joined #ruby
pootler has joined #ruby
<atmosx> I'm extracint data from a mysql db and it's not utf8 any ideas? The DB is utf8, i can see the data there...
[[thufir]] has joined #ruby
<atmosx> sequel connects with encoding: 'utf8'
devoldmx has joined #ruby
jonahR has quit [Quit: jonahR]
<atmosx> still output data is 8-bit ascii
<jokke> hey, whats the rails channel? #rails seems kind of dead...
<GeekOnCoffee> #rubyonrails:
<Eiam> #rubyon rails
<jokke> ah yeah
<jokke> thanks
jonkri_ has joined #ruby
jonkri has quit [Ping timeout: 240 seconds]
Appineer has joined #ruby
Akuma has quit [Quit: So long sukkas!]
skane has joined #ruby
flaritycat has quit [Remote host closed the connection]
fredjean has joined #ruby
<goodgame> you need to be logged in...
Appineer has left #ruby [#ruby]
cj3kim has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gildo_ has joined #ruby
gildo has quit [Read error: Connection reset by peer]
jmimi has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
elux has quit [Quit: Leaving...]
v0yager has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
<goodgame> do we need the .to_i in ruby for the following code?
<goodgame> def year=(y)
<goodgame> @year = y.to_i
cj3kim has quit [Ping timeout: 260 seconds]
<MrZYX> maybe
vigintas_ has quit [Read error: Connection reset by peer]
<MrZYX> (read this is not enough context)
<Morrolan> goodgame: That very much depends on what kind of object you pass to this method. :)
elaptics is now known as elaptics`away
ddm has joined #ruby
havenwood has joined #ruby
bklane has quit [Remote host closed the connection]
<atmosx> goodgame: if y is an integer no if not yes
k610 has quit [Quit: Leaving]
__main__ has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
obs has joined #ruby
[[thufir]] has quit [Ping timeout: 246 seconds]
brianpWins has quit [Quit: brianpWins]
<goodgame> ok ok , I thought even though it wasn't an int, in case of use it would be auto converted in int
cofin has quit [Quit: cofin]
<goodgame> (if needed)
<atmosx> I was about start making diet today
<Morrolan> Nope, no implicit conversions in Ruby.
<atmosx> and then my mother says it has musaka
<atmosx> Imean
<Morrolan> atmosx: *snrk*
<atmosx> can I do .to_diet
__main__ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
brennanMKE has quit [Read error: Connection reset by peer]
<atmosx> I tried and I came up with an ERRNO:MUSAKA
<Morrolan> atmosx: To convert the musaka to diet-food? Not sure it'd still be tasty, then.
<atmosx> Morrolan: that's a sacriledge I believe
<Morrolan> It's like converting a pretty instance of DateTime to a Unix timestamp.
<atmosx> Morrolan: no one will ever implement that
<Morrolan> Sure, it works, but it's really two step backwards.
<atmosx> yeah
Ry0_ has quit [Remote host closed the connection]
<atmosx> sucks and might turn out useless (as long as taste is concerned)
<atmosx> oh poor me
sepp2k1 has joined #ruby
<atmosx> I'll eat the musaka and start to_diet tomorrow
<atmosx> lol
<MrZYX> you need to implement a def atmosx.weight= weight
<MrZYX> way better solution
thmzlt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blitz> what's the most ruby way to permutate over every combination of two lists? just a loop in a loop?
<Morrolan> MrZYX: I got a feeling this involves a sharp knife or two. :o
<MrZYX> nah, just a nice fire to cook it out...
tonini has joined #ruby
<Morrolan> >> [1,2,3].product(['a', 'b', 'c'])
<eval-in> Morrolan => [[1, "a"], [1, "b"], [1, "c"], [2, "a"], [2, "b"], [2, "c"], [3, "a"], [3, "b"], [3, "c"]] (https://eval.in/36940)
sepp2k has quit [Ping timeout: 240 seconds]
blaxter_ has quit [Quit: foo]
<blitz> sweet thanks Morrolan
<Morrolan> :)
Fire-Dragon-DoL has left #ruby [#ruby]
axl_ has quit [Quit: axl_]
brianpWins has joined #ruby
cofin has joined #ruby
axl_ has joined #ruby
danslo has quit [Quit: danslo]
<goodgame> i've got a blank in my head, what would be the equivalent of ruby modules in java?
haxrbyte has quit [Read error: Connection reset by peer]
<goodgame> is it equivalent to abstract classes?
momomomomo has quit [Quit: momomomomo]
Kruppe has quit [Remote host closed the connection]
<Morrolan> Ruby modules are used both for namespacing, as well as for grouping functions together, so probably namespaces & abstract classes.
<Morrolan> (Take it with a grain of salt)
haxrbyte has joined #ruby
_seanc_ has quit [Quit: _seanc_]
brbcoding has quit [Ping timeout: 268 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<r0bgleeson> theyre not abstract classes
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<r0bgleeson> theyre not even a class
<Morrolan> Sure they're not, but if you wanted to group a bunch of functions together in Java you'd have to use an abstract class, wouldn't you?
v1n has quit [Quit: WeeChat 0.4.1]
v0n has joined #ruby
<r0bgleeson> no idea, i don't write Java, but i don't think thats a good mental model to build
<Morrolan> Which would make them the 'equivalent' thing.
* Morrolan shrugs
<Morrolan> Probably not.
<MrZYX> you can use classes for namespacing too :P
<Eiam> yeah seems weird to think of a module as a class
<Eiam> class typically means instance to me, modules don't require instances
<Eiam> (or have them...)...
<Morrolan> Welcome to Java, where you have primitive datatypes, but if you want to do the most basic of tasks you still need a class. :P
<BlakeRG> is there any chance this would run on MRI and not in jRuby? https://github.com/jondot/frenzy_bunnies
blackmesa has quit [Ping timeout: 240 seconds]
<Eiam> Morrolan: well, thank god I'm in #ruby =)
haxrbyte has quit [Ping timeout: 256 seconds]
<Morrolan> BlakeRG: It claims to be a jRuby based worker framework, would be odd if it wouldn't run in jRuby. :o
pierre1 has quit [Quit: Leaving]
<Morrolan> Oh, sorry, I missunderstood.
<BlakeRG> Morrolan: i mean, would it run on MRI
bklane has joined #ruby
jonathanwallace has joined #ruby
<Morrolan> Yep, realised that I read your sentence the wrong way a few seconds ago. :)
sambao21 has joined #ruby
<r0bgleeson> BlakeRG: try it?
Ripp__ has quit [Ping timeout: 248 seconds]
runa has left #ruby [#ruby]
asdfasd_ has joined #ruby
cburyta has quit [Remote host closed the connection]
cburyta has joined #ruby
mark_locklear has quit [Ping timeout: 268 seconds]
rickmasta has quit [Quit: Leaving...]
txdv_ has joined #ruby
krainboltgreene has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
txdv has quit [Read error: Connection reset by peer]
kindjal has joined #ruby
vasilakisFiL has joined #ruby
[[thufir]] has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
<vasilakisFiL> Hello! Does anyone know how do you return the sliced string and not affect the original? For example if I have "hello world", I want to slice "hello " and return just the "world" part, without modifying the original string object?
sambao21 has quit [Quit: Computer has gone to sleep.]
yekta_ has joined #ruby
<Eiam> >>"hello world".split(" ").last
<eval-in> Eiam => "world" (https://eval.in/36941)
yekta has quit [Ping timeout: 276 seconds]
yekta_ is now known as yekta
Kruppe has joined #ruby
<jmimi> slice does not change self string
thmzlt has joined #ruby
sambao21 has joined #ruby
<Eiam> vasilakisFiL: ^ slice! does a change
<vasilakisFiL> slice! does change it however
<vasilakisFiL> yes
toastynerd has joined #ruby
jztech101_ has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
pothibo has quit [Quit: pothibo]
jonahR has joined #ruby
BillCriswell has quit [Remote host closed the connection]
<jmimi> usually methods with ! work on self object
JZTech101 has joined #ruby
<vasilakisFiL> I want to remove a substring from a string so Eiam's solution is not working to me since the substring might be anywere in the string
<vasilakisFiL> of course i can use slice! but somehow I don't like to modify the self string
<Eiam> uhh
<Eiam> you want to "remove" something
<Eiam> but not modify it?
brennanMKE has joined #ruby
matchaw_ has joined #ruby
<vasilakisFiL> yes I want to have a new copy returned
yekta has quit [Ping timeout: 246 seconds]
<Eiam> so slice..
<Eiam> I feel like we are going in circles here
matchaw has quit [Ping timeout: 276 seconds]
<jmimi> s = t.slice(m1, m2)
bsdbandi1 has quit [Remote host closed the connection]
[[thufir]] has quit [Ping timeout: 268 seconds]
c0rn has joined #ruby
emmanuelux has joined #ruby
mansi has joined #ruby
airlok has quit [Remote host closed the connection]
yekta has joined #ruby
nowthatsamatt has joined #ruby
c0rn_ has joined #ruby
Ry0_ has joined #ruby
flaritycat has joined #ruby
toastynerd has quit [Quit: Leaving]
chichou has joined #ruby
c0rn has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
asdfasd_ has left #ruby [#ruby]
jbueza has joined #ruby
<vasilakisFiL> nevermind split method with regex gets the job done better than slice
<vasilakisFiL> thanx anyway
chichou has quit [Ping timeout: 256 seconds]
thmzlt has left #ruby ["Textual IRC Client: www.textualapp.com"]
goodgame has quit [Ping timeout: 260 seconds]
Ry0_ has quit [Ping timeout: 256 seconds]
cburyta has quit [Remote host closed the connection]
fomatin has joined #ruby
krawchyk has quit [Remote host closed the connection]
fomatin has quit [Client Quit]
_seanc_ has joined #ruby
Niichan is now known as NiiKHAAAAAAAAAAA
goshakkk has joined #ruby
NiiKHAAAAAAAAAAA is now known as NiiKHAAAAAAAAAN
fomatin has joined #ruby
NiiKHAAAAAAAAAN is now known as NiiKHAAAAAAAAAAN
x1337807x has joined #ruby
goodgame has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
CaptainJet has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<havenwood> >> 'hello world'[/(\w+)$/]
<eval-in> havenwood => "world" (https://eval.in/36949)
<goodgame> I've got a trivial problem, i'm beginning, i've the following class http://pastebin.com/CuzDP4GS in the file 'ticket.rb' and I try 'th = Ticket.new' in irb but I've an error
<Eiam> havenwood: lemme try to parse that… access the array based on the last word in the line?/
<goodgame> NameError: uninitialized constant Ticket
<goodgame> from (irb):5
<goodgame> from /usr/bin/irb:12:in `<main>'
<Eiam> goodgame: require 'ticket' ?
[[thufir]] has joined #ruby
<goodgame> in irb?
<Eiam> y
<havenwood> Eiam: presumes that string ends in a word, would have to do more if you wanted to capture last word followed by whitespace
<davidcelis> goodgame: Files don't get included by default. You have to require them
<havenwood> and know if you want to capture that whitespace or not
NiiKHAAAAAAAAAAN is now known as Niichan
<goodgame> ow, that's surprising
<Eiam> havenwood: I think your answer was gross =(
<Eiam> and thats not a judgement on you =)
<davidcelis> goodgame: why is that surprising?
<havenwood> Eiam: split.last is fine by me, but why not throw out a regex-only option :P
<Eiam> havenwood: regex, now you've got two problems? =)
<goodgame> no, don't know, because I'm beginning, but I get this error when i require : http://pastebin.com/KWUbkyqG
eladmeidar has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 256 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
nouitfvf_ has quit []
romockee has joined #ruby
hadees has quit [Quit: hadees]
Uranio has quit [Quit: while you reading this, a kitty dies]
stuartrexking has joined #ruby
forced_request has quit [Ping timeout: 246 seconds]
<apeiros> >> 'hello world'[/\w+$/]
<eval-in> apeiros => "world" (https://eval.in/36950)
geggam has joined #ruby
<apeiros> just because ;-)
<apeiros> (yes, I hate superfluous groups! kill them! with fire!)
geggam has quit [Remote host closed the connection]
<goodgame> davidcelis: is it a path problem?
<Morrolan> goodgame: If you're using a recent version of Ruby, then you'll have to use `require_relative 'relative/path/to/file'` for files which aren't part of Ruby's loadpath.
<goodgame> Morrolan: wouldn't it be easier to update this path?
geggam has joined #ruby
eladmeidar has joined #ruby
<Morrolan> Inside a project you generally use require_relative. When you then distribute your library you'll probably distribute it as a 'gem', which people then install into a folder which is part of Ruby's load path.
cj3kim has joined #ruby
eladmeidar has left #ruby [#ruby]
druonysus has quit [Quit: Konversation terminated!]
nikeita has joined #ruby
<goodgame> ok ok =)
druonysus has joined #ruby
maxmanders has joined #ruby
<goodgame> but require_relative 'ticket' and require_relative './ticket' don't work (i'm using 1.9.3)
cburyta has joined #ruby
<Morrolan> irb, right?
<goodgame> yes
forrest has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
<Morrolan> IRB's pwd is probably not what you think it to be, but I'm unsure. Try a require_relative with an absolute path to the file.
[[thufir]] has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
eldariof has quit [Read error: Operation timed out]
<goodgame> cannot infer base path
nikeita has quit [Client Quit]
milardovich has quit [Max SendQ exceeded]
<goodgame> i come back later thanks for your help
milardovich has joined #ruby
cj3kim has quit [Ping timeout: 248 seconds]
<Morrolan> Oh, sorry, 'require' with an absolute path should work in IRB.
nikeita has joined #ruby
<Morrolan> (There's probably more elegant / proper ways, but I don't know.)
Astralum has joined #ruby
daidoji has joined #ruby
hadees has joined #ruby
<goodgame> ok thanks, seems to work
timonv has quit [Remote host closed the connection]
<Morrolan> Stick around a while, one of the other guys/gals might have something to add. :)
nbouscal has joined #ruby
vlad_starkov has joined #ruby
<MrZYX> irb takes the -I flag, just like ruby
fyym has joined #ruby
<goodgame> i've gotta log out, not much battery, it'll help for now thanks
dodosan has quit [Remote host closed the connection]
enroxorz has joined #ruby
dodosan has joined #ruby
<enroxorz> is there a way to attach ruby debugger to an active ruby process...in windows?
cburyta has quit [Remote host closed the connection]
pierre1 has joined #ruby
goodgame has quit [Ping timeout: 268 seconds]
javiferrer has quit [Ping timeout: 256 seconds]
cburyta has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 276 seconds]
ravster has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
ner0x has quit [Quit: Leaving]
vasilakisFiL has left #ruby ["Konversation terminated!"]
maxmanders has quit [Ping timeout: 248 seconds]
kirun has quit [Quit: Client exiting]
Ripp__ has joined #ruby
maxmanders has joined #ruby
pierre1 has quit [Remote host closed the connection]
milardovich has quit [Quit: Leaving]
pierre1 has joined #ruby
reset has joined #ruby
Xeago has joined #ruby
burlyscudd has quit [Quit: Leaving.]
tatsuya_o has joined #ruby
cburyta has quit [Remote host closed the connection]
Zai00 has joined #ruby
_main_ has joined #ruby
diegoviola has joined #ruby
daidoji has quit []
tvw has quit []
tvw has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__main__ has quit [Ping timeout: 256 seconds]
_main_ is now known as __main__
geekbri has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
sventon has quit [Ping timeout: 276 seconds]
<nikeita> how to assign e dafault value if blank or nil without a ternary operator?
jkline has joined #ruby
<yebyen> nikeita: you're looking for the elvis operator, or "coalesce"
<yebyen> i don't think there is one in ruby
pskosinski has joined #ruby
<MrZYX> "blank"?
<nikeita> i.e.: hp = motor.hp.blank? ? "0" : motor.hp
<MrZYX> ruby has no blank? method ;)
<yebyen> nikeita: in groovy, you can do this:
<yebyen> def displayName = user.name ?: "Anonymous"
<yebyen> MrZYX: isn't there one in rails?
<MrZYX> yes
<MrZYX> but this is #ruby ;)
<yebyen> :)
<MrZYX> for nil checks you can do foo ||= "bar" in ruby
LBRapid has quit [Quit: ZNC - http://znc.sourceforge.net]
<yebyen> ah
<yebyen> doesn't even look like elvis
<yebyen> i've heard that before though
<MrZYX> you can shorten the blank check to foo = "bar" if foo.blank?
<nikeita> yep but if foo is nil foo.blank? dump
<MrZYX> ?
c0rn_ has quit [Quit: Computer has gone to sleep.]
sventon has joined #ruby
danshultz has joined #ruby
codepython7771 has joined #ruby
<yebyen> unless foo.nil?; foo="bar" if foo.blank?; else foo ||= "bar; end
<nikeita> if foo = nil …the call foo.blank? trow exception?
<MrZYX> no
<Eiam> what the heck
x1337807x has joined #ruby
<Eiam> there is no .blank in ruby!
<jkline> I am new to Ruby and RSpec. When you create spec files do you typically create only one spec file per class file? Or, do you break up the functionality of a complex class and test in different spec files?
ybart has joined #ruby
<MrZYX> yebyen: what the...?
<yebyen> Eiam: there is .empty? though right?
tatsuya_o has quit [Remote host closed the connection]
<nikeita> nil.blank?
<yebyen> MrZYX: missing right-hand quote
<Eiam> >> a=[]; y = a.empty? ? "nope" : a
<eval-in> Eiam => "nope" (https://eval.in/36956)
enroxorz has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
<Eiam> >> a=[]; y = !a.empty? ? "nope" : a
<eval-in> Eiam => [] (https://eval.in/36957)
maxmanders has quit [Ping timeout: 256 seconds]
<Eiam> there =p
c0rn has joined #ruby
<MrZYX> nikeita: this really is a #rubyonrails question and answer, but if you use the value only once, where you use it do foo.presence || "default"
machuga is now known as machuga|away
jsonperl has joined #ruby
colonolGron has joined #ruby
<nikeita> c = nil; c.blank? -> NoMethodError
<Eiam> yebyen: yes, I just showed you an example
machuga|away is now known as machuga|away_
<MrZYX> nikeita: then you're not inside rails
RichardBaker has quit [Ping timeout: 256 seconds]
<jsonperl> Does anyone see any issues make installing a new version of ruby atop a previous install?
<nikeita> MrZYX i asked for a ruby syntax....
<Eiam> of courrse a has to be defined for that example..
machuga|away_ is now known as machuga
<MrZYX> nikeita: I said quite early that ruby has no blank? method at all
<jsonperl> eg. I have 1.9.3 installed
<nikeita> i never mentioned the blank? method
<jsonperl> and I'm installing 2.0.0-p247
<yebyen> jsonperl: it's very easy with rvm
<jsonperl> sure… I'd like to avoid it on a production box
syamajala has joined #ruby
freerobby has quit [Quit: Leaving.]
<jsonperl> I prefer just to build ruby from source
<Eiam> expand the ternary into an if/else block, boom. no ternary.
<MrZYX> nikeita: so what's your concept of blank? (which I asked with "blank" ? in my first answer)
LBRapid has joined #ruby
<yebyen> jsonperl: why? you're just going to go through headaches to manage your production through transition to a new version
<nikeita> a blank string
<MrZYX> always a string?
<yebyen> jsonperl: we use rvm in production
<nikeita> yes
<jsonperl> Because rvm introduces a bunch of headaches too
<MrZYX> foo = "bar" if foo.empty?
jerius_ has joined #ruby
<MrZYX> empty as in empty " " is not empty
<jsonperl> installing ruby from source is pretty easy… I'm just unclear if it "does the right thing"
<yebyen> jsonperl: are you planning to use gnu stow instead?
cburyta has joined #ruby
<nikeita> again foo could be also nil
<MrZYX> foo = "bar" if foo.strip.empty? to ignore whitespace
<MrZYX> I just asked if it's always a string...
<jsonperl> hmm im not aware of it
<MrZYX> foo = "bar" if (foo || "").empty?
<nikeita> mm..ok a string or not assigned
<yebyen> jsonperl: if you don't want to use rvm, i don't know another good way to pivot from one path to another
<Eiam> MrZYX: you enjoy torture =)
<MrZYX> :P
mansi has quit [Remote host closed the connection]
<jsonperl> i don't need to pivot though
<nikeita> ;)
<jsonperl> i need one version of ruby
<yebyen> jsonperl: unless your intention is to hardcode the path of ruby in #!/shebangs
<jsonperl> wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
<jsonperl> yep
johnnyfuchs has quit [Remote host closed the connection]
<nikeita> ok…i prfere a ternary then ...!
mansi has joined #ruby
<nikeita> :P
maxmanders has joined #ruby
<yebyen> jsonperl: you said you had 1.9.3, i assumed you meant to keep it (in case 2.0.0 didn't work for you)
<MrZYX> foo = (foo || "").empty? ? "bar" : foo is better?
johnnyfuchs has joined #ruby
baordog has quit [Remote host closed the connection]
<TheMoonMaster> That is an ugly line of Ruby.
<MrZYX> exactly
jerius has quit [Ping timeout: 268 seconds]
xardas has quit [Ping timeout: 276 seconds]
JZTech101 has quit [Ping timeout: 268 seconds]
<yebyen> jsonperl: you'll use --prefix (i haven't compiled ruby by hand but I expect it uses the standard ./configure --prefix) to put it in a separate location from your current install
<Eiam> TheMoonMaster: because someone is being difficult
<Eiam> TheMoonMaster: if they want .blank? they should add blank to their class and call it
<yebyen> jsonperl: stow is really only helpful if you used it from the beginning
<Eiam> instead of partying around some stupid construct
<TheMoonMaster> Eiam: I'm glad that wasn't a serious line. Haha
<TheMoonMaster> That would make me cry if I saw that in a project.
<jsonperl> yebyen I missed your chat… i have no desire to keep 1.9.3
<MrZYX> TheMoonMaster: nikeita seems to prefer that over foo = "bar" if (foo || "").empty?
<Eiam> TheMoonMaster: I would approve being punched in the face for writing that.
<Eiam> If I wrote it =)
<flaritycat> Any thoughts on how long it takes for an experienced programmer to build an Ruby backend with some mathematical sequences?
<jsonperl> my question is merely… if i configure, make, and install, will 2.0.0 properly replace my previous install
<yebyen> oh :)
<TheMoonMaster> MrZYX: Well that's not good.
<TheMoonMaster> nikeita: What language are you coming from? If any?
<jsonperl> it certainly seems to…
<nikeita> All C famlly
<jsonperl> ruby -v
<jsonperl> ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
<nikeita> family
<yebyen> jsonperl: i would say that should work fine
<jsonperl> cool
<TheMoonMaster> Weird. That line looks way esoteric.
<yebyen> http://stackoverflow.com/questions/2591501/how-to-uninstall-ruby-from-usr-local <- for some hints about where you might have 1.9.3 detritus left after that
<TheMoonMaster> Hah
<jsonperl> cool, thanks for the link
<TheMoonMaster> I should write a Saturnian to Javascript compiler. Because that's the in thing now.
poseid has quit [Quit: poseid]
mansi has quit [Ping timeout: 256 seconds]
redgirl has joined #ruby
johnmilton has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
cburyta has quit [Remote host closed the connection]
<MarcWeber> Is there a simple to_a like function for non arrays?
<MarcWeber> Often its convenient to pass a string instead of [string] to save typing
<MrZYX> #chars / #lines / #split ?
sailias has quit [Ping timeout: 276 seconds]
<Eiam> %w?
ybart has quit [Quit: ybart]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Eiam> >>"a".split()
<eval-in> Eiam => ["a"] (https://eval.in/36958)
<Eiam> >>Array("a")
<MrZYX> >> "a b\nc\td".split
<eval-in> Eiam => ["a"] (https://eval.in/36959)
<eval-in> MrZYX => ["a", "b", "c", "d"] (https://eval.in/36960)
obs has quit [Quit: Konversation terminated!]
<Eiam> >>Array("a b\nc\td")
<eval-in> Eiam => ["a b\nc\td"] (https://eval.in/36961)
<Eiam> psh =)
<MarcWeber> Array() is what I was looking for :)
v0n has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
<MrZYX> then you can do [] as well
<Eiam> MrZYX: both examples supported the original case ;p
<Eiam> >>"a"[]
<eval-in> Eiam => wrong number of arguments (0 for 1..2) (ArgumentError) ... (https://eval.in/36962)
<MrZYX> Array("a") == ["a"] (mostly)
<MrZYX> MarcWeber: maybe you search for [*array_or_string] ?
<jsonperl> allright off to build some servers… thanks
Ripp__ has quit [Read error: Connection reset by peer]
jsonperl has left #ruby [#ruby]
<MarcWeber> MrZYX: That's even shorter :)
zarubin has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
Ripp__ has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
Adawerk has joined #ruby
forced_request has joined #ruby
huoxito has quit [Read error: Connection reset by peer]
<apeiros> the use of Kernel#Array is indicative of bad parameter normalization
redgirl has quit [Ping timeout: 264 seconds]
DanKnox is now known as DanKnox_away
gr33n7007h has joined #ruby
jonahR has quit [Quit: jonahR]
nomenkun has joined #ruby
huoxito has joined #ruby
mmitchell has quit [Ping timeout: 268 seconds]
<Eiam> apeiros: because its reliant on a specific type?
<Eiam> or rather, it assumes a type
<Eiam> ?
<apeiros> that's fine
<apeiros> what's not fine is pretending you knew how to normalize the data you get from the user.
<apeiros> you don't. the user does. hence let the user handle it.
<apeiros> (user == the one calling your method)
staafl has joined #ruby
cburyta has joined #ruby
<Eiam> isn't that why you document what you support?
JZTech101 has joined #ruby
ldnunes has quit [Quit: Leaving]
<apeiros> yes, but I think you're deviating from the problem.
zarubin has quit [Ping timeout: 248 seconds]
<Eiam> I'm not sure I understand the problem ;)
<apeiros> you document what you support. you potentially raise if you don't get that. but you should only very very rarely coerce your input into what you support.
nomenkun has quit [Read error: Operation timed out]
<MrZYX> hm, what about SomeModel.get(id) vs SomeModel.get([id1, id2])? You'd prefer SomeModel.get(id) and SomeModel.get_all([id1, id2]) ?
<apeiros> i.e., you should not use Array().
<apeiros> MrZYX: yes
codecop has quit [Remote host closed the connection]
<apeiros> it's fugly to have a method which has two entirely different modes of operation.
<Eiam> MrZYX: I'd prefer just one method, and an array of 1 =)
<apeiros> once it takes a single id and returns a single model
<apeiros> once it takes an array and returns an array
<Eiam> d3 style where its all an array
<apeiros> say what you mean. do what you say.
<apeiros> Eiam: you're free to use get_all with a single element array all the time :-p
<Eiam> apeiros: right, I'm saying from an interface standpoint
<Eiam> just expose noe
<Eiam> one
arya__ has joined #ruby
<Eiam> SomeModel.get_all
<apeiros> I think it's fine to expose both
arya_ has quit [Ping timeout: 248 seconds]
syamajala has quit [Quit: leaving]
tvw has quit []
arya__ is now known as arya_
<Eiam> code duplication, just wrap it in a function that returns .first for you
<Eiam> if you care that much
staafl_alt has quit [Ping timeout: 246 seconds]
<apeiros> it's an assumption of yours that it is code duplication
<apeiros> in the opposite, exposing both will reduce code duplication
<apeiros> (code to either map single ids to models, or to get a single model from a single id)
blackmesa has joined #ruby
<apeiros> (depending on which one you expose)
flaritycat has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
workmad3 has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby
codepython7771 has quit [Ping timeout: 264 seconds]
nicoulaj has quit [Remote host closed the connection]
freerobby has joined #ruby
cburyta has joined #ruby
mortik has joined #ruby
<jkline> any suggestions on how to name spec files for my classes?
<jkline> and should I have one spec file per class, or several?
<mortik> how can I test if the length of a string is within a given range with minitest::spec?
interactionjaxsn has quit [Remote host closed the connection]
BrianJ has joined #ruby
interactionjaxsn has joined #ruby
breakingthings has quit [Quit: breakingthings]
rien has joined #ruby
crankycoder has quit [Quit: leaving]
danshultz has quit [Remote host closed the connection]
<mortik> I've tried name.lenth.must include 3..50 but that causes a failure expected 5 (fixnum) to respond to include?
<apeiros> wow. ^ this is the reason I don't use silly things like spec.
<rien> hey folks. when installing a ruby from source, how can I specify which folder to install to?
<apeiros> plain ruby: assert name.length.between?(3,50)
poga has joined #ruby
FDj_ is now known as FDj
<apeiros> or with an assertion helper: assert_between 3, 50, name.length # assuming you wrote one - might even exist one, I'm too lazy too look it up
carlyle has quit [Remote host closed the connection]
mansi has joined #ruby
<rien> I just compiled ruby-2.0.0-p247 from source but I want to do it again but this time picking a directory
<MrZYX> I guess I'd work if you swap it, (3..50).must include name.length
<rien> I want it to go to /opt/ruby2 for instance
<MrZYX> but that's ugly
<Beoran__> configure --prefix=/opt/ruby2
<apeiros> rien: check the configure options?
<Beoran__> normally it's --prefix=XXX with ./configure
brianpWins has quit [Quit: brianpWins]
<jkline> rien: I would suggest ruby20 because I have see ruby19 refer to the 1.9 branch
saarinen has joined #ruby
milardovich has joined #ruby
cburyta has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 268 seconds]
<rien> apeiros: how do I check the configure options?
vlad_starkov has joined #ruby
milardovich has quit [Max SendQ exceeded]
<jkline> some places do not support those extra dots, like for example package names I have seen ruby and ruby19 corresponding to ruby 1.8.x and ruby 1.9.x respectively
milardovich has joined #ruby
brianpWins has joined #ruby
LennyLinux has joined #ruby
<apeiros> rien: ./configure -h
marcdel has quit [Ping timeout: 246 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
zarubin has joined #ruby
milardovich has quit [Max SendQ exceeded]
<rien> apeiros: thanks!
redgirl has joined #ruby
milardovich has joined #ruby
sventon has quit [Ping timeout: 268 seconds]
milardovich has quit [Max SendQ exceeded]
marcdel has joined #ruby
milardovich has joined #ruby
milardovich has quit [Max SendQ exceeded]
fyym has quit [Remote host closed the connection]
milardovich has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
moted has quit [Quit: moted]
vlad_starkov has quit [Ping timeout: 264 seconds]
moted has joined #ruby
<mortik> MrZYX: That worked.
<mortik> apeiros: Well I figured I might give the spec library a try
<apeiros> mortik: sure. why not. just don't expect me to be sorry if you suffer :-p
<mortik> T_T
Kruppe has quit [Ping timeout: 246 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mortik has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
brianpWins has quit [Quit: brianpWins]
cortexman has quit [Quit: Leaving.]
cortexman has joined #ruby
cortexman has quit [Max SendQ exceeded]
tonini has quit [Remote host closed the connection]
cortexman has joined #ruby
dash_ has quit [Quit: Time to beer :)]
ybart has joined #ruby
chriskk has joined #ruby
brianpWins has joined #ruby
Es0teric has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
io_syl has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
marvelous has joined #ruby
forrest has quit [Quit: Leaving]
kofno_ has joined #ruby
ddm has quit [Quit: Page closed]
marvelous has left #ruby [#ruby]
gr33n7007h has quit [Quit: Leaving]
milardovich has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 260 seconds]
c0rn has quit [Ping timeout: 264 seconds]
KarlHung1s has joined #ruby
yekta has quit [Quit: yekta]
jibi has joined #ruby
jds has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 264 seconds]
tr4656 has quit [Ping timeout: 264 seconds]
jds has joined #ruby
CaptainJet_ has joined #ruby
jerius_ has quit [Ping timeout: 264 seconds]
CaptainJet has quit [Disconnected by services]
c0rn has joined #ruby
ntus1017 has joined #ruby
KarlHungus has quit [Ping timeout: 264 seconds]
tr4656 has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Quit: alex__c2022]
waxjar has joined #ruby
fbernier has joined #ruby
DrForr has quit [Ping timeout: 264 seconds]
DrForr has joined #ruby
troker has quit [Quit: troker]
rezzack has quit [Ping timeout: 264 seconds]
jibi_ has joined #ruby
jibi_ has quit [Client Quit]
jibi has quit [Ping timeout: 248 seconds]
rezzack has joined #ruby
splittingred has quit [Quit: splittingred]
alvaro_o has quit [Quit: Ex-Chat]
bklane has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jibi has joined #ruby
mljsimone is now known as mljsimone|away
Zai00 has quit [Quit: Zai00]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
staafl has quit [Ping timeout: 248 seconds]
emergion has quit [Max SendQ exceeded]
verto has quit [Ping timeout: 246 seconds]
emergion has joined #ruby
MrZYX is now known as MrZYX|off
emergion has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
AlbireoX has joined #ruby
carlyle has joined #ruby
jztech101_ has joined #ruby
ffranz has quit [Quit: Leaving]
realDAB has joined #ruby
fess is now known as Guest23778
JZTech101 has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
bhaak has quit [Read error: Operation timed out]
kpshek has quit []
sambao21 has quit [Client Quit]
khushildep has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
tomzx_mac has joined #ruby
sambao21 has joined #ruby
bklane has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Pacra has joined #ruby
alainus has joined #ruby
wsterling has joined #ruby
smlgs has joined #ruby
colonolGron has quit [Quit: Lost terminal]
<alainus> how could I transform a = [{:a => 1, :b => "x"}, {:a => 2, :b => "y"}] into b={"x" => 1, "y" => 2} or b={1 => "x", 2 => "y"} ?
workmad3 has quit [Ping timeout: 264 seconds]
sambao21 has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
BlakeRG has quit [Quit: BlakeRG]
<jkline> alainus: sounds like a map job to me
<alainus> the name of b={} has no relation with the key :b of a, by the way
havenwood has quit [Remote host closed the connection]
<jkline> alainus: ah. that is not clear. Can you put another example please?
maxmanders has quit [Quit: Computer has gone to sleep.]
romockee has quit [Quit: romockee]
<alainus> transform a = [{:a => 1, :b => "x"}, {:a => 2, :b => "y"}] into z={"x" => 1, "y" => 2} or z={1 => "x", 2 => "y"}
<alainus> there
<alainus> that's what I meant.
<alainus> just to avoid confusion
geggam has quit [Remote host closed the connection]
bhaak has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
redgirl has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
suporte85 has joined #ruby
mary5030 has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 256 seconds]
<jkline> a = [{:a => 1, :b => "x"}, {:a => 2, :b => "y"}]; z = {}; a.each { |item| z[item[:b]] = item[:a] };
<jkline> alainus: that is one way
<jkline> I'm sure there is a more functional way that doesn't rely on side effects to set z
<jkline> some sort of map over a
sambao21 has joined #ruby
wsterling has quit [Remote host closed the connection]
swordsmanz has quit [Quit: swordsmanz]
matematikaadit has joined #ruby
jibi has quit [Quit: .]
swordsmanz has joined #ruby
Davey has joined #ruby
<alainus> Thanks! I tried this: z = a.map { |a| { a[:a] => a[:b] } }. But that left me with z = [{"x" => 1}, {"y" => 2}]
jmimi1 has joined #ruby
jlast has quit [Remote host closed the connection]
<alainus> Hmm .. I would need to flat_map the array, and then splat it,
freerobby has quit [Quit: Leaving.]
<ericwood> *
jztech101_ has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
jmimi has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
iamjarvo has joined #ruby
Devo has quit [Ping timeout: 240 seconds]
pipework has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
diegoviola has quit [Quit: WeeChat 0.4.1]
r0bby has joined #ruby
jds has quit [Remote host closed the connection]
niceguyjames has joined #ruby
tylersmith has quit [Remote host closed the connection]
gustavn has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
pootler_ has quit [Quit: Lost terminal]
pootler has quit [Quit: Lost terminal]
robbyoconnor has quit [Ping timeout: 260 seconds]
pootler has joined #ruby
mansi has joined #ruby
c0rn has joined #ruby
nari has joined #ruby
nikeita has quit [Quit: bye bye]
niceguyjames has quit [Ping timeout: 256 seconds]
nbouscal has joined #ruby
havenwood has joined #ruby
axl_ has quit [Quit: axl_]
mansi has quit [Ping timeout: 264 seconds]
<alainus> >> a = [{:a => 1, :b => "x"}, {:a => 2, :b => "y"}]; z = Hash[a.map(&:values)]; puts z
<eval-in> alainus => {1=>"x", 2=>"y"} ... (https://eval.in/36964)
<alainus> jkline ^
<alainus> got it from SO (=
<jkline> alainus: cool
<jkline> gotta turn my attention elsewhere for a bit. Happy coding!
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
<alainus> ty
moos3 has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
axl_ has quit [Client Quit]
moos3 has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matematikaadit has left #ruby ["Leaving"]
khushildep has quit [Quit: khushildep]
mocfive_ has quit [Remote host closed the connection]
colinafoley has joined #ruby
JZTech101 has joined #ruby
DanKnox_away is now known as DanKnox
realDAB has quit [Quit: realDAB]
nanoxd has joined #ruby
rien has quit [Quit: leaving]
colinafoley has left #ruby [#ruby]
Ripp__ has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
brianpWins has quit [Quit: brianpWins]
sailias has joined #ruby
iamjarvo has quit [Quit: Leaving.]
cjsarette has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
mklappstuhl has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
gstamp has joined #ruby
suporte85 has quit [Quit: Saindo]
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
bigoldrock has quit [Quit: Leaving.]
wmoxam has joined #ruby
bigoldrock has joined #ruby
apeiros has quit [Remote host closed the connection]
emergion has joined #ruby
r0bby is now known as robbyoconnor
apeiros has joined #ruby
bklane has quit [Remote host closed the connection]
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
jonahR has quit [Quit: jonahR]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has joined #ruby
emergion has quit [Client Quit]
rezzack has quit [Ping timeout: 246 seconds]
druonysus has quit [Remote host closed the connection]
maxmanders has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bklane has joined #ruby
stuartrexking has quit [Quit: Leaving...]
cortexman has quit [Quit: Leaving.]
reset has quit [Quit: Leaving...]
jonkri has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
nbouscal has joined #ruby
fridim_ has joined #ruby
Jefus has quit [Ping timeout: 246 seconds]
ybart has quit [Quit: ybart]
jonkri_ has quit [Ping timeout: 256 seconds]
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
devoldmx has joined #ruby
forcefsck has joined #ruby
ryanhirsch has joined #ruby
jkline has quit [Quit: jkline]
ryanhirsch has quit [Max SendQ exceeded]
moufe has joined #ruby
ybart has joined #ruby
ryanhirsch has joined #ruby
<moufe> whenever you join a project that has been going on for years what's the best approach to understand the existing code?
Davey has quit [Quit: Computer has gone to sleep.]
wsterling has joined #ruby
<havenwood> read it
<havenwood> moufe: like a web app?
druonysus has quit [Ping timeout: 264 seconds]
<moufe> havenwood: yes, I dont know where to start
jkline has joined #ruby
realDAB has joined #ruby
<havenwood> moufe: Maybe look at the Gemfile first, see what type of app it is. Does it have a Gemfile?
anonymuse has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
<moufe> havenwood: yes it does
predator117 has quit [Ping timeout: 246 seconds]
<havenwood> moufe: That should give you a good idea of the apps' dependencies and how dated it is.
<havenwood> moufe: Is it a Rails app? :O
<moufe> havenwood: it is. it's a good idea to get familiar with the gems involved I suppose?
freerobby has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
<moufe> havenwood: where do you usually start when it's a rather large app
<havenwood> moufe: You could make a Gist of your Gemfile and paste it in #RubyOnRails for feedback. If you aren't familiar with Rails, it comes with a bunch of gems so you might want to look at a vanilla install so you have something to compare it to.
CaptainJet_ has quit []
forcefsck has quit [Read error: Connection reset by peer]
<havenwood> moufe: Run the tests. Does it have tests, like a test/ or spec/ directory?
adkron has quit [Ping timeout: 248 seconds]
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
zeromodulus has joined #ruby
<moufe> havenwood: i was thinking about going one by one through the gems in the gemfile to get familiar with it.
<moufe> havenwood: not a lot of tests
cj3kim has joined #ruby
fwaokda has joined #ruby
<moufe> havenwood: but after second thought it might not be the most efficient way to go about it
<moufe> havenwood: I tried to read what's in the model/ I was overwhelmed
predator117 has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
ybart has quit [Quit: ybart]
<havenwood> moufe: The thing of interest in the Gemfile is its diff from the default Gemfile, mostly. (Other than what version of Rails you're using.)
<havenwood> moufe: If there aren't tests or documentation for the model, slogging through is only way I know.
statarb3 has quit [Quit: Leaving]
vlad_starkov has joined #ruby
CaptainJet has joined #ruby
<havenwood> moufe: Is it a git repo, can you go back in history to the apps creation?
mklappstuhl has quit [Remote host closed the connection]
<moufe> havenwood: yup i could do to that looking at the commits but theres about 10000, havenwood ill be done by the time you have two kids
<havenwood> stepping through a specific model file on Github might help make it more absorbable, even if you just go by chunks
<havenwood> moufe: you might ask in #RubyOnRails
<havenwood> moufe: good luck!!
<moufe> havenwood: thanks
Mo0O has quit [Ping timeout: 268 seconds]
optobear has joined #ruby
arubin has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
kofno_ has quit [Remote host closed the connection]
madb055 has joined #ruby
dodosan has quit [Remote host closed the connection]
Ripp__ has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Pacra has quit [Ping timeout: 246 seconds]
breadtk has left #ruby [#ruby]
maxmanders has quit [Ping timeout: 256 seconds]
rhys has quit [Quit: Leaving]
moufe has quit [Ping timeout: 250 seconds]
rezzack has joined #ruby
ephemerian has left #ruby [#ruby]
mansi has joined #ruby
Mo0O has joined #ruby
Ripp__ has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
mansi has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 248 seconds]
wmoxam has quit [Read error: Connection reset by peer]
cburyta has joined #ruby
jds has joined #ruby
pygospa has quit [Read error: Operation timed out]
mocfive has joined #ruby
mansi has joined #ruby
_seanc_ has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
pygospa has joined #ruby
tommyvyo has joined #ruby