fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
fyolnish_ has joined #ruby
banseljaj is now known as imami|afk
berserkr has quit [Quit: Leaving.]
grizlo42 has quit [Quit: Leaving.]
ringotwo has quit [Remote host closed the connection]
shinobi_one has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
fyolnish_ has quit [Ping timeout: 276 seconds]
wvms has joined #ruby
grenierm has quit [Quit: grenierm]
<shevy> got an array:
<shevy> x = ["cat","dog","horse"]
<shevy> I want to turn it into ["catdog", "horse"]
<shevy> current solution I use is: x[0] += x[1]; x.delete_at(1);
<shevy> anyone knows of a shorter or better one?
caveat- has quit [Ping timeout: 244 seconds]
<davidcelis> [x[0..1].join, *x[2..-1]]
<davidcelis> though i'm unsure of whether you just want to join the first two, or join everything except the last, or what
<davidcelis> my guess is the former, given your solution
_md has joined #ruby
jtgiri_ has quit [Ping timeout: 240 seconds]
techsurvivor has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mahmoudimus has joined #ruby
jasonLaster has joined #ruby
abeant has joined #ruby
deryl has joined #ruby
<shevy> yeah just the first two
insecurlex has joined #ruby
<shevy> thanks
yakko has joined #ruby
jtgiri_ has joined #ruby
mascool has joined #ruby
insecurlex has quit [Read error: Connection reset by peer]
insecurlex has joined #ruby
Guedes has quit [Remote host closed the connection]
havenn has joined #ruby
tdelam has quit [Remote host closed the connection]
Russell^^ has quit [Quit: Russell^^]
rubylex has joined #ruby
insecurlex has quit [Read error: Connection reset by peer]
abeant has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby
RichieEvan has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby
kirun has quit [Quit: Client exiting]
adac has quit [Ping timeout: 276 seconds]
grizlo42 has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
burgestrand has joined #ruby
mneorr has joined #ruby
CarlB_the_great has joined #ruby
DrunkDave has joined #ruby
DrunkDave has quit [Changing host]
DrunkDave has joined #ruby
<DrunkDave> How do I remove Ruby and Gems on a Windows PC?
t71540 has quit [Remote host closed the connection]
t5571 has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Client Quit]
<RichieEvan> Not sure I have a mac but you can maybe google it real quick.
philips_ has quit [Excess Flood]
pu22l3r has joined #ruby
<RichieEvan> gem uninstall "gem name" from command line
philips_ has joined #ruby
havenn has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 252 seconds]
<davidcelis> sounded like he wanted to remove gem itself (along with ruby)
<DrunkDave> Right. Iwanted to remove gem itself.
<DrunkDave> I used add/remove programs to delete Ruby and all of its components. I hope that is enough.
<davidcelis> one would hope
<seanstickle> One never knows with Windows
w400z has joined #ruby
<DrunkDave> Dang, dude. I set my pc to run through a DNS via Local Area Network->TCP/Ip....
yasushi has joined #ruby
<CarlB_the_great> Sorry, I only have a Mac powerbook and Linux servers
<DrunkDave> But for some reason, no change has happened.
pdtpatrick has quit [Quit: pdtpatrick]
Takehiro has joined #ruby
adac has joined #ruby
w400z has quit [Client Quit]
DrunkDave has quit [Quit: Leaving.]
Kabaka has quit [Ping timeout: 276 seconds]
Takehiro has quit [Ping timeout: 260 seconds]
<RubyPanther> shevy: you can also do it like x[0,2] = x[0,2].join if you want to change it in-place
pu22l3r has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
seanstickle has quit [Quit: seanstickle]
w400z has joined #ruby
GoGoGarrett has joined #ruby
maletor has joined #ruby
pfaff_ has joined #ruby
chazu has joined #ruby
davidcelis has quit [Quit: K-Lined.]
DrunkDave has joined #ruby
DrunkDave is now known as Guest80624
jtgiri_ has quit [Quit: jtgiri_]
jonathanwallace has joined #ruby
Richmond has joined #ruby
c0rn_ has joined #ruby
shadoi has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
c0rn_ has quit [Client Quit]
shadoi1 has joined #ruby
c0rn_ has joined #ruby
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Guest80624 has quit [Changing host]
Guest80624 has joined #ruby
Guest80624 is now known as DrunkDave
BrianJ has joined #ruby
Progster has joined #ruby
dpk has quit [Ping timeout: 268 seconds]
kiyoura has quit [Quit: Leaving]
c0rn_ has quit [Ping timeout: 240 seconds]
dpk has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
c0rn_ has joined #ruby
graspee has joined #ruby
yasushi has quit [Remote host closed the connection]
ScottNYC has quit [Quit: ScottNYC]
specialGuest has quit [Quit: WeeChat 0.3.8]
khakimov has joined #ruby
fearoffish has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
berserkr has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
Hanmac1 has joined #ruby
t5571 has quit [Remote host closed the connection]
t46222 has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
nari has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
LorentzFactor has joined #ruby
fantazo has joined #ruby
tdelam has joined #ruby
yasushi has joined #ruby
gmci has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
nari_ has joined #ruby
nari has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
dbck has quit [Ping timeout: 272 seconds]
lmfao00 has quit [Quit: lmfao00]
dpk has quit [Quit: Asleep at the keyboard.]
IrishGringo has quit [Quit: ChatZilla 0.9.88.2 [Firefox 14.0.1/20120713134347]]
sambio_ has joined #ruby
sambio_ is now known as sambio
fawningab1ot1c has joined #ruby
tdelam has quit [Ping timeout: 276 seconds]
Z_Mass has joined #ruby
jasonLaster has quit [Remote host closed the connection]
mwilson has quit [Disconnected by services]
pingfloyd has quit [Quit: pingfloyd]
mwilson- has joined #ruby
Takehiro has joined #ruby
heftig has quit [Ping timeout: 246 seconds]
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Abbas| has quit [Ping timeout: 246 seconds]
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
davidcelis has joined #ruby
abstrusenick has joined #ruby
adac has quit [Ping timeout: 260 seconds]
joshman_ has joined #ruby
LouisGB has quit [Ping timeout: 276 seconds]
arpegius has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
savage- has joined #ruby
joshman_ has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
perryh_away is now known as perryh
yasushi_ has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
t46222 has quit [Remote host closed the connection]
t74497 has joined #ruby
yasushi has joined #ruby
Z_Mass has quit [Ping timeout: 272 seconds]
yasushi_ has quit [Read error: Connection reset by peer]
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
piotr has quit [Ping timeout: 276 seconds]
sailias has joined #ruby
tdelam has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
yasushi_ has quit [Read error: Connection reset by peer]
chazu has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
ilyam has joined #ruby
arpegius has quit [Quit: arpegius]
kiyoura has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
Neo17 has left #ruby ["Leaving"]
aristidesfl has quit []
heftig has joined #ruby
HoRNYLaDY has joined #ruby
ilyam has quit [Quit: ilyam]
mohits has quit [Read error: Connection reset by peer]
savage- has quit [Remote host closed the connection]
HoRNYLaDY has left #ruby [#ruby]
verto is now known as verto|off
punkrawkR has quit [Read error: Connection reset by peer]
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan_ has joined #ruby
RichieEvan_ has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
pingfloyd has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
yasushi has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan_ has joined #ruby
mucker has joined #ruby
jenrzzz has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
RichieEvan_ has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
rakunHo has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
jtgiri_ has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
berserkr has quit [Quit: Leaving.]
RichieEvan has joined #ruby
Z_Mass has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
RichieEvan_ has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan_ is now known as RichieEvan
jtgiri_ has quit [Quit: jtgiri_]
maletor has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
hsbt has quit [Ping timeout: 272 seconds]
t74497 has quit [Remote host closed the connection]
RichieEvan has quit [Read error: Connection reset by peer]
t50389 has joined #ruby
RichieEvan has joined #ruby
yasushi_ has quit [Remote host closed the connection]
Z_Mass has quit [Quit: Leaving]
hsbt has joined #ruby
yasushi has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
RichieEvan has quit [Read error: Connection reset by peer]
wvms has quit [Quit: wvms]
w400z has quit []
jasonLaster has joined #ruby
fyolnish has joined #ruby
yasushi has quit [Ping timeout: 268 seconds]
abstrusenick has quit [Quit: abstrusenick]
RichieEvan has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
fyolnish has quit [Ping timeout: 244 seconds]
jasonLaster has quit [Ping timeout: 276 seconds]
jarred has quit [Quit: jarred]
tk___ has joined #ruby
RichieEvan has quit [Ping timeout: 240 seconds]
RichieEvan has joined #ruby
drago757 has quit [Quit: drago757]
tommyvYo has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
yoklov has joined #ruby
jtgiri_ has joined #ruby
jtgiri_ has quit [Client Quit]
Spooner has quit [Ping timeout: 256 seconds]
c0rn_ has quit []
gtuckerkellogg has joined #ruby
jarred has joined #ruby
fyolnish_ has joined #ruby
wvms has joined #ruby
DrunkDave1 has joined #ruby
mucker has quit [Read error: Operation timed out]
DrunkDave has quit [Read error: Connection reset by peer]
c0rn_ has joined #ruby
nari_ has joined #ruby
pdtpatrick has joined #ruby
yoklov has quit [Quit: bye!]
jtgiri_ has joined #ruby
_md has quit [Quit: Leaving...]
yoklov has joined #ruby
apok has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
apok has quit [Client Quit]
dmiller has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
iamjarvo has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
jtgiri_ has joined #ruby
c0rn_ has quit []
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
Takehiro has joined #ruby
davidcelis_ has joined #ruby
davidcelis has quit [Ping timeout: 244 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
azm has quit [Ping timeout: 264 seconds]
coderguy has joined #ruby
charliesome has joined #ruby
elico has joined #ruby
<elico> Anyone implemented graph using rgd?
pingfloyd has quit [Ping timeout: 246 seconds]
nari_ has quit [Ping timeout: 272 seconds]
hsbt has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
davidcelis_ has quit [Quit: K-Lined.]
davidcelis has joined #ruby
hsbt has joined #ruby
coderguy has quit [Quit: coderguy]
t50389 has quit [Remote host closed the connection]
pingfloyd has joined #ruby
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
t68627 has joined #ruby
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
savage- has joined #ruby
Progster has quit [Ping timeout: 260 seconds]
gtuckerkellogg has quit [Ping timeout: 248 seconds]
DrunkDave1 has quit [Changing host]
DrunkDave1 has joined #ruby
kiyoura has quit [Quit: Leaving]
DrunkDave1 is now known as DrunkDave
c0rn_ has joined #ruby
Abbas5 is now known as Abbas|
axisys_ has joined #ruby
iamjarvo has quit [Ping timeout: 276 seconds]
mengu has quit [Remote host closed the connection]
axisys_ has quit [Client Quit]
jtgiri_ has quit [Quit: jtgiri_]
Progster has joined #ruby
Progster has quit [Excess Flood]
Progster has joined #ruby
Progster has quit [Excess Flood]
coderguy has joined #ruby
coderguy has quit [Client Quit]
Progster has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
pingfloyd has quit [Ping timeout: 265 seconds]
uris has quit [Quit: leaving]
axisys_ has joined #ruby
c0rn_ has quit []
axisys_ has left #ruby [#ruby]
BrianJ has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby
jenrzzz has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
webguynow has quit []
ksinkar has joined #ruby
jarred has quit [Quit: jarred]
pingfloyd has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
Vert has quit [Remote host closed the connection]
potatosalad has joined #ruby
potatosalad has left #ruby [#ruby]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
heftig has quit [Remote host closed the connection]
qos has quit [Quit: Linkinus - http://linkinus.com]
axisys has left #ruby [#ruby]
deryl has quit [Quit: deryl]
Zambz has joined #ruby
<Zambz> hey there guys, does anyone have any experience with redcarpet and the implementation of GFM (Github Flavored Markdown)?
<grizlo42> so does anyone know what the ruby-pg driver responds with if an insert fails because a non-unique value was inserted into a unique field?
<bnagy> it's not documented?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<bnagy> personally I'd raise
Takehiro has joined #ruby
<grizlo42> bnagy: its certainly not explicit to a new developer like me...
<banisterfiend> bnagy: hey nags
<bnagy> banisterfiend, mornin
<banisterfiend> bnagy: what's up
<grizlo42> ah i think i found it
<bnagy> getting caffeine levels up, in preparation for undocumented GDI internals
<banisterfiend> bnagy: do you use 'ronin?
<bnagy> nope
<bnagy> grizlo42: surely there's at least rdoc, right?
<banisterfiend> bnagy: this is how u gonna be after dat coffee http://i.imgur.com/2a8tP.gif
<bnagy> I always used Sequel with postgres
<bnagy> much easier
<grizlo42> yes. i was tripping myself up over the boundary between PG
<grizlo42> ::Connection.exec
<bnagy> banisterfiend: I found a pic of u http://i.imgur.com/IMZQL.jpg
<grizlo42> and the insert command
havenn_ has joined #ruby
<grizlo42> according to rDoc it raises PG::Error
<grizlo42> for all things postgres related
<bnagy> sounds fair
Takehiro has quit [Ping timeout: 260 seconds]
<bnagy> I <3 FFI
ananthakumaran has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
drago757 has joined #ruby
DrunkDave has quit [Quit: Leaving.]
flu- has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
chimkan has joined #ruby
LorentzFactor has quit [Ping timeout: 240 seconds]
LorentzFactor has joined #ruby
dmiller has quit [Remote host closed the connection]
<davidcelis> i <3 ffvi
<flu-> +1
Guest5515 has joined #ruby
ryanf has quit [Quit: leaving]
answer_42 has joined #ruby
znake has joined #ruby
<banisterfiend> davidcelis: Hello Dave.
<davidcelis> Hello, HAL.
<banisterfiend> My mind is going, I can feel it. Could be the vodka.
<davidcelis> Sing me a song, HAL
sr___ has quit [Quit: Connection closed for inactivity]
<banisterfiend> It's 4 in the morning, the end of september, i'm ringing you now just to see if you're better. New york is cold but I like where i'm living, there's music on clinton street all through the evening. But you traded my woman to a flake of your life, and when she came back, she was nobody's wife.
jarred has joined #ruby
<banisterfiend> davidcelis: where in US America are you from
<davidcelis> portland oregon
<banisterfiend> is that a hub for activity or is it quiet
<banisterfiend> is it a place that foreigners would consider 'america' if they've just been exposed to movies and tv
poga has quit [Remote host closed the connection]
Kabaka has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
<davidcelis> hm
<davidcelis> depends on the movies or tv
<davidcelis> oregon is a pretty hippy state
<davidcelis> portland is less hippy and more hip, but
<davidcelis> it's a pretty small city, though it's still a city
tdelam has left #ruby [#ruby]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
chimkan has quit [Quit: chimkan]
TheLZA has joined #ruby
sphera has quit [Quit: ZNC - http://znc.in]
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
<TTilus> im about to ride my portland for couple of hours :)
sepp2k has joined #ruby
grizlo42 has left #ruby [#ruby]
fyolnish has joined #ruby
mc0e has joined #ruby
juarlex_ has joined #ruby
flu- has quit [Ping timeout: 240 seconds]
juarlex has quit [Read error: Connection reset by peer]
flu- has joined #ruby
raul782 has quit [Remote host closed the connection]
fyolnish has quit [Ping timeout: 265 seconds]
tomsthumb_ has joined #ruby
Progster has quit []
w400z has joined #ruby
<elico> I have a class which has " @ldr_flg = false" as a basic variable of the class... and in the class i have a line: "ok" if @lbr_flg but ruby will say: "warning: instance variable @lbr_flg not initialized"
just4dos_ has quit [Ping timeout: 260 seconds]
<elico> this happens on ruby 1.9.3 on linux.. on windows 1.8 ok
<elico> ok sorry my bad... the -w flag was on..
areil has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
savage- has quit [Remote host closed the connection]
tramontana has joined #ruby
naoya21 has joined #ruby
yoklov has quit [Quit: bye!]
Takehiro has quit [Ping timeout: 260 seconds]
[Neurotic] has quit [Remote host closed the connection]
naoya21 has quit [Client Quit]
mahmoudimus has joined #ruby
DrunkDave has joined #ruby
DrunkDave is now known as Guest2876
just4dos_ has joined #ruby
havenn_ has quit [Remote host closed the connection]
Guest2876 has quit [Changing host]
Guest2876 has joined #ruby
michaelmartinez has joined #ruby
arkiver has joined #ruby
<michaelmartinez> is attempting machine learning in ruby a fools errand? it seems that most of the books and tuts are pythonic… what say you?
iniy has joined #ruby
Quadrant has joined #ruby
<banisterfiend> michaelmartinez: yur'e asking that in a #ruby channel?
<banisterfiend> michaelmartinez: the no. 1 coding website in the world (github) is written in Ruby
iniy has left #ruby [#ruby]
<michaelmartinez> banisterfiend: yes… and yer point is?
<michaelmartinez> machine learning is wholly diff than ror
clocKwize has joined #ruby
<banisterfiend> oh you said machine learning
clocKwize has quit [Client Quit]
<banisterfiend> sorry i skipped that i am drunk
<michaelmartinez> hahahah
<michaelmartinez> the ole default "drunk" status
<banisterfiend> well it's not default, i've been drinking vodka since 4pm (6pm now)
<michaelmartinez> peerty quiet around these parts tonight...
<banisterfiend> michaelmartinez: tbh, i would do machine learning in a language like R or Octave
<banisterfiend> at least for prototyping
<banisterfiend> a DSL for mathematics is what you need for machine learning
jhunter_ has quit [Ping timeout: 272 seconds]
<banisterfiend> and when i did a coursera course on machine learning they used octave, too
<michaelmartinez> yeah… thought about that…
<michaelmartinez> I just want to get better at ruby too
dejanr has joined #ruby
<michaelmartinez> Off to play a bit...
<banisterfiend> ok, believe in yourself
jhunter has joined #ruby
<michaelmartinez> thanks banisterfiend … I will look into octave… thats a new one for me
<banisterfiend> really?
<banisterfiend> octave is a horrible language, tbh, but it provides easy stuff for doing mathematics
<banisterfiend> and machine language is all about matrices and vectors
<michaelmartinez> yeah. I am very, very green on the sic front
<michaelmartinez> sic ==science
<michaelmartinez> will have a play none the less...
Zambz has quit []
Hanmac1 is now known as Hanmac
drago757 has quit [Quit: drago757]
azm has joined #ruby
hadees has quit [Quit: hadees]
pygmael has joined #ruby
fyolnish has joined #ruby
t68627 has quit [Remote host closed the connection]
t78848 has joined #ruby
AlbireoX has quit [Quit: IRC crashed.]
seich- has quit [Ping timeout: 265 seconds]
williamherry has joined #ruby
ngoldman has joined #ruby
seich- has joined #ruby
areil has quit [Remote host closed the connection]
araujo has quit [Quit: Leaving]
Advocation has joined #ruby
sterNiX has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
th3xer0 has joined #ruby
ngoldman has quit [Remote host closed the connection]
luckyruby has joined #ruby
apok has joined #ruby
Takehiro has joined #ruby
ngoldman has joined #ruby
heftig has joined #ruby
adeponte has joined #ruby
sambio has quit []
arkiver has quit [Quit: Leaving]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Richmond has quit [Ping timeout: 264 seconds]
jarred has quit [Quit: jarred]
davidcelis has quit [Ping timeout: 240 seconds]
azm has quit [Ping timeout: 256 seconds]
Advocation has quit [Ping timeout: 276 seconds]
davidcelis has joined #ruby
havenn has joined #ruby
maletor has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
knightblader has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
ngoldman has quit [Remote host closed the connection]
workmad3 has joined #ruby
Guest2876 has quit [Quit: Leaving.]
pygmael has quit [Read error: Connection reset by peer]
flu- has quit [Ping timeout: 252 seconds]
pygmael has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
bradhe has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
flu- has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
maletor has joined #ruby
maletor has quit [Client Quit]
workmad3 has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: leaving]
moshee has quit [Ping timeout: 272 seconds]
dbck has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
dejanr has quit [Ping timeout: 245 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
DrunkDave has joined #ruby
thomas is now known as chaplain
DrunkDave has quit [Changing host]
DrunkDave has joined #ruby
quazimodo has joined #ruby
TheLZA has quit [Quit: Bye]
maletor has joined #ruby
maletor has quit [Client Quit]
w400z has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
robustus has joined #ruby
thone_ has joined #ruby
<williamherry> command irb show some error, http://pastie.org/4590182, can some one help?
imami|afk is now known as banseljaj
Hanmac has quit [Ping timeout: 244 seconds]
thone has quit [Ping timeout: 245 seconds]
heisenmink has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
<banisterfiend> williamherry: what does 'herry' mean
<banisterfiend> williamherry: r u faking a western sounding name?
tramontana has quit [Quit: tramontana]
<banisterfiend> williamherry: follow instructions, install readline
ph^ has joined #ruby
coyo has quit [Quit: Heaven is not a place, it's being with people who love you.]
<williamherry> banisterfiend: I don't herry mean, just a name
<banisterfiend> williamherry: heh heh :)
<banisterfiend> anyway, i think rvm lets you install readline as a package
<williamherry> rvm pkg install readline? I am trying
Hanmac has joined #ruby
jgrevich has quit [Quit: jgrevich]
fastred has joined #ruby
<williamherry> when some thing not work, I have to reinstall ruby, and it take time to compile, I have reinstall ruby for many times
<banisterfiend> >> "Hello Hanmac"
<al2o3cr> (String) "Hello Hanmac"
<Hanmac> you are not baned yet banister :P
bb__ has joined #ruby
maletor has joined #ruby
t78848 has quit [Remote host closed the connection]
t60869 has joined #ruby
bb__ has quit [Changing host]
bb__ has joined #ruby
bb__ is now known as bb
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
bb has quit [Quit: leaving]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend` has joined #ruby
bb has joined #ruby
Takehiro has joined #ruby
luckyruby has quit [Remote host closed the connection]
bb has quit [Client Quit]
pingfloyd has quit [Quit: pingfloyd]
Goles has quit [Quit: Computer has gone to sleep.]
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
DrunkDave has quit [Quit: Leaving.]
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maletor has quit [Quit: Computer has gone to sleep.]
Beoran__ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Beoran__ has joined #ruby
mneorr has joined #ruby
th3xer0 has quit [Quit: leaving]
c0rn_ has joined #ruby
yxhuvud has joined #ruby
Criztian has joined #ruby
banghouse has quit [Remote host closed the connection]
rubylex has quit [Ping timeout: 276 seconds]
c0rn_ has quit [Client Quit]
pskosinski has joined #ruby
<bnagy> rawr I win at gdi... finally :(
Banistergalaxy has quit [Ping timeout: 276 seconds]
<bnagy> got I hate windows coding
<Hanmac> i am sorry for you that you need windowscoding :D
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
brianpWins has quit [Quit: brianpWins]
<bnagy> I know :( Gotta be done though
DrunkDave has joined #ruby
lapinferoce has joined #ruby
DrunkDave has quit [Changing host]
DrunkDave has joined #ruby
Banistergalaxy has joined #ruby
workmad3 has joined #ruby
RichieEvan has quit [Ping timeout: 240 seconds]
mohits has quit [Ping timeout: 276 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
lapinferoce has quit [Remote host closed the connection]
resure has joined #ruby
resure has quit [Remote host closed the connection]
tomsthumb_ has quit [Quit: Leaving.]
resure has joined #ruby
resure is now known as resure_away
resure_away is now known as resure
dangerousdave has joined #ruby
RichieEvan has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
guns has quit [Ping timeout: 240 seconds]
mrdodo has joined #ruby
th3xer0 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
DrunkDave has left #ruby [#ruby]
indian has quit [Ping timeout: 268 seconds]
t60869 has quit [Remote host closed the connection]
ringotwo has joined #ruby
t96331 has joined #ruby
indian has joined #ruby
Takehiro has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
sparc has joined #ruby
qwerxy has joined #ruby
saschagehlich has joined #ruby
flu- has quit [Ping timeout: 245 seconds]
Takehiro has quit [Ping timeout: 268 seconds]
LouisGB has joined #ruby
JonnieCache|home has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
RichieEvan has quit [Ping timeout: 272 seconds]
pygmael has joined #ruby
lkba has joined #ruby
mahmoudimus has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
fyolnish has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 245 seconds]
enyo has joined #ruby
mrdodo has quit [Remote host closed the connection]
apok has quit [Quit: apok]
ringotwo has quit [Remote host closed the connection]
RichieEvan has joined #ruby
yasushi has joined #ruby
RichieEvan has quit [Read error: No route to host]
RichieEvan has joined #ruby
dangerousdave has quit [Quit: Leaving...]
LouisGB has quit [Disconnected by services]
n8888 has joined #ruby
t96331 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mrdodo has joined #ruby
haxrbyte_ has joined #ruby
t39445 has joined #ruby
kip has joined #ruby
RichieEvan has quit [Ping timeout: 240 seconds]
RichieEvan has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
_graham_ has quit [Ping timeout: 276 seconds]
Banistergalaxy has joined #ruby
slycog has quit [Ping timeout: 260 seconds]
Stalkr_ has joined #ruby
Russell^^ has joined #ruby
ph^ has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
niklasb has joined #ruby
himsin has quit [Ping timeout: 252 seconds]
_graham_ has joined #ruby
answer_42 has joined #ruby
ph^ has joined #ruby
circlicious has joined #ruby
Virunga has joined #ruby
pdelgallego has joined #ruby
mrdodo has quit [Remote host closed the connection]
nohonor has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
ar_ has joined #ruby
nu7hatch has joined #ruby
pskosinski has joined #ruby
darren__ has quit [Remote host closed the connection]
havenn has joined #ruby
Takehiro has joined #ruby
SIGILL has joined #ruby
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
cicatristeza has joined #ruby
x0F_ is now known as x0F
<cicatristeza> hello, every time i try to run jekyll i get " WARN TCPServer Error: Address already in use - bind(2)" what do i do?
<cicatristeza> my config file is empty (i.e. i use dfaults)
Abbas| has quit [Ping timeout: 246 seconds]
<cicatristeza> even if i use a different port i get this error everytime
havenn has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
<cicatristeza> can anyone help?
<bnagy> is something else using that port?
<Hanmac> hm it seems that your port is blocked ... try another port
<burgestrand> cicatristeza: most common reason: you have it running in another tab already
piotr has joined #ruby
<cicatristeza> bnagy: and Hanmac: i've tried ten different ports, its always the same error
<bnagy> are you using a port < 1024 and it's just the wrong error message?
<cicatristeza> burgestrand: i restarted my system, same error
dekroning has joined #ruby
dekroning has quit [Client Quit]
<cicatristeza> bnagy: i use jekyll defaults, so port 4000. changing this to ANY other number results in samee error
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<bnagy> are you starting it twice somehow?
<bnagy> I have absolutely no idea what a jekyll is btw
<bnagy> but that's probably not really important
<cicatristeza> bnagy: no i am not starting it twice
fyolnish has joined #ruby
t39445 has quit [Remote host closed the connection]
<cicatristeza> bnagy: this is jekyll: https://github.com/mojombo/jekyll
t50811 has joined #ruby
<bnagy> can you manually start a TCPServer in irb on the port you want to use?
<Hanmac> try to use some higher ports ... like 8000 or 80.000
<bnagy> uh there aren't 80k ports, dude :)
<Muz> Have you got something else listening on port 4000?
<Muz> Seems to be the default port described in https://github.com/mojombo/jekyll/blob/master/lib/jekyll.rb
ar_ has quit [Read error: Connection timed out]
<Muz> So, write a config file and DON'T use the default options for ports.
<Hanmac> bnagy that why i thought it may be free :D
<bnagy> I really think running netstat is a good idea, just to be sure
verto|off has quit [Ping timeout: 246 seconds]
<burgestrand> I’ve heard of an issue before where this crops up no matter what port you use. cicatristeza, are you on ubuntu or debian?
<Muz> It does seem to be depending on Webbrick too. Eurgh.
Foxandxss has joined #ruby
<cicatristeza> burgestrand: archlinux. and yes, this happenes on every port i use
qwerxy has quit [Quit: offski]
<Muz> (Slow, terrible, buggy, and terrible.)
<bnagy> lol arch
<burgestrand> I wonder if you can change the server used by jekyll.
<cicatristeza> burgestrand: and Muz: do you fokls think this is related to the ruby version i am on? i have 1.9.3
<bnagy> I still think you should double check netstat, and then try bringing up a naked TCPServer in irb, to take jekyll out of the picture, first
<burgestrand> cicatristeza: no idea, this issue is rare enough, there’s not much info on it.
fyolnish has quit [Ping timeout: 245 seconds]
verto|off has joined #ruby
verto|off is now known as verto
<cicatristeza> someone asked the same question here, but no replies that really anser it: http://stackoverflow.com/questions/10261477/tcpserver-error-address-already-in-use-bind2
<JonnieCache|home> maybe its a permissions thing
<JonnieCache|home> maybe your linux is in some kind of paranoid mode
verto is now known as Guest17964
<JonnieCache|home> hmmm that wouldnt say "in use" though
<JonnieCache|home> but yeah install thin or puma or another http server, you can probably go `jekyll -s <server>` and have it work fine
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<burgestrand> cicatristeza: try running it as root and see if you get the same issue.
<cicatristeza> burgestrand: as root i get this: https://gist.github.com/3477014
arkiver has joined #ruby
fyolnish_ has joined #ruby
<burgestrand> cicatristeza: how did you install ruby?
<workmad3> cicatristeza: if you're using rvm, use rvmsudo, not sudo
<burgestrand> cicatristeza: anyhow, try running jekyll without --server and --auto
s1n4 has joined #ruby
<lupine_85> cicatristeza, check the output of netstat. if something else was bound to 40000 and has been killed, no fd will show up in lsof, but the kernel might keep the port unavailable for an unspecified amount of time
<lupine_85> (also see the REUSEADDR socket option)
znake has quit [Quit: znake]
<cicatristeza> burgestrand: only jekyll gives me: https://gist.github.com/3477062
<cicatristeza> burgestrand: i installed ruby through the package manager, pacman
<burgestrand> cicatristeza: looks like your _config.yml is junk
<burgestrand> cicatristeza: Invalid configuration - /home/cixa/junk/tapioca/_config.yml — remove the _config.yml and try again
<cicatristeza> but it is empty! so it uses defaults!
<cicatristeza> ok, i did, and tried again, same result
fyolnish_ has quit [Ping timeout: 256 seconds]
<burgestrand> cicatristeza: I’d make absolutely sure you have your permissions right. Apart from that I’m out of ideas.
<cicatristeza> burgestrand: what permissions do you mean?
<burgestrand> cicatristeza: of the files in the directory you are running jekyll from
aristidesfl has joined #ruby
yasushi has quit [Remote host closed the connection]
<shevy> and "gem install jekyll" worked or failed for you cicatristeza ?
<cicatristeza> shevy: thats how i installed jekyll, and updated it. it workedfine
Speed has quit [Remote host closed the connection]
Dr4g|sleep is now known as Dr4g
pdelgallego has quit [Read error: Connection reset by peer]
pdelgallego has joined #ruby
Foxandxss has quit [Ping timeout: 245 seconds]
Virunga has quit [Remote host closed the connection]
<cicatristeza> shevy: why did you post that link?
tvw has joined #ruby
<shevy> cicatristeza to level equally
kjellski has joined #ruby
<shevy> I could not test jekyll if I would not have installed it yet
_md has joined #ruby
s1n4 has quit [Ping timeout: 252 seconds]
asuka has quit [Ping timeout: 268 seconds]
asuka has joined #ruby
Virunga has joined #ruby
s1n4 has joined #ruby
adac has joined #ruby
asuka has quit [Read error: Operation timed out]
asuka has joined #ruby
<cicatristeza> shevy: well in that case, thank you
elaptics`away is now known as elaptics
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
Foxandxss has joined #ruby
<shevy> cicatristeza I haven't been able to help you yet ;) I am just thinking of a way to reach the point where I can reproduce the problem
pdelgallego has quit [Quit: pdelgallego]
<matti> shevy: Fastarrr!!!
<matti> ;)
pdelgallego has joined #ruby
Markvilla has joined #ruby
Virunga has quit [Remote host closed the connection]
fzxc_ has joined #ruby
<cicatristeza> well i must go bye
cicatristeza has quit [Remote host closed the connection]
fzxc_ has left #ruby [#ruby]
JStoker has quit [Ping timeout: 260 seconds]
mrdodo has joined #ruby
burgestrand has quit [Ping timeout: 240 seconds]
<circlicious> to get a block as argument i have to prefix with
<circlicious> & ?
mrdodo has quit [Ping timeout: 246 seconds]
nohonor has quit [Quit: Leaving]
<Hanmac> ciclicious yes like .map(&:to_i)
burgestrand has joined #ruby
fzxc__ has joined #ruby
fzxc__ has left #ruby [#ruby]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
t50811 has quit [Remote host closed the connection]
Abbas- has quit [Changing host]
Abbas5 has joined #ruby
t81910 has joined #ruby
fantazo has quit [Remote host closed the connection]
arkiver has quit [Quit: Leaving]
ar_ has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
Abbas5 is now known as Abbas|
JStoker has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
AtoxHybrid has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
tramontana has joined #ruby
iamjarvo has joined #ruby
quazimodo has quit [Remote host closed the connection]
n8888 has quit [Read error: Connection reset by peer]
LouisGB has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
fowl has quit [Read error: Operation timed out]
fyolnish has joined #ruby
punkrawkR has joined #ruby
LouisGB has quit [Ping timeout: 240 seconds]
Virunga has joined #ruby
LouisGB has joined #ruby
dekroning has joined #ruby
dbck has quit [Quit: Be back later]
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
Jake232 has joined #ruby
Steppen has joined #ruby
johnjohnson has joined #ruby
LouisGB has quit []
Jake232 has quit [Read error: Connection reset by peer]
dangerousdave has quit [Ping timeout: 244 seconds]
Yiq has joined #ruby
<Yiq> db_name = db.path.gsub(/^\//, '') #can someone translate that to python?
<Mon_Ouie> I can't, but is that because you don't understand what it does?
fowl has joined #ruby
fowl has quit [Changing host]
fowl has joined #ruby
<Yiq> yes what does it do
dangerousdave has joined #ruby
<Mon_Ouie> For every lien in db.path, if it starts with a slash, that slash gets removed
<Mon_Ouie> line*
AtoxHybrid has quit [Remote host closed the connection]
<Yiq> line?
dpk has joined #ruby
<Yiq> "hello/there/you/bastard/child".replace("/","") => "hellothereyoubastardchild" # not the same?
<shevy> Yiq this is what .gsub and .sub are doing
sailias has joined #ruby
ada2358 has quit [Remote host closed the connection]
<shevy> they replace characters
<shevy> "hello/there/you/bastard/child".gsub("/","") # => "hellothereyoubastardchild"
<shevy> no idea how python does it, but I am sure they have a simple way too
<shevy> aha... python uses .replace()
<matti> shevy: .tr can do it too!
<shevy> yeah
<shevy> Yiq you could use .tr too
<shevy> "hello/there/you/bastard/child".tr("/","") # => "hellothereyoubastardchild"
Abbas| has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
<matti> :]
Markvilla has quit [Quit: Computer has gone to sleep.]
eindoofus has joined #ruby
tewecske has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
<eindoofus> Hi, I want to understand Ruby and be able to write programs. Does anyone have a suggestion for a good read before jumping into Rails? I should mention that I'm pretty comfortable with Java so I don't need too much hand-holding.
<eindoofus> Then again, I am new to dynamic languages
<shevy> eindoofus do you want to (a) learn ruby (b) learn rails (c) learn both ruby and rails at the same time
vlad_starkov has joined #ruby
<shevy> if (c) then you should directly head to the official rails tutorial and work through that
<Hanmac> but learning rails first could give you the wrong thoughts
<eindoofus> a
<eindoofus> I tried learning both at the same time before, but I felt as though I wasn't absorbing as much due to my lack of Ruby knowledge
<shevy> since you already know java, I recommend you work through all tutorials from http://pine.fm/LearnToProgram/?Chapter=00 at least once. it should not take you longer than 20 minutes. after that, you have a overview of ruby at least
<eindoofus> thanks :)
<shevy> rails is very specialized
<shevy> all the Active* things
<eindoofus> cool, I'll gve it a go
<TTilus> eindoofus: i'd advice to focus on ruby alone for a while
<matti> From Java to Rails.
<matti> LOL
<shevy> how many people know ActiveRecord inside out
<shevy> only matti
<matti> I have AR
<shevy> hehe
<matti> Its a fucking abomination and should be cleansed with fire.
<TTilus> eindoofus: hang around here, read other programs, publish what you write and get feedback
<shevy> I have an array... like this array = [ ["numactl", "Aug 2011"], ["libgnome", "Aug 2012"], ["libflowmanager", "May 2012"] ]
<matti> s/have/hate/
<shevy> I'd like to sort it by those pseudo-dates somehow
<matti> shevy: Impossible.
<matti> ;d
<TTilus> eindoofus: by reading a lot of code you will get familiar with idioms
<rippa> shevy: array.sort_by {|i| i[1]}
<TTilus> shevy: care to elaborate that "somehow" part?
<shevy> TTilus well obviously those are incomplete dates
<shevy> only month + year entries are listed, and month is a shortcut
<bnagy> shevy: try DateTime.parse
<bnagy> it will handle that format
<shevy> the sorting should be either by youngest entry first, or oldest entry first
<shevy> whoa cool
<TTilus> shevy: ok, chronological, as bnagy said, DateTime.parse is your friend
<matti> shevy: DateTime is slow.
<shevy> matti but it seems to work!
<shevy> thanks
Virunga has left #ruby [#ruby]
justinmcp has joined #ruby
<matti> ;]
<matti> shevy: What are you up to?
moshee has quit [Ping timeout: 272 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<shevy> matti right now a small .rb file that tells me which program entries I did update last
mascool has quit [Ping timeout: 250 seconds]
ChampS666 has joined #ruby
seanstickle has joined #ruby
<matti> shevy: You could do this in bash too ;]
<matti> shevy: Its like trying to kill a mosquito with an Apache chopper.
<shevy> I'll replace bash eventually
<matti> Hehe
<matti> Its done already.
<shevy> now you'll say zsh right :P
<seanstickle> No man. You want good ol' csh
<matti> No..
<matti> None of this ancient things.
<seanstickle> You're using Unix for goodness sake
<seanstickle> The time to be upset at ancient things is over
<shevy> well rush is sadly a ruby shell, the syntax is at a disadvantage compared to bash or zsh
<matti> You guys know nothing ;p
<matti> ;p
<seanstickle> I mean, it's not like we're using OS\360 or whatever
<seanstickle> But Unix is not the fresh faced kid
<shevy> I am weeding out german-dates ... #<ArgumentError: invalid date> ["swig", "Mai 2012"]
<matti> seanstickle: Time for some botox here and there.
<matti> seanstickle: Mai|
<matti> ?
<matti> Ops.
<matti> shevy.
<matti> FU tab.
<matti> ;]
<shevy> matti Mai should be May
<matti> seanstickle: I dislike PowerShell a lot, but I have to give them credit for making it OO-alike.
<matti> shevy: What language?
<shevy> matti german, somehow I was mixing english and german dates :\
williamherry has quit [Ping timeout: 264 seconds]
gtuckerkellogg has joined #ruby
<seanstickle> Why? Why give them credit for making it OO-alike?
<seanstickle> That seems like an odd thing to be crediting
<shevy> DateTime.parse does not like german at all :D
williamherry has joined #ruby
<matti> shevy: Its racist.
<shevy> I still remember how PowerShell was called monad shell
<seanstickle> It was just called Monad
<seanstickle> Not Monad shell
<seanstickle> That was a better name by far
mneorr has quit [Quit: Leaving.]
<seanstickle> Powershell sounds so condescending
<matti> Hehe
dpk has quit [Ping timeout: 244 seconds]
<seanstickle> Monad had Leibnizian elegance
<shevy> hehehe
<seanstickle> Sadly, I can see no great value in Powershell compared to just using Perl Win32::OLE
juha_ has quit [Ping timeout: 248 seconds]
juha_ has joined #ruby
adeponte has quit [Remote host closed the connection]
ACK__ has joined #ruby
dekroning has quit [Ping timeout: 240 seconds]
<ACK__> hi
sailias has quit [Quit: Leaving.]
<ACK__> have a question
<ACK__> Can you name Ruby web framework built using ruby eventmachine?
<ACK__> frameworks?
<matti> Google is broken? ;]
<shevy> hopefully
<ACK__> i searched
<shevy> I like his nick
<ACK__> i found cramp
<shevy> ack!!!!
<shevy> ACK__ there are not so many frameworks in ruby
<eindoofus> gotta go, thank you all for your help
<shevy> rails sinatra ramaze ... merb? ... rack?
<shevy> I dont know if any of these use eventmachine at all
eindoofus has quit []
<matti> shevy: Async Sinatra does
<ACK__> goliath
<shevy> aha
<shevy> sinatra does??
<matti> shevy: ASYNC
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<shevy> SYNC ME
<shevy> BABY
<shevy> okok never heard of async sinatra before
<matti> ;]
<matti> I am not syncing with you.
<matti> You will make bad father.
<matti> ;d
dpk has joined #ruby
<ACK__> see i need some real time action in my rails app
<ACK__> how can i accomplish this
arkiver has joined #ruby
<matti> Real time action?
<ACK__> yes real time
<matti> What does it mean?
<ACK__> similar to meteor or node.js
<matti> You want things to work asynchronous?
<bnagy> yet another thing I hate about webmonkeys. Trying to redefine what 'realtime' means in software
<matti> bnagy: I have no idea what he means by what he meant.
<seanstickle> He means "fast"
<matti> That not the same as realtime ;/
<matti> Damn Rails developers.
<seanstickle> No kidding.
<matti> Making mess.
<seanstickle> But it's not like the programming community, per se, has the same CS degree.
<ACK__> hey people watch this => http://www.meteor.com/screencast
<seanstickle> Or a CS degree at all ;)
<matti> seanstickle: I don't have CS.
t81910 has quit [Remote host closed the connection]
<seanstickle> matti: you know what I mean.
<ACK__> i want this
<matti> seanstickle: I've got a Physics one.
t59279 has joined #ruby
<seanstickle> matti: and I have a Philosophy one
<matti> ACK__: I WANT PONY
<matti> seanstickle: +1 :)
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<bnagy> seanstickle: so you get to ask people WHY they want fries with that?
<ACK__> watch the screencast
mneorr has joined #ruby
<seanstickle> bnagy: no, I get to ask people how much they want to pay for the IT stuff I do.
<ACK__> that i want in my rails app
<matti> ACK__: I am watching, one moment.
<seanstickle> bnagy: philosophy has many applications in IT. Popular opinion notwithstanding.
Foxandxss has joined #ruby
<matti> I like how fast he types.
<bnagy> I can imagine, it's a cool field
<matti> Like in movies.
<ACK__> =>>>>>>>>> please tell me the framework built on top of ruby eventmachine library <<<<<<<<=
<ACK__> like cramp
<matti> ACK__: Is Meteor using web sockets?
<seanstickle> Whoa, when did we start doing fancy arrow highlighting?
<bnagy> ACK__: I suggest google, or possibly #rubyonrails
<bnagy> I also suggest calming the hell down
Yiq has left #ruby [#ruby]
resure_ has joined #ruby
<ACK__> <seanstickle> its my style don't copy
iamjarvo has joined #ruby
<matti> Hehe ACK__
resure has quit [Ping timeout: 240 seconds]
resure_ is now known as resure
<ACK__> <matti> finsh watching
adac has quit [Ping timeout: 264 seconds]
<matti> I did.
<ACK__> so
<ACK__> =>>>>>>>>> please tell me the framework built on top of ruby eventmachine library <<<<<<<<=
mahmoudimus has joined #ruby
<seanstickle> I think we all watched the Meteor screencast like months ago
<ACK__> so how can i implement in my rails 3
<ACK__> app
<seanstickle> Ask in #rubyonrails
<matti> ACK__: I have a question.
<ACK__> no
<matti> ACK__: 1. What this has anything do to with EM; 2. What do you want to achieve really?
<matti> ACK__: EM won't update your client side like that.
<ACK__> <seanstickle> i did
mahmoudimus has quit [Client Quit]
<ACK__> so what we can do update client side like that
<shevy> raaaaaaails
<ACK__> so what we can do to update client side like that
<shevy> a trojan!
<matti> ACK__: I'd go with Web Sockets -- first things it pops in my mind.
<matti> ACK__: Aside of that, I am no sure what Meteor is using.
<matti> It all looks node.js to me.
<ACK__> yes it is i think underhood
<matti> There are some decent WS libraries / gems for Ruby.
<JonnieCache|home> faye is good
<matti> Yep.
sepp2k1 has joined #ruby
<matti> It used to be Ajax to update client side.
<matti> Now you have Web Sockets and HTML5.
<matti> Also SPDY.
<JonnieCache|home> its still ajax. ajax is a made up thing anyway
<matti> [ Mind lack of wide-spread support ]
<matti> JonnieCache|home: I know.
sepp2k has quit [Ping timeout: 260 seconds]
<matti> ACK__: Ask here please :)
<ACK__> ohhhh soory
mahmoudimus has joined #ruby
<matti> ;]
<matti> ACK__: Asynchronous web server will not solve the client side part.
<matti> ACK__: Whther you have node.js, Goliath or something using EM.
<matti> ACK__: Its all server-side.
<matti> ACK__: You need to somewhat let client know to update its DOM-objects accordingly.
<matti> Also "asynchronous" can mean more than one thing.
AbCDe3 has joined #ruby
AbCDe3 has left #ruby [#ruby]
<ACK__> which technology will update CLIENT SIDE for me in my app
<matti> ACK__: As said already, one can be Ajax, other can be Web Sockts.
<matti> Sockets*
<matti> I am not a web developer, mind you ;]
<matti> Dealing with JS and CSS is beyond my willpower.
<JonnieCache|home> you could like at backbone
<JonnieCache|home> but thats a whole client side framework
<JonnieCache|home> *look at
johnjohnson has quit []
vitor-br has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Stalkr_ has joined #ruby
nicoulaj has joined #ruby
Zol has quit [Ping timeout: 276 seconds]
abstrusenick has joined #ruby
Zol has joined #ruby
chimkan has joined #ruby
azm has quit [Ping timeout: 248 seconds]
Eldariof-ru has joined #ruby
nari_ has joined #ruby
<shevy> matti you must enter rails
indian has quit [Ping timeout: 268 seconds]
drago757 has joined #ruby
Zol has quit [Ping timeout: 272 seconds]
gmci has joined #ruby
laen_ has quit [Ping timeout: 252 seconds]
chimkan has quit [Quit: chimkan]
bluenemo has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Zol has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
chimkan has joined #ruby
yasushi has quit [Remote host closed the connection]
ACK__ has quit [Quit: Page closed]
t59279 has quit [Remote host closed the connection]
t51430 has joined #ruby
justinmcp has quit [Remote host closed the connection]
drago757 has quit [Quit: drago757]
s1n4 has quit [Quit: leaving]
chimkan has quit [Quit: chimkan]
frogprince_mac has joined #ruby
arkiver has quit [Ping timeout: 260 seconds]
abstrusenick has quit [Read error: Connection reset by peer]
baphled has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
Zol has quit [Ping timeout: 276 seconds]
d3vic3 has joined #ruby
rakunHo_ has joined #ruby
ttilley has joined #ruby
rakunHo has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
yasushi has joined #ruby
arkiver has joined #ruby
d3vic3 has quit [Quit: leaving]
lampe2 has joined #ruby
dmiller has joined #ruby
w400z has joined #ruby
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
null- has joined #ruby
Zol has joined #ruby
berserkr has joined #ruby
gmci has joined #ruby
havenn has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
datapolitical has joined #ruby
<datapolitical> anyone in here blog using jekyll?
<seanstickle> Yup
pygmael has joined #ruby
<datapolitical> how do you compose posts
<datapolitical> (on a non-desktop)
<datapolitical> i'd like to be able to write fromy iPhone/iPad
<datapolitical> i have a markdown editor, it's just getting the files onto the server is the hard part
<seanstickle> You could use an ssh client
<seanstickle> Otherwise, I dunno. I am always within 10 feet of a laptop computer.
<datapolitical> you're very close
<datapolitical> an SFTP client would work
<datapolitical> is your site hand-coded
<datapolitical> or do you use a framework like octopress?
<seanstickle> Hand.
<seanstickle> But I might switch to Octo
Zol has quit [Ping timeout: 276 seconds]
<datapolitical> I just figured it out
<datapolitical> GoodReader
dmiller has quit [Ping timeout: 246 seconds]
<datapolitical> syncs with SFTP and dropbox
<datapolitical> code in whatever markdown editor you like
<datapolitical> open the posts in goodreader when you're ready to upload them
<datapolitical> and use SFTP
<datapolitical> drop them into your server
<datapolitical> and run git push through, yes, an ssh terminal
w400z has quit [Quit: Computer has gone to sleep.]
tk___ has quit [Quit: ばいばい]
<datapolitical> seanstickle can I see
<datapolitical> link?
<datapolitical> (to your blog)
<seanstickle> datapolitical: nope, the one I use jekyll on is anonymous
<seanstickle> I haven't converted my primary blog to jekyll yet
baphled has quit [Ping timeout: 245 seconds]
limeds has joined #ruby
<datapolitical> my problem is i'm not a designer
<datapolitical> i'm a backend guy
<datapolitical> hell, i'm colorblind
<fowl> gross
<seanstickle> Design can be learned.
<seanstickle> I do try.
<seanstickle> So far, still pretty bad.
<datapolitical> i like that I can change themes really easily with jekyll
<seanstickle> But progressing.
<datapolitical> because everything is in markdown
Zol has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
arkiver has quit [Ping timeout: 246 seconds]
Guest75036 has joined #ruby
insecurlex has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
pdelgallego has joined #ruby
yasushi has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
SCommette has joined #ruby
Zol has quit [Ping timeout: 272 seconds]
fastred has quit [Quit: fastred]
ph^ has quit [Remote host closed the connection]
moshef has joined #ruby
michaelmartinez has joined #ruby
michaelmartinez has quit [Client Quit]
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
enyo has quit [Ping timeout: 252 seconds]
<matti> shevy: Why?
Nu^253r has joined #ruby
Nu^253r has quit [Changing host]
Nu^253r has joined #ruby
enyo has joined #ruby
fyolnish has quit [Ping timeout: 248 seconds]
Zol has joined #ruby
rakunHo_ has quit [Remote host closed the connection]
arkiver has joined #ruby
savage- has joined #ruby
yasushi has joined #ruby
hadees has joined #ruby
olrrai has joined #ruby
null- has left #ruby [#ruby]
<shevy> wat
<shevy> ah
skogis has joined #ruby
<shevy> matti so that we can tell newcomers who come to #ruby to ask matti :>
<shevy> for rails!
hadees has quit [Ping timeout: 272 seconds]
tvw has quit [Remote host closed the connection]
Zol has quit [Ping timeout: 260 seconds]
<matti> shevy: No!
<matti> shevy: U bastard ;-)
avalarion has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<matti> shevy: I want to retain my sanity little there is left of it
<matti> ;-)
cakehero has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
emmanuelux has quit [Ping timeout: 268 seconds]
atmosx has joined #ruby
<atmosx> hello
banghouse has joined #ruby
<circlicious> exit
circlicious has quit [Quit: leaving]
yasushi has quit [Remote host closed the connection]
<atmosx> wow ipv6
t51430 has quit [Remote host closed the connection]
t96924 has joined #ruby
Goles has joined #ruby
cakehero has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_pdelgallego has joined #ruby
jtgiri_ has joined #ruby
pdelgallego has quit [Read error: Connection reset by peer]
_pdelgallego is now known as pdelgallego
<JonnieCache|home> theres a good book called "design for hackers"
cakehero has joined #ruby
drago757 has joined #ruby
seanstickle has quit [Quit: seanstickle]
_pdelgallego has joined #ruby
pdelgallego has quit [Read error: Connection reset by peer]
_pdelgallego is now known as pdelgallego
piotr is now known as Guest10247
gmci has quit [Quit: Computer has gone to sleep.]
RudyValencia- has joined #ruby
RudyValencia has quit [Read error: Connection reset by peer]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
akromyk has joined #ruby
Nu^253r has quit [Ping timeout: 260 seconds]
<akromyk> hi, I'm learning ruby and having some trouble understanding what's happening behind this code: http://pastebin.com/2EnK1EHM
atmosx has joined #ruby
<akromyk> I'm coming from a Java background
limeds has quit [Quit: limeds]
<akromyk> Shouldn't var2 point to var1 and output eight?
<Hanmac> no because the variables are not connected
<JonnieCache|home> no... ruby is pass by value.
<JonnieCache|home> thats how java works as well
havenn has quit [Remote host closed the connection]
fyolnish has joined #ruby
<akromyk> so what does java do differently? does java copy the reference instead of the value?
<JonnieCache|home> java is pretty much exactly the same iirc
<JonnieCache|home> in java that code would output the same thing i think
<Muz> akromyk: you can check what's referencing what by checking the object ID. Object#object_id
mohits has quit [Ping timeout: 240 seconds]
<JonnieCache|home> ruby is pass-by-value. the fact that those values happen to be references is irrelevant :)
Steppen has quit [Quit: Leaving]
<JonnieCache|home> i hope im getting that right, it took me ages to understand it
<Muz> Specifially, after setting var1 = "eight", you'll see var2 will return the first object ID, and var1 will return a new object_id
<akromyk> do you ever see pass by reference in ruby?
adeponte has joined #ruby
savage- has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
<Muz> Not really, given how you have mutability of items in Ruby, which you wouldn't in Java.
<akromyk> doesn't that eat up a lot of memory?
<akromyk> when you say "mutability", is that specifically for primitive types and Strings?
<Hanmac> akromyk: information: about the passed args to functions:
<Hanmac> >> def a(o); o << "b";end; x=["a"];a(x);p x
<Hanmac> the variables are passed by value, but this are references to objects
<al2o3cr> (Array) ["a", "b"], Console: ["a", "b"]
<JonnieCache|home> there are no primitive types in ruby, everything is just an object
jtgiri_ has quit [Quit: jtgiri_]
<JonnieCache|home> and yes, strings are mutable and so they take more memory
<JonnieCache|home> thats why we have symbols
<Hanmac> akromyk: Symbols are alike immutable Strings
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<Mon_Ouie> I don't know about Java, but in C++ the difference is that the = operator is a method that mutates its receiver
<akromyk> I mean what what would have been considered a primitive type in Java
<Mon_Ouie> (or however you want to call it there)
<akromyk> Sorry, I'm referencing Java a lot here but I'm just trying to understand
Speed has quit [Ping timeout: 252 seconds]
jarek has joined #ruby
Godslastering has quit [Remote host closed the connection]
arpegius has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
melfar has joined #ruby
gmci has joined #ruby
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
Nu^253r has joined #ruby
arkiver has quit [Quit: Leaving]
TheLZA has joined #ruby
drago757 has quit [Quit: drago757]
<akromyk> If you did this within ruby: pastebin.com/sJaisDB0 would it print out 1 2 ...or... 2 2 ?
<JonnieCache|home> 2 2
<akromyk> cool, thanks :)
olrrai has quit [Quit: Saliendo]
<akromyk> So the only things that are immutable objects are integers, floats, Strings, and boolean variables. Is that correct?
matrixise has quit [Ping timeout: 264 seconds]
<Mon_Ouie> No, strings are mutable
<Mon_Ouie> >> a = "foo"; a[1] = "b"; a
<al2o3cr> (String) "fbo"
<JonnieCache|home> floats are mutable too
<Mon_Ouie> They're not, except for their ivars
snearch has joined #ruby
<Mon_Ouie> But if that counts, everything is mutable
<JonnieCache|home> Mon_Ouie: youre right. im just tried it in irb but misread a couple of digits of the object_id
<Mon_Ouie> You can create your own class and decide to make its instances immutable simply by not providing methods to change their internal state
<JonnieCache|home> note to self: if youre going to try the code to make yourself look like less of an idiot, read the output properly
<Mon_Ouie> (You'd still have instance_variable_set, but using it like that is bad practice anyway)
<fowl> akromyk: instead of strings you meant symbols?
<akromyk> fowl: not sure, what are symbols. I'm new to ruby
<Mon_Ouie> :foo is a symbol
<akromyk> what does a symbol do?
just4dos_ has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
laen_ has joined #ruby
<Mon_Ouie> It's just something you can use to… symbolize something; it's commonly used as hash keys or to represent code symbol names (method names, etc.)
<Hanmac> symbols are like C++ enums
<fowl> symbols symbolize, good definition Mon_Ouie
<Hanmac> but more cool
[MAN] has joined #ruby
<akromyk> interesting. I can't wait to learn that part :)
johnjohnson has joined #ruby
<Mon_Ouie> fowl: Yeah, things that are named right have obvious definitions! :p
adac has joined #ruby
jasonLaster has joined #ruby
hmans has joined #ruby
dev_ryan70 has joined #ruby
butblack has joined #ruby
<akromyk> So back to this code. If the equivalent is done in ruby why would it print out 2 2? I mean if you did the same with two integer objects in ruby it would give you 1 2
<akromyk> hold on. it expired. sorry
<Hanmac> akromyk: use symbols when some kind of flag is important, use String when you need the Content
<Hanmac> like shape.type #could return> :cycle
gmci has quit [Read error: Operation timed out]
<Mon_Ouie> Prefer pastie.org or gist.github.com anyway
<akromyk> sorry, already did it in pastebin: http://pastebin.com/R7yGhB7y
iamjarvo has quit [Ping timeout: 244 seconds]
<akromyk> So the ruby equivalent would print out 2 2 as well? But ruby variables with integer objects would output 1 2. Why is that?
<fowl> where is this equivalent ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<akromyk> JonnieCache confirmed earlier that equivalent ruby code would do the same
<akromyk> print 2 2
laen_ has quit [Ping timeout: 256 seconds]
<fowl> akromyk: if you set var1 = var2 then yes.. they would both have 2 as value
gmci has joined #ruby
arpegius has quit [Quit: arpegius]
himsin has joined #ruby
laen_ has joined #ruby
<fowl> they would be the same obj in ruby, dunno how c# does it
<akromyk> Why doesn't the same apply for integer objects?
<Mon_Ouie> It does
<akromyk> There must be a better way to explain my confusion...
shevy has quit [Ping timeout: 268 seconds]
<Mon_Ouie> http://pastie.org/4592076 — both code will output 2 twice
johnjohnson has quit []
seanstickle has joined #ruby
havenn has joined #ruby
mengu has quit [Remote host closed the connection]
<akromyk> thanks Mon_Ouie. just need a second to look this over
workmad3 has joined #ruby
deryl has joined #ruby
havenn_ has joined #ruby
just4dos_ has joined #ruby
ly_gs has joined #ruby
alisha123 has joined #ruby
<akromyk> that code gave me the perfect example: http://pastie.org/4592099
<akromyk> if they acted the same then you would get 3 3 3 3, but instead it's 3 3 2 3
ar_ has quit [Read error: Connection timed out]
<akromyk> and I don't understand the difference. I thought their both objects
workmad3 has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
havenn_ has quit [Read error: No route to host]
<Mon_Ouie> They are both objects, but in the second example, when you do var2 = 3, you change the object var2 is referencing
<Mon_Ouie> So it's not the same object than var1 anymore
havenn_ has joined #ruby
alisha123 has quit [Client Quit]
<Mon_Ouie> While in the first example, you change the object referenced by var2.value — and since var1 and var2 both are the same thing at that point, they're both affected
<akromyk> need another moment :P
baroquebobcat has joined #ruby
<Mon_Ouie> Objects should not be confused with variables
godfrey999 has joined #ruby
shevy has joined #ruby
heisenmink has quit [Remote host closed the connection]
qwerxy has joined #ruby
moshef has quit [Quit: moshef]
atmosx has joined #ruby
kirun has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
khakimov has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
s1n4 has joined #ruby
<akromyk> Mon_Ouie, I think I almost got it. So does var1 = 1; var2 = 2; var1 = var2; basically copy the reference to the integer object of var2 to var1. And then var2 = 3 constructs a whole new integer object while var1 still references the number 2 object. Is that correct?
<atmosx> writing function that I already understand is sooo annoying
<Mon_Ouie> Yeah ;)
<akromyk> Awesome :)
<akromyk> Thanks Mon_Ouie!
<atmosx> I need to get the computer to do it (meta-programming at it's best)
havenn has quit [Ping timeout: 244 seconds]
s1n4 has quit [Client Quit]
guns has joined #ruby
guns is now known as Guest768
gmci has quit [Ping timeout: 244 seconds]
Guest768 has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
dmiller has quit [Ping timeout: 268 seconds]
mahmoudimus has joined #ruby
brianpWins has joined #ruby
akromyk has quit [Quit: Leaving]
gmci has joined #ruby
ly_gs has quit [Remote host closed the connection]
Guest75036 is now known as dpk
mohits has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
regedarek has quit [Read error: Connection reset by peer]
th3xer0 has quit [Quit: leaving]
baroquebobcat has quit [Client Quit]
bier_ has quit [Ping timeout: 264 seconds]
Eldariof-ru has quit [Ping timeout: 244 seconds]
Eldariof-ru has joined #ruby
havenn_ has quit [Remote host closed the connection]
tr4656 has quit [Ping timeout: 246 seconds]
seanstickle has quit [Quit: seanstickle]
apok has joined #ruby
tr4656 has joined #ruby
ksinkar has quit [Quit: Konversation terminated!]
mc0e has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
godfrey999 has quit [Quit: godfrey999]
qwerxy has quit [Quit: offski]
anekos has quit [Remote host closed the connection]
darren has joined #ruby
anekos has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
kip has quit [Read error: Connection reset by peer]
jarred has joined #ruby
insecurlex has quit [Remote host closed the connection]
bier_ has joined #ruby
jarred has quit [Client Quit]
Azure is now known as __END__
RudyValencia has joined #ruby
c0rn_ has joined #ruby
jarek has quit [Quit: jarek]
SegFaultAX has joined #ruby
jtgiri_ has joined #ruby
JoeTheGuest_ has quit [Ping timeout: 256 seconds]
dataholic has joined #ruby
drago757 has joined #ruby
iamjarvo has joined #ruby
JoeTheGuest has joined #ruby
ly_gs has joined #ruby
t96924 has quit [Remote host closed the connection]
t87549 has joined #ruby
c0rn_ has quit []
havenn has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
drago757 has quit [Quit: drago757]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
libryder has joined #ruby
wallerdev has joined #ruby
fyolnish has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
fyolnish has joined #ruby
Spooner has joined #ruby
maletor has joined #ruby
<libryder> where would i find the code that parses spaces and parentheses in method definitions?
<fowl> libryder: you want to parse ruby syntax/
<libryder> no on github.com/ruby/ruby
<fowl> libryder: check parse.y or parser.y something like that
havenn has quit [Remote host closed the connection]
TheShadowFog has quit [Quit: pls respond]
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
sailias has joined #ruby
<libryder> what's a .y file?
fyolnish has quit [Ping timeout: 245 seconds]
<libryder> yacc?
<fowl> yea
<libryder> ah, c
walbert has joined #ruby
<Mon_Ouie> Yacc isn't really C code; it does include some C code for the actions that are run by the parsre
<Mon_Ouie> Then again, since half of Ruby's code is written in parse.y, after the grammar… yes, it's mostly C code :p
<fowl>
fastred has joined #ruby
dataholic has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
ly_gs has quit [Remote host closed the connection]
hmans has quit [Quit: Linkinus - http://linkinus.com]
jtgiri_ has quit [Quit: jtgiri_]
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
tommyvYo has joined #ruby
Guerrero has joined #ruby
John_Galt has joined #ruby
adeponte has quit [Remote host closed the connection]
jasonLaster has quit [Remote host closed the connection]
lampe2_ has joined #ruby
ly_gs has joined #ruby
pridian has joined #ruby
jasonLaster has joined #ruby
<libryder> i'm curious if there is an overhead associated with allowing parentheses as optional
awarner has joined #ruby
<libryder> def some_thing(arg1, arg2) vs def some_thing arg1, arg2
<pridian> I believe I may have asked this earlier, and if so I apologize: are integers mutable or immutable in ruby?
<libryder> immutable
<pridian> thanks libryder
lampe2 has quit [Ping timeout: 260 seconds]
fantazo has joined #ruby
baphled has joined #ruby
jasonLaster has quit [Ping timeout: 260 seconds]
pdelgallego has quit [Quit: pdelgallego]
Yiq has joined #ruby
<libryder> in numeric.c: /* Numerics are immutable values, which should not be copied */
<Yiq> why do you prefer ruby over python? to me they are quite similar but python has more and better libs and is used more widely and not just in webapps.
<banisterfiend`> Yiq: 1 answer: blocks ;)
<banisterfiend`> Yiq: once u get used to block based programming everything else feels crippled and ugly
<xyon> I'm not a ruby expert, but its frameworks are very powerful and the code itself makes sense to me from my perl background...
havenn has joined #ruby
<xyon> Python is very hard for me to read, much less code in..
Guerrero has quit [Killed (idoru (Spam is off topic on freenode.))]
<xyon> banisterfiend`: agreed
<fowl> hey another one
<fowl> ruby is rails
<fowl> cheers
chussenot has joined #ruby
<Yiq> much less ocde in ruby?
<Yiq> blocks=functions?
<melfar> for me the fact that len is not a member method of array and that you have to explicitly pass self to the method is enough to question the language's internal consistency
<banisterfiend`> Yiq: no
<Yiq> how free/modular is rails? does it force you into a certain model of your app?
<banisterfiend`> Yiq: blocks are like python's lambda on crack
haxrbyte has joined #ruby
<fowl> ruby is rails, so why not just use the two interchangeably
Foxandxss has joined #ruby
chussenot has quit [Client Quit]
apok has quit [Quit: apok]
<shevy> Yiq rails forces you strictly into the rails world
baroquebobcat has joined #ruby
snearch has quit [Quit: Verlassend]
haxrbyte has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<shevy> Yiq the biggest difference between ruby and python is the philosophy
haxrbyte_ has quit [Ping timeout: 260 seconds]
haxrbyte_ has joined #ruby
<pridian> shevy, what would you say are the most notable differences in philosophy?
<shevy> pridian that ruby actively encourages creativity
<shevy> and that it is less rigid about enforcing one over the other (mandatory () in method calls vs. optional parens)
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
tramontana has quit [Quit: tramontana]
<pridian> are there any advantages to their philosophy?
<shevy> if you are creative, you can have lots of crazy ideas
<shevy> see what _why wrote
banghouse has quit [Remote host closed the connection]
<shevy> an advantage is that you can quickly churn out code to test whether your ideas work or not
baroquebobcat has quit [Quit: baroquebobcat]
kiyoura has joined #ruby
<Yiq> in python no parens mean a reference toa function isntead of a call. how do you pass a function to a fucntion in ruby? and how is array.len or array.len() about creativity?
SCommette has quit [Quit: SCommette]
Morkel has joined #ruby
<kiyoura> Yiq, you may simply omit the parenthesis, if you wanted to however pass the return value of another function you may unambiguously call function(function2())
<pridian> reference to a function? are those like javascript closures?
gentz_ has quit [Ping timeout: 256 seconds]
<Hanmac> p array.method(:size), Array.instance_method(:size)
<Hanmac> >> p array.method(:size), Array.instance_method(:size)
<al2o3cr> -e:1:in `eval': undefined local variable or method `array' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<Hanmac> >> p [].method(:size), Array.instance_method(:size)
<al2o3cr> (Array) [#<Method: Array#length>, #<UnboundMethod: Array#length>], Console: #<Method: Array#length>, #<UnboundMethod: Array#length>
baphled has quit [Ping timeout: 256 seconds]
gentz has joined #ruby
<adac> i wanted to check if a string contains one or more image formats (endings) ie: png, jpg and gif I was windering how a regular expression for this looks like in ruby?
<shevy> Yiq I said it is less rigid - that is the difference in philosophy. it shows in syntax requirements
mneorr_ has joined #ruby
<shevy> Yiq in python you can not choose. in ruby you can
mneorr has quit [Quit: Leaving.]
flak has joined #ruby
mneorr_ is now known as mneorr
<Muz> adac: /\.((pn|jp)g|gif)$/
flak is now known as Guest78224
senny has joined #ruby
<Muz> I'm sure you can golf that down, but that'll work for most rudimentary use cases.
Spooner has quit [Ping timeout: 264 seconds]
* shevy still loves the '.' at the end
<Yiq> i want to pass a function, not the return value of a function
* Muz disappears back to playing CS:GO. ¬_¬
<Yiq> like map( f, list )
havenn has joined #ruby
<eridani> i always viewed the lack of () as optimizing for the common case and not the exotic case. it's very rare to pass a method to a method.
havenn_ has joined #ruby
<adac> Muz, nd hwo would a test look, is this correct? if string =~ Regexp.new( /\.((pn|jp)g|gif)$/)...
<fowl> Yiq: in ruby when you do list.map { |x| ... } the |x| .. is the block
<fowl> the block is the function*
rippa has quit [Ping timeout: 244 seconds]
<shevy> Yiq then pass a proc and run .call on it when you want to evaluate it
graspee has quit [Quit: leaving]
cinch has joined #ruby
awarner has quit [Remote host closed the connection]
seanstickle has joined #ruby
butblack has quit [Quit: butblack]
khakimov has joined #ruby
Nu^253r has quit [Ping timeout: 276 seconds]
tommyvYo has quit [Quit: Computer has gone to sleep.]
gvz has joined #ruby
<Yiq> f=Proc.new {|x| x*x} # [1,2,3].map(f) doesnt work
Quadrant has quit [Read error: Connection reset by peer]
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
Quadrant has joined #ruby
<seanstickle> [1,2,3].map(&f)
<Yiq> so you need the ugly & instead
Yiq has left #ruby [#ruby]
<fowl> lol
<seanstickle> I see we've won a new Ruby loyalist
Guest78224 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<fowl> we have enough stupid people
<fowl> python can keep him
rippa has joined #ruby
grenierm has joined #ruby
jwbuurlage has joined #ruby
tgriffin2081 has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
<pridian> I'm following along with a tutorial that has me write the following code, but the last line is returning an error for me: http://pastie.org/4592602
<pridian> Is there a typo in there code?
<seanstickle> pridian: don't put spaces before parens
<seanstickle> foo() not foo ()
<pridian> thanks seanstickle, that did the trick
<pridian> with is the line 6 str.rjust lining up with the rjust of line 5?
<pridian> it's divided by 2. shouldn't it be more to the left?
triptec has quit [Ping timeout: 268 seconds]
ar__ has joined #ruby
<fowl> python is the devil
<Hanmac> Yiq: array.map(&method(:name))
<bperry> neat
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
apok has joined #ruby
<shevy> Hanmac he is gone
<Hanmac> :(
banghouse has joined #ruby
<pridian> does anyone have any recommendations that for a program I can look at that uses a good deal of ruby's power but isn't too large in size?
<pridian> I'm look for something to reverse engineer to better learn the language
<pridian> looking*
jtgiri_ has joined #ruby
jtgiri_ has quit [Client Quit]
[MAN] has quit [Quit: Leaving...]
sepp2k1 has quit [Read error: Connection reset by peer]
<seanstickle> pridian: Sinatra
<pridian> thanks. what is Sinatra?
<canton7> heh, some of the tricks sinatra uses need a deep explanation
<Mon_Ouie> You could also check Binstruct, a library that uses some meta-programming to define class to manipulate binary formats
<seanstickle> The best thing to read is something a bit more than you understand. Otherwise you won't have to work to read it.
<pridian> thanks, I'll take a look at those two
dpk has quit [Ping timeout: 252 seconds]
ringotwo has joined #ruby
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
tommyvYo has joined #ruby
senny has quit [Remote host closed the connection]
dpk has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
John_Galt has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
resure has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
burgestrand has quit [Quit: Leaving.]
sterNiX has quit [Ping timeout: 260 seconds]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
burgestrand has joined #ruby
dpk has quit [Ping timeout: 244 seconds]
heisenmink has joined #ruby
Foxandxss has joined #ruby
aantix has joined #ruby
fermion has joined #ruby
nim__ has quit [Ping timeout: 252 seconds]
tgriffin2081 has joined #ruby
Progster has joined #ruby
fastred has quit [Quit: fastred]
dpk has joined #ruby
seanstickle has quit [Quit: seanstickle]
resure has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
dpk has quit [Ping timeout: 252 seconds]
quest88 has joined #ruby
hadees has joined #ruby
jarred has joined #ruby
ChampS666 has quit [Ping timeout: 265 seconds]
c0rn_ has joined #ruby
<shevy> dumdedum
dpk has joined #ruby
urbann has joined #ruby
c0rn_ has quit [Client Quit]
resure is now known as resure_awaay
drago757 has joined #ruby
baroquebobcat has joined #ruby
dpk has quit [Ping timeout: 276 seconds]
nim__ has joined #ruby
ngoldman has joined #ruby
butblack has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
grenierm has quit [Quit: grenierm]
gvz has quit [Quit: Leaving]
dev_ryan70 has quit [Remote host closed the connection]
t87549 has quit [Remote host closed the connection]
t58204 has joined #ruby
dpk has joined #ruby
dev_ryan70 has joined #ruby
haxrbyte_ has joined #ruby
awarner has joined #ruby
ilyam has joined #ruby
ilyam has quit [Client Quit]
ChampS666 has joined #ruby
c0rn_ has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
Z_Mass has joined #ruby
BrokenCog has joined #ruby
randomautomator has joined #ruby
John_Galt has joined #ruby
randomau_ has joined #ruby
tgriffin2081 has quit [Ping timeout: 245 seconds]
ChampS666 has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
adambeynon has quit [Client Quit]
randomautomator has quit [Ping timeout: 244 seconds]
Takehiro has quit [Remote host closed the connection]
dev_ryan70 has quit [Ping timeout: 276 seconds]
AlbireoX has joined #ruby
cdabba has quit [Quit: Leaving]
azm has quit [Ping timeout: 268 seconds]
Guedes has quit [Ping timeout: 264 seconds]
kjellski has quit [Quit: Leaving]
heisenmink has quit [Remote host closed the connection]
johncrest has joined #ruby
dpk has quit [Ping timeout: 244 seconds]
TheFuzzball has quit [Read error: Operation timed out]
dpk has joined #ruby
johncrest has quit [Client Quit]
Guedes has joined #ruby
ryanf has joined #ruby
jarred has quit [Quit: jarred]
<shevy> $actionAbout = Qt::Action($mainWindow); $self->{actionAbout} = $actionAbout
TheFuzzball has joined #ruby
dpk has quit [Ping timeout: 265 seconds]
manizzle has joined #ruby
<fowl> is that qt in php?
<kiyoura> :S
<matti> Or Perl.
<fowl> lol
dpk has joined #ruby
<shevy> perl, yeah
<shevy> but it's kinda funny
<shevy> $self->{actionAbout} = $actionAbout
resure_awaay is now known as resure
<shevy> that would be almost valid ruby :D
<shevy> I can assign to $self in ruby
<shevy> -> could be the new operator
<shevy> dunno what to do with {actionAbout}
TheShadowFog has joined #ruby
urbann has quit [Remote host closed the connection]
tgriffin2081 has joined #ruby
Russell^^ has quit [Quit: Russell^^]
BrokenCog has quit [Ping timeout: 240 seconds]
ringotwo has quit [Remote host closed the connection]
EuroTrash has joined #ruby
stack_push has joined #ruby
stack_push has quit [Client Quit]
jtgiri_ has joined #ruby
Guest5515 has quit [Quit: Guest5515]
w400z has joined #ruby
SCommette has quit [Quit: SCommette]
<Hanmac> imo this is more ruby like: obj.add_callback(:actionAbout,&:method(:actionAbout))
<kiyoura> &: ?
Eldariof-ru has quit []
<kiyoura> reference to symbol?
indian has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
<ryanf> yeah he meant &method(:actionAbout)
Takehiro has joined #ruby
<shevy> Hanmac has totally crazy syntax
<Hanmac> ryanf yeah that what i mean
<ryanf> method(:actionAbout) is a method object, & passes it as a block
<kiyoura> i see
drago757 has quit [Quit: drago757]
s0ber has joined #ruby
dev_ryan70 has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 246 seconds]
johnjohnson has joined #ruby
mxweas has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
Z_Mass has quit [Ping timeout: 260 seconds]
dpk has quit [Ping timeout: 265 seconds]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
t58204 has quit [Remote host closed the connection]
dpk has joined #ruby
mrdodo has joined #ruby
t437 has joined #ruby
Vert has joined #ruby
workmad3 has joined #ruby
Guest17964 is now known as verto
grizlo42 has joined #ruby
mwilson- is now known as mwilson
brianpWins has quit [Quit: brianpWins]
c0rn_ has quit [Ping timeout: 248 seconds]
baphled has joined #ruby
melfar has quit [Quit: This computer has gone to sleep]
c0rn_ has joined #ruby
jbw has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 260 seconds]
mxweas has quit [Quit: Computer has gone to sleep.]
<shevy> def cell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='')
<shevy> the joy of ruby fpdf ...
<workmad3> woo!
<workmad3> someone doesn't like option hashes...
NimeshNeema has quit [Max SendQ exceeded]
brianpWins has joined #ruby
denysonique has quit [Max SendQ exceeded]
mneorr_ has joined #ruby
<shevy> hehe
apok has quit [Ping timeout: 276 seconds]
<shevy> shall I really port it all ... :\
<shevy> def SetFillColor(r, g=-1, b=-1)
mrdodo has quit [Remote host closed the connection]
MetaCosm has quit [Max SendQ exceeded]
c0rn_ has quit []
<shevy> this one is also cool
<shevy> def AliasNbPages(aliasnb='{nb}')
nkts has joined #ruby
olrrai has joined #ruby
ladder4 has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 246 seconds]
w400z has quit [Quit: Computer has gone to sleep.]
baphled has quit [Ping timeout: 272 seconds]
<shevy> hmm next time I am going to write a sanitizer class in ruby
elaptics is now known as elaptics`away
<shevy> to downcase all CamelCased method names properly
qwerxy has joined #ruby
tgriffin2081 has quit [Ping timeout: 252 seconds]
MetaCosm has joined #ruby
* fowl upcases shevy 's downcases
NimeshNeema has joined #ruby
mwilson has quit [Disconnected by services]
Squarepy has quit [Quit: Leaving]
mwilson has joined #ruby
mwilson has quit [Disconnected by services]
mwilson- has joined #ruby
ladder4 has joined #ruby
denysonique has joined #ruby
apok has joined #ruby
S1kx has quit [Read error: Connection reset by peer]
<workmad3> shevy: look at jruby... I'm pretty sure jruby can already do that for calling into java code :)
<shevy> hmm
<shevy> l=l+cw[c];
<shevy> ^^^ who in the hell writes ruby code like that :(
<workmad3> shevy: yeah... it should be using += :P
bluenemo has quit [Remote host closed the connection]
<shevy> hmm
<shevy> question:
<shevy> while (c = freadbyte(f)) != 0xff
<shevy> any alternative to the above?
haxrbyte has joined #ruby
<canton7> put the assignment both before the while and at the end of it. more messy though. that's a fairly common pattern in C
tommyvYo has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
<shevy> yeah this all feels as if a C-guy wrote up something in ruby
<workmad3> shevy: no enumerator version for freadbyte?
ar__ has quit [Remote host closed the connection]
<shevy> there are odd things like... $title='20000 Leagues Under the Seas'; pdf.SetAuthor($title)
<shevy> and $title is used only once really... why is it a global ...
<shevy> oh sorry... pdf.SetTitle($title) it was
khakimov has joined #ruby
haxrbyte_ has quit [Ping timeout: 276 seconds]
Jck_true has joined #ruby
Jck_true has quit [Remote host closed the connection]
atmosx has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
apeiros_ has joined #ruby
apeiros_ has left #ruby [#ruby]
resure has quit [Remote host closed the connection]
tommyvYo has joined #ruby
<shevy> I find it hard to understand other people's code
pdelgallego has joined #ruby
<fowl> shevegen started following zenspider 3 hours ago.... fowlmouth stopped following shevegen
<shevy> lol
<shevy> he was writing something for this ruby parser thing
<shevy> I need to prepare for RubyOS one day
John_Galt has quit [Ping timeout: 260 seconds]
h4mz1d has joined #ruby
Abbas5 is now known as Abbas|
t437 has quit [Remote host closed the connection]
t71054 has joined #ruby
<shevy> this is what I am looking right now http://pastie.org/4593445
<shevy> looking *at
jasonLaster has joined #ruby
<canton7> yay ,that could do with a bit of tidying
Z_Mass has joined #ruby
<shevy> I think the author took the php version and "ported" that to ruby
pdelgallego has quit [Quit: pdelgallego]
ph^ has joined #ruby
manizzle has quit [Read error: No route to host]
Spooner has joined #ruby
h4mz1d has quit [Ping timeout: 252 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
<shevy> where do you guys store .pdf files btw?
ngoldman has quit [Remote host closed the connection]
havenn__ has joined #ruby
<reactormonk> shevy: dev/doc ;-(
havenn_ has quit [Ping timeout: 244 seconds]
<shevy> my filesystem is a mess
<reactormonk> clean it up
pdelgallego has joined #ruby
<shevy> yeah, I dunno. it is more a structural mess
nicoulaj has quit [Remote host closed the connection]
<shevy> 80% of my ruby files reside in something like ~ruby/src
ChampS666 has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
aaronmacy has joined #ruby
catery has joined #ruby
<Mon_Ouie> I used to have pretty much everything and anything in ~
<catery> how does the self keyword and @ (instance variables) work in the context of a module, what exactly is a module?
<Mon_Ouie> catery: Depends, do you mean within the body of the module or within the methods defined in the module?
<catery> method
michaelmartinez has joined #ruby
<catery> a module is not a class right?
<catery> so what does it mean to use self and @ then?
<Mon_Ouie> Well, self is whatever you call it on; typically that would be instances of a class the module was included into
<Mon_Ouie> And instance variables are always relative to self alone
cinch has left #ruby ["Leaving"]
<michaelmartinez> I have two dvm, two bundlers in my global gem set…how can I remove one?
<michaelmartinez> dvm = rvm
Danielpk_ has joined #ruby
<Mon_Ouie> For example, Array includes Enumerable. If you decide add a method to Enumerable, you could call that method on an array and self would be that array
Tearan has joined #ruby
Tearan has quit [Client Quit]
Criztian has quit []
khakimov has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
banisterfiend has joined #ruby
TechCel has joined #ruby
Danielpk has quit [Ping timeout: 260 seconds]
Danielpk_ is now known as Danielpk
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
apok has quit [Quit: apok]
Progster has quit [Ping timeout: 245 seconds]
lampe2_ has quit [Quit: Verlassend]
frogprince_mac has quit [Quit: Leaving...]
jwbuurlage has quit [Quit: jwbuurlage]
Morkel has quit [Quit: Morkel]
SCommette has joined #ruby
mneorr_ has quit [Remote host closed the connection]
<datapolitical> anyone alive in here
<datapolitical> join #rails
mneorr has joined #ruby
dev_ryan70 has quit [Ping timeout: 276 seconds]
<atmosx> what's wrong with #rails
mxweas has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
<kiyoura> isn't it
qwerxy has joined #ruby
<kiyoura> #rubyonrails
<kiyoura> ?
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
catery has quit [Quit: Page closed]
t71054 has quit [Remote host closed the connection]
<Mon_Ouie> As I understand, #rubyonrails is the popular/official/whatever one
t50407 has joined #ruby
ringotwo has joined #ruby
<kiyoura> that's what i thought, too
flagg0204 has joined #ruby
Z_Mass has quit [Ping timeout: 245 seconds]
xclite has quit [Remote host closed the connection]
Z_Mass has joined #ruby
xclite has joined #ruby
jeff_sebring has joined #ruby
aaronmacy has quit [Quit: Lost terminal]
A124 has joined #ruby
A124 has left #ruby [#ruby]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jorge has joined #ruby
deryl has quit [Quit: deryl]
CannedCorn has joined #ruby
havenn has quit [Remote host closed the connection]
skogis has quit [Quit: leaving]
skogis has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ly_gs has quit [Remote host closed the connection]
tchebb1 has joined #ruby
havenn__ has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
tchebb has quit [Ping timeout: 276 seconds]
jorge has quit [Ping timeout: 260 seconds]
Bosma has quit [Quit: leaving]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
LyonJT has joined #ruby
LyonJT has quit [Client Quit]
alanp_ has joined #ruby
nkts has quit [Remote host closed the connection]
alanp has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
pygmael has quit [Read error: Connection reset by peer]
jorge has joined #ruby
__END__ is now known as Azure
pygmael has joined #ruby
havenn has joined #ruby
tchebb1 has quit [Quit: Leaving.]
tchebb has joined #ruby
Takehiro has quit [Remote host closed the connection]
ohdae has joined #ruby
jorge has quit [Ping timeout: 248 seconds]
[Neurotic] has joined #ruby
<elico> anyone still awake?
<Spooner> elico : no
<johnjohnson> no
jarred has joined #ruby
dev_ryan70 has joined #ruby
<elico> crap... and i was looking for a bit help
havenn has quit [Remote host closed the connection]
<elico> i want to create a graph png\jpg from log statistics.. does anyone knows some nice library for that?
<Mon_Ouie> "still" awake makes no sense on IRC, it's always morning somewhere in the world
<johnjohnson> elico: google graphs
<elico> Mon_Ouie: well it's seems like the chap was "off" about 30 minutes.. so i asked
<johnjohnson> there's a gym I believe
<johnjohnson> gem*
gift has quit [Ping timeout: 276 seconds]
<elico> there is a google charts gem
<johnjohnson> yeah, that
<elico> and it seems like kind deecent one
gift has joined #ruby
<Mon_Ouie> Isn't there something that uses graphviz too?
fantazo has quit [Remote host closed the connection]
<johnjohnson> I think so
<elico> i am looking for something with the simplest apu..
<elico> api*
qwerxy has joined #ruby
<johnjohnson> I'm pretty sure the charts gem was pretty simple from what I can remember
<johnjohnson> the graphviz docs makes it seem pretty simple as well
<elico> charts by google charts?
<elico> it is simple..
jtgiri_ has quit [Quit: jtgiri_]
niklasb has quit [Ping timeout: 264 seconds]
<elico> the problem is that i want to create a png... and not to download from google charts..
awarner has quit [Remote host closed the connection]
<elico> thanks...
Nisstyre has quit [Quit: Leaving]
<fowl> you're welcome"..."
<johnjohnson> -_-
<elico> 0_0
Nisstyre_ has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
dev_ryan70 has quit [Ping timeout: 264 seconds]
<elico> if someone have specific expirence i will be more then happy
jeffnapp1 has quit [Remote host closed the connection]
AnarchoTroll has joined #ruby
<AnarchoTroll> Is there a starightforward way to iterate the elements of an array in pairs? E.g. Array: [1,2,3]. I would like to iterate it as if it was [[1,2], [2,3]]
catery has joined #ruby
catery has left #ruby [#ruby]
datapolitical has quit [Quit: This computer has gone to sleep]
<elico> AnarchoTroll: i think you can use a each_index and build your own loop it's pretty simple
awarner has joined #ruby
yasushi has joined #ruby
<AnarchoTroll> elico, this is what I ended up doing: arr.clone.remove(arr.first).zip(arr.clone.remove(arr.last))
<AnarchoTroll> I get exactly what I want by doing that, I was just wondering if there was a more elegant way of doing it
t50407 has quit [Remote host closed the connection]
t69121 has joined #ruby
verto is now known as verto|off
sambio_ has joined #ruby
sambio_ has quit [Client Quit]
sambio has joined #ruby
<elico> AnarchoTroll: if you do want you can encapsulate it in a method.. /\-/\
datapolitical has joined #ruby
yasushi has quit [Ping timeout: 244 seconds]
<elico> the only way of making one thing another is to iterate over it...
<elico> or at least on it's index..
Bosma has joined #ruby
Takehiro has joined #ruby
jtgiri_ has joined #ruby
awarner has quit [Remote host closed the connection]
<AnarchoTroll> got it
justinmcp has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Takehiro has quit [Ping timeout: 248 seconds]
w400z has joined #ruby
coyo6770 has joined #ruby
kuzushi has quit [Ping timeout: 264 seconds]
coyo6770 is now known as coyo
coyo has quit [Changing host]
coyo has joined #ruby
Z_Mass has quit [Ping timeout: 245 seconds]
ngoldman has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
ringotwo has quit [Remote host closed the connection]
miho has quit [Remote host closed the connection]
kiyoura has quit [Quit: Leaving]
ringotwo has joined #ruby
justinmcp has quit [Remote host closed the connection]
ohdae has quit [Quit: leaving]
joast has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
jasonLaster has quit [Remote host closed the connection]
ttilley has quit [Ping timeout: 245 seconds]
jasonLaster has joined #ruby
alex___ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<alex___> hi - does anyone know how you can create a separate namespace to use with eval? I need it to work with rspec: https://gist.github.com/3484012
jonathanwallace has joined #ruby
kuzushi has joined #ruby
qwerxy has quit [Quit: offski]
berserkr has quit [Quit: Leaving.]
jasonLaster has quit [Ping timeout: 246 seconds]
<Mon_Ouie> What do you mean by separate namespace?
<alex___> @Mon_Ouie something that can't access my local vars and methods
<Mon_Ouie> You can use Binding#eval anyway to change the variables that can be accesesd
<alex___> Mon_Ouie: the problem is getting it to hook in with my rspec group.. could you give an example?
<Mon_Ouie> def fresh_binding; binding; end # no local variables will be available there
<Mon_Ouie> fresh_binding.eval code
<alex___> will give that a try, thanks
CannedCorn has quit [Quit: Computer has gone to sleep.]
jtgiri_ has quit [Quit: jtgiri_]
datapolitical has quit [Quit: This computer has gone to sleep]
<alex___> Mon_Ouie: what about methods?
skogis has quit [Ping timeout: 248 seconds]
<Mon_Ouie> Where are they defined?
havenn has joined #ruby
<alex___> not inside a module or anything
<Mon_Ouie> Well, top-level methods are by definition globally accessible, there's nothing you can do about that
<Spooner> AnarchoTroll : The way to iterate as you wanted is [1, 2, 3].each_cons(2) {|a, b| ... }
<Mon_Ouie> (Well, nothing is never true strictly speaking)
<Mon_Ouie> (Well, "nothing" is never true strictly speaking) might be clearer
jorge has joined #ruby
<alex___> oh ok, so if I put everything in modules, and then make the binding defined to a new module or just global will that hide pretty much everything?
<alex___> I'm running user-submitted code here so I'm just trying to avoid the user messing things up
nari_ has joined #ruby
srnty has quit [Quit: Bye]
Stalkr_ has quit [Quit: Leaving...]
w400z has quit []
<Spooner> alex___ : If you are running user-submitted code then you need a bit more if you want it to be in any way safe.
banisterfiend has quit [Remote host closed the connection]
<alex___> Spooner: I'm using ruby cop to scan the syntax tree for bad calls/constants etc
<Mon_Ouie> Well, your user will still be able to find your module
srnty has joined #ruby
seanstickle has joined #ruby
<alex___> Spooner: it's what code school use for code restrictions
banisterfiend has joined #ruby
<alex___> the problem is sandboxing the namespace
<Spooner> alex___ : Oh, OK. I thought you were just attempting to sandbox by only exposing a single namespace in the hope that would make everything magically OK :)
<alex___> someone suggested using a container object + instance_eval but that prevents my rspec group from accessing the definitions
<alex___> Spooner: haha no
<alex___> :)
<alex___> this looks like the best idea so far: http://stackoverflow.com/a/12132306/840973
<Mon_Ouie> As it has been proved by the bot here, sandboxing the access to certain constants, methods, etc. is always flawed
<alex___> but it's breaking my spec
<alex___> I would so love to see the source to one of the code school apps right now
<Mon_Ouie> (Now the code is run in a chrooted environment, so that there's nothing you can break outside of it)
jorge has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 260 seconds]
jasmina87SA__ has joined #ruby
jasmina87SA__ has quit [Client Quit]
banisterfiend has quit [Ping timeout: 244 seconds]
t69121 has quit [Remote host closed the connection]
t59124 has joined #ruby
jtgiri_ has joined #ruby
cakehero has joined #ruby
kuzushi has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 276 seconds]
kirun has quit [Quit: Client exiting]
ph^ has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
EF has joined #ruby
iamjarvo has joined #ruby
[eko] has quit [Ping timeout: 248 seconds]
jasonLaster has joined #ruby
<alex___> Mon_Ouie: just realised, they can't get access to my module if I blacklist it with ruby cop :)
pskosinski has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Ping timeout: 245 seconds]
pingfloyd has joined #ruby
srnty has quit [Quit: Bye]
centipedefarmer has joined #ruby
datapolitical has joined #ruby
niklasb has joined #ruby
kuzushi has joined #ruby
TechCel has quit []
emmanuelux has joined #ruby
jasonLaster has quit [Ping timeout: 260 seconds]
guns has joined #ruby
canton7 has quit [Remote host closed the connection]
srnty has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
datapolitical has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
Takehiro has joined #ruby
datapolitical has joined #ruby
thesheff17 has joined #ruby
baphled has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
jjang has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
alex___ has quit [Quit: alex___]
richardcreme has quit [Read error: Connection reset by peer]
apok has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
richardcreme has joined #ruby
evelyette has joined #ruby
<evelyette> hi
banisterfiend has joined #ruby
<evelyette> I would like to know if there is a tool that can scan the source code of a program and display an inheritance tree ?
indian has quit [Ping timeout: 248 seconds]
baphled has quit [Ping timeout: 245 seconds]
<johnjohnson> evelyette: is the program written in a specific language?
<johnjohnson> I know of one that works for applications written in .NET
<johnjohnson> otherwise, you can look at hex codes and memory addresses with values stored in them with various tools
<banisterfiend> haha
<Mon_Ouie> I think since this is #ruby most people ask question about ruby…
<banisterfiend> crazy man
Banistergalaxy has quit [Ping timeout: 256 seconds]
<evelyette> johnjohnson, it's in ruby
<banisterfiend> johnjohnson: why not just use a debugger? :P
<johnjohnson> oh
<Mon_Ouie> Out of just scanning the source code, I doubt it exists (and it wouldn't be that trivial to write)
kuzushi has quit [Ping timeout: 240 seconds]
<Mon_Ouie> But after loading the code (class/module definitions that is) it takes only a few lines to write
<[Neurotic]> Why not use yard graph to generate a graphiz diagram
<[Neurotic]> evelyette: you want a visual diagram?
iamjarvo has quit [Ping timeout: 244 seconds]
<evelyette> [Neurotic], yeah
<Mon_Ouie> Ah yeah, documentation tools would probably do that; not sure why I forgot about them
<[Neurotic]> yard graph should do the trick
Nisstyre has joined #ruby
<evelyette> ok I'll try that, thanks
<[Neurotic]> There was a good yard recording a little while back.. he demo'd it. Lemme find it..
savage- has joined #ruby
<[Neurotic]> around 20:00 in the presenter demos the graph functionality