apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
F1skr has quit [Quit: WeeChat 0.3.9]
<jrajav> Xeago: You were too slow getting mine up
<Hanmac> jarajav but the bot is not hanmac safe yet :'D
<sheerun> > "yes I am!"
<jrajav> Good luck with the sandbox
<sheerun> oh
<sheerun> he left
<jrajav> I went that route to begin with and it was just ugh
Araxia has joined #ruby
<jrajav> Mine uses a chroot now
<jrajav> But I can't host it and Xeago hasn't had an opportunity to get it set up apparently
<csmrfx> yeah, sorry but the bot triggers spam bot if repeats too often
havenn has joined #ruby
rich__ has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
robbyoconnor is now known as r0bby
r0bby is now known as robbyoconnor
Cultofmetatron has joined #ruby
<krazyj> noob question… how would i run a basic ruby script on an HTTP server (ala a PHP script)? just an single file of code that takes HTTP arguments and performs logic.
<jrajav> sheerun: If you're interested in mine, https://github.com/jrajav/al2o3cr
<sheerun> yeah, he got banned for spam again
<sheerun> maybe tomorrow
<Hanmac> sheerun: i want to see what happen if you did this: Process.kill(:SIGINT, Process.ppid) or similar
stephenjudkins has joined #ruby
jarred has joined #ruby
<csmrfx> krazyj: you want what is called application server, probably
<swarley> krazyj; you could use erb maybe.
<sheerun> Hanmac: Multibot has two implementations. One uses jruby and the other forwards to tryruby.org
<swarley> unless you want to get the information as a php object
<sheerun> The second is safe, but it gets banned anyway
<csmrfx> erb, too, or just system
<havenn> krazyj: Sinatra is really nice.
<swarley> but not if he's using php
<krazyj> i just want something lightweight
<csmrfx> thin
<csmrfx> + reverse forward
<sheerun> jrajav: very short code :)
<csmrfx> and your http server
<krazyj> i want to take an HTTP GET argument and write it to disk, effectively
Slivka has joined #ruby
<krazyj> i don't want to install rails for that
S0da has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
<krazyj> i mean, i want to do a *little* more than write to disk
<krazyj> but, point being, basic stuff
<csmrfx> you can send requests from http server to app server, sure
<csmrfx> see phrogz article
<swarley> krazyj; for good practice, you should never install rails for anything
<krazyj> swarley: heh
Araxia has joined #ruby
<jrajav> sheerun: Yup; chroot takes care of most of the magic
<krazyj> csmrfx: ooh phrogz article is great. thansk.
<krazyj> s/thansk/thanks/
Russell^^ has quit [Quit: Russell^^]
karakedi has joined #ruby
somazero has quit [Remote host closed the connection]
<csmrfx> yeah, the stackoverflow link should clear things up for rails planning
jonan has quit [Quit: jonan]
sheerun has left #ruby [#ruby]
<Spaceghostc2c> csmrfx: People are still playing with diaspora?
osvico has joined #ruby
uuair has quit [Quit: uuair]
<atmosx> Spaceghostc2c: not really, no
qwerxy has joined #ruby
<csmrfx> who knows
<csmrfx> but that link is pretty succinct on how to set up a thin 'app server' with apache
tommyvyo has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
havenn has quit [Remote host closed the connection]
jenrzzz has joined #ruby
postmodern has joined #ruby
slainer68 has quit [Remote host closed the connection]
<krazyj> does an app server necessarily have to be heavy? i.e. i'm talking about just a way to just execute ruby scripts served up to it by the HTTP server...
<krazyj> not use a whole framework, yadda yadda
<csmrfx> did I say thin?
<csmrfx> did somebody else say thin?
snearch has quit [Quit: Verlassend]
<csmrfx> I think thin was mentioned
<krazyj> il check it out
<krazyj> on first blush, it looked like thin was rails-specific
khakimov has quit [Ping timeout: 276 seconds]
<krazyj> i don't want a *web* server.. i have that
<krazyj> (nginx)
karakedi has quit [Ping timeout: 256 seconds]
<krazyj> aha! this looks perfect! :)
slainer68 has joined #ruby
khakimov has joined #ruby
<csmrfx> of course, two servers + web app lib + ruby is simply not going to be simple (tho may be *simpler* than full rails stack)
ephemerian has quit [Quit: Leaving.]
joeycarmello has quit [Remote host closed the connection]
Araxia has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
awarner has joined #ruby
medik has quit [Quit: Leaving]
savage- has joined #ruby
arubin_ has joined #ruby
* Spaceghostc2c coughs, says 'jruby'
Araxia has joined #ruby
jipiboily has quit [Quit: Leaving.]
khakimov has quit [Quit: Computer has gone to sleep.]
jipiboily has joined #ruby
<csmrfx> Spaceghostc2c: you mean run jvm, have jave listen to a socket? or?
<Spaceghostc2c> csmrfx: I don't know what you want to do, honestly.
sjkaliski has joined #ruby
<csmrfx> ok
crackfu_ has joined #ruby
awarner has quit [Remote host closed the connection]
cableray has joined #ruby
jphpsf has joined #ruby
jipiboily has quit [Ping timeout: 246 seconds]
lastd0nkeY has left #ruby ["Leaving..."]
nateberkopec has quit [Ping timeout: 252 seconds]
thomasfedb has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Remote host closed the connection]
Araxia has quit [Read error: Connection reset by peer]
Araxia has joined #ruby
kiyoura has joined #ruby
bradhe has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
fyolnish has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
AndChat- has joined #ruby
sjkaliski has quit [Quit: Linkinus - http://linkinus.com]
clj_newb has quit [Read error: Operation timed out]
Banistergalaxy has quit [Ping timeout: 252 seconds]
khakimov has joined #ruby
grizlo42 has joined #ruby
jarred_ has joined #ruby
jarred has quit [Ping timeout: 260 seconds]
jarred_ is now known as jarred
atmosx has quit [Quit: quiting...]
tbrock has joined #ruby
charliesome has joined #ruby
stephenjudkins has quit [Ping timeout: 252 seconds]
awarner has joined #ruby
seanyo has joined #ruby
ejholmes has joined #ruby
joeycarmello has joined #ruby
yshh has joined #ruby
tbrock has quit [Ping timeout: 240 seconds]
rakl has quit [Quit: sleeping]
slash_nick has joined #ruby
slash_nick has left #ruby [#ruby]
rakl has joined #ruby
grizlo42 has left #ruby [#ruby]
hbpoison has joined #ruby
ttt has joined #ruby
daniel_-_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<csmrfx> > cmon
savage- has quit [Quit: savage-]
DarthGandalf has quit [Ping timeout: 260 seconds]
daniel_-_ has quit [Client Quit]
bigmac is now known as i8igmac
<csmrfx> > sheerun good work
joeycarmello has quit [Ping timeout: 252 seconds]
seanyo has quit [Ping timeout: 256 seconds]
daniel_- has quit [Ping timeout: 256 seconds]
dreamz__ has quit [Remote host closed the connection]
Araxia has quit [Read error: Connection reset by peer]
emmanuelux has quit [Remote host closed the connection]
jaygen has quit [Remote host closed the connection]
grizlo42 has joined #ruby
dreamz__ has joined #ruby
DarthGandalf has joined #ruby
jaygen has joined #ruby
grizlo42 has left #ruby [#ruby]
dakine has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
erichmenge has joined #ruby
Xeago has quit [Remote host closed the connection]
pjb3_ has quit [Quit: pjb3_]
Araxia has joined #ruby
busybox42 has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
bradhe has joined #ruby
Tearan has joined #ruby
pjb3 has joined #ruby
i8igmac has quit [Quit: Leaving]
knite has joined #ruby
jjbohn has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
jjbohn has quit [Client Quit]
jjbohn has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
ttt_ has joined #ruby
ttt__ has joined #ruby
dakine has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
ttt_ has quit [Ping timeout: 245 seconds]
<Grieg> hello guys.
<Grieg> r = gets.to_f
<Grieg> pi = 3.14
<Grieg> puts A
<Grieg> A = pi*r*r
<Grieg> gives an error on winXP but works fine on win7. why is it so?
Emmanuel_Chanel has joined #ruby
<swarley> whats the error?
jimeh has quit [Quit: Computer has gone to sleep.]
<swarley> the type at least
bwlang has left #ruby [#ruby]
<swarley> TypeError, SyntaxError etc
stephenjudkins has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
qwerxy has quit [Quit: offski]
<swarley> uh. It looks like you may have some problems there
<swarley> can you pastebin the file?
<Grieg> u mean .rb?
<swarley> yes
sepp2k has quit [Remote host closed the connection]
<Grieg> all it contains is those 4 strings
dle has left #ruby [#ruby]
joeycarmello has joined #ruby
<swarley> It doesnt appear so in the photo you posted
<Grieg> i ll upload it..
freakazoid0223 has joined #ruby
<swarley> oh.. uhm
bradhe has quit [Remote host closed the connection]
<swarley> did you not use any newlines?
kevinX has joined #ruby
<Grieg> "gets" prolly
<swarley> no i mean
<swarley> in the file
<swarley> it looks jacked up
<Grieg> all i used is those strings and a "gets" to keep it open
<swarley> No. Look at your file
<swarley> It has no newlines
<swarley> r = gets.to_f pi = 3.14 A = pi*r*r puts A gets
jarred has quit [Quit: jarred]
batdorf has quit [Ping timeout: 240 seconds]
thinkdevcode has joined #ruby
samg_ has joined #ruby
<Grieg> nah. if u dload it and open in notepad or smth itll be broken to lines
hbpoison has joined #ruby
Tania has quit [Quit: :p]
thinkdevcode has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 268 seconds]
swarley has quit [Ping timeout: 260 seconds]
Tearan has quit [Quit: Sleepy Badger....]
mneorr_ has joined #ruby
<Grieg> k i see the problem now. i use notepad++ to edit my .rb. now i opened it in microsoft notepad and it's all in a single string. guess my editor is broken
swarley has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
<csmrfx> Math::PI
fms has quit [Ping timeout: 252 seconds]
<Grieg> so another question: "gets" requests a string followed by enter or just enter how do i request "anykey" instead?
ttt__ has quit [Remote host closed the connection]
ttt has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
emanon_ has quit [Remote host closed the connection]
roadt_ has joined #ruby
ryanf has joined #ruby
xsbeats has joined #ruby
jcaudle has joined #ruby
jhgaylor has quit [Read error: Connection reset by peer]
jhgaylor has joined #ruby
justinmcp has quit [Remote host closed the connection]
jcaudle has quit [Client Quit]
justinmcp has joined #ruby
xsbeats_ has joined #ruby
xsbeats_ has left #ruby [#ruby]
newton10471 has joined #ruby
bradhe has joined #ruby
buscapepe has joined #ruby
newton10471 has quit [Client Quit]
newton10471 has joined #ruby
newton10471 has left #ruby [#ruby]
butblack has quit [Quit: butblack]
justinmcp has quit [Ping timeout: 245 seconds]
awarner has quit [Remote host closed the connection]
cyong has joined #ruby
viuo has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
jeffreybaird has joined #ruby
butblack has quit [Client Quit]
butblack has joined #ruby
jjbohn has quit [Quit: Leaving...]
viuo has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
emergion has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
kil0byte has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 252 seconds]
nari has joined #ruby
manizzle has joined #ruby
jeffreybaird has joined #ruby
jipiboily has joined #ruby
jipiboily has quit [Client Quit]
buscapepe has quit [Quit: buscapepe]
buscapepe has joined #ruby
areil has joined #ruby
jjang has quit [Remote host closed the connection]
arubin_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ryanf has quit [Quit: broken pipes |||]
u89 has quit [Remote host closed the connection]
ryanf has joined #ruby
krazyj has quit [Quit: Quitting...]
krazyj has joined #ruby
fms has joined #ruby
fms is now known as Guest69546
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
justinmcp has joined #ruby
pu22l3r has joined #ruby
emergion has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
jarred has joined #ruby
Guest69546 has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
Araxia has joined #ruby
Karunamon has joined #ruby
<Karunamon> Quick question.. a while loop executes as long as it's condition is true, right?
<Karunamon> what happens if that conditional comes up as nil - is that sufficient to break the loop?
buscapepe has quit [Remote host closed the connection]
<Spaceghostc2c> Karunamon: Try.
<Karunamon> ...
<Spaceghostc2c> :)
petershepley has quit [Ping timeout: 276 seconds]
petershepley has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
fyolnish has joined #ruby
S0da has quit [Remote host closed the connection]
verma has joined #ruby
<Karunamon> I just wanted to make sure i wasn't insane here
Progster has quit [Ping timeout: 245 seconds]
ewag has joined #ruby
<Karunamon> it's giving me an undefined method when my variable comes up nil instead of breaking out of the loop
<Karunamon> as i see it, it should be evaluating nil/false there and continuing with the parent block
crocket has joined #ruby
<crocket> rubygems for ruby 1.9.1 is missing in debian stable.
<crocket> How do I install rubygems for ruby 1.9.1?
<Karunamon> •crocket• i think RVM will handle that
kenneth has quit [Ping timeout: 240 seconds]
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
uuair has joined #ruby
<erichmenge> Karunamon: @profilekey_to ?
<erichmenge> typo in your gist?
<erichmenge> or....
<Karunamon> ... D'OH!
<Karunamon> that large thud you just heard was me smacking my forehead. thanks :3
petershepley has left #ruby ["Leaving"]
<erichmenge> Karunamon: Would have been harder to miss if not for the github syntax highlighting :)
<erichmenge> easier to miss
<erichmenge> geez
<Karunamon> yeah.. it's all grey in rubymine
<jarred> How do I prevent a thread from dying? I tried sticking a loop block in side the thread's block but it still dies after a few seconds
<Karunamon> and i had to turn inspections off because apparently it doesn't get along with activerecord's dynamic methods
<erichmenge> Karunamon: Really? That sounds terrible.
chrisja has quit [Quit: leaving]
<erichmenge> Karunamon: You need to setup some colors.
<erichmenge> Karunamon: ick :(
<Karunamon> I'm stuck on windows at the moment though :(
chimkan has joined #ruby
<erichmenge> Karunamon: http://i.imgur.com/nJ7Ob.png
Araxia has quit [Read error: Connection reset by peer]
<reactormonk> Karunamon, anything C# based then?
<Karunamon> Hm. How does Sublime fare as an ide?
<reactormonk> erichmenge, I recommend emacs org-mode for fast tex setups :-)
<erichmenge> Karunamon: I don't use any code completion for Ruby, but the sublimeclang package is pretty nice for C/C++
h4mz1d has joined #ruby
<erichmenge> reactormonk: I'm pretty proud of my tex setup actually. I have a bunch of custom formatting and layouts for my different classes :)
<reactormonk> erichmenge, you can still include that
<erichmenge> reactormonk: I know, I'm just saying I'm happy with what I've got.
Vert has quit [Read error: Connection reset by peer]
ryanf has quit [Quit: broken pipes |||]
<erichmenge> I'll take a look anyway though. Never used emacs and not sure I want to learn a new text editor..
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
justinmc_ has joined #ruby
Araxia has joined #ruby
Hanmac1 has joined #ruby
fms_ has joined #ruby
<erichmenge> jarred: So, your thread just dies despite it being in a loop?
<jarred> erichmenge: Yeah, this is the relevant code https://gist.github.com/e09a2eecfcefbcb3ab36
Hanmac has quit [Ping timeout: 248 seconds]
<jarred> I add stuff to the requests queue later on in the code
amacgregor_osx has quit [Read error: Operation timed out]
<jarred> and it never gets processed, when I access the thread, I get #<Thread:0x007fe1fc57b288 dead>
justinmcp has quit [Ping timeout: 240 seconds]
<Karunamon> hmm.. i think activerecord is trying to be too smart for its own good here
<jarred> Is there anything obviously stupid I'm doing?
araujo has quit [Ping timeout: 252 seconds]
scx has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
tbrock has joined #ruby
<jarred> Karunamon: Sublime Text 2 is a great text editor -- as an IDE, I'm not particularly sure. For small-moderately sized (~35,000 lines of code) Rails apps Sublime Text 2 is very good
niklasb has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
<jarred> erichmenge: I can paste the whole file if that's easier
baroquebobcat has joined #ruby
araujo has joined #ruby
<erichmenge> jarred: I'm not much of a threading expert :( You're sure it isn't raising?
pu22l3r has quit [Ping timeout: 256 seconds]
<Karunamon> so i use an object method to insert something into my database mid loop.. the loop iterates again, and i get a postgres field too long error
<Karunamon> which makes no sense because elsewhere in this loop it inserted lines longer than the one it's working on
samg_ has quit [Quit: leaving]
tbrock has quit [Ping timeout: 252 seconds]
<jarred> erichmenge: I think so
<jarred> I'll double check
<erichmenge> jarred: Also, shouldn't you have some sort of sleep in that loop? :)
<jarred> yeahhhhhh
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
amacgregor_osx has joined #ruby
bradhe has quit [Remote host closed the connection]
Ruler_Of_Heaven_ has quit [Ping timeout: 252 seconds]
dnyy has quit [Remote host closed the connection]
pipopopo has joined #ruby
Justakill has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
Araxia has quit [Read error: Connection reset by peer]
shammancer has joined #ruby
<Karunamon> this is.. bizarre
<Karunamon> i'm using a gem to parse out a .INI file
<Karunamon> and inserting the data into a db..
<Karunamon> for some weird reason, it gets to this particular line, the gem stops parsing the INI file correctly, and instead grabs the entire rest of the file from where it is
jjbohn has joined #ruby
<Karunamon> hence the field too long error
<erichmenge> Karunamon: Sounds like you have some strange dealings going on.
ejholmes has quit [Quit: ejholmes]
shammancer has quit [Client Quit]
shammancer has joined #ruby
<Karunamon> ... #(&*!ing quotes!
Edward_ has joined #ruby
Edward_ has quit [Client Quit]
jcaudle has joined #ruby
joofsh has joined #ruby
cyong has quit [Quit: Leaving.]
cyong has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
jjbohn has quit [Ping timeout: 256 seconds]
xsbeats has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 255 seconds]
xsbeats_ has joined #ruby
uuair has quit [Quit: uuair]
tommyvyo has quit [Quit: Computer has gone to sleep.]
pjb3 has quit [Quit: pjb3]
crackfu_ has quit [Remote host closed the connection]
pjb3 has joined #ruby
crackfu_ has joined #ruby
awarner has joined #ruby
jipiboily has joined #ruby
Justakill has quit [Quit: Leaving]
|Monie| has quit [Quit: http://mc.jamonek.com Minecraft Generator]
crackfu_ has quit [Ping timeout: 240 seconds]
jipiboily has quit [Ping timeout: 246 seconds]
CQN has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
kiyoura has quit [Ping timeout: 252 seconds]
slainer68 has quit [Ping timeout: 265 seconds]
kevinX has quit [Ping timeout: 260 seconds]
pu22l3r_ has quit [Remote host closed the connection]
xsbeats_ is now known as xsbeats
bradhe has joined #ruby
wrapids has joined #ruby
<wrapids> Anyone here with at least a BA that wouldn't mind me asking them a few interview style questions about their career/career choice for a technical writing assignment?
yshh has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
tbrock has joined #ruby
tommyvyo has joined #ruby
CQN has joined #ruby
joeycarmello has joined #ruby
rburton- has joined #ruby
jonan has joined #ruby
krz has joined #ruby
jonan is now known as register
register is now known as jonan
rjsamson has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
jonan is now known as x1337807x
siyusong has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
rjsamson has joined #ruby
<Paradox> woops, wrong channel
x1337807x is now known as jonan
neersighted has joined #ruby
jonan is now known as x1337807x
x1337807x is now known as jonan
shiin has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
rjsamson has quit [Ping timeout: 260 seconds]
pjb3 has quit [Quit: pjb3]
hbpoison has joined #ruby
ddd has quit [Quit: Leaving.]
jrajav has quit []
CaptainJet has quit []
cyong has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
h4mz1d has joined #ruby
chimkan has quit [Quit: chimkan]
hbpoison has quit [Ping timeout: 252 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Quit: jgrevich]
osvico has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
xsbeats has quit [Ping timeout: 248 seconds]
kiyoura has joined #ruby
DoctorDude has joined #ruby
cyong has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
swarley has quit [Read error: Operation timed out]
pu22l3r has joined #ruby
DoctorDude has left #ruby [#ruby]
h4mz1d has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
justinmc_ has quit [Remote host closed the connection]
jonan has quit [Quit: jonan]
linoj has quit [Quit: linoj]
pjb3 has joined #ruby
BoomCow has joined #ruby
jcaudle has quit [Quit: jcaudle]
tealmage has joined #ruby
h4mz1d has joined #ruby
Nanuq has joined #ruby
awarner has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
shammancer has quit [Remote host closed the connection]
siyusong has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
jenrzzz has joined #ruby
slainer68 has joined #ruby
<Karunamon> Welp, I finally got my bot working
<Karunamon> massive thanks to aperios_ and erichmenge :)
Karunamon has quit [Quit: —I-n-v-i-s-i-o-n— 3.3 (November '11)]
siyusong has quit [Client Quit]
chimkan has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
slainer68 has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
fir_ed has quit [Read error: Operation timed out]
caleb_io has quit [Quit: caleb_io]
hbpoison has joined #ruby
pjb3 has quit [Quit: pjb3]
Mon_Ouie has joined #ruby
DrShoggoth has joined #ruby
caleb_io has joined #ruby
joeycarmello has quit [Remote host closed the connection]
bnagy_ has quit [Remote host closed the connection]
grizlo42 has joined #ruby
mahmoudimus has joined #ruby
areil has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
xsbeats_ has joined #ruby
xsbeats_ is now known as xsbeats
caleb_io has quit [Quit: caleb_io]
kiyoura has quit [Quit: Leaving]
areil has joined #ruby
justinmcp has joined #ruby
armenb has quit [Remote host closed the connection]
grizlo42 has left #ruby [#ruby]
hbpoison has joined #ruby
wrapids has quit [Quit: Page closed]
bradhe has joined #ruby
davidokner has joined #ruby
tealmage has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
savage- has joined #ruby
butblack has quit [Quit: butblack]
pu22l3r has quit [Remote host closed the connection]
tealmage has joined #ruby
h4mz1d has quit [Ping timeout: 244 seconds]
kil0byte has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
mneorr has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
bigmac has quit [Remote host closed the connection]
areil has quit []
g-ram has joined #ruby
Jackneill has joined #ruby
Jackneill is now known as Guest10501
aamax has joined #ruby
<aamax> hi folks. how goes it? I was playing with implementing the game of life as an exercise. I got the code done for handling all the logic and wanted to do some kind of display for it. I found an example where someone else did it using openGl. I've never done anything with it before and am having a tough time getting what I think are the libraries installed. I tried installing ruby-opengl but the install fails every time. any suggestions
dakine has quit [Quit: Leaving]
h4mz1d has joined #ruby
batdorf has joined #ruby
hbpoison has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
savage- has quit [Quit: savage-]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
burgestrand1 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
chendo_ has quit [Ping timeout: 240 seconds]
Guest10501 has quit [Quit: Guest10501]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
burgestrand has quit [Ping timeout: 260 seconds]
chendo_ has joined #ruby
burgestrand1 has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
areil has joined #ruby
grizlo42 has joined #ruby
thecreators has joined #ruby
savage- has joined #ruby
dmiller has quit [Remote host closed the connection]
joeycarmello has joined #ruby
cirwin has joined #ruby
keyvan has quit [Remote host closed the connection]
Tearan has joined #ruby
grizlo42 has left #ruby [#ruby]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
roadt_ has quit [Ping timeout: 246 seconds]
n1x has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
fms_ has quit [Ping timeout: 252 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
thecreators has quit [Quit: thecreators]
joeycarmello has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
Xeago has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
g-ram has joined #ruby
chendo_ has quit [Ping timeout: 268 seconds]
Xeago has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
roadt_ has joined #ruby
chendo_ has joined #ruby
siyusong has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
viuo has quit [Ping timeout: 260 seconds]
uuair has joined #ruby
justinmcp has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
glupo has joined #ruby
justinmcp has joined #ruby
viuo has joined #ruby
elico has joined #ruby
elico has quit [Client Quit]
grizlo42 has joined #ruby
justinmcp has quit [Ping timeout: 276 seconds]
tealmage has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
grizlo42 has left #ruby [#ruby]
tealmage has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
ananthakumaran has joined #ruby
gbluma has joined #ruby
burgestrand has joined #ruby
gbluma has quit [Client Quit]
samphippen has joined #ruby
Jonah11_ has quit [Ping timeout: 256 seconds]
quest88 has joined #ruby
Jonah11_ has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
Tearan has quit [Quit: Sleepy Badger....]
bradhe has quit [Ping timeout: 246 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
araujo has quit [Read error: Operation timed out]
mneorr has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
areil_ has joined #ruby
areil_ has quit [Client Quit]
areil_ has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
areil_ has left #ruby [#ruby]
areil has quit [Ping timeout: 268 seconds]
emergion has joined #ruby
areil has joined #ruby
shevy3 has quit [Ping timeout: 252 seconds]
yxhuvud has joined #ruby
<TTilus> maybe try something simplier first, like no graphics at all :)
Cork- has quit [Read error: Connection reset by peer]
<TTilus> console
Cork has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
dakine has joined #ruby
brianpWins has joined #ruby
ryanf has joined #ruby
araujo has joined #ruby
havenn has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
enderx86 has joined #ruby
fms has joined #ruby
fms is now known as Guest76624
<enderx86> what's better, ruby or python?
<burgestrand> both
<enderx86> pros and cons?
<burgestrand> all
aamax has left #ruby ["Leaving"]
<burgestrand> enderx86: they are different, neither better nor worse than the other
<enderx86> well, Rails certainly beats any Python web framework... or am I wrong?
<Spaceghostc2c> enderx86: You're probably drunk.
<Spaceghostc2c> But not necessarily wrong.
<enderx86> I'm not drunk.
<burgestrand> enderx86: I’m sure the people using django disagree.
<Spaceghostc2c> I'm sure the people who have weak lambdas disagree.
<Spaceghostc2c> Oh, did I say that? Oops.
<enderx86> I'm curious because... I'm interested in web app development
<enderx86> I have many years' experience in writing desktop apps in Java
justinmcp has joined #ruby
<enderx86> Now I'm moving toward something new...
kil0byte_ has joined #ruby
<Spaceghostc2c> enderx86: Try brainfuck
<enderx86> and I want to pick the right language
<Spaceghostc2c> enderx86: Kidding. There is no Right language.
<Spaceghostc2c> Right Language™ was Fortran years ago.
<enderx86> If you develop a criteria, there is.
<burgestrand> enderx86: ruby is not for everyone, despite having rails; some people simply prefer python. I would advice you to try ruby.
<Spaceghostc2c> enderx86: Nope.
Guest76624 has quit [Ping timeout: 248 seconds]
<burgestrand> enderx86: but going into ruby with the mindset it’ll be your only language forever will not be good for your health. Even if ruby is not for you, the investment of time and change of perspective will be worth the time spent.
<enderx86> criteria: 1) marketability of one's skill in the language 2) speed of development 3) scalability
<burgestrand> Scalability is not a language feature.
<burgestrand> It’s a developer feature.
keyvan has quit [Remote host closed the connection]
<enderx86> some langauges skill better than others, e.g. java over python
<cirwin> 1) mostly equivalent, 2) mostly equivalent, 3) mostly equivalent
emergion has joined #ruby
<Spaceghostc2c> enderx86: I think your 'criteria' are pretty funny. Are you some kind of comedian?
<cirwin> (python v ruby that is)
<cirwin> do ruby because it has blocks
<cirwin> or do python, because it was designed
<enderx86> Little do you know... I am quietly judging the language by its practitioners...
<burgestrand> You should always.
<Spaceghostc2c> enderx86: Little do we care. :)
kil0byte has quit [Ping timeout: 256 seconds]
<Spaceghostc2c> Choose something you like.
<enderx86> Python programmers are far more helpful and much more serious. What does that say about Ruby?
<cirwin> enderx86: ruby community are much more "go for it, we want people to have fun"; python community are much more "think about it, we want people to do a good job"
<enderx86> Perhaps it encourages indolence.
<Spaceghostc2c> enderx86: Nothing, really.
<burgestrand> Python IRC still bans you for LOLing in the channel?
<Spaceghostc2c> You can't really pit us against pythonists, because there are few fucks to give on a Monday morning.
<burgestrand> Anybody know?
<Spaceghostc2c> enderx86: I suggest you check out scala.
<enderx86> Yes, spaceghost. My point exactly. Python programmers are much more serious.
<Spaceghostc2c> burgestrand: Who cares? :D
<burgestrand> Or clojure!
<Spaceghostc2c> enderx86: Sounds like your kind of gig!
<burgestrand> Spaceghostc2c: you have to agree, banning somebody for LOL is kind of funny.
<Spaceghostc2c> burgestrand: Depends on the lolsomeness of the lol given.
<enderx86> Listen, spaceghost, I l-o-l plenty
<Spaceghostc2c> enderx86: I don't care. :D
<Spaceghostc2c> Listen to that.
<burgestrand> Spaceghostc2c: lol.
<Spaceghostc2c> You haven't asked one question of substance yet.
<enderx86> cirwin: you have been the most helpful
<burgestrand> I don’t think he likes us, sorry enderx86, straight shootings on monday mornings.
<enderx86> cirwin: what do you mean, 'or do python, because it was designed' - i don't understand you here
<Spaceghostc2c> burgestrand: I kind of hope he goes to python, he's a bit too straightedge. :D
bradhe has joined #ruby
<burgestrand> Spaceghostc2c: I don’t really care which he chooses, but I do find him intruiging.
<cirwin> enderx86: a lot of ruby's features feel somewhat organic — there are a reasonable number of special cases that were added for convenience, or because it seemed like a good idea
<cirwin> enderx86: python feels much more consistent
<Spaceghostc2c> It's hard to be serious when he asks such lulzy questions. :D
<burgestrand> Yeah it’s a bit general…
<cirwin> but at the expense of not having that extra "wow, that's cool" in the common case
<burgestrand> enderx86: do you do… science?
<Spaceghostc2c> burgestrand: I have to admit. Python is really awesome at making IRC bots. :p
<burgestrand> Spaceghostc2c: maybe that’s why our bots always crash, burn, and disappear.
<cirwin> blocks are perhaps the best example of that — you can pass only one block to a function. Python would never special-case like that
<Spaceghostc2c> The highest calling of any programming language.
djdb has joined #ruby
<Spaceghostc2c> cirwin: Well, there's some hacky ways you can pass multiple blocks to a function.
<burgestrand> To be fair, you don’t pass it to the same function.
<Spaceghostc2c> So!
<Spaceghostc2c> burgestrand: Making all my lulzy go away. :(
<cirwin> Spaceghostc2c: sure, but you'd avoid that in an API because it's ugly
elsifaka has joined #ruby
<burgestrand> \o/
<rking> cirwin: Ha! Their lambda's only allow *one statement*
<burgestrand> cirwin: maybe!
<cirwin> rking: :)
<burgestrand> … but then again, maybe not.
<burgestrand> Hmmm.
<Spaceghostc2c> Their lambdas are as weak as that one bartender (you know the one) at the bar that barely puts any alcohol in your $8 drink.
<cirwin> "The letter G walked into a hexidecimal bar"
<cirwin> "The barman said:"
pyx has joined #ruby
<cirwin> "Why the wrong base?"
<Spaceghostc2c> lol :(
<enderx86> lol
<burgestrand> Lucky we’re not in python.
<enderx86> thanks cirwin for your comparison
<enderx86> yes, that rule is telling
<burgestrand> I must investigate.
<burgestrand> Yup.
<burgestrand> NO LOL.
<cirwin> enderx86: if you're looking to open your mind, I'd suggest you go with ruby — once you get past thinking "ugh, this is just a whole bundle of hacks", it actually works quite well
<Spaceghostc2c> At least we can agree, node devs are lulzy even though they don't notice it most of the time.
<Spaceghostc2c> The best ruby book, imo: Metaprogramming Ruby.
<burgestrand> They can’t risk blocking whatever they are doing by laughing.
<Spaceghostc2c> I love it so much, I gave it a cute nickname. "Metabrogramming Roobee"
<burgestrand> Sounds awfully concentrated on one topic for a book to recommend it to a newcomer.
<Spaceghostc2c> burgestrand: It isn't.
chendo_ has quit [Read error: Operation timed out]
<Spaceghostc2c> If you've read it, the first half is all ruby object model.
<rking> burgestrand: Yeah, the title is a burden for the book.
<Spaceghostc2c> Which was like acid straight to my dome when I read it.
colinbm has joined #ruby
fixl has joined #ruby
<burgestrand> I don’t really read ruby books anymore, but I feel I have a bunch of them to skim and it’s just piling on.
joeycarmello has joined #ruby
<Spaceghostc2c> burgestrand: I just take forever to read mine, but I read them completely and do online researches.
rich__ has quit [Ping timeout: 240 seconds]
<burgestrand> On another note, apparently it’s completely fine to "hah", but not LOL.
<burgestrand> Acronyms are bad. Also, good morning.
<Spaceghostc2c> True story about spaceghost: If I can't find something on google, I go to altavista, then dogpile, then eventually down the line I'll hit up bing.
fantazo has joined #ruby
<burgestrand> Oh, altavista, how much time I’ve lost to you in the beginnings of the internet.
<burgestrand> I wonder if rubyists are more childish than pythonistas; their irc always looks so tight.
<Spaceghostc2c> I'm just a prat. :D
answer_42 has joined #ruby
samuel02 has joined #ruby
chendo_ has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
siyusong has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
<enderx86> 5.times { puts say }
bradhe has quit [Ping timeout: 260 seconds]
<enderx86> *brain explodes*
joeycarmello has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 244 seconds]
<Spaceghostc2c> pythonists love their counters too much
colinbm has quit [Quit: colinbm]
<burgestrand> enderx86: you should check out rspec and sinatra, they make heavy use of blocks.
<burgestrand> enderx86: rspec is a testing framework, sinatra is a minimal (very minimal, too minimal for most things) web framework.
<Spaceghostc2c> Rails source is a veritable smorgasbord of metabrogramming techniques.
BoomCow has quit [Quit: Leaving]
apeiros_ has quit [Ping timeout: 260 seconds]
<burgestrand> It’s a smörgåsbord of pretty much everything, there is no way to navigate in there.
hhh has joined #ruby
<hhh> hi
jaygen has quit [Remote host closed the connection]
<burgestrand> hhh: hhhi!
<Spaceghostc2c> hhho hhho hhho
<hhh> hru
<hhh> ntek
<Spaceghostc2c> NO
<burgestrand> I concur.
<rking> burgestrand: Thanks for teaching me the right way to accent "smörgåsbord".
<hhh> u suck
<Spaceghostc2c> I cancer.
<hhh> :)
<Spaceghostc2c> hhh: It's true.
<hhh> jadabta
<hhh> ??
<burgestrand> rking: varsågod, i.e. you’re welcome.
<Spaceghostc2c> hhh: Is it true?
hhh has left #ruby [#ruby]
<Spaceghostc2c> burgestrand: :D
dhruvasagar has joined #ruby
tealmage has joined #ruby
<Spaceghostc2c> I was about to make fun of his mother by telling him that she's a cow.
haxrbyte has joined #ruby
<burgestrand> Oh, he parted.
<Spaceghostc2c> pansy.
<burgestrand> (on another note, varsågod could also be used as "help yourself", suits well with smörgåsbor)
havenn has joined #ruby
<JohnTeddy> The repl.it ruby outputs nice colors, pink for errors, green for return output, and white for standard output... How can I have my irb do that?
haxrbyte has quit [Remote host closed the connection]
<JohnTeddy> right now it's just all black/white in the shell.
haxrbyte has joined #ruby
jenrzzz has joined #ruby
<burgestrand> Nice to see repl.it still up.
tealmage has quit [Ping timeout: 268 seconds]
<burgestrand> Too bad ruby is still at 1.8.7. :(
shevy has joined #ruby
<JohnTeddy> burgestrand: How can I make my 1.9.3 ruby irb output colorful/pretty?
<cirwin> JohnTeddy: use pry!
fms_ has joined #ruby
jarred has quit [Quit: jarred]
<elliottcable> This is an obscure question; but anybody know if I can ask a terminal I’ve been backgrounded in to refresh the prompt? http://stackoverflow.com/q/13227530
kil0byte has joined #ruby
fms_ has quit [Client Quit]
Floydzy has joined #ruby
<cirwin> elliottcable: not really — it can only append to stdout
<rking> elliottcable: zsh has a way to do that
areil has quit [Ping timeout: 252 seconds]
<elliottcable> rking: got any links for me? or a word I can google?
kil0byte_ has quit [Ping timeout: 240 seconds]
<rking> elliottcable: Trying to find it, myself.
<elliottcable> rking: :D
margle has joined #ruby
havenn has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
tonini has joined #ruby
<rking> It's working for me already
<rking> I just don't know what causes it to work yet
<rking> OK, it works without any config at all.
<rking> elliottcable: Answer is to switch to zsh and be happy. ☺
aoclown has joined #ruby
<elliottcable> as far as I can tell, I have to *type something* to get ZSH to reprint the prompt
<elliottcable> or maybe wait a bit
<elliottcable> but nonetheless, agreed: switch to zsh and be happy. ;)
<aoclown> Can anyone tell me in Mixed Install with RVM if the manager can use home directory gemsets somehow? The docs say not to run the command that does it.
monkegji_ has joined #ruby
<aoclown> I also checked the #rvm channel, but every one is sleeping :(
hamed_r has joined #ruby
<rking> elliottcable: What zsh version?
monkegji_ has quit [Remote host closed the connection]
shevy_ has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
quest88 has quit [Quit: quest88]
margle has quit [Quit: Computer has gone to sleep.]
fantazo has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
senny has joined #ruby
justinmcp has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
apeiros_ has joined #ruby
aganov has joined #ruby
cyong has quit [Quit: Leaving.]
monkegji_ has joined #ruby
bradhe has joined #ruby
shevy_ has quit [Ping timeout: 245 seconds]
justinmcp has quit [Ping timeout: 255 seconds]
<elliottcable> zsh 5.0.0 (x86_64-apple-darwin12.0.0)
<elliottcable> I'll play with it more, tomorrow. Was just wondering if there was an out of which I wasn't aware.
<rking> elliottcable: Odd. Works without extra keystrokes for me.
schaary has joined #ruby
batdorf has quit [Quit: Leaving]
Tania has joined #ruby
ryanf has quit [Quit: leaving]
margle has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
aoclown has quit [Quit: leaving]
areil has joined #ruby
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
anderse has joined #ruby
uuair has quit [Quit: uuair]
bradhe has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
savage- has quit [Quit: savage-]
beilabs has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
hsbt_away is now known as hsbt
dangerousdave has joined #ruby
berserkr has joined #ruby
keyvan has joined #ruby
Astral has joined #ruby
Astral__ has quit [Read error: Operation timed out]
Astral is now known as Guest47101
khakimov has quit [Quit: Computer has gone to sleep.]
kil0byte_ has joined #ruby
dekroning has joined #ruby
bigkevmcd has joined #ruby
n1x has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
seoaqua has joined #ruby
hoelzro|away is now known as hoelzro
jenrzzz has quit [Ping timeout: 255 seconds]
beilabs has joined #ruby
n1x has left #ruby ["Ex-Chat"]
rdark has joined #ruby
und3f has joined #ruby
Morkel has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
dekroning has quit [Ping timeout: 245 seconds]
enderx86 has quit [Remote host closed the connection]
Morkel_ has joined #ruby
timonv has quit [Remote host closed the connection]
arturaz has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
timmillwood has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
seoaqua has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
ABK has joined #ruby
tealmage has quit [Ping timeout: 246 seconds]
Kichael has quit [Ping timeout: 256 seconds]
spacebug has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 252 seconds]
Juul has joined #ruby
zommi has joined #ruby
filipe has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jlwestsr has quit [Ping timeout: 246 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
perohig has joined #ruby
perohig has quit [Client Quit]
pyx has quit [Quit: Leaving]
coder_neo has joined #ruby
mneorr has quit [Remote host closed the connection]
coder_neo has quit [Read error: Connection reset by peer]
dakine has quit [Ping timeout: 260 seconds]
coder_neo has joined #ruby
monkegjinni has quit [Ping timeout: 248 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
emergion has quit [Client Quit]
krazyj has quit [Quit: Quitting...]
krazyj has joined #ruby
maesbn has joined #ruby
emergion has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
qwerxy has joined #ruby
hotovson has joined #ruby
emergion has quit [Client Quit]
qwerxy has quit [Client Quit]
keanehsiao has joined #ruby
erichmenge has quit [Quit: Be back later]
blacktulip has joined #ruby
justinmcp has joined #ruby
rakl has quit [Quit: gone]
caleb_io has joined #ruby
Tania has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
jimeh has joined #ruby
erry has left #ruby [#ruby]
k610 has joined #ruby
zigomir has joined #ruby
seoaqua has joined #ruby
anderse has quit [Quit: anderse]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
mikecmpbll has joined #ruby
codecaster has joined #ruby
h4mz1d has joined #ruby
reinaldob has joined #ruby
havenn has joined #ruby
Rix has quit [Ping timeout: 260 seconds]
seoaqua has quit [Ping timeout: 260 seconds]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
chussenot has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
adambeynon has joined #ruby
keyvan has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
colinbm has joined #ruby
seoaqua has joined #ruby
maxer has joined #ruby
seoaqua has quit [Client Quit]
cableray has quit [Quit: cableray]
paul_s has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
emergion has joined #ruby
paul_s has left #ruby [#ruby]
xorigin has joined #ruby
justinmcp has quit [Ping timeout: 260 seconds]
Rix has joined #ruby
slainer68 has joined #ruby
amacgregor_osx has joined #ruby
coder_neo has quit [Quit: Leaving]
tchebb has quit [Quit: Leaving.]
ephemerian has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
skum has joined #ruby
nari has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 244 seconds]
cezar has joined #ruby
Zai00 has joined #ruby
cezar has quit [Client Quit]
fyolnish has quit [Remote host closed the connection]
J-_-L has joined #ruby
hbpoison has joined #ruby
samphippen has joined #ruby
awestroke has joined #ruby
spacebug has joined #ruby
Drager has quit [Remote host closed the connection]
Drager has joined #ruby
Banistergalaxy has joined #ruby
JonnieCache has joined #ruby
timonv has joined #ruby
matrixise has joined #ruby
workmad3 has joined #ruby
kil0byte_ has quit [Ping timeout: 246 seconds]
nari has joined #ruby
cirwin has quit [Ping timeout: 256 seconds]
AndChat- has quit [Ping timeout: 276 seconds]
marius has quit []
codecaster has left #ruby [#ruby]
kil0byte has joined #ruby
qwerxy has joined #ruby
jsaak has joined #ruby
J-_-L has quit [Ping timeout: 256 seconds]
keanehsiao has quit [Quit: keanehsiao]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
adambeynon has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
J-_-L has joined #ruby
moshee has quit [Ping timeout: 265 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
moshee has joined #ruby
casheew has joined #ruby
amacgregor_osx has joined #ruby
mhag has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
J-_-L has quit [Ping timeout: 252 seconds]
kil0byte_ has joined #ruby
Ry_ has joined #ruby
jsaak has quit [Quit: leaving]
jsaak has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
hamed_r has quit [Read error: Operation timed out]
nemesit has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
d3vic3 has joined #ruby
swex has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
havenn has joined #ruby
dekroning has joined #ruby
hsbt has quit [Ping timeout: 252 seconds]
hamed_r has joined #ruby
hsbt_away has joined #ruby
havenn has quit [Ping timeout: 256 seconds]
hsbt_away is now known as hsbt
Grieg_ has joined #ruby
Grieg has quit [Ping timeout: 268 seconds]
fyolnish has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
casheew has quit [Read error: Connection reset by peer]
instinkt has joined #ruby
yshh has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
codecaster has joined #ruby
hoelzro has quit [Ping timeout: 272 seconds]
hoelzro has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
paul_s has joined #ruby
casheew has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
elentras has joined #ruby
elentras_ has joined #ruby
hsbt_away has joined #ruby
anderse has joined #ruby
baphled has joined #ruby
elentras_ has quit [Client Quit]
dekroning has quit [Ping timeout: 245 seconds]
<jhunter> silly q, but if i'm dealing with a literal string w/a dollar sign
<jhunter> $foo
<jhunter> what's the proper way to escape it for a heredoc? it keeps getting interpolated as a super global
werdnativ has quit [Quit: werdnativ]
mengu has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
kkiero_ has quit [Ping timeout: 252 seconds]
<JonnieCache> shouldnt be interpolated unless you wrap it in #{} afaik
fyolnish has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
cezar has joined #ruby
cezar has left #ruby [#ruby]
caleb_io has quit [Quit: caleb_io]
reinaldob has quit [Remote host closed the connection]
<csmrfx> crocket: you installed rvm?
<csmrfx> rubygems *is* there
paul_s has quit [Quit: paul_s]
<csmrfx> (in debian repos, I mean)
clj_newb has joined #ruby
cakehero has joined #ruby
paul_s has joined #ruby
hbpoison has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
swex_ has joined #ruby
AndChat| has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
swex has quit [Ping timeout: 256 seconds]
samphippen has joined #ruby
AndChat- has joined #ruby
ninegrid has joined #ruby
Banistergalaxy has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
neku has joined #ruby
dhruvasagar has joined #ruby
<JonnieCache> is anyone here knowledgable about jazz?
AndChat| has quit [Ping timeout: 268 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
fir_ed has joined #ruby
AndChat- has quit [Read error: Connection reset by peer]
sheerun has joined #ruby
hsbt is now known as hsbt_away
AndChat| has joined #ruby
u89 has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
Banistergalaxy has quit [Ping timeout: 268 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
<JonnieCache> if anyone can tell me more albums like "In A Silent Way" ill be most appreciative
<JonnieCache> i am already aware of "a kind of blue" :)
reinaldob has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
AndChat| has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
Banistergalaxy has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
sepp2k has joined #ruby
AndChat| has joined #ruby
adelcampo has quit [Quit: Linkinus - http://linkinus.com]
hamed_r has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
hsbt has quit [Ping timeout: 245 seconds]
baphled has quit [Quit: Lost terminal]
Banistergalaxy has quit [Ping timeout: 256 seconds]
hsbt has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
Banistergalaxy has joined #ruby
tealmage has joined #ruby
* JonnieCache has dicovered "Get Up With It"
<JonnieCache> miles davis is god
hsbt_away is now known as hsbt
freeayu has joined #ruby
Hanmac1 is now known as Hanmac
AndChat| has joined #ruby
hsbt is now known as hsbt_away
tealmage has quit [Read error: Operation timed out]
baphled has joined #ruby
jagira has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
hsbt_away is now known as hsbt
Xeago has quit [Ping timeout: 276 seconds]
hoelzro is now known as hoelzro|away
dr_bob has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
jipiboily has joined #ruby
hsbt is now known as hsbt_away
AndChat| has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
JonnieCache has quit [Quit: leaving]
JonnieCache has joined #ruby
nari has quit [Ping timeout: 260 seconds]
jipiboily has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
niklasb has joined #ruby
bier has quit [Ping timeout: 255 seconds]
hsbt has joined #ruby
hsbt is now known as hsbt_away
jagira has quit [Quit: Leaving]
hsbt_away is now known as hsbt
margle has joined #ruby
PragCypher has quit [Quit: Leaving]
larissa has joined #ruby
paul_s has left #ruby [#ruby]
hsbt is now known as hsbt_away
margle has quit [Client Quit]
d3vic3 has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
shiin has joined #ruby
hsbt_away is now known as hsbt
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
AndChat| has joined #ruby
vlad_starkov has joined #ruby
fyolnish has joined #ruby
bier has joined #ruby
u89 has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
AndChat| has quit [Ping timeout: 244 seconds]
fyolnish has quit [Ping timeout: 245 seconds]
AndChat| has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
edwardj has joined #ruby
hsbt_away is now known as hsbt
robbyoconnor has quit [Quit: Konversation terminated!]
Banistergalaxy has quit [Ping timeout: 244 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
fir_ed has quit [Ping timeout: 256 seconds]
cdt has joined #ruby
hsbt is now known as hsbt_away
Banistergalaxy has joined #ruby
hsbt_away is now known as hsbt
yshh has joined #ruby
margle has joined #ruby
AndChat| has quit [Ping timeout: 244 seconds]
samphippen has quit [Ping timeout: 244 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
samphippen has joined #ruby
hoelzro|away is now known as hoelzro
AndChat| has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
dr_bob has quit [Read error: Connection reset by peer]
clj_newb has quit [Ping timeout: 265 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
schaary has quit [Quit: Leaving.]
krz has quit [Quit: krz]
banisterfiend has joined #ruby
dr_bob has joined #ruby
dr_bob has quit [Client Quit]
Cool_Fire has joined #ruby
iamjarvo has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
<Cool_Fire> Morning. I've got a question about mechanize; on a Mechanize::Page object body() gives me the full page body rather than what's between the <body> tags, which is what I want. Anyone know a reliable way to get this?
thinkit has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
<workmad3> Cool_Fire: parse the body with nokogiri and then query it for the body content
<JonnieCache> Cool_Fire: "body" there is referring to the http response body rather than the html body
<JonnieCache> nokogiri is indeed what you want
thinkit has joined #ruby
carloslopes has joined #ruby
chussenot has quit [Quit: chussenot]
hamed_r has joined #ruby
hsbt is now known as hsbt_away
kil0byte has joined #ruby
tealmage has joined #ruby
<Cool_Fire> Yeah, I guess. I was rather hoping mechanize would have something for this already though. (It's got everything else :P )
banisterfiend has quit [Remote host closed the connection]
<JonnieCache> i dont know mechanise specifically, maybe it does
<JonnieCache> but it would make sense to leave the parsing up to you, as people would want to do it in many different ways
<workmad3> Cool_Fire: I don't believe mechanise stores the processed page as a DOM
hsbt_away is now known as hsbt
havenn has quit [Ping timeout: 240 seconds]
colinbm has quit [Quit: colinbm]
Banistergalaxy has joined #ruby
<Cool_Fire> Well, since it parses out links and title I thought the <body> section wouldn't be too far fetched
<Cool_Fire> Can't have all the luck I guess
hbpoison has quit [Ping timeout: 265 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<workmad3> Cool_Fire: that could be done with a SAX parser as the page is received, pulling out just the bits that you would typically want to deal with programatically
hsbt is now known as hsbt_away
<workmad3> Cool_Fire: at a much lower memory overhead than storing the entire page DOM in memory :)
hsbt_away is now known as hsbt
AndChat| has quit [Ping timeout: 268 seconds]
<workmad3> Cool_Fire: and wouldn't leave a processed version of the body element content hanging around
<workmad3> (no idea if that is what mechanise does, but considering what mechanise targets itself for, it would make sense)
tealmage has quit [Ping timeout: 240 seconds]
reisl has joined #ruby
abrausch has joined #ruby
justinmcp has joined #ruby
hbpoison has joined #ruby
<Cool_Fire> Don't get me wrong, it makes perfect sense.
<Cool_Fire> I just like being lazy
BrianJ has quit [Quit: BrianJ]
erichmenge has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
larissa has quit [Ping timeout: 256 seconds]
ABK has quit [Ping timeout: 265 seconds]
hsbt has quit [Ping timeout: 248 seconds]
freeayu has quit [Ping timeout: 252 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
awestroke has quit [Remote host closed the connection]
edwardj has quit [Remote host closed the connection]
fyolnish has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
dhruvasagar has quit [Ping timeout: 244 seconds]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
ananthakumaran has quit [Quit: Leaving.]
keyvan has quit [Remote host closed the connection]
Grieg_ has quit [Quit: laterz! :D]
Stan_BR has joined #ruby
<Stan_BR> hi all.
hsbt is now known as hsbt_away
<Stan_BR> im trying to build a simple http server using gserver. It works fine on chrome, but on some versions of firefox it shows the source code of the page instead of the html page. I guess it understand it as plain/text and not as text/html. Any clues why?
keyvan has joined #ruby
hsbt_away is now known as hsbt
<workmad3> Stan_BR: you probably forgot to set the content-type header of the http response
<Stan_BR> yeah. All Im doing is this (inside the head): <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
hsbt is now known as hsbt_away
<Stan_BR> is there anything else i should do?
rh1n0 has joined #ruby
keyvan has quit [Remote host closed the connection]
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 255 seconds]
tealmage has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
dr_bob has joined #ruby
hsbt_away is now known as hsbt
csmrfx has left #ruby ["laters"]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
abrausch has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
neku has quit [Remote host closed the connection]
neku has joined #ruby
bigmcq77 has joined #ruby
<JonnieCache> Stan_BR: you need to actually set the http header rather than just returning a meta tag
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
tomeo has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
reinaldob has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
ionte_ has quit [Read error: Connection reset by peer]
ionte has joined #ruby
cousine has joined #ruby
erichmenge has quit [Quit: Be back later]
tealmage has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 256 seconds]
pjb3 has joined #ruby
Zai00 has quit [Quit: Zai00]
lkba has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
freeayu has joined #ruby
Ry_ has quit [Ping timeout: 240 seconds]
samphippen has joined #ruby
awestroke has joined #ruby
justinmc_ has joined #ruby
ttt has quit [Remote host closed the connection]
chussenot has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hsbt has joined #ruby
justinmcp has quit [Ping timeout: 244 seconds]
nanderoo has joined #ruby
<Stan_BR> JonnieCache: any idea how to do that with gserver?
<JonnieCache> nope
<Stan_BR> :)
darthdeus has joined #ruby
scx_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
mark_locklear has joined #ruby
vlad_starkov has joined #ruby
reinaldob has joined #ruby
ionte has quit [Read error: Connection reset by peer]
ottbot has joined #ruby
ionte has joined #ruby
erichmenge has joined #ruby
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
havenn has quit [Ping timeout: 248 seconds]
instinkt has quit [Ping timeout: 260 seconds]
hsbt is now known as hsbt_away
colinbm has joined #ruby
hsbt_away is now known as hsbt
burgestrand has quit [Ping timeout: 256 seconds]
trash has joined #ruby
burgestrand has joined #ruby
awarner has joined #ruby
krawchyk has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
fooo has joined #ruby
<fooo> hi guys
<fooo> i need to print out the hex/binary digits of filedata_hash+filename_hint, but i cant seem to find out how to do so
<apeiros_> "hello".unpack("H*").first # => "68656c6c6f"
<trash> ahoi, how would one parse config files which look like FOO="value" (e.g. NETIF="ifname=eth0,mac=00:18:51:F7:48:01,host_mac=00:18:51:8D:7D:FC,network=vlan401,gw=37.44.2.177,ip=37.44.2.190/255.255.255.240,ip6=") - further more parsing this special example.
<apeiros_> converts binary data into the hex values of the bytes
<apeiros_> fooo: ah, missed your gist
hsbt has quit [Ping timeout: 264 seconds]
<fooo> thats actually just what i needed apeiros_ :)
jeffreybaird has joined #ruby
<apeiros_> fooo: ok… I'm confused now… it looked to me as if your code was already complete…
<apeiros_> trash: scan + regex
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<apeiros_> trash: I'd be careful to read about the escaping mechanisms, though. it's easy to mess those up and end up with corrupt data.
Vert has joined #ruby
<fooo> apeiros_: i am migrating to java and my program is giving the incorrect hash value for some reason. I just wanted to compare the raw binary input to the sha1 function.
<trash> apeiros_: Hmm, would you have an approach for this line for example?
bairui has quit [Ping timeout: 260 seconds]
<Stan_BR> JonnieCache: workmad3: fyi, I just need to add this at the very beggining of the response: HTTP/1.0\r\n\r\n
nari has joined #ruby
<Stan_BR> JonnieCache: workmad3: thanks for the help anyway =)
<trash> I'd help me if I'd have the initial key="value" in one variable and then those sub-values in own variables
<Stan_BR> opz, i mean HTTP/1.0\r\n
Proshot has quit [Quit: Leaving]
<workmad3> Stan_BR: ah, yes... well, we probably both figured that you were already sending back a valid HTTP response
<Stan_BR> ;P
Xeago has joined #ruby
Axsuul has quit [Ping timeout: 244 seconds]
jrist-out is now known as jrist
fyolnish has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 255 seconds]
rafter has joined #ruby
<JonnieCache> whats the syntax for triggering a rake task from within another rake task?
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<JonnieCache> or generally to programatically exectute a rake task. Rake::exec or something isnt it?
<Stan_BR> gotta go. cya
Stan_BR has quit [Quit: Page closed]
u89 has joined #ruby
<burgestrand> JonnieCache: you can do Rake::Task["taskname"].invoke, but there’s another nicer way to do it.
fixl has quit [Remote host closed the connection]
<JonnieCache> thats the one i was thinking of
<apeiros_> usually doing something like that means you're misusing rake
kil0byte_ has joined #ruby
hsbt is now known as hsbt_away
<JonnieCache> yeah i was thinking that
<apeiros_> it means "oh I should put that into a library and invoke library functions from rake".
hsbt_away is now known as hsbt
<JonnieCache> i have a daily cronjob, which invokes rake cron:daily which then needs to fire a load of other cronjobs to do actual work
<JonnieCache> i do this to avoid having lots of stuff in crontab, because i hate editing crontab
<JonnieCache> acceptable rulebreaking?
rafter has quit [Ping timeout: 268 seconds]
samphippen has joined #ruby
reinaldob has quit [Remote host closed the connection]
<workmad3> JonnieCache: is all you're doing pretty much a set of rake task invocations?
arietis has joined #ruby
lenovodroid has joined #ruby
<JonnieCache> yeah
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
nari has quit [Ping timeout: 248 seconds]
<JonnieCache> i want to be able to fire a list of rake tasks from one rake command
mercwithamouth has joined #ruby
mikecmpbll has joined #ruby
<JonnieCache> i know rake tasks can have dependencies, but i dont think its suitable for what i need
<workmad3> JonnieCache: any reason your command line isn't 'rake task1 task2 task3' ?
kil0byte has quit [Ping timeout: 276 seconds]
<JonnieCache> because the command line is in crontab
<JonnieCache> and that effectively means part of my app code is in crontab, unversioned and generally unloved
<workmad3> how often does this list of tasks change?
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<JonnieCache> dunno. anything could happen in this crazy world!
<workmad3> JonnieCache: and why not manage your crontab with a whenever file?
<JonnieCache> considered that. boss said thats too much extra stuff for right now. at some point we will have a proper system
lenovodroid has quit [Client Quit]
ddd has joined #ruby
<JonnieCache> i think a cron:daily task is a good solution, screw you guys :)
iamjarvo has quit [Quit: Computer has gone to sleep.]
<workmad3> JonnieCache: you could also have the crontab file in your project, versioned and managed nicely, and part of your deployment is installing it into your project user's crontab ;)
aetcore has quit [Remote host closed the connection]
<JonnieCache> thats what whenever does
<workmad3> yes, but this way isn't prohibited by your boss :P
<JonnieCache> its not prohibited as such, i can do what i want, but im not really in a position to start messing with production systems without taking up lots of his time yet
voodoofish has quit [Ping timeout: 260 seconds]
<JonnieCache> ive not been here long enough to do it on my own, i dont know their setup yet. thats the real problem
<JonnieCache> otherwise id just do it without asking :)
<workmad3> hmm, do they have any guidelines on the subject of crontabs?
<workmad3> any ways they like them managed, etc?
justinmc_ has quit [Remote host closed the connection]
tealmage has joined #ruby
Slivka has joined #ruby
hsbt has quit [Ping timeout: 264 seconds]
erichmenge has quit [Quit: Be back later]
tealmage has quit [Remote host closed the connection]
pjb3 has quit [Quit: pjb3]
hsbt has joined #ruby
JustinCampbell has joined #ruby
Araxia has joined #ruby
robustus has joined #ruby
srji has joined #ruby
tommyvyo has joined #ruby
seanyo has joined #ruby
hsbt is now known as hsbt_away
cousine has quit [Remote host closed the connection]
ffranz has joined #ruby
nari has joined #ruby
voodoofish has joined #ruby
aquaranto has joined #ruby
hsbt_away is now known as hsbt
horofox has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
codecaster has joined #ruby
jcaudle has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
trash has left #ruby [#ruby]
sailias has joined #ruby
<srji> http://tinyurl.com/d6cu7fq | please have a look at listing 4.9, why is he using hashes for the constructor and not using regular variables? what in this case are the benefits of using hashes?
bairui has joined #ruby
hsbt has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 256 seconds]
<horofox> sup guys? I want to know how to do: http://pastie.org/5189605 line 15
hamed_r has quit [Quit: Leaving]
<horofox> what I want to know basically is, how do I call a method from a method inside a class << self(singleton) with the same name of the singleton method
<JonnieCache> srji: because when you call the method, you can use the :hash => :syntax as opposed to having to remember the variable names
<JonnieCache> so its method(:arg => val1, :arg2 => :val1) instead of just method(val1, val2)
dr_bob has joined #ruby
<JonnieCache> its clearer, and it allows you to mix and match arguments
<heftig> you meanas opposed to having to remember the order
<heftig> as well as omitting any
<JonnieCache> yeah and that
tk__ has joined #ruby
hsbt_away has joined #ruby
<heftig> horofox: you don't
<heftig> horofox: you haven't got an instance of CEPFormatter to use
<horofox> heftig: why?
<horofox> heftig: what if I do self.new in the singleton method, should it work?
nari has quit [Ping timeout: 265 seconds]
<heftig> sure, you can just call new
<horofox> self.new is going to reference the class?
<heftig> yes. or just new
burgestrand has quit [Read error: Connection reset by peer]
<horofox> heftig: like formatter = new?
bier has quit [Quit: Ex-Chat]
<horofox> this is strange
bier has joined #ruby
<horofox> or do you mean formatter = CEPFormatter.new ?
bairui has quit [Ping timeout: 256 seconds]
<srji> ty
mmitchell has joined #ruby
<heftig> horofox: yep, just formatter = new
<horofox> heftig: nice!
hsbt_away is now known as hsbt
u89 has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
Banistergalaxy has quit [Ping timeout: 256 seconds]
hsbt_away is now known as hsbt
Banistergalaxy has joined #ruby
invisime has joined #ruby
krawchyk has quit [Ping timeout: 246 seconds]
Zai00 has joined #ruby
<JonnieCache> horofox: they mean the same thing, because youre inside the class
AndChat| has joined #ruby
<horofox> JonnieCache: yea, you are basically calling the new method
<JonnieCache> you could still call CEPFormatter.new if you think its clearer
<horofox> JonnieCache: it just looks strange, hehe!
CamonZ has quit [Quit: Linkinus - http://linkinus.com]
Virunga has joined #ruby
BrianJ has joined #ruby
moomerman has joined #ruby
AndChat- has joined #ruby
u89 has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Banistergalaxy has quit [Ping timeout: 265 seconds]
havenn has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
AndChat| has quit [Ping timeout: 265 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
banisterfiend has joined #ruby
senny has quit [Ping timeout: 252 seconds]
tonini has quit [Ping timeout: 256 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
pothibo has joined #ruby
fantazo has joined #ruby
jerius has joined #ruby
havenn has quit [Ping timeout: 256 seconds]
GoGoGarrett has joined #ruby
samphippen has joined #ruby
hsbt has quit [Ping timeout: 256 seconds]
senny has joined #ruby
zastav has joined #ruby
danshultz has joined #ruby
joofsh has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
Virunga has quit [Remote host closed the connection]
elico has joined #ruby
BrianJ has quit [Quit: BrianJ]
jerius has quit [Quit: Computer has gone to sleep.]
krawchyk has joined #ruby
Cultofmetatron has joined #ruby
baphled has quit [Quit: Lost terminal]
Zuperbot has joined #ruby
nari has joined #ruby
nitti has joined #ruby
hsbt has quit [Ping timeout: 256 seconds]
baphled has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
neku has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
seanyo has quit [Read error: Connection reset by peer]
gnnr has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
Ry_ has joined #ruby
ABK has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
yeggeps has quit [Ping timeout: 240 seconds]
chussenot has quit [Quit: chussenot]
nitti has joined #ruby
yeggeps has joined #ruby
JarJar has joined #ruby
srji_ has joined #ruby
Coolhand has quit [Read error: Operation timed out]
theRoUS has joined #ruby
rakunHo has joined #ruby
F1skr has joined #ruby
jerius has joined #ruby
jlwestsr has joined #ruby
cakehero has joined #ruby
srji has quit [Ping timeout: 244 seconds]
thinkit has quit [Ping timeout: 245 seconds]
csaunders has joined #ruby
srji_ has quit [Client Quit]
hsbt has quit [Ping timeout: 260 seconds]
thinkit has joined #ruby
philcrissman has joined #ruby
chussenot has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Ping timeout: 255 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
JarJar has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
bairui has joined #ruby
Coolhand has joined #ruby
dmiller has joined #ruby
chrisja has joined #ruby
baroquebobcat has joined #ruby
AndChat- has quit [Ping timeout: 265 seconds]
kpshek has joined #ruby
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
codecaster has quit [Quit: Leaving.]
hsbt has quit [Ping timeout: 276 seconds]
freeayu has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
bbttxu has joined #ruby
butblack has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
viuo has quit [Quit: ZNC - http://znc.in]
tchebb has joined #ruby
hsbt has joined #ruby
erichmenge has joined #ruby
jrist is now known as jrist-brb
devdazed has joined #ruby
hotovson has quit [Remote host closed the connection]
rakunHo has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
hsbt is now known as hsbt_away
jipiboily has joined #ruby
jipiboily has left #ruby [#ruby]
hsbt_away is now known as hsbt
richard has joined #ruby
moomerman has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
richard is now known as Guest24955
amacgregor_osx has quit [Remote host closed the connection]
Guest24955 has quit [Client Quit]
Guest92447 is now known as kkh
nari has quit [Ping timeout: 248 seconds]
kkh has quit [Changing host]
kkh has joined #ruby
baphled has quit [Quit: Lost terminal]
awarner has quit [Remote host closed the connection]
krawchyk has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
joeycarmello has joined #ruby
hsbt is now known as hsbt_away
mpereira has joined #ruby
tk__ has quit [Quit: ばいばい]
skaczor has joined #ruby
baphled has joined #ruby
dnyy has joined #ruby
LowKey has left #ruby ["Leaving"]
pu22l3r has joined #ruby
linoj has joined #ruby
mneorr has joined #ruby
filipe has quit [Remote host closed the connection]
kil0byte has joined #ruby
Drager has quit [Changing host]
Drager has joined #ruby
thecreators has joined #ruby
hsbt_away is now known as hsbt
Debolaz has quit [Quit: ZNC - http://znc.in]
DrShoggoth has quit [Quit: Leaving]
kil0byte_ has quit [Ping timeout: 265 seconds]
amacgregor_osx has joined #ruby
rafter has joined #ruby
dmiller has quit [Read error: Operation timed out]
m_3 has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
baphled has quit [Quit: Lost terminal]
casheew has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
Virunga has joined #ruby
joeycarmello has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
heftig has quit [Quit: leaving]
pestouille has joined #ruby
m_3 has joined #ruby
havenn has joined #ruby
hsbt has quit [Ping timeout: 265 seconds]
pestouille has quit [Client Quit]
joshman_ has joined #ruby
pestouille has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
jrist-brb is now known as jrist
macabre has joined #ruby
elsifaka has quit [Read error: Connection reset by peer]
havenn has quit [Ping timeout: 244 seconds]
elsifaka has joined #ruby
ewag has quit [Ping timeout: 260 seconds]
zommi has quit [Quit: Leaving.]
esya has joined #ruby
cousine has joined #ruby
elsifaka has quit [Client Quit]
hsbt has quit [Ping timeout: 240 seconds]
fermion has joined #ruby
thinkdevcode has joined #ruby
yeggeps has quit [Quit: yeggeps]
v0n has joined #ruby
Debolaz has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Erfankam has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
jlwestsr has joined #ruby
telling has quit [Remote host closed the connection]
reisl has quit [Quit: Leaving]
freeayu has quit [Remote host closed the connection]
shevy has joined #ruby
nga4 has quit [Ping timeout: 264 seconds]
xclite has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
xclite has joined #ruby
mahmoudimus has joined #ruby
bluenemo has quit [Quit: Verlassend]
hsbt has joined #ruby
_alejandro has joined #ruby
Araxia has quit [Quit: Araxia]
kil0byte has quit [Ping timeout: 252 seconds]
burgestrand has joined #ruby
jipiboily1 has joined #ruby
jipiboily1 has left #ruby [#ruby]
horofox has quit [Quit: horofox]
AndChat| has joined #ruby
ltsstar has joined #ruby
flip_digits has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
horofox has joined #ruby
dmiller has joined #ruby
AndChat- has joined #ruby
baphled has joined #ruby
havenn has joined #ruby
mpereira has joined #ruby
apok has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
hsbt has quit [Ping timeout: 246 seconds]
AndChat| has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zastav has quit [Remote host closed the connection]
glupo has quit [Remote host closed the connection]
horofox has quit [Client Quit]
tealmage has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
horofox has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
tealmage has quit [Remote host closed the connection]
areil has quit [Read error: Operation timed out]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
mahmoudimus has quit [Quit: Computer has gone to sleep.]
monkegji_ has quit [Remote host closed the connection]
quest88 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
rasbonics has joined #ruby
zcreative has joined #ruby
csaunders has quit [Read error: Operation timed out]
burgestrand1 has joined #ruby
erichmenge has quit [Quit: Be back later]
theRoUS has quit [Ping timeout: 246 seconds]
csaunders has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
jlwestsr has quit [Ping timeout: 246 seconds]
yalue has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
burgestrand has quit [Ping timeout: 264 seconds]
margle has quit [Quit: Computer has gone to sleep.]
mpereira has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
lxsameer has joined #ruby
chussenot has quit [Quit: chussenot]
Eplemosen has joined #ruby
samphippen has joined #ruby
jlwestsr has joined #ruby
rjsamson has joined #ruby
jasond has joined #ruby
tealmage has joined #ruby
thinkdevcode has joined #ruby
mikecmpbll has joined #ruby
rjsamson has quit [Remote host closed the connection]
roadt_ has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
rjsamson has joined #ruby
tealmage has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
d3vic3 has quit [Ping timeout: 255 seconds]
nga4 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
hbpoison has quit [Ping timeout: 256 seconds]
tealmage has joined #ruby
d3vic3 has joined #ruby
<JonnieCache> if i ever meet the guy who wrote this code im going to give him a fucking wedgie
lxsameer has joined #ruby
hsbt has quit [Ping timeout: 268 seconds]
kil0byte has joined #ruby
geggam has joined #ruby
tealmage has quit [Remote host closed the connection]
lushious has quit [Ping timeout: 252 seconds]
scx_ is now known as scx
rjsamson has quit [Ping timeout: 255 seconds]
darthdeus has quit [Quit: Leaving...]
<lxsameer> apeiros_: ping
<apeiros_> pong
rjsamson has joined #ruby
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
<lxsameer> apeiros_: http://dpaste.com/825159/ i can't set the @arguments
lushious has joined #ruby
hotovson has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
<burgestrand1> lxsameer: you haven’t set the arguments.
burgestrand1 is now known as burgestrand
alem0lars has joined #ruby
<lxsameer> burgestrand: i try @aruments = args too
<apeiros_> lxsameer: that's because you're setting the instance variable of the object Command
<apeiros_> which is a different instance than an instance of the object Command
<apeiros_> it's exactly what I assumed you were doing.
quest88 has quit [Quit: quest88]
<apeiros_> and instance variable belongs to *one* object only. and Command (the class) is an object of its own. it has its own instance variables.
<lxsameer> apeiros_: let me give you an other code
burgestrand has quit [Quit: Leaving.]
<apeiros_> instances of Command are (obviously) different objects than Command itself. so they have their own instance variables.
chussenot has joined #ruby
<apeiros_> phone, brb
<lxsameer> apeiros_: http://dpaste.com/825167/
<lxsameer> apeiros_: did you get my goal ?
geggam has quit [Remote host closed the connection]
newmoon has joined #ruby
<newmoon> ciao a tutti
<newmoon> !lis
<newmoon> !list
newmoon has quit [Client Quit]
tds has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
hsbt has joined #ruby
k610 has quit [Quit: Instantbird 1.2 -- http://www.instantbird.com]
Tania has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 260 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<ohcibi> hi i'm trying to do axhttp request with ruby like this https://gist.github.com/4018013. rbody is a stringified json object which should be passed as is, but it is passed as a weird hash with part of the stringified json as key-name, any suggestions on how to do it right?
<ohcibi> (by "passed" i mean what the remote service under /test receives as parameters)
joeycarmello has joined #ruby
tealmage has joined #ruby
tealmage has quit [Remote host closed the connection]
cakehero has joined #ruby
DrShoggoth has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
hsbt has joined #ruby
carlyle has joined #ruby
hoelzro is now known as hoelzro|away
srji has joined #ruby
alem0lars has quit [Ping timeout: 265 seconds]
maesbn has quit [Remote host closed the connection]
baphled has quit [Quit: Lost terminal]
alexwh has joined #ruby
<apeiros_> lxsameer: you can access data which is stored in the class from an instance of that class via self.class, but it means that you need accessors.
casheew has quit [Read error: Connection reset by peer]
<lxsameer> apeiros_: hmmm did you understand my goal ?
casheew has joined #ruby
jcaudle has quit [Remote host closed the connection]
jcaudle has joined #ruby
<apeiros_> since you didn't state any, no. I assume that you define the validation of the argument or somesuch by `sender: Ramp::Fields::StringArg`
<apeiros_> and that'd mean you store data in the class
baroquebobcat has joined #ruby
apok has quit [Quit: apok]
Erfankam has quit [Quit: Leaving.]
<apeiros_> and since you need to access it in Event#initialize, that'd mean you want to access data stored in the class from within the instance
<apeiros_> lxsameer: so: did you understand what I try to explain to you?
hsbt has quit [Ping timeout: 255 seconds]
<lxsameer> apeiros_: i'm not a english man , and its hard to understand, so bear with me
<apeiros_> what's your native language?
Erfankam has joined #ruby
<lxsameer> apeiros_: i want to allow programmer
philcrissman has quit [Remote host closed the connection]
<lxsameer> apeiros_: persian
<apeiros_> ok, not a language I speak :)
baphled has joined #ruby
Erfankam has quit [Max SendQ exceeded]
<lxsameer> apeiros_: i want to allow developer to subclass command and define some arguments for that command via arguments class method
hbpoison has joined #ruby
Erfankam has joined #ruby
<lxsameer> apeiros_: did you understand my poor explaination ?
philcrissman has joined #ruby
<apeiros_> yes
jgrevich has joined #ruby
<apeiros_> lxsameer: again, that means you store data in the class
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<apeiros_> (the arguments definition)
<lxsameer> apeiros_: yeah, what's your suggestion
geggam has joined #ruby
pjb3 has joined #ruby
<apeiros_> lxsameer: http://pastie.org/5190443
<esya> Hi guys, I'm having a small problem while making my own gem : I'm using daemons, and let's say my gem's name is some_gem, how do I do the Daemon.run('some_gem/somefile.rb') since the daemon can be called from any folder
<esya> Any idea?
Serial_Killer_C has joined #ruby
hbpoison has quit [Ping timeout: 265 seconds]
Ry_ has quit [Ping timeout: 256 seconds]
<lxsameer> apeiros_: :D wow, can i ask some question about that code ?
hsbt has quit [Ping timeout: 268 seconds]
<apeiros_> sure
<apeiros_> if it's about the `class <<self` part - it does about the same as `def self.arguments_definition() return @arguments_definition end` would do
ckrailo has joined #ruby
hsbt_away has joined #ruby
<lxsameer> apeiros_: first, why did you use attr_reader in an eignclass ?
hsbt_away is now known as hsbt
<apeiros_> lxsameer: because without an accessor, you can't read the definition from instances of Command. line 11 would not work.
davidcelis has quit [Quit: K-Lined.]
withnale has quit [Excess Flood]
u89 has quit [Remote host closed the connection]
awestroke has quit [Read error: Connection reset by peer]
<lxsameer> apeiros_: so you used the eignclass to make the getter method, a class method
<apeiros_> yes. as said, you could use `def self.arguments_definition() return @arguments_definition end` too
<lxsameer> apeiros_: and stored data in an instance method in the class level, am i right ?
tasaras has joined #ruby
fff has joined #ruby
<apeiros_> depends on what "instance method in the class level" means
tasaras has left #ruby [#ruby]
<apeiros_> data is stored in objects
<apeiros_> the arguments definition is stored in the class
<apeiros_> again: classes are objects too
<lxsameer> apeiros_: oh shot , *instance variable in class level
<apeiros_> yes
<lxsameer> apeiros_: ok second question ,
<apeiros_> the instance variable belongs to the class itself. not to any of its instances.
<lxsameer> apeiros_: yeah i get it now, its wonderful
u89 has joined #ruby
g-ram has joined #ruby
Juul has quit [Ping timeout: 246 seconds]
rafter has quit [Remote host closed the connection]
<lxsameer> apeiros_: what does the alone * do in the argumenst list of initialize ?
alex__c2022 has joined #ruby
<apeiros_> it accepts any amount of arguments and ignores them
horofox has quit [Ping timeout: 276 seconds]
<apeiros_> I used it as a placeholder
<apeiros_> you have to put there whatever you need the class to accept
anachronistic has joined #ruby
Zuperbot has quit [Remote host closed the connection]
<Danielpk> I'm new with ruby and i just upgrade to version 1.9.x at my OSX, but now my gems still installing at /Library/Ruby/Gems/1.8, i need to change to 1.9 ? If yes how i do that?
fff has left #ruby [#ruby]
<lxsameer> apeiros_: nice, at first i didn't like, ruby but now i like it a little :D
neku has joined #ruby
dr_bob has quit [Quit: Leaving.]
maesbn has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
<lxsameer> apeiros_: let me try it
SCommette has joined #ruby
<shevy> lxsameer just use the nice bits and try to avoid the rest :D that's what I do with ruby
zigomir has quit [Ping timeout: 255 seconds]
slash_nick has joined #ruby
<lxsameer> shevy: :D the most annoying thing about ruby is the end keyword :D
daniel_- has quit [Ping timeout: 256 seconds]
dreamz__ has quit [Ping timeout: 276 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
sent_hil has joined #ruby
rafter has joined #ruby
<sent_hil> what's that site with bunch of resources to learn more about ruby?
geekbri has joined #ruby
awestroke has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<slash_nick> sent_hil: looking for one in particular?
<sent_hil> found it: http://iwanttolearnruby.com/
dreamz__ has joined #ruby
timonv has quit [Remote host closed the connection]
alem0lars has joined #ruby
awestroke has quit [Remote host closed the connection]
Guest10501 has joined #ruby
bradhe has joined #ruby
headius has joined #ruby
ryanlecompte has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
hsbt has quit [Ping timeout: 268 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
khakimov has joined #ruby
moos3 has joined #ruby
macmartine has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
emergion has joined #ruby
clj_newb has joined #ruby
Ry_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Ry_ has left #ruby [#ruby]
Ry_ has joined #ruby
Ry_ has left #ruby [#ruby]
casheew has joined #ruby
hsbt has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
colinbm has quit [Quit: colinbm]
nateberkopec has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
alvaro_o has joined #ruby
wallerdev has quit [Quit: wallerdev]
casheew has quit [Read error: Connection reset by peer]
u89 has quit [Remote host closed the connection]
casheew has joined #ruby
Trioke has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
dakine has joined #ruby
casheew has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby
withnale has joined #ruby
<mkillebrew> dakine: ?
davidcelis has joined #ruby
bbttxu has quit [Read error: Connection reset by peer]
<dakine> mkillebrew: :D
<mkillebrew> hai!
u89 has joined #ruby
jlast has joined #ruby
billiam has joined #ruby
bbttxu has joined #ruby
Guerrero has joined #ruby
<shevy> lxsameer: yeah, "end" is a bit annoying. I'd love to be able to omit it, optionally, on a per-file setting
casheew has joined #ruby
<shevy> lxsameer: for 90% of the code out there though, you won't need more than 2 indent-levels with "end"
<Spaceghostc2c> shevy: Dowat.
<Spaceghostc2c> shevy: I didn't know you were a pythonist. :(
<shevy> and you can always use array.each {|x|} rather than array.each do/end
margle has joined #ruby
<lxsameer> shevy: i'm a python fan and its intend oriented blocks are awesome
<nitti> gross.
<shevy> Spaceghostc2c: optionally yeah, not mandatory. I dont think the parser itself should have to care about proper, enforced indent
slash_nick is now known as darkwing_duck
<shevy> def foo
<shevy> do_something_here
<shevy> end
<shevy> my gripe here is that "end" does not give me any real useful information
<shevy> lxsameer: what I dont get with python omitting end is, why does it require ":" ?
<Spaceghostc2c> shevy: Why not just do rb.haml then? :D
<shevy> never used haml... all I recall from last time I saw it was that it had something that sucked a lot hmm
<shevy> Spaceghostc2c: you use haml?
<Spaceghostc2c> shevy: Only against my will.
<darkwing_duck> I love haml... specifically because indentation controls the end of a block
<shevy> hehe
<darkwing_duck> What's the thing that sucks alot, shevy?
<Spaceghostc2c> darkwing_duck: I have an editor that handles it. :D
<Spaceghostc2c> I used to write ERB with html and then use html2haml -e
<Spaceghostc2c> It was awesome.
<lxsameer> shevy: that true too, but typing a ":" is easier than "end" :))
asobrasil has joined #ruby
cobragoat has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<shevy> lxsameer: yeah, probably. but I always wondered about it, because I was thinking "cool, I can just avoid using "end", and just use indent! but I also require to use : ... which I dont have to do in ruby, even the () is optional when non-ambigous - I always use () in method definitions though
timonv has joined #ruby
bluenemo has quit [Quit: Verlassend]
<darkwing_duck> I always have the strangest problems... "Missing template ...", "500"... Then how come that template is loaded in my browser with a 200?
Neomex has joined #ruby
<lxsameer> shevy: me too :)
<shevy> darkwing_duck: dunno. I never used haml seriously, I don't like those strange markup things too much. PHP spoiled me.. erb files look sooo ugly, I can't understand how people like that
dreamz__ has quit [Remote host closed the connection]
<shevy> <= %foo() >
<JonnieCache> dude php is exactly the same as erb
<darkwing_duck> JonnieCache: +1
Neomex has quit [Client Quit]
<shevy> php must die
<darkwing_duck> And so I use haml
<JonnieCache> whoever was asking, use haml it is the domb
<JonnieCache> *bomb
<shevy> the domb!
<darkwing_duck> ba domb
<shevy> ok
<shevy> what is good about haml really?
bradhe has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<JonnieCache> html is a tree
<JonnieCache> haml is explicitly tree shaped
<darkwing_duck> no 'end'... no '}'...those are niceities
<darkwing_duck> <% } %> is retarded... don't see that in HAML
dreamz__ has joined #ruby
<JonnieCache> also a haml document mirrors the shape of the sass document that styles it
<JonnieCache> its very zen
<darkwing_duck> It's just so easy to peek at a file and see its structure...
jrajav has joined #ruby
Araxia has joined #ruby
<shevy> hmm
<shevy> hey jrajav - there was a bot here a while ago, but it sucked compared to your bot :(
<jrajav> :/
bradhe has joined #ruby
<jrajav> :\
<jrajav> :|
u89 has quit [Remote host closed the connection]
daniel_- has joined #ruby
erichmenge has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
Monie[ip] has joined #ruby
k610 has joined #ruby
ben_alman_ has quit [Excess Flood]
horofox has joined #ruby
dreamz__ has quit [Ping timeout: 276 seconds]
<darkwing_duck> in 3
aganov has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
mark_locklear has quit [Remote host closed the connection]
blazes816 has joined #ruby
senny has quit [Remote host closed the connection]
Ry_ has joined #ruby
mahmoudimus has joined #ruby
AndChat- has quit [Ping timeout: 240 seconds]
Iszak has quit [Quit: User has gone to sleep.]
Banistergalaxy has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
BoomCow has joined #ruby
J-_-L has joined #ruby
matrixise has quit [Ping timeout: 252 seconds]
arturas_ has joined #ruby
arturaz has quit [Read error: Connection reset by peer]
Tania has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Monie[ip] has quit [Read error: Connection reset by peer]
Monie[ip]_ has joined #ruby
xorigin has quit [Quit: leaving]
artOfWar has joined #ruby
Monie[ip]_ has quit [Read error: Connection reset by peer]
Monie[ip] has joined #ruby
maletor has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ has joined #ruby
<Hanmac> shevy look at this: http://www.ruby-forum.com/topic/4407457
ben_alman has joined #ruby
timmillwood has quit [Ping timeout: 256 seconds]
<shevy> Hanmac: interesting
<shevy> Hanmac: you like multiple inheritance because of C++ right?
TheNumb has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
dcope has quit [Quit: ZNC - http://znc.in]
dcope has joined #ruby
dcope is now known as Guest62836
adeponte has joined #ruby
<Hanmac> shevy it is not my topic, multiple inheritance can bite you in the ass if you are not careful ...
<shevy> hehe
<shevy> well
<shevy> ruby kinda supports multiple inheritance in some ways
<shevy> it delegates it into modules instead
reinaldob has joined #ruby
<Hanmac> but lastime i maked some patch that allows you to make A.new when A is an module ...
TheNumb has joined #ruby
Guest62836 has quit [Changing host]
Guest62836 has joined #ruby
erichmenge has quit [Quit: Be back later]
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
<banisterfiend> Hanmac: i did the opposite, let you include A when A was a class ;)
clj_newb has quit [Ping timeout: 268 seconds]
Guest62836 is now known as dcope_wat
dhruvasagar has joined #ruby
<Hanmac> banisterfiend, yes we are evil guys :D
Monie[ip] has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jaygen has joined #ruby
Gmind has joined #ruby
gurps has quit [Ping timeout: 276 seconds]
macabre has quit [Remote host closed the connection]
BoomCow has quit [Quit: Leaving]
<Gmind> Just read Why's Guide, is programming ruby that fun ?
BoomCow has joined #ruby
cousine has quit [Remote host closed the connection]
DanBoy has joined #ruby
h4mz1d has joined #ruby
<banisterfiend> Gmind: Yeah :P
Banistergalaxy has quit [Ping timeout: 244 seconds]
<banisterfiend> Gmind: i love it, anyway and still feel pretty passionate about it even after 4 years
<shevy> Hanmac: that would be nice actually, then modules would be almost as useful as classes and apeiros would never again have to use top-level classes as namespace :D
wargasm has joined #ruby
<jrajav> Multiple inheritance is icky
<jrajav> And it has cooties
<banisterfiend> i was very close to implementing multiple inheritance for ruby too
jaygen has quit [Remote host closed the connection]
<Gmind> Do you feel flow in Ruby programming ? banisterfiend .. and is that practice in Ruby come with Koans ?
<banisterfiend> Gmind: feel 'flow' ? you mean feel inspired?
margle has quit [Quit: Computer has gone to sleep.]
<Gmind> it's a sense of totally focus, like you are playing games
ephemerian has quit [Quit: Leaving.]
chimkan has joined #ruby
macabre has joined #ruby
<banisterfiend> Gmind: yeah yeah :)
<shevy> Gmind: there are always distractions, but you can follow a pattern that works for your style. with ruby it is often much simpler as in other languages because the intent of the code can be very clear and very terse. with php, the code always looked ugly and never beautiful
gurps has joined #ruby
Araxia_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
Araxia has joined #ruby
caveat- has joined #ruby
<shevy> Gmind: I dont think this is possible to have 24/7, when I wake up, I need some time before my brain is fully "awake"
sepp2k has quit [Read error: Connection reset by peer]
dcope_wat is now known as dcope
GranMal has joined #ruby
sn0wb1rd has joined #ruby
Xeago has joined #ruby
sepp2k has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
darthdeus has joined #ruby
stephenjudkins has joined #ruby
clj_newb has joined #ruby
brianpWins has quit [Quit: brianpWins]
mhag has quit [Ping timeout: 240 seconds]
pestouille has quit [Quit: pestouille]
Xeago has quit [Remote host closed the connection]
BrianJ has joined #ruby
mklappstuhl has joined #ruby
apok has joined #ruby
ij has joined #ruby
<ij> I saw a post on hackernews telling that syntax highlighting might be harmful and some posts on the net tell the same, what do you guys think?
monkegjinni has joined #ruby
nicoulaj has joined #ruby
<jrajav> That post wasn't saying that syntax highlighting might be harmful - it was an anecdote about some guy who tried it for a while and thought it gave him marginal benefits when scanning and reading code. I found it pretty dubious
<jrajav> If anything, we should be highlighting things more specifically and with greater reflection of the code structure - for instance, I think a "rainbow parens" plugin is very useful for nearly any language with syntactically significant parens and/or braces
reinaldob has quit [Remote host closed the connection]
Erfankam has quit [Ping timeout: 255 seconds]
<jrajav> Also, Rob Pike is a silly goose.
<Hanmac> shevy & banisterfiend: http://pastebin.com/eRF7efy1
maesbn has quit [Remote host closed the connection]
<ij> jrajav, «Syntax highlighting had, for me, been somewhat of a crutch.»
<ij> That could very well be interpreted as «might be harmful.»
<banisterfiend> Hanmac: cute
<jrajav> That's taking some liberty with it. :/
<jrajav> Anyway, try it yourself if you think it sounds interesting
lele has quit [Ping timeout: 246 seconds]
<banisterfiend> Hanmac: my one:P https://github.com/banister/object2module
Elhu has quit [Quit: Computer has gone to sleep.]
<banisterfiend> Hanmac: it wont work on 1.9.3+ since i didnt bother to update it
<ij> jrajav, Well okay, true, and I am.
<jrajav> Like indenting, monospace fonts, etc, there will always be someone who wants to defy the status quo, but there are good reasons why virtually everyone uses certain techniques
skum has quit [Quit: Leaving...]
alfism has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
<workmad3> jrajav: you can pry my non-monospace developer font out of my cold, dead... oh wait, I use monospace :D
iamjarvo has joined #ruby
awestroke has joined #ruby
rakl has joined #ruby
<workmad3> as for syntax highlighting... take that away and man, ruby just never stops complaining about syntax errors...
BrianJ has quit [Quit: BrianJ]
<darkwing_duck> lol... it's ruby that needs the highlighting ;)
x82_nicole has joined #ruby
<workmad3> yeah, for some reason ruby complains a lot more about syntax errors when it doesn't use syntax highlighting
<workmad3> all ruby's fault, I'm sure
kbeddingfield has joined #ruby
Banistergalaxy has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
slainer68 has quit [Remote host closed the connection]
KarlHung1s is now known as KarlHungus
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
nicoulaj has quit [Remote host closed the connection]
clj_newb has quit [Read error: Connection reset by peer]
ltsstar has quit [Quit: ltsstar]
BrianJ has joined #ruby
ltsstar has joined #ruby
bbttxu has quit [Read error: Operation timed out]
sheerun has left #ruby [#ruby]
phantasm66 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
clj_newb has joined #ruby
mneorr has quit [Remote host closed the connection]
margle has joined #ruby
beiter has joined #ruby
cirwin has joined #ruby
reinaldob has joined #ruby
samphippen has joined #ruby
mrsolo has joined #ruby
nitti has quit [Remote host closed the connection]
Araxia has quit [Read error: No route to host]
voodoofish430 has joined #ruby
<shevy> ij: highlighted code can be very helpful, your eyes can scan much faster and find correct patterns more easily, it helps with the structure
Araxia has joined #ruby
Zai00 has quit [Quit: Zai00]
bradhe has quit [Remote host closed the connection]
snearch has joined #ruby
mohits has quit [Ping timeout: 255 seconds]
chussenot has quit [Quit: chussenot]
u89 has joined #ruby
skaczor has quit [Read error: Operation timed out]
cakehero has quit [Quit: Computer has gone to sleep.]
h4mz1d has joined #ruby
esya has quit [Quit: esya]
Morkel has quit [Quit: Morkel]
Agis__ has joined #ruby
thecreators has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 268 seconds]
ejholmes has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
dakine has quit [Quit: Leaving]
Axsuul has joined #ruby
lxsameer has quit [Quit: Leaving]
jaygen has joined #ruby
mneorr has joined #ruby
marty_mcfly has joined #ruby
<marty_mcfly> hey guys , when I do a Kernel.const_defined? :String it gives me false ... whats the deal
brianpWins has joined #ruby
dmiller has joined #ruby
tenmilestereo has joined #ruby
savage- has joined #ruby
wallerdev has joined #ruby
Ry_ has quit [Ping timeout: 252 seconds]
alex__c2022 has quit [Quit: alex__c2022]
fast_ has joined #ruby
<Hanmac> marty_mcfly what is your ruby version?
reinaldob has quit [Ping timeout: 240 seconds]
<marty_mcfly> 1.8.7
piotr_ has joined #ruby
<shevy> works on 1.9.x
BSaboia has joined #ruby
ryanlecompte has quit [Ping timeout: 244 seconds]
<marty_mcfly> why doesn't it on 1.8.7?
chussenot has joined #ruby
chussenot_ has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
macabre has quit [Remote host closed the connection]
Metathink has joined #ruby
<Hanmac> shevy my system i installed new comes per default with ruby1.9.3 and does not install 1.8 per default :D
margle has quit [Quit: Computer has gone to sleep.]
<windowsrefund> hello, does anyone know how to delete a rake task that shows up in the output of rake -T? I should mention the task no longer exists in my .rake files
mpereira has joined #ruby
bradhe has joined #ruby
dmiller has quit [Remote host closed the connection]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
margle has joined #ruby
Gmind has quit [Quit: Leaving.]
tsousa has joined #ruby
<tsousa> if for some reason it fails to find a method in my class is always go check for my version of method_missing ?
macmartine has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
bradhe has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 264 seconds]
chussenot_ is now known as chussenot
pjb3 has quit [Quit: pjb3]
rich__ has joined #ruby
J-_-L has quit [Quit: Leaving.]
instinkt has joined #ruby
billiam has quit [Ping timeout: 255 seconds]
<sent_hil> tsousa: i believe it looks up the ancestor chain first
maxmmurphy has joined #ruby
emmanuelux has joined #ruby
dpatel has joined #ruby
a_a_g has joined #ruby
Danielpk has quit [Read error: Connection reset by peer]
arielpts has quit [Read error: Connection reset by peer]
skaczor has joined #ruby
lele has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
shell0x has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
shell0x is now known as shellox
davidokn1r has joined #ruby
qwerxy has quit [Quit: offski]
<shevy> Hanmac: yeah tell me... I have the latest zenwalk, and ruby 1.8.7 no longer compiles from source here :( so I am on 1.9.x permanently now, I think
<shevy> but it's ok, encoding can be ignored for the most part
<shevy> except for one thing, delete("\n") led to a problem whereas .gsub(/\n/,'') did not, that was odd to see. more power to gsub I suppose
hackerdude has joined #ruby
<thinkit> I am seeking a freelance ruby developer for a new fun site concept called straight or non - https://dl.dropbox.com/u/45988033/son.png
<thinkit> if anyone is interested, please contact me. Thanks!
<tsousa> @ means that the scope is local right?
<shevy> thinkit: looks a bit rails, you could find more rails guys in #rubyonrails I suppose
arielpts has joined #ruby
<shevy> tsousa: the @ denotes an instance variable, you can think of it as scope within your class
<thinkit> shevy: thanks
davidokner has quit [Ping timeout: 276 seconds]
<shevy> class Foo; def initialize; @test = 'hi';end; def test; puts @test; end; end; Foo.new.test
Danielpk has joined #ruby
<tsousa> shevy, ah ok. thanks
<shevy> tsousa: the above example would output the string "hi"
<shevy> so you can use the @ variables in other methods freely, and change them etc...
<shevy> within your given class
jerius has joined #ruby
<shevy> if you would do test = 'hi' instead, it would only be available in the method you set them that way
<shevy> like in initialize(), in the above example
<tsousa> shevy, ok thanks :)
nitti has joined #ruby
Ry_ has joined #ruby
br4ndon has joined #ruby
anderse has quit [Quit: anderse]
jerius has quit [Ping timeout: 255 seconds]
zooz has joined #ruby
<zooz> how do I read a file and strip new line if there is one?
michaelmartinez has joined #ruby
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
instinkt has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
cirwin has quit [Quit: commut...ting!]
skcin7 has joined #ruby
jerius has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
instinkt has joined #ruby
dr_bob has joined #ruby
Tuxist has joined #ruby
<tsousa> shevy, thanks for the help.
crodas has quit [Read error: Connection reset by peer]
Agis__ is now known as rez-
rjsamson has quit [Remote host closed the connection]
bradhe has joined #ruby
<rez-> any ideas for a useful gem to develop?
dr_bob has quit [Read error: Connection reset by peer]
rjsamson has joined #ruby
nitti has quit [Ping timeout: 248 seconds]
<shevy> tsousa: yeah, ruby needs more active people using it :)
<shevy> 2013 we must overtake perl on TIOBE
keyvan has quit [Remote host closed the connection]
<shevy> rez-: dunno. anything that you spend like at least +10 hours working on
emergion has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby
<Hanmac> rez- pick an C(++) you like and then make an binding for that :P
kirun has joined #ruby
g-ram has joined #ruby
<tsousa> shevy, yeh i am still learning it and enjoying it.
<rez-> Hanmac: nice idea, this involves using C code in the gem?
<tsousa> i am already thinking in what to do for my first project
marty_mcfly has left #ruby [#ruby]
aquaranto has quit [Remote host closed the connection]
rjsamson has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Remote host closed the connection]
g-ram has quit [Client Quit]
<shevy> rez-: yeah I think this usually resides in the ext/ subdirectory of a .gem
pu22l3r has joined #ruby
Tearan has joined #ruby
g-ram has joined #ruby
jrist is now known as jrist-afk
phantasm66 has quit [Quit: *poof*]
<rez-> hm that's going to be tricky since I don't know any C
pjb3 has joined #ruby
csmrfx has joined #ruby
<csmrfx> 8)
<csmrfx> Lets Ruby!
imami|afk is now known as banseljaj
mneorr has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 245 seconds]
<rez-> lets
lkba has joined #ruby
<Hanmac> rez- it can be c++ code too, only the main method must be accessble for C ..
pu22l3r has quit [Read error: Operation timed out]
<rez-> Hanmac: I was thinking something in pure ruby cause it's going to be my first gem
Araxia has quit [Ping timeout: 252 seconds]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
<darkwing_duck> pick a public api and write a wrapper for it?
<rez-> darkwing_duck: was thinking about that, ex. a githup api ruby wrapper
g-ram has quit [Ping timeout: 255 seconds]
freakazoid0223 has quit [Read error: Connection reset by peer]
michaelmartinez has joined #ruby
maxer has quit [Quit: maxer]
keyvan has joined #ruby
keyvan has joined #ruby
elaptics is now known as elaptics`away
keyvan has quit [Remote host closed the connection]
mark_locklear has joined #ruby
baphled has joined #ruby
<JohnTeddy> What is a good ruby editor to use in ubuntu?
<a_a_g> vim?
<rez-> vim?
<rez-> a_a_g: ha!
u89 has quit [Remote host closed the connection]
cakehero has joined #ruby
Monie has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
<rez-> something trivial? most basic?
banisterfiend has quit [Ping timeout: 256 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
zooz has quit [Quit: Leaving IRC]
<csmrfx> vim is the best editor
<csmrfx> use cream until you master vim movements
<csmrfx> (cream is vim with a "normal editor" and "beginner" modes, gui menus, etc)
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
Metathink has left #ruby ["Bye"]
GranMal has quit [Quit: GranMal]
<csmrfx> geany is good for gnomes, too
thone_ has joined #ruby
<Hanmac> vim is when you have no other stuff ... like Xserver or mouse :D
<csmrfx> nano works fine
<a_a_g> csmrfx: thatnks for clarifying that
<a_a_g> about cream, i.e.
<Gate> emacs 4 evar!
kirun has quit [Ping timeout: 265 seconds]
baphled has quit [Ping timeout: 246 seconds]
<csmrfx> Hanmac: vim is when you need to have a professional editor
<Hanmac> i like gedit for small stuff, and eclipse for bigger
<csmrfx> (and you dont want a painful pinkie from using emacs)
nitti has joined #ruby
rafter has quit [Remote host closed the connection]
<csmrfx> gedit is ok, but lacks things like completion, splitting, folding...
slainer68 has joined #ruby
<darkwing_duck> vim's great with a good .vimrc
<a_a_g> although with emacs, there is always the advantage that one day you could retire and become a piano player
<csmrfx> lol
<darkwing_duck> gedit lacks things like command mode
<Gate> geany is a good middle ground
<Gate> I used it for a long time
keyvan has quit [Ping timeout: 260 seconds]
<csmrfx> scite is also a nice lightweight editor with completion
<csmrfx> jedit is a fine java based editor
chussenot has quit [Quit: chussenot]
thone has quit [Ping timeout: 264 seconds]
arturas_ has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
<Hanmac> for bigger stuff i use eclipse because i have git/hg inside
esya has joined #ruby
<csmrfx> I've also used some Kate but that was many years ago
<a_a_g> i actually prefer to have git outside :)
cdt has quit [Ping timeout: 255 seconds]
<csmrfx> Hanmac: dont you find eclipse gets in your way and is wieldy?
<Gate> csmrfx: I'm astonished at the concept of a java based editor which doesn't axiomatically suck
<csmrfx> I used eclipse in some java projects but dont really like it, except the editor is good
<Gate> isn't that the first premise java editors start with? 'It must be slow and clunky!'
<csmrfx> Same with Aptana, the editor is very nice, but it is heavy and clunky
* csmrfx has now listed all editor he has used
<a_a_g> is there a language called vacuum? maybe eclipse would be a good editor for that
<csmrfx> (except textpad on windows)
hackerdude has quit [Remote host closed the connection]
u89 has joined #ruby
slainer68 has quit [Ping timeout: 268 seconds]
<csmrfx> Gate: so, have you tested JEdit?
bradhe has quit [Remote host closed the connection]
<a_a_g> kate is actually good
<Hanmac> csmrfx not if you need to open more than 100 files :D
<csmrfx> It's rather ok for XML/XSL devving, due to nice plugins
knite has quit [Ping timeout: 256 seconds]
``10`` has joined #ruby
stephenjudkins has quit [Ping timeout: 260 seconds]
<Hanmac> eclipse can go C++ and ruby syntax too (okay not the new 1.9er ... but geany is also not soo good)
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<a_a_g> also, gedit has a few plugins that makes it a bearable programmer's editor
<csmrfx> yeah, but I always decided why bother since geany has those and more
<csmrfx> although gedit comes builtin with all gnomes I think
chimkan has quit [Quit: chimkan]
<Hanmac> last time i had problems with geany in my projects thats why i am still with eclipse
fermion has quit [Quit: P]
jerius has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
geekbri has quit [Remote host closed the connection]
BrianJ has quit [Quit: BrianJ]
<a_a_g> i think the eclipse editor has a dumbed down vi mode as well
<csmrfx> lols
<csmrfx> even firefox has vi mode
<darkwing_duck> most things seem to...
<darkwing_duck> sublime does too
<a_a_g> no serious. i tried it once
<a_a_g> then i thought - "whats the bloody point" and went and freed up a gig of RAM
love_col_ has joined #ruby
apeiros_ has joined #ruby
hackerdude has joined #ruby
stephenjudkins has joined #ruby
qwerxy has joined #ruby
love_col_ has quit [Remote host closed the connection]
Monie has quit [Quit: http://mc.jamonek.com Minecraft Generator]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
keyvan has quit [Ping timeout: 245 seconds]
bwlang has joined #ruby
BrianJ has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
ewag has joined #ruby
kirun has joined #ruby
xorigin has joined #ruby
k610 has joined #ruby
slainer68 has joined #ruby
savage- has quit [Remote host closed the connection]
snearch has quit [Quit: Verlassend]
ABK has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
a_a_g has quit [Quit: Leaving.]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
jgrevich_ has joined #ruby
keyvan has quit [Ping timeout: 252 seconds]
daniel_- has quit [Quit: WeeChat 0.3.9]
qwerxy has quit [Quit: offski]
anderse has joined #ruby
daniel_- has joined #ruby
werdnativ has joined #ruby
daniel_- has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 240 seconds]
daniel_- has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
Jdubds2 has joined #ruby
alfism has quit [Quit: alfism]
beiter_ has joined #ruby
<Gate> csmrfx: nope, I generally avoid java as a rule. I've had to use eclipse and netbeans for various things
k610 has joined #ruby
notVert has joined #ruby
<Jdubds2> Hello, I'm looking for help with IRB and require. I can't get require to work. I've heard this might be an issue with running under windows 7 64. Can anyone help?
beiter has quit [Ping timeout: 244 seconds]
beiter_ is now known as beiter
banisterfiend has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
GranMal has joined #ruby
Floydzy has quit [Quit: Floydzy]
mark_locklear has quit [Remote host closed the connection]
k610 has quit [Read error: Connection reset by peer]
k611 has joined #ruby
k611 has quit [Read error: Connection reset by peer]
baphled has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
stephenjudkins has quit [Ping timeout: 252 seconds]
Uranio has joined #ruby
<apeiros_> Jdubds2: while I'm busy right now, I'd still suggest you describe your problem
<apeiros_> as with the current description, you'll most likely not get help
k610 has joined #ruby
k610 has quit [Read error: Connection reset by peer]
k610 has joined #ruby
u89 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
k610 has joined #ruby
stephenjudkins has joined #ruby
chimkan has joined #ruby
brycebudd has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
jonan has joined #ruby
Mon_Ouie has joined #ruby
<darkwing_duck> Jdubds2: While I won't know jack about windows, what are you trying to require? And how does irb respond (show us an error message if ya can)? :)
<Jdubds2> ok
pjb3 has quit [Quit: pjb3]
<Jdubds2> error on line 36
<Jdubds2> and
<csmrfx> gist or pastie.org the whole thing
<csmrfx> ok
<Jdubds2> kkk
<Jdubds2> sec
bricker has joined #ruby
bbttxu has joined #ruby
jcaudle_ has joined #ruby
Erfankam has joined #ruby
cableray has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
bbttxu has quit [Client Quit]
maletor has joined #ruby
bbttxu has joined #ruby
k610 has joined #ruby
BSaboia__ has joined #ruby
wallmani has joined #ruby
<Jdubds2> having trouble uploading to imgur sorry
jcaudle has quit [Ping timeout: 244 seconds]
jcaudle_ is now known as jcaudle
<Jdubds2> :/
<Jdubds2> getting errors...
<darkwing_duck> ouch...
<darkwing_duck> are you on github?... gist.github.com
<darkwing_duck> You could copy and paste your input and irb's output, save it as a gist, and give us the link...
macabre has joined #ruby
<Jdubds2> Yeah I have a github account, but I've never used it...I really need to learn lol
workmad3 has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
k610 has quit [Ping timeout: 260 seconds]
niklasb has quit [Ping timeout: 265 seconds]
<darkwing_duck> Jdubds2: Yeah, github is invaluable
``10`` has left #ruby [#ruby]
k610 has joined #ruby
erichmenge has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
c0rn has quit [Quit: Computer has gone to sleep.]
netmask has joined #ruby
netmask has left #ruby [#ruby]
s0ber has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
net_mask has joined #ruby
s0ber has joined #ruby
levabalkin has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
baphled has quit [Quit: Lost terminal]
alanp has quit [Ping timeout: 256 seconds]
k610 has joined #ruby
jlast has quit [Read error: Operation timed out]
bradhe has quit [Remote host closed the connection]
erichmenge has quit [Quit: Be back later]
<Jdubds2> hmmm
<Jdubds2> I tried some of those solutions, no luck :(
tsousa has quit [Quit: Saindo]
<Jdubds2> Someone told me it might be a problem with using windows to develop under?
michaelmartinez has joined #ruby
Erfankam has quit [Quit: Leaving.]
michaelmartinez has quit [Client Quit]
bobu has joined #ruby
nazty has joined #ruby
thinkit has quit []
rakm_ has joined #ruby
thinkit2 has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
casheew has quit [Read error: Connection reset by peer]
keyvan has quit [Remote host closed the connection]
casheew has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Jdubds2 has quit [Ping timeout: 268 seconds]
enderx86 has joined #ruby
Guest47101 has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
rippa has joined #ruby
banseljaj is now known as imami|afk
Astral has joined #ruby
Astral is now known as Guest48447
casheew has quit [Read error: Connection reset by peer]
<csmrfx> virtualbox + linux ftw
<csmrfx> nivr
<csmrfx> ce image
u89 has joined #ruby
Jdubds2 has joined #ruby
<csmrfx> Jdubds2: virtualbox + linux ftw
<csmrfx> virtualbox is free and quick install
enderx86 has quit [Remote host closed the connection]
<csmrfx> dl ubuntu cd image and feed it to virtualbox
<csmrfx> easy
werdnativ has quit [Quit: werdnativ]
keyvan has quit [Ping timeout: 240 seconds]
baphled has joined #ruby
casheew has joined #ruby
<Jdubds2> hey im back sorry
<Jdubds2> my computer disconnects constantly fronm the internet
<Jdubds2> :(
<wallmani> comcast went out for me ~10 minutes ago
casheew has quit [Read error: Connection reset by peer]
baphled has quit [Client Quit]
<wallmani> Jdubds2: so i feel your pain
<Jdubds2> it's this laptop, it's shit
<Jdubds2> i literally cannot download large files
<Jdubds2> or load more than one web page at once
<Jdubds2> without it disconnecting me
<Jdubds2> and even if i dont do those things, i still get DC often
<Jdubds2> hate this pos
qwerxy has quit [Quit: offski]
neku is now known as neku|away
workmad3 has quit [Ping timeout: 246 seconds]
<darkwing_duck> yeah that's some handicap Jdubds2
osvico has joined #ruby
rakl has quit [Quit: sleeping]
<Jdubds2> advice: never buy a laptop for 300$
<Jdubds2> lol
banisterfiend has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
<apeiros_> except if it is the macbook air from your husband…
<Jdubds2> haha
<Jdubds2> nice
<darkwing_duck> Jdubds2: When you're in the market for another, check out system76
casheew has joined #ruby
bobu has left #ruby ["Leaving..."]
Beoran__ has joined #ruby
jrist-afk is now known as jrist
blacktulip has quit [Remote host closed the connection]
<x82_nicole> So, learning about modules here. They do nothing but organize. How would I call a module within a module?
nitti_ has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
<apeiros_> x82_nicole: a nested/namespaced module
neku|away is now known as neku
<apeiros_> x82_nicole: they're also the only thing that can hold methods (classes are modules)
sertaconay has joined #ruby
imami|afk is now known as banseljaj
Beoran_ has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
carloslopes has quit [Remote host closed the connection]
<x82_nicole> Hmm, so like A::B::C.method would be the right synta for Module A, Module B, and then a C class nested within those two?
alienvenom has quit [Ping timeout: 245 seconds]
aetcore has joined #ruby
<apeiros_> assuming .method is a class method - yes
<apeiros_> also, irb ;-)
<apeiros_> or pry
nazty has quit [Ping timeout: 256 seconds]
Jdubds2 has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 244 seconds]
uris has joined #ruby
Jdubds2 has joined #ruby
<Jdubds2> back again :/
<Jdubds2> sigh
maesbn has joined #ruby
awestroke has quit [Remote host closed the connection]
<csmrfx> How to see modules that are available? (in "namespace")
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<darkwing_duck> csmrfx: This isn't right... but in IRB, try typing "Module::" then hit tab a few times
casheew has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby
alexim has joined #ruby
<darkwing_duck> csmrfx: Yeah that's far from what you want... sorry I dont know
Jdubds2 has quit [Ping timeout: 260 seconds]
<allsystemsarego> Hi all, I made a toy app in Ruby that behaves like Stackoverflow but is single-user and it's pure text, is anyone bored enough to do a code review for it?
fermion has joined #ruby
Jdubds2 has joined #ruby
<csmrfx> thanks
fermion has quit [Client Quit]
<csmrfx> didnt realize irb has autocompletion for methods too
qwerxy has joined #ruby
<Jdubds2> hey csmr
<Jdubds2> what was the answer
<Jdubds2> i got DC
<csmrfx> linux in virtualbox may not help with connection probs
<zaiste_> hey
qwerxy has quit [Client Quit]
alienvenom has joined #ruby
<apeiros_> allsystemsarego: just throw it on github
<allsystemsarego> apeiros_, I have it on a pastebin, is that OK?
alexim has quit [Ping timeout: 260 seconds]
<apeiros_> I'll not do a full code review, but watching sc2 livestream with a couple of breaks in it, so might do a bit
casheew has joined #ruby
<apeiros_> allsystemsarego: anything online does. pastie.org and gist are preferred, though
<allsystemsarego> apeiros_, http://pastebin.com/LqRQ2WgF
alexim has joined #ruby
<apeiros_> class User < Struct.new(:nickname) <-- User = Struct.new(:nickname) do … end
<apeiros_> (just an alternative)
emergion has joined #ruby
burgestrand has joined #ruby
B|aster has quit [Ping timeout: 265 seconds]
<Jdubds2> @csmrfx yeah i dont expect anything to fix it, i think it's a hardware issue with this laptop :(
banisterfiend has joined #ruby
tvw has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
justinmcp has joined #ruby
<Spaceghostc2c> I just think the class way is a bit nicer to look at.
alienvenom has quit [Ping timeout: 252 seconds]
skaczor has quit [Read error: Connection reset by peer]
kbeddingfield has joined #ruby
skaczor has joined #ruby
jgrevich_ has joined #ruby
Zuperbot has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
BrianJ has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
qwerxy has joined #ruby
BrianJ has joined #ruby
mercwithamouth has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
emergion has quit [Quit: Computer has gone to sleep.]
<darkwing_duck> looks like all those ifs (`if navigation_state` & `if keyboard_input`) could be organized a little better...case/when
matrixise has joined #ruby
neku has quit [Ping timeout: 260 seconds]
<darkwing_duck> err, allsystemsarego: looks like all those ifs (`if navigation_state` & `if keyboard_input`) could be organized a little better...case/when
<allsystemsarego> darkwing_duck, thanks for the suggestion, I'll implement it
geggam has joined #ruby
nitti_ has quit [Remote host closed the connection]
alienvenom has joined #ruby
Jdubds2 has quit [Ping timeout: 252 seconds]
nitti has joined #ruby
<zaiste_> could you take a look at this code: http://pastie.org/5191773
TheFuzzball has quit [Read error: Operation timed out]
<zaiste_> how can I access line count at XXX
<zaiste_> ?
<Hanmac> apeiros_ your both lines are not equal but similar enough
jgarvey has joined #ruby
Jdubds2 has joined #ruby
<apeiros_> what do you mean? the struct thing? yes, mine doesn't create 2 classes, only 1
alem0lars has quit [Quit: quit]
jarred has joined #ruby
niklasb has joined #ruby
caleb_io has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
maxer has joined #ruby
nitti has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 264 seconds]
dr_bob has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Ping timeout: 240 seconds]
<csmrfx> I was wondering about that
werdnativ has joined #ruby
daniel_- has joined #ruby
Serial_Killer_C has joined #ruby
coder_neo has joined #ruby
nanderoo has quit [Quit: Leaving.]
Xeago has joined #ruby
arturaz has quit [Ping timeout: 255 seconds]
answer_42 has quit [Quit: WeeChat 0.3.9]
heftig has joined #ruby
dmerrick has joined #ruby
stephenjudkins has joined #ruby
bywam has joined #ruby
statarb3 has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 248 seconds]
pjb3 has joined #ruby
arturaz has joined #ruby
srji has quit [Quit: leaving]
Tuxist has quit [Remote host closed the connection]
<arturaz> hey guys. I want to teach to local folks by examples. Any links to small not-too-mathematical exercises for new language learners that I could demo in a workshop?
<banisterfiend> arturaz: game development in gosu
<banisterfiend> arturaz: libgosu.org
<arturaz> yeah, gamedev is usually too mathy
stephenjudkins has quit [Quit: stephenjudkins]
ephemerian has joined #ruby
<JustinCampbell> arturaz: what kind of things were you thinking?
<arturaz> something that shows off the main features of the language
<arturaz> really introductional
<arturaz> like "the number guessing game"
krawchyk has quit [Remote host closed the connection]
Guest10501 has quit [Quit: Guest10501]
<banisterfiend> arturaz: whatever you do, make them try stuff out in pry
<banisterfiend> :P
TheFuzzball has quit [Read error: Operation timed out]
erichmenge has joined #ruby
<JustinCampbell> arturaz: https://gist.github.com/1133719 ?
<JustinCampbell> or irb
jrajav has quit []
yalue has quit [Quit: Leaving]
Jdubds2 has quit []
bywam has left #ruby [#ruby]
<arturaz> JustinCampbell, yeah, something like that
<JustinCampbell> arturaz: why dont you just write one?
rakl has joined #ruby
TheFuzzball has joined #ruby
<arturaz> JustinCampbell, I'm trying to think of excercises :)
jenrzzz has quit [Ping timeout: 264 seconds]
<arturaz> (*) Lotto: Draw N different random numbers from the set 1..M.
<arturaz> like this ;)
<arturaz> and then we write the code
<JustinCampbell> i like starting with a bank Account class
<JustinCampbell> it shows off state and is easy to reason about with TDD
<JustinCampbell> "i withdraw x money, then i should have y left"
<JustinCampbell> "i withdraw more than i have, i should see a balancenotenough exception"
<JustinCampbell> stuff like that
mengu has quit [Read error: Connection reset by peer]
Araxia has joined #ruby
justinmcp has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Operation timed out]
justinmcp has joined #ruby
Innocentus has joined #ruby
Innocentus has left #ruby [#ruby]
awestroke has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
Mon_Ouie has joined #ruby
<samuel02> how can I make this prettier: https://gist.github.com/4020429 ?
<samuel02> I guess I could do one loop and then remove the last element in the if-statement but there must be a prettier solution :)
gosshedd has joined #ruby
justinmcp has quit [Ping timeout: 240 seconds]
<heftig> 0.upto(y - (x > 0 ? 0 : 1))
<banisterfiend> heftig: sup hefty boy
<heftig> nada
gosshedd has quit [Client Quit]
gosshedd has joined #ruby
<samuel02> heftig, nice! thanks!
<apeiros_> zaiste_: you can't
gosshedd has quit [Client Quit]
<apeiros_> you only know how many records are in a csv after you've parsed it
<apeiros_> number of newlines doesn't tell you how many records are in a csv either
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
<apeiros_> samuel02: a.concat([*0..(x > 0 ? 0 : 1)])
<apeiros_> not sure you consider that nicer
<apeiros_> whoops
<apeiros_> samuel02: a.concat([*0..(x > 0 ? y : y-1)])
<darkwing_duck> 1 : 0 ?
<darkwing_duck> ah
<apeiros_> personally I'd write it out into two lines for readablility. e.g. upper_end = x > 0 ? y : y-1; a.concat([*0..upper_end])
<samuel02> apeiros_, nice! I did't know about concat
<apeiros_> hm, given that I already use splat… might just as well use push actually
<apeiros_> a.push(*0..upper_end)
<apeiros_> yeah, definitively nicer. but concat is great if you already have an array which you want to append.
<samuel02> I see
<samuel02> is it <1.9.x ?
allsystemsarego has quit [Quit: Leaving]
<apeiros_> yes
<apeiros_> but you shouldn't be on <1.9.x
CaptainJet has joined #ruby
TheFuzzb_ has joined #ruby
bricker_ has joined #ruby
<apeiros_> hm, allsystemsarego has left?
<samuel02> apeiros_, well when working on legacy apps that's sometimes something one has to live with
<apeiros_> oh great
sheerun has joined #ruby
notVert has quit [Ping timeout: 252 seconds]
Monie[ip] has joined #ruby
<apeiros_> samuel02: I know. it's also one thing you should work on to no longer having to live with it
* apeiros_ has an app still on rails 1.2.3
<samuel02> yep
<apeiros_> but that one is running internally (i.e. security issues are a non-issue) and did not need a single change in the last 3 years
<samuel02> funny that's exactly what I'm working with
elico has quit [Quit: elico]
<samuel02> it has been lifted to 2.1 but was originally written in rails 1.0
<apeiros_> the moment I have to change something it'll move to rails 3.2 (or probably 4 by then…) and ruby 1.9 (or maybe even 2.0 by then)
stkowski has joined #ruby
<_alejandro> Hi, I'm building a ruby c-extension as a gem, and I can require it from irb, but not from a file in the test directory. Does anyone know what would cause this? I'm using bundler for both, so I thought that loadpaths should be taken care of
bricker has quit [Ping timeout: 268 seconds]
TheFuzzb_ is now known as TheFuzzball
Monie[ip] has quit [Changing host]
Monie[ip] has joined #ruby
net_mask has quit [Quit: net_mask]
<samuel02> apeiros_, I guess that would require a full rewrite though? I'm working for a client and they just want some "small" changes so I have to live with no rest, 1.8.7 and old, ugly code
banisterfiend has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
Guerrero has quit [Ping timeout: 276 seconds]
ltsstar has quit [Quit: ltsstar]
<apeiros_> no, it'd require quite a lot of rewriting, but mostly on the boilerplate/chrome
<apeiros_> the core could stay relatively unchanged.
AndChat| has joined #ruby
Monie[ip] has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
hotovson has quit [Remote host closed the connection]
elico has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
aldodelgado has joined #ruby
<samuel02> i see
Banistergalaxy has quit [Ping timeout: 260 seconds]
<JohnTeddy> http://pastebin.com/JXxmyRPE .. When I execute: 'std("unbiased", [27, 19, 25, 24, 30])' why does the last std.out say 'nilThe biased standard deviation is: 3.63318042491699'
<JohnTeddy> Where is that nil coming from?
baphled has joined #ruby
TheFuzzball has quit [Ping timeout: 244 seconds]
burgestrand has quit [Ping timeout: 260 seconds]
<samuel02> JohnTeddy, line 23
havenn has quit [Remote host closed the connection]
burgestrand1 has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
<samuel02> you print bia_nums which of course is nil
juarlex_ has joined #ruby
havenn has joined #ruby
freakazoid0223 has joined #ruby
ipoval has joined #ruby
<JohnTeddy> woops, that was easy
Zuperbot has quit [Quit: Linkinus - http://linkinus.com]
bradhe has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
<JohnTeddy> thanks
<samuel02> np
ipoval has left #ruby [#ruby]
c0rn has quit [Quit: Computer has gone to sleep.]
Monie[ip] has joined #ruby
<Xeago> given a hexadecimal concatenated string as "6c73d5240a948c86981bc294814d" (14 hex values), how do i get an array of the hex values?
burgestrand1 has quit [Read error: Connection reset by peer]
Cultofmetatron has quit [Remote host closed the connection]
<Xeago> .unpack(c*) gives 28 hex values
burgestrand has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
enderx86 has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
emergion has joined #ruby
c0rn has joined #ruby
manizzle has quit [Ping timeout: 246 seconds]
jrajav has joined #ruby
<heftig> Xeago: ["6c73d5240a948c86981bc294814d"].pack("H*").unpack("C*")
havenn has quit [Ping timeout: 240 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
<heftig> "6c73d5240a948c86981bc294814d".scan(/../).map { |x| x.to_i(16) }
dmerrick has quit [Quit: dmerrick]
alexim has quit [Ping timeout: 256 seconds]
shellox has quit [Quit: Computer has gone to sleep.]
<heftig> "6c73d5240a948c86981bc294814d".chars.each_slice(2).map { |x,y| (x+y).to_i(16) }
<heftig> i prefer the pack/unpack
apok_ has joined #ruby
osvico has joined #ruby
elico has quit [Quit: elico]
net_mask has joined #ruby
rburton- has joined #ruby
<heftig> begin a = "6c73d5240a948c86981bc294814d".to_i(16); b=[]; while a > 0; a,c = a.divmod(256); b.unshift c; end; b; end
<Xeago> no
<Xeago> I'll use pack and unpack!
<heftig> pick your poison :p
<Xeago> but their arguments are insane
justinmcp has joined #ruby
mnaser has joined #ruby
<mnaser> I'm using the sleepy_penguin implementation to get access to the EventFD API and I'm having problems closing an eventfd, when I just tried closing it, I got a kernel panic...
apok has quit [Ping timeout: 268 seconds]
apok_ is now known as apok
rburton- has quit [Client Quit]
invisime has quit [Quit: Leaving.]
jenrzzz has joined #ruby
tyfighter has joined #ruby
samuel02 has quit [Remote host closed the connection]
rburton- has joined #ruby
Serial_Killer_C has joined #ruby
tenmilestereo has quit [Quit: Leaving]
Monie[ip] has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
emergion has quit [Quit: Computer has gone to sleep.]
bwlang has left #ruby [#ruby]
pjb3 has quit [Quit: pjb3]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
TheFuzzball has quit [Read error: Operation timed out]
GranMal has quit [Quit: GranMal]
bricker_ has quit [Quit: leaving]
bricker has joined #ruby
<csmrfx> succinct way to test a object == this/that/these
<csmrfx> +?
fir_ed has joined #ruby
<apeiros_> che?
irkaclient has joined #ruby
jcaudle has quit [Quit: jcaudle]
<csmrfx> shorthand for ob == prop1 && obj == prop2 && obj == prop3
alexim has joined #ruby
linoj has quit [Quit: linoj]
awestroke has quit [Remote host closed the connection]
<apeiros_> does it have to be ==, or is eql? fine too?
nitti has joined #ruby
<csmrfx> perhaps [prop1, prop2, prop3].all? {|pr| ob = pr }
<erichmenge> csmrfx: = is assignment
<csmrfx> lol true
xorigin has quit [Quit: leaving]
csaunders has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
carlyle has quit [Remote host closed the connection]
Edward__ has joined #ruby
<apeiros_> csmrfx: and?
<csmrfx> bah, nothing
<Xeago> anyone here doing coursera crypto course?
jarred_ has joined #ruby
<Xeago> I need someone to discuss with
<Xeago> preferably on irc
<apeiros_> csmrfx: 23:06 apeiros_: does it have to be ==, or is eql? fine too?
jarred has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 245 seconds]
jarred_ is now known as jarred
greasegum has joined #ruby
<csmrfx> Hm, perhaps eql? is the "smart" == ?
caleb_io has quit [Quit: caleb_io]
arturaz has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
<apeiros_> no, eql? is similar to ==, but can differ.
nitti has joined #ruby
<apeiros_> 1.0 == 1 # => true, but 1.0.eql?(1) # => false
<apeiros_> hence the question
<Hanmac> [prop1, prop2, prop3].all?(&obj.method(:==))
jenrzzz has quit [Ping timeout: 260 seconds]
<csmrfx> ah no
<Xeago> .eql is usually the point of overriding right?
<csmrfx> cant test like that cause need to test class, <= 1, >= 0
<apeiros_> depends
jamesacarr has joined #ruby
<apeiros_> == is in terms of <=> if available
<apeiros_> eql? is in terms of hash-key
<apeiros_> IMO == should be the same as eql? if there's no <=>
mhag has joined #ruby
baphled has quit [Quit: Lost terminal]
rburton- has quit [Ping timeout: 244 seconds]
<jamesacarr> is there some way to use event machine to execute 3 things asynchronously and call something when done?
<JohnTeddy> Why doesn't Ruby's error output tell me what line the problem is on?
<tommylommykins> JohnTeddy: It does
GranMal has joined #ruby
<darkwing_duck> tommylommykins: For me, it doesn't when an error occurs in say "helpers/some_controller_helper.rb"
<apeiros_> JohnTeddy: if it doesn't, it means something suppresses it
<darkwing_duck> but wait, that's rails...
<apeiros_> i.e., a rescue somewhere in your code
bobu has joined #ruby
<darkwing_duck> which ruby version tommylommykins?
<tommylommykins> darkwing_duck: 1.9.3 on windows
zcreative has quit [Quit: zcreative]
<tommylommykins> http://pastebin.com/eTwi9auD :)
jenrzzz has joined #ruby
<tommylommykins> I know it's a trivial case, but that stack trace includes line numbers
fantazo has quit [Ping timeout: 260 seconds]
zcreative has joined #ruby
zcreative has quit [Client Quit]
carlyle has joined #ruby
anderse has quit [Quit: anderse]
carlyle has quit [Remote host closed the connection]
marius has joined #ruby
<darkwing_duck> is that contrived? I expect line one should be "irb(main):012:0> raise" based on what was returned
<darkwing_duck> by contrived... did you edit after pasting?
<apeiros_> darkwing_duck: hu?
<apeiros_> your exception happens on line 1 of your irb, exactly as the backtrace states: `from (irb):1`
<darkwing_duck> Sorry... too much coffee. tommylommykins : "from (irb):1" isn
<apeiros_> and (irb):1 was invoked from `from C:/Ruby193/bin/irb:12`
<darkwing_duck> isn't that the line number?... "from (irb):1"
tommyvyo has joined #ruby
<apeiros_> or well, @ tommylommykins, whoever of you is confused :-p
<tommylommykins> Ruby stack traces are upside down compared to some other languages
banseljaj is now known as imami|afk
sertaconay has quit [Read error: Connection reset by peer]
<tommylommykins> so the method where the error actually is is printed at the top, not the bottom
<darkwing_duck> tommylommykins: what do you mean?... The last execution is at the top... that's how stacks work
<darkwing_duck> when something gets added to a stack... it goes on top, right?
TheFuzzball has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<Muz> darkwing_duck: but when you use a terminal, it gets added to the perceived bottom!
alex__c2022 has joined #ruby
<apeiros_> oh dear
<darkwing_duck> Muz: depends on what you perceive as the bottom?
<apeiros_> that's not a discussion I want to be part of
Grieg has quit [Ping timeout: 268 seconds]
<Muz> The point is, its a terrible discussion that no one cares about. Go argue about top vs bottom posting on emails. It's about as fun.
sent_hil has left #ruby [#ruby]
<tommylommykins> Either way, you need to read it the right way up for Ruby, or you'll be looking in the wrong place for your errors...
nitti has quit [Ping timeout: 256 seconds]
<x82_nicole> Lol!
<darkwing_duck> what errors? ;)
<csmrfx> in Arabia, your stack is on the wrong side of the screen!!
moos3 has quit [Read error: Operation timed out]
TheFuzzball has quit [Read error: Operation timed out]
dakine has joined #ruby
<Muz> csmrfx: nonsense. It's printed in English, it's expected to be LTR. ¬_¬
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
pothibo has quit [Quit: pothibo]
<Muz> Just like when writing עברית
<csmrfx> In Putin's russia, the interpreter stacks YOU
<Muz> Look, it switched direction mid-sentence!
Guest61621 has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Ping timeout: 244 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
aldodelgado has quit [Quit: aldodelgado]
stephenjudkins has joined #ruby
TheFuzzball has joined #ruby
horofox has quit [Quit: horofox]
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
nitti has joined #ruby
nitti has quit [Remote host closed the connection]
darthdeus has quit [Ping timeout: 264 seconds]
manizzle has joined #ruby
rjsamson has joined #ruby
nitti has joined #ruby
k610 has joined #ruby
brycebudd has quit [Read error: Operation timed out]
horofox has joined #ruby
fixl has joined #ruby
<Spaceghostc2c> Muz: Lol. Rubyfag. :D
forced_request has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
rez- has quit [Quit: rez-]
k610 has quit [Ping timeout: 252 seconds]
jimeh has joined #ruby
bbttxu has quit [Ping timeout: 260 seconds]
baphled has joined #ruby
k610 has joined #ruby
nitti has quit [Remote host closed the connection]
<JohnTeddy> http://pastebin.com/TeSE4suZ ... I am messing up on line 14/15, what is the proper way to execute round_to() on decs? I turned an integer into a string... though I don't know the right way to do this.
alexim has quit [Quit: sleep]
ij has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
joshman_ has quit [Ping timeout: 276 seconds]
uris has quit [Quit: Leaving]
BrianJ has quit [Quit: BrianJ]
nitti_ has joined #ruby
sailias has quit [Quit: Leaving.]
bobu has quit [Remote host closed the connection]
<csmrfx> howcome a method in my module cant see Date? planet.rb:88:in `axis_tilt_effect': uninitialized constant Planet::Orbit::Date (NameError)
qwerxy has quit [Quit: offski]
irkaclient has quit [Quit: irkaclient]
k610 has quit [Ping timeout: 268 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
k610 has joined #ruby
rjsamson has quit [Remote host closed the connection]
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
rjsamson has joined #ruby
<csmrfx> just forgot to require it first 8)
awarner has joined #ruby
tchebb has quit [Quit: Leaving.]
tchebb has joined #ruby
burgestrand has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
lenovodroid has joined #ruby
mklappstuhl has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
reset has joined #ruby
rjsamson has quit [Ping timeout: 255 seconds]
k610 has joined #ruby
jenrzzz has joined #ruby
apeiros_ has quit [Remote host closed the connection]
berserkr has quit [Quit: Leaving.]
phelps has left #ruby ["WeeChat 0.3.8"]
k610 has quit [Ping timeout: 255 seconds]
k610 has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
TheFuzzball has quit [Read error: Connection reset by peer]
nari has joined #ruby
swex_ has quit [Ping timeout: 256 seconds]
jerius has quit [Ping timeout: 268 seconds]
nitti_ has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 256 seconds]
k610 has joined #ruby
chimkan has quit [Quit: chimkan]
c0rn has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
GranMal has quit [Quit: GranMal]
maletor has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
fantazo has joined #ruby
jarred has quit [Ping timeout: 260 seconds]
Spaceghost|cloud has quit [Remote host closed the connection]
Spaceghost|cloud has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
pkondzior_ has quit [Remote host closed the connection]
Araxia has quit [Ping timeout: 252 seconds]
jarred has joined #ruby
pkondzior_ has joined #ruby
``10`` has joined #ruby
maletor has joined #ruby
stopbit has quit [Quit: Leaving]
emmanuelux has quit [Remote host closed the connection]
<``10``> anyone have a solution for this: It seems your ruby installation is missing psych (for YAML output).
ctevie has quit [Ping timeout: 246 seconds]
<``10``> on centos, tried all the guides out there
<``10``> same issue reproduced with and without rvm
jimeh has quit [Quit: Computer has gone to sleep.]
reinaldob has joined #ruby
lenovodroid has quit [Remote host closed the connection]
lenovodroid has joined #ruby
<``10``> yaml-0.1.4 installed from source first, then a wipe and package installed with rvm
<``10``> no dice
ctevie has joined #ruby
average_drifter has quit [Ping timeout: 265 seconds]
baphled has quit [Quit: Lost terminal]
mhag has quit [Remote host closed the connection]
<``10``> smells like a 64-bit ruby not wanting a 32-bit yaml or vice versa, but don't know why that would be the case
<csmrfx> I think you should use some other yaml parser
osvico has joined #ruby
tbrock has joined #ruby
<csmrfx> (than psych)
lenovodroid has quit [Ping timeout: 260 seconds]
<``10``> csmrfx: recommendations?
carlyle has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
anachronistic has left #ruby [#ruby]
kirun has quit [Quit: Client exiting]
tehlulz has joined #ruby
<csmrfx> require "yaml"
v0n has quit [Quit: Leaving]
TheFuzzball has joined #ruby
<``10``> csmrfx: unfortunately, this is not my software, and it fucks the entire toolchain; even gem doesn't work
<``10``> that error is part of the output of `gem --version`
<tehlulz> hey guys!
ctevie has quit [Remote host closed the connection]
ctevie has joined #ruby
<shevy> ``10``: your nick is so annoying to type, anyone you must install libyaml
<``10``> shevy: try typing '`' and then pressing tab
<shevy> the source is http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz - I compile this via --prefix=/usr, then I compile ruby, and ruby picks it up
dmiller has joined #ruby
<``10``> and that is what i've been doing, with the same issue
<shevy> both psych and syck work here
<shevy> I don't use rvm however
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
<shevy> you could always compile ruby from source into a --prefix you won't need, just to see if it compiles at all. ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.bz2
<shevy> like --prefix=/opt/ruby, without rvm though
<darkwing_duck> ``10``: They're so close together, tab and `... did you plan that?
geggam has quit [Remote host closed the connection]
perun_ has quit [Ping timeout: 260 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
guns has joined #ruby
darkwing_duck has quit [Quit: return false]
<shevy> libyaml will install these library files: libyaml-0.so.2 libyaml-0.so.2.0.2 libyaml.a libyaml.la libyaml.so
medik has joined #ruby
jjang has joined #ruby
lenovodroid has joined #ruby
<``10``> ruby compiles fine; that's the ridiculous part
<``10``> and why it seems like a linker error
justinmcp has quit [Ping timeout: 256 seconds]
<``10``> i've even manually added the lib dir to LD_LIBRARY_PATH, and still the same
<``10``> going to try rubinius and see how that goes
<shevy> are you still using rvm
<``10``> tried it both ways
<shevy> and you extracted the ruby tarball fresh?
<``10``> going to go that way for rubinius since rvm is nice for automated deployments
<``10``> yeah fresh tarball
chimkan has joined #ruby
cousine has joined #ruby
<shevy> don't know why it does not work for you, for me that works.
justinmcp has joined #ruby
<``10``> yeah seems pretty strange to me too; others have had the issue and solved it as you said
<shevy> oh I had the same problem you had too before
banisterfiend has joined #ruby
perun_ has joined #ruby
Cultofmetatron has joined #ruby
coder_neo has quit [Quit: Leaving]
<shevy> it worked when I compiled libyaml, then extracted the tarball again (removing the extracted directory first), then compiled
Ry_ has quit [Ping timeout: 252 seconds]
khakimov has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
nemesit has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
Araxia has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Shamgar has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 264 seconds]
beiter has quit [Quit: beiter]
average_drifter has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
Cultofmetatron has joined #ruby
<X-Jester> ``10``: you get anywhere?
TheFuzzball has quit [Read error: Connection reset by peer]
<X-Jester> ``10``: i've been managing custom ruby 1.9.3 rpms for my project, have dealt with 32/64-bit linker issues
DrShoggoth has quit [Quit: Leaving]
instinkt has quit [Quit: leaving]
cakehero has quit [Quit: Computer has gone to sleep.]
Shamgar has joined #ruby
nari has quit [Ping timeout: 264 seconds]
rich__ has quit [Ping timeout: 244 seconds]
_alejandro has quit [Remote host closed the connection]
jamjam has joined #ruby
reinaldob has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
wizard` has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
wizard` has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<csmrfx> Is there a maximum cap function for floats?
<shevy> hmm when using File.readlines()
x82_nicole has quit [Quit: Computer has gone to sleep.]
<shevy> can it be that it ignores the encoding line?
<shevy> pipe.rb:19:in `gsub': invalid byte sequence in US-ASCII (ArgumentError)
<shevy> but all my .rb files have this as the second line:
<shevy> # Encoding: ASCII-8BIT
kpshek has quit []
perun_ has quit [Ping timeout: 248 seconds]
<csmrfx> yes
<csmrfx> it is not evaling those lines is it?
jaygen has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
dangerousdave has quit [Quit: Leaving...]
<shevy> hmmm strange
<shevy> it seems to think that it defaults to US-ASCII
<shevy> I fixed that with Encoding.default_external = 'ASCII-8BIT' but I dont feel this is a good fix, at least the scripts work again now though :(
h4mz1d has joined #ruby
<shevy> even gives me a warning lol
<shevy> pipe.rb:9: warning: setting Encoding.default_external
perun_ has joined #ruby
rjsamson has joined #ruby
banisterfiend has joined #ruby
Experium has joined #ruby
maxer has quit [Quit: maxer]
bigmcq77 has joined #ruby
justinmcp has quit [Remote host closed the connection]
<Experium> What makes Ruby so awesome ?
Xeago has quit [Remote host closed the connection]
kiyoura has joined #ruby
<shevy> Experium: that the code is beautiful
<Experium> in what way?
justinmcp has joined #ruby
carlyle has quit [Remote host closed the connection]
<shevy> Experium: you look at it, it makes sense, it is terse and succint
<Experium> ahh yes you are right about that :]
rubious has quit [Quit: Linkinus - http://linkinus.com]
<Experium> used Gosu and WxRuby
SCommette has quit [Quit: SCommette]
justinmc_ has joined #ruby