apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
<workmad3> offby1: it used to be allowable in ruby though... until we (by which I mean the core developers) realised it was silly to do that :)
<seanstickle> It used to just give a warning
<seanstickle> And by now we figured everyone was clued in about it
<seanstickle> So now it just errors
mickn has joined #ruby
<offby1> workmad3: I'm used to Scheme, Perl, Python, and C; I don't think any of those care about whitespace in that context :-(
<lupine_85> hmm, ruby 1.8.7 doesn't mind that space
<seanstickle> lupine_85: indeed, Ruby got better
<lupine_85> it's definitely a misfeature in 1.8, aye
Ethan has quit [Quit: bestest breastests]
ben_m has quit [Ping timeout: 246 seconds]
doingcoder has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
doingcoder has quit [Quit: Saliendo]
rudi_ has joined #ruby
minijupe has joined #ruby
ben_m has joined #ruby
ryan0x2 has joined #ruby
ryan0x2 has quit [Remote host closed the connection]
chico_chicote has quit [Read error: Connection reset by peer]
chico_chicote has joined #ruby
<jumpingcloud> i contacted the developer.
blischalk has joined #ruby
burgestrand has quit [Quit: Leaving.]
Sheehan has joined #ruby
wilmoore has quit [Ping timeout: 245 seconds]
jxf has quit [Read error: Operation timed out]
<shevy> 1.8 was cool. 1.9 is opinionated. encoding like a boss.
<shevy> else the bitch refuses to run :(
savage- has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
Pimentel-ES has quit [Ping timeout: 248 seconds]
savage- has quit [Remote host closed the connection]
<jumpingcloud> Thanks guys! i'm out!
atmosx has joined #ruby
jumpingcloud has quit [Remote host closed the connection]
niku4i has joined #ruby
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<offby1> shevy: actually, I don't mind the strictness so much as I mind the misleading error. If it had simply failed with "NO SPACE BEFORE LEFT-PAREN, BITCH" I'd have shrugged and said "fine, sure, whatever".
<offby1> ideally the error would be spoken in the voice of "Jesse Pinkman" :)
AndChat| has joined #ruby
<shevy> it's basically becoming a new language
Sheehan has quit [Quit: Sheehan]
akem has quit [Read error: Connection reset by peer]
niku4i has quit [Remote host closed the connection]
<AndChat|> Beware of shevy and his lies!
<shevy> it's true!
<AndChat|> Beware beware!
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<shevy> we have ... different warnings and errors, new foo: bla hash syntax, new -> operator... forced encoding... hmm not sure what else is different
<shevy> and there is still some way to go before we are at 2.0
<offby1> I encourage Matz to break backward-compatibility, if it leads to a better language, and if he can provide a reasonably easy way for developers to make old code conform
Ethan has joined #ruby
wpaulson has joined #ruby
mpereira has quit [Ping timeout: 255 seconds]
<shevy> matz is mostly doing mruby these days
<shevy> :D
<shevy> "https://github.com/mruby/mruby matz authored 8 hours ago"
<shevy> it'll become the better ruby one day... perhaps even 2014 already
keymone_ has joined #ruby
mpereira has joined #ruby
krz has joined #ruby
<offby1> how is it different from what we know and love?
keymone has quit [Ping timeout: 272 seconds]
keymone_ is now known as keymone
<krz> offby1: what?
<offby1> mruby
<krz> sorry came in late
<offby1> how is mruby different from what we know and love?
<shevy> offby1 not sure yet. it'll be a lot faster though
savage- has joined #ruby
<shevy> if you use mirb from mruby right now, it does not even have load() and require() yet :\
<offby1> that doesn't really narrow it down much :-)
<shevy> it does a lot
<shevy> right now NOTHING really works
<shevy> :-)
<wpaulson> Embeddable in other apps seem a primary goal
<offby1> huh
savage- has quit [Remote host closed the connection]
<shevy> die, lua, die!
thecreators has quit [Quit: thecreators]
<shevy> perhaps mruby can generate C code
kevinbond has quit [Quit: kevinbond]
mockra has joined #ruby
noesis82_ has quit [Ping timeout: 246 seconds]
dv_ has quit [Remote host closed the connection]
moshee has joined #ruby
b26 has quit [Read error: Connection reset by peer]
noesis82 has joined #ruby
freezey has joined #ruby
<wpaulson> is there a particular problem with lua? or it's just another competing language?
mockra has quit [Remote host closed the connection]
<seanstickle> wpaulson: it's no ruby
<seanstickle> wpaulson: other than that, it's quite nice
wilmoore has joined #ruby
cj__ has joined #ruby
wilmoore has quit [Ping timeout: 250 seconds]
<wpaulson> fairly dumb question: what 1.9 release is suitable for real deployment today?
cj__ has left #ruby [#ruby]
<wpaulson> got an application that's been running on 1.9.1 for a more than a year, and ran into a bug, so want to move to later 1.9.
<seanstickle> I've been running 1.9.3 for awhile
<seanstickle> Works fine
mikepack has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 276 seconds]
<wpaulson> seanstickle: thanks, haven't heard anything bad about 1.9.3
freeayu has joined #ruby
<wpaulson> (or 1.9.2 either)
mikepack has quit [Remote host closed the connection]
uc has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
iocor has quit [Quit: Computer has gone to sleep.]
atmosx has joined #ruby
mnaser has joined #ruby
alindeman has quit [Ping timeout: 240 seconds]
RainbowDashh has joined #ruby
yoklov has quit [Quit: bye!]
igaiga has joined #ruby
niku4i has joined #ruby
westoque has joined #ruby
alindeman has joined #ruby
alindeman has quit [Client Quit]
freezey has quit [Quit: freezey]
RainbowDashh has quit [Ping timeout: 252 seconds]
<westoque> How do I make the output continuously show up in my ruby script when I do `IO.popen "tail -f FILE"`? Thanks
mnaser has quit [Quit: Computer has gone to sleep.]
niku4i has quit [Remote host closed the connection]
uc_ has joined #ruby
uc has quit [Ping timeout: 240 seconds]
alindeman has joined #ruby
Nanuq has quit [Quit: leaving]
cherrypeel has quit [Ping timeout: 255 seconds]
mickn has quit [Quit: Leaving]
<wpaulson> you need some sort of loop repeating reads from the pipe
baroquebobcat has joined #ruby
andrewhl has quit [Remote host closed the connection]
<wpaulson> and some way of terminating - tail -f will never stop on its own
<westoque> @wpaulson Thanks! I
peterhil has quit [Ping timeout: 248 seconds]
<Paradox> heh, the things you can do with ruby: http://pastie.org/private/dtoegc0lpwjzzrcwh6bmw
<Paradox> few lines of eventmachine connecting to my bouncer
rudi_ has quit [Read error: Connection timed out]
Hanmac1 has joined #ruby
rudi_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
mnaser has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ipoval has quit [Quit: ipoval]
RainbowDashh has joined #ruby
antonishen has joined #ruby
baroquebobcat has joined #ruby
havenn has joined #ruby
Nanuq has joined #ruby
wilmoore has joined #ruby
Pimentel-ES has joined #ruby
k_89 has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Client Quit]
andrewhl has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
Bosma has joined #ruby
AndChat| has quit [Ping timeout: 265 seconds]
havenn has quit [Ping timeout: 245 seconds]
stephenjudkins has quit [Ping timeout: 250 seconds]
<RubyPanther> offby1: mRuby is different in 2 primary ways, one is that it is an embeddable ruby that is just a collection of .h files, you can choose which parts you do or don't want. The other is that it doesn't have threads, the internationalization stuff, or the larger stdlib things
igaiga has quit [Remote host closed the connection]
<offby1> RubyPanther: is it intended to ultimately replace ruby, or instead to evolve in parallel
<offby1> ?
<RubyPanther> parallel
Pimentel-ES has quit [Quit: Pimentel-ES]
antonishen has quit []
prometheus has quit [Ping timeout: 250 seconds]
stephenjudkins has joined #ruby
<RubyPanther> offby1: it is based on RiteVM which is a register-based virtual machine that Matz originally developed as the replacement for 1.8, but the YARV approach showed more promise for regular apps so that was adopted for Ruby 1.9/2.0
rudi_ has quit [Read error: Connection timed out]
<offby1> you're beyond my pay grade now :)
<RubyPanther> It is great because you can program normally in Ruby, but if you need to use C no problem, and actually you could also write RiteVM bytecode directly as a sort of OO ASM, since it is register based
wilmoore has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
chico_chicote has quit [Ping timeout: 260 seconds]
wilmoore has joined #ruby
rudi_ has joined #ruby
murgle has joined #ruby
umttumt has joined #ruby
monkegjinni has quit [Remote host closed the connection]
banisterfiend has joined #ruby
blischalk has quit [Quit: blischalk]
Banistergalaxy has quit [Ping timeout: 255 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
kevinbond has joined #ruby
nari has joined #ruby
linoj has quit [Quit: linoj]
cherrypeel has joined #ruby
hunglin has joined #ruby
sepp2k has joined #ruby
wilmoore has quit [Ping timeout: 248 seconds]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
ringotwo has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
macmartine has joined #ruby
werdnativ has joined #ruby
macmartine has quit [Client Quit]
kevinbond has quit [Quit: kevinbond]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
hakunin has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
prometheus has joined #ruby
macmartine has joined #ruby
gtuckerkellogg has joined #ruby
exchgr has joined #ruby
mockra has joined #ruby
exchgr is now known as EXCHGR
rudi_ is now known as rgrinberg
minijupe has quit [Quit: minijupe]
freezey has joined #ruby
westoque has quit [Quit: westoque]
Enekoos has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 265 seconds]
tris has joined #ruby
ePirat- has quit [Ping timeout: 260 seconds]
Guest99926 has joined #ruby
mayankkohaley has quit [Ping timeout: 244 seconds]
banisterfiend` has joined #ruby
banisterfiend has quit [Ping timeout: 248 seconds]
davidpk has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mayankkohaley has joined #ruby
freeayu has joined #ruby
sbanwart has quit [Ping timeout: 264 seconds]
td123 has joined #ruby
wilmoore has joined #ruby
kaneda has joined #ruby
kaneda is now known as Guest43857
rippa has joined #ruby
Spooner has quit [Ping timeout: 260 seconds]
blischalk has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
wilmoore has quit [Ping timeout: 246 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
macmartine_ has joined #ruby
macmartine has quit [Ping timeout: 245 seconds]
macmartine_ is now known as macmartine
atmosx has joined #ruby
noganex has quit [Ping timeout: 260 seconds]
frishi has quit [Quit: Leaving...]
noganex has joined #ruby
frishi has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
ramblex has quit [Quit: ramblex]
freeayu has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
banisterfiend` has quit [Ping timeout: 260 seconds]
amh345 has left #ruby [#ruby]
mikepack has joined #ruby
macmartine has quit [Quit: macmartine]
liluo has joined #ruby
hakunin has joined #ruby
alindeman has quit [Ping timeout: 240 seconds]
TheHunter_1039 has quit [Quit: TheHunter_1039]
alindeman has joined #ruby
gtuckerkellogg has quit [Ping timeout: 260 seconds]
blischalk has quit [Quit: blischalk]
S1kx has quit [Ping timeout: 245 seconds]
yankhates has joined #ruby
nari has quit [Ping timeout: 248 seconds]
frishi has quit [Quit: Leaving...]
wilmoore has joined #ruby
wilmoore has quit [Remote host closed the connection]
raja has joined #ruby
raja is now known as Guest63964
havenn has joined #ruby
sam1131011 has joined #ruby
ben_m has quit [Quit: Leaving]
tyman has joined #ruby
nari has joined #ruby
jamesaxl has quit [Read error: Operation timed out]
cj__ has joined #ruby
mockra has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
PatrickRobotham has joined #ruby
PatrickRobotham has left #ruby [#ruby]
wookiehangover has joined #ruby
kelseyhightower_ has joined #ruby
havenn has quit [Remote host closed the connection]
kelseyhightower_ has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
albemuth has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
ipoval has joined #ruby
Bosma has quit [Quit: leaving]
mnaser has quit [Remote host closed the connection]
freeayu has joined #ruby
jxf has joined #ruby
Ttech has quit [Quit: Your nick was overruled.]
mnaser has joined #ruby
mnaser has quit [Client Quit]
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
jamesaxl has joined #ruby
banisterfiend has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
yankhates has quit [Ping timeout: 250 seconds]
mockra has joined #ruby
xubuntu5 has joined #ruby
<xubuntu5> does ruby support gtk2/3?
Beoran_ has quit [Ping timeout: 248 seconds]
mockra has quit [Remote host closed the connection]
Nanuq has quit [Quit: leaving]
tyman has quit [Read error: Connection reset by peer]
EXCHGR is now known as exchgr
<xubuntu5> does ruby support gtk2/3?
circlicious has joined #ruby
Adran has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 246 seconds]
<sepp2k> xubuntu5: Ruby supports C extensions. And there are ruby bindings for Gtk2. Not Gtk3 though as far as I am aware.
cj__ has quit [Quit: cj__]
<circlicious> i install a ruby gem in a custom path, but its not loadable via require 'gem_name' , i need some help badly
<banisterfiend> sepp2k: sup seppdogg, what's up, what's your go-to language these days
rippa has quit [Ping timeout: 265 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
<banisterfiend> sepp2k: which language do you use in your regular programming?
Chryson has joined #ruby
Nanuq has joined #ruby
<sepp2k> banisterfiend: Ruby at work, whatever I feel like at the moment for everything else.
vlad_starkov has quit [Remote host closed the connection]
<banisterfiend> sepp2k: cool i'd just assumed ruby was a hobby language for u
Beoran_ has joined #ruby
<sepp2k> It used to be.
mockra has joined #ruby
fantazo has joined #ruby
res0nat0r has joined #ruby
hunglin has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 260 seconds]
kill-9_ has quit [Ping timeout: 246 seconds]
<xubuntu5> thanks sepp2k
<sepp2k> np
maletor has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<xubuntu5> sepp2k favorite language ruby?
yannis has quit [Read error: Operation timed out]
<sepp2k> I don't know. Maybe. I think my favourite language just doesn't exist yet ;-)
<banisterfiend> xubuntu5: sepp2k is a man of many mistresses, i'm sure he lovse them all equally
<xubuntu5> hahahaha
exchgr has quit [Quit: exchgr]
<xubuntu5> both of those answers are great
ryanf_ has joined #ruby
<banisterfiend> sepp2k: what features do u wish ruby had
m0dmd has joined #ruby
<m0dmd> anyone would happen to know why after I install haml or shotgun within MacOSX why they return command not found when run through terminal? Even after adding this path -> /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems into my $PATH?
mjb2k has quit [Quit: Leaving]
nicolas_ has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
tk___ has joined #ruby
ananthakumaran has joined #ruby
nicolas_ is now known as jellywheel
<sepp2k> banisterfiend: That's hard to say. In general most of the features that are cool about other languages would be hard or impossible to add to Ruby without giving something else up. But as one example better namespace handling should be possible without any significant downsides.
sailias has joined #ruby
jellywheel has left #ruby [#ruby]
jellywheel has joined #ruby
pecor has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby
yugui_zzz is now known as yugui
baroquebobcat has joined #ruby
uc_ has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
iosctr has joined #ruby
uc has joined #ruby
grantbdev has joined #ruby
perryh is now known as perryh_away
td123 has quit [Quit: WeeChat 0.3.8]
manizzle has joined #ruby
pecor has quit [Remote host closed the connection]
res0nat0r has quit [Ping timeout: 260 seconds]
pecor has joined #ruby
oznek has quit [Quit: Saindo]
pecor has quit [Remote host closed the connection]
perryh_away is now known as perryh
manizzle has quit [Client Quit]
tyman has joined #ruby
res0nat0r has joined #ruby
RainbowDashh has joined #ruby
pecor has joined #ruby
mutandi has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
tewecske has joined #ruby
res0nat0r has quit [Client Quit]
ryanf_ has quit [Quit: broken pipes |||]
wookiehangover has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
pecor has quit [Remote host closed the connection]
xubuntu5 has quit [Ping timeout: 260 seconds]
wookiehangover_ has joined #ruby
wookiehangover_ is now known as wookiehangover
blownapart has joined #ruby
Synthead has joined #ruby
macmartine has quit [Quit: macmartine]
mikeycgto has quit [Remote host closed the connection]
Weems has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
baroquebobcat has joined #ruby
mikepack has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
AlbireoX has quit [Read error: Connection reset by peer]
liluo has quit [Remote host closed the connection]
macmartine has joined #ruby
Guest63964 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
baroquebobcat has quit [Quit: baroquebobcat]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
bradhe_ has quit []
savage- has joined #ruby
jgrevich has quit [Quit: jgrevich]
bradhe has joined #ruby
CheeToS has joined #ruby
Weems has joined #ruby
mockra has joined #ruby
AlbireoX has joined #ruby
ananthakumaran has joined #ruby
uc has quit [Ping timeout: 252 seconds]
uc has joined #ruby
uc has quit [Remote host closed the connection]
AllanMacGregor has quit [Remote host closed the connection]
minijupe has joined #ruby
savage- has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
tiripamwe has joined #ruby
yugui is now known as yugui_zzz
umttumt has joined #ruby
blownapart has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
blownapart has joined #ruby
blownapart has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
atmosx has quit [Ping timeout: 276 seconds]
yannis has joined #ruby
freeayu has quit [Quit: 离开]
atmosx has joined #ruby
yannis has quit [Read error: Connection reset by peer]
grantbdev has quit [Quit: Leaving]
mucker has joined #ruby
minijupe has quit [Quit: minijupe]
m0dmd has quit [Quit: m0dmd]
mockra has quit [Remote host closed the connection]
krusty_ar has quit [Read error: Operation timed out]
ccovey has quit [Read error: Connection reset by peer]
mjb2k has joined #ruby
uc has joined #ruby
charliesome has joined #ruby
protomozoa has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
Utkarsh has quit [Remote host closed the connection]
ChampS666 has joined #ruby
macmartine has quit [Quit: macmartine]
werdnativ has quit [Quit: werdnativ]
beilabs has quit [Ping timeout: 248 seconds]
beilabs_ has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
freezey has quit [Quit: freezey]
jianxioy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ebanoid has joined #ruby
maletor has joined #ruby
savage- has joined #ruby
beilabs has joined #ruby
beilabs_ has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
bubu\a has quit [Ping timeout: 240 seconds]
jianxioy has quit [Quit: leaving]
jianxioy has joined #ruby
jianxioy has quit [Client Quit]
Doppp has joined #ruby
Doppp has quit [Client Quit]
schovi has joined #ruby
k_89 has joined #ruby
Doppp has joined #ruby
Doppp has quit [Client Quit]
Doppp has joined #ruby
Doppp has quit [Client Quit]
Doppp has joined #ruby
Doppp has quit [Client Quit]
jianxioy has joined #ruby
andrewhl has quit [Remote host closed the connection]
jianxioy has quit [Changing host]
jianxioy has joined #ruby
cherrypeel has quit [Quit: Leaving]
mayankkohaley has quit [Ping timeout: 246 seconds]
shadoi has quit [Quit: Leaving.]
jianxioy has quit [Changing host]
jianxioy has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
graspee has joined #ruby
jianxioy has quit [Quit: leaving]
Markvilla has joined #ruby
Markvilla has quit [Client Quit]
mayankkohaley has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
jianxioy has joined #ruby
imami|afk is now known as banseljaj
perryh is now known as perryh_away
graspee has quit [Quit: leaving]
ananthakumaran has joined #ruby
graspee has joined #ruby
jianxioy has quit [Quit: leaving]
mucker has quit [Read error: Operation timed out]
QaDeS has joined #ruby
Jackneill has joined #ruby
Niamkik has joined #ruby
neku has joined #ruby
perryh_away is now known as perryh
yonggu_ has joined #ruby
perryh is now known as perryh_away
Vert has quit [Ping timeout: 252 seconds]
Haydos has joined #ruby
mutandi has left #ruby [#ruby]
richo has joined #ruby
richo has quit [Changing host]
richo has joined #ruby
<circlicious> i need some help - http://stackoverflow.com/q/11175659/1437328
<richo> This will sound ridiculous, but is there an accepted idiom for outputting the output of something (with \n for newlines) into an html page, that will format correctly without using active*?
<Paradox> richo, you could use tilt or something
<Paradox> but i dont really know of anything idiomatic
<Paradox> that said
<Paradox> im by no means an expert
<richo> I can gsub("\n", "<br>") but that seems amazingly horrible
<richo> I'll look into tilt
<Paradox> tilt is just a template abstraction layer
<Paradox> lets you use haml/markdown/erb/liquid/etc
<Paradox> sinatra uses it
<richo> Oh. I'm already using sinatra. my app is running some shell commands, and I just want to print the output in the browser
<Paradox> oh just pass them as locals to your app
<Paradox> ie in the controller haml :herp, locals: adfjasdf
<Paradox> or something like htat
samfisher has joined #ruby
<regularfry> richo: <pre><code>...</code></pre> is what's in my muscle memory for that job
<samfisher> hi. is it advisable to learn ruby as the first language? i need to dev some win apps, linux system management scripts and why not, some webapps
<samfisher> and don't want to learn C, perl and php
<Paradox> samfisher, yup
<regularfry> samfisher: depends on the win apps you want to build, I'm still not sure what the best gui library is there
<Paradox> macs have Macruby
davidw has joined #ruby
<samfisher> i don't really need gui. I need to copy files from win systems to a central server
<regularfry> in that case, it'll be fine :-)
davidw is now known as Guest41099
Haydos has left #ruby [#ruby]
Shoobdidoo has joined #ruby
<richo> regularfry: I found a css style that does what I'm after, seems like the best approach
igaiga has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
<Hanmac> richo imo dont use <br> !!! <br /> is better
<regularfry> Hanmac: depends on the dotype
<regularfry> doctype, even
nilg has joined #ruby
<Hanmac> it may work but is very ugly ... i think the same guys open a <p> tag but dont close it
Shoobdidoo has quit [Quit: Verlassend]
niklasb has joined #ruby
<regularfry> Again, whether that's actually wrong depends on the doctype
<regularfry> HTML-wise, you're allowed not to close a <p>
<regularfry> You're not in XHTML.
<regularfry> If you don't know the doctype you're writing... well, you should :-)
rakm has quit [Quit: Computer has gone to sleep.]
<Hanmac> yeah and <basefont> is allowed too :P (such a shit) ... i write my websites xhtml conform ... then it works in html too
* regularfry prefers xhtml as well
<regularfry> but I suspect knowing html5 is only going to get more important
tiripamwe_ has joined #ruby
tiripamwe has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
<Paradox> technically, in html 5
<Paradox> you dont need <html>, <head>, or <body>
tyman has quit [Ping timeout: 245 seconds]
<Hanmac> ok you dont "need" it, but its better with
<Paradox> yup
<Paradox> maybe in 5 years i wont write em
<Paradox> but you can sure as fuck bet my layout.haml is going to have %html and %head and %body
uc has quit [Ping timeout: 245 seconds]
uc has joined #ruby
<richo> Hanmac: I avoided the problem
<richo> white-space: pre-wrap;
<Hanmac> CSS rocks :P
Banistergalaxy has quit [Ping timeout: 264 seconds]
dv_ has joined #ruby
tyman has joined #ruby
<samfisher> Oh, forgot to ask something: can you compile ruby scripts into .exe?
ananthakumaran has quit [Quit: Leaving.]
<Hanmac> samfisher look for ORCA
neku is now known as neku|away
<samfisher> thanks
samfisher has quit [Quit: exit error code 434]
williamherry has joined #ruby
yugui_zzz is now known as yugui
Guest41099 has quit [Ping timeout: 260 seconds]
framling has quit [Read error: Connection reset by peer]
gtuckerkellogg has joined #ruby
Sheehan has joined #ruby
Banistergalaxy has joined #ruby
ChampS666 has quit [Ping timeout: 246 seconds]
charliesome has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
<shevy> what is <basefont>?
<Hanmac> very outdated pre-HTML4 stuff ... it was depcated even in html4
yugui is now known as yugui_zzz
Kwpolska has quit [Ping timeout: 265 seconds]
qwerxy has joined #ruby
savage- has quit [Remote host closed the connection]
eurbach has joined #ruby
Sheehan has quit [Quit: Sheehan]
igotnolegs has quit [Quit: Computer has gone to sleep.]
jianxioy has joined #ruby
jianxioy has quit [Client Quit]
jianxioy has joined #ruby
ryanf has quit [Ping timeout: 260 seconds]
jellywheel has quit [Quit: jellywheel]
tyman has quit [Quit: tyman]
yiibu has joined #ruby
protomozoa has quit [Read error: Connection reset by peer]
yiibu is now known as protomozoa
uc has quit [Ping timeout: 240 seconds]
Synthead has quit [Ping timeout: 244 seconds]
uc has joined #ruby
vampirnata has joined #ruby
k_89 has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
niku4i has joined #ruby
zomgbie has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
niku4i has quit [Ping timeout: 248 seconds]
pk1001100011 has joined #ruby
monkegjinni has joined #ruby
<shevy> cool
<shevy> :)
dr0p has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
thecreators has joined #ruby
henn1nk has joined #ruby
<henn1nk> MyFile.prawn has the content pdf.text "foo" etc... How can i load the content inline? Prawn::Document.generate("foo.pdf") do |pdf| load MyPrawnFileContent end ?
maletor has quit [Quit: Computer has gone to sleep.]
manizzle has joined #ruby
maletor has joined #ruby
dr0p has quit [Remote host closed the connection]
Foxandxss has joined #ruby
ChampS666 has joined #ruby
zomgbie has joined #ruby
Banistergalaxy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 240 seconds]
neku|away is now known as neku
Drewch has quit [Ping timeout: 276 seconds]
<xbayrockx> If i were to research and write an article on a field within information security - which topic would you find most interesting or beneficial to read?
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<graspee> the security of ruby, obviously
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
<bnagy> what kind of article?
<richo> xbayrockx: generally speaking, the ones noone has thought of yet
<bnagy> as in a formal paper or a blog post or a phrack article, or...
<richo> But offhand, a new and interesting publication on how spectacularly quantum computing is going to screw asymettric key cryptography
<bnagy> yeah don't do that
<bnagy> a) it's not new b) it's not interesting c) it's not
tiripamwe_ has quit [Ping timeout: 245 seconds]
<richo> I know. But what's out there makes for interesting reading
<richo> realistically asking any group of people what to write about is totally moot
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<bnagy> some of it, but I'm not sure that yet another lay opinion is going to add much
<bnagy> especially asking and then wandering off
<xbayrockx> blog post type
prometheus has quit [Ping timeout: 244 seconds]
<richo> oh
<richo> urgh
<richo> If I can make one request, /please/ don't finish your blog post; decalre it a masterpiece and then submit it to HN
<henn1nk> http://ix.io/2AZ ... mailcatcher doesn't start, why?
<richo> Nothing pisses me off more than people who do that
ipoval has quit [Ping timeout: 252 seconds]
<graspee> not even paedophiles?
<graspee> or murderers?
<graspee> or rapists?
charliesome has joined #ruby
<richo> Not unless they're one of the above who also submits their own posts to HN
<bnagy> xbayrockx: anything in infosec, or specific to ruby? In any case, write what you know.
banseljaj is now known as imami|afk
<bnagy> ie find a field in which you know something about building stuff, and then look at breaking it
neku is now known as neku|away
<circlicious> i need some help - http://stackoverflow.com/q/11175659/1437328
<bnagy> circlicious: two people already gave you an answer, how many more do you need?
<circlicious> bnagy: checked my comments ?
<bnagy> Yep.
<circlicious> also the answer by Amir does not work actually
<bnagy> you're not asking for a solution, you're asking 'why doesn't this work'
<circlicious> especially when the gem itself has dependencies that require other gems
<bnagy> basically, don't install gems in weird places
AllanMacGregor has joined #ruby
<bnagy> well if the dependencies are in the standard location that should just work
<circlicious> depenencies are also in the non-standard location
<bnagy> :)
<circlicious> but it should work no ?
<circlicious> i am adding the path to GEM_PATHs
<bnagy> "Doctor, my arm hurts when I move it like this"
<richo> circlicious: I answered the question, but by and large harassing people for help is very frowned upon
<circlicious> i harrased ? :O
Kwpolska has joined #ruby
yugui_zzz is now known as yugui
<circlicious> richo: thanks, i will use bundler and when everything works fine will mark that as correct answer :) but i did'nt harrass anyone :S
<sepp2k> circlicious: You asked more than once. By IRC standards that's harassment. Technically we could sue you.
<circlicious> my god, did'nt know that
<vampirnata> Hello all
<vampirnata> I could use some advice: I'm starting a new job next month where I will be requiring to do some network scripting. I'm very familiar with networking in general but never done any scripting. Is Ruby a good choice? Or should I rather go with something else?
<graspee> won't they prescribe the scripting language they want you to use?
<vampirnata> No, they said that it's my choice.
<bnagy> how lowlevel do you want to get?
<vampirnata> They don't have a "toolbox" yet written and I imagine that is what I will be starting to develop
<bnagy> I mean it has all the basic primitives, but things like libdnet etc were pretty painful last time I tried
<vampirnata> It's an ISP providing 100mbit pipes to companies and VPNs
<bnagy> uh... and what are you scripting?
<bnagy> like, I wouldn't want to put ruby in the middle of too many 100Mbit streams, for example
A124 has joined #ruby
<vampirnata> Packet analysis mostly I imagine
<vampirnata> Reports, etc
A124 has left #ruby [#ruby]
<banisterfiend> vampirnata: you dont nkow any scripting languages already? you have to learn the langeuage you'll be using from scratch? :P are yo sure youer' the right guy for the job? hehe
<bnagy> I'd look to wrap other stuff, and ruby is good for that
<vampirnata> banisterfiend: the job is not for a scripter(programmer)
<vampirnata> it's a sys admin 75%
<banisterfiend> oh ok
<banisterfiend> cool
<vampirnata> but I want to be prepared :)
<vampirnata> Trying to be proactive
<bnagy> I've done stuff like munging wireshark xml dumps etc
<bnagy> and as a general shell scripting language it's as goodf as anything I'd guess
<vampirnata> bnagy: okay, sounds good. Since it's not very low level I can obviously switch to something more specific in the future. I just wanted to know if Ruby would be a good starting point.
<bnagy> for quick and dirty stuff I would also consider python
<vampirnata> I am really like the Ruby syntax. Very readable.
<Hanmac> then you did not nee my ruby code :P
<vampirnata> liking*
<bnagy> we don't really have a scapy equivalent, afaik
<bnagy> although it's kind of horrible (scapy)
<vampirnata> Hanmac: do you mangle your ruby code? :)
<vampirnata> Hanmac - Making Ruby more like Perl since 2001! ;p
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
freeayu has joined #ruby
yonggu has left #ruby [#ruby]
<Hanmac> in dont think my ruby code would work like this in perl :P
neku|away is now known as neku
protomozoa has quit [Quit: protomozoa]
Spooner has joined #ruby
abra has joined #ruby
qwerxy has quit [Quit: offski]
zomgbie has quit [Ping timeout: 255 seconds]
<shevy> :)
akem has quit [Read error: Connection timed out]
bosphorus has quit [Remote host closed the connection]
JStoker has quit [Excess Flood]
ananthakumaran has quit [Ping timeout: 244 seconds]
<richo> Ruby is concerningly like perl
<graspee> yeah it's a programming language
<daed> yeah. it has functions and stuff.
<richo> actually, it doesn't
<richo> ruby doesn't have first class functions
<daed> ...
<richo> but that's purely semantic
akem has joined #ruby
<daed> and this is where i back away from this discussion
<daed> no good can come from this
<richo> agreed
<richo> the "like perl" remark was more about the number of magic variables and syntaxes though
JStoker has joined #ruby
<Spooner> richo Yeah, the magic is horrible. I wish they'd made the English names of them standard at least :(
<graspee> in what sense does ruby not have first class functions?
<richo> in the sense that you can't fetch a method and bind it to a variable, you can only wrap it in a Proc and assign that
<graspee> hmm
<richo> I guess you could argue that the Proc is a first class callable in the purist sense of the word, but in real world terms, the language doesn't
<Hanmac> richo? are you sure? i can get a method from Object class, and then bind it to an other object
<richo> Hanmac: example code?
<Spooner> Yes, you can use method(:frog), which gives you something that is callable just like a proc.
<richo> The only syntax I'm aware of is Object#method which simply wraps that __send__() in a proc under the hood
<Hanmac> array = []: Object.method(:to_s).bind(array).call
<Spooner> Oh right, but that is transparent (implementation detail) so I'm not sure that is 100% relevant.
<richo> The argument relates more to the idioms of writing ruby code, rather than the ruby language itself. I'm also not suggesting it's necessarily a deficit
<richo> in any case, the output of Object.method(:foo) isn't "the method foo", it's still a Proc which wraps Object#foo
<banisterfiend> richo: not actually a proc, but proc-lie :P
<banisterfiend> proc-like
<richo> Procish
<richo> yeah
<richo> :)
<graspee> i wouldn't say ruby "doesn't have first class functions" though
<graspee> that would give people the impression there was no support for functional programming paradigms in ruby
RainbowDashh has joined #ruby
<banisterfiend> RainbowDashh: are you a brony
<daed> going to assume yes on that one
<Hanmac> ruby is not functional ... it can only looks like that :D
Axsuul has quit [Ping timeout: 245 seconds]
<richo> Even I'm not insane enough to get into the "FP in ruby" debate
<richo> in any case, less talking about ruby more writing ruby. Danke guys
<Tasser> graspee, depends... object-oriented is a subset of functional anyway, but the block iterators kinda remind you of functional
<banisterfiend> richo: you're richoH ?
<richo> banisterfiend: I am. or was.
<richo> my GH username is actually richo now
<richo> I presumed you were banister?
<banisterfiend> richo: cool, seen you on a bunch of pry-related threads
<banisterfiend> yeah
murgle has quit [Ping timeout: 255 seconds]
murgle has joined #ruby
<banisterfiend> i have a 100 diff nicknames depending on what degree of anonymity i want to keep (channels are logged these days)
<richo> I'm a bit the same
gtuckerkellogg has joined #ruby
<richo> Thanks for pry by the way, I use it more and more these days
<banisterfiend> richo: np
h4mz1d has joined #ruby
<banisterfiend> #pry exists btw if u ever wanna stop by
<banisterfiend> dead atm though
<richo> ah awesome, saving it in my channel list now
bbuegler1 has joined #ruby
ben_m has joined #ruby
bbuegler1 has quit [Client Quit]
CheeToS has quit [Ping timeout: 272 seconds]
igaiga has quit [Remote host closed the connection]
cantonic has joined #ruby
bier has quit [Ping timeout: 248 seconds]
h4mz1d has quit [Ping timeout: 260 seconds]
tiripamwe has joined #ruby
yugui is now known as yugui_zzz
iocor has joined #ruby
bbuegler1 has joined #ruby
dr0p has joined #ruby
niku4i has joined #ruby
jonathanwallace has joined #ruby
dekroning has joined #ruby
fantazo has quit [Remote host closed the connection]
bier has joined #ruby
qwerxy has joined #ruby
dekronin1 has joined #ruby
<Tasser> http://rubular.com/r/bD7zMlPRfN how do I make the second parenthesis greedy?
dekroning has quit [Read error: Operation timed out]
<apeiros_> it already is
<apeiros_> the problem is that the first is too
<Tasser> ... fuck
<apeiros_> (.*?)(u|au)([^aieuo]*) - but be careful with such expressions
<Tasser> why?
<apeiros_> they can explode
<apeiros_> backtrack explosion
<shevy> let's explode apeiros_!
<Tasser> atm, they break other code
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
dekronin1 has quit [Ping timeout: 244 seconds]
dekroning has joined #ruby
<Tasser> apeiros_, greedy, one test doesn't pass. non-greedy, two test don't pass
Banistergalaxy has joined #ruby
<Tasser> ah well, happy hacking :-) works
ananthakumaran has joined #ruby
xbob has joined #ruby
dekronin1 has joined #ruby
Gurpartap has joined #ruby
<apeiros_> Tasser: http://www.regular-expressions.info/catastrophic.html (didn't read it through but I'd assume it covers the topic)
<Tasser> apeiros_, I assume the maximum string is about 10-15...
wvms has quit [Quit: wvms]
dekroning has quit [Ping timeout: 272 seconds]
igaiga has joined #ruby
frishi has joined #ruby
mengu has joined #ruby
fayimora has joined #ruby
Dreamer3 has joined #ruby
prtksxna has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
uc has quit [Ping timeout: 248 seconds]
uc has joined #ruby
dr_diamond has quit [Quit: Bye !]
TheFuzzball has joined #ruby
g0bl1n has joined #ruby
ph^ has joined #ruby
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
Poapfel has joined #ruby
cousine has joined #ruby
Poapfel has quit [Client Quit]
Poapfel has joined #ruby
nilg has quit [Read error: Connection reset by peer]
nilg has joined #ruby
g0bl1n has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
ABK has joined #ruby
umttumt has quit [Remote host closed the connection]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
cousine has quit [Remote host closed the connection]
umttumt has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
cousine has joined #ruby
s1n4 has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
yugui_zzz is now known as yugui
linoj has joined #ruby
cousine has quit [Remote host closed the connection]
zomgbie has joined #ruby
blacktulip has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
umttumt has quit [Remote host closed the connection]
cousine has joined #ruby
undeclaredx has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
xximjasonxx has joined #ruby
<xximjasonxx> greetings and good morning all. I wonder if I might get some clarification regarding Ruby syntax
<xximjasonxx> specifically, what is the difference between :name, @name, and name
s1n4 has left #ruby ["Leaving"]
<undeclaredx> I'm new to ruby too but
<undeclaredx> @name refers to a class variable
<xximjasonxx> i understand the first to be a symbol, the second to be an instance level variable, and the third to be a local
<Tasser> undeclaredx, nope, instance variable
<undeclaredx> really?
ABK has quit [Read error: Connection reset by peer]
<undeclaredx> no shit lol
<xximjasonxx> my biggest question is, what is the difference between a symbol and a variable
<richo> @name is an instance variable, :name is a symbol
<richo> a symbol is basically a guaranteed unique identifier
<richo> intenrally it's an integer with a pretty name
<undeclaredx> how do we make a class variable then?
<Tasser> or a python string
<xximjasonxx> richo: I guess I am trying to compare it to other languages I know
ABK has joined #ruby
<richo> undeclaredx: @@name
<Tasser> undeclaredx, @@var
<undeclaredx> k
<Tasser> xximjasonxx, a symbol is an object. a local variable is a reference
<xximjasonxx> Tasser: so it could be similar (not the same) as a memory location from C
<xximjasonxx> granted that isn't guaranteed to be unique
<Tasser> an instance variable (@name) is a reference as well, but initialized to nil as opposed to local variables
<undeclaredx> what's a class constructor in ruby?
<xximjasonxx> initialize
<undeclaredx> k
<undeclaredx> thought so
<undeclaredx> and I have an obscure type, from a gem.. do I just name it var or can I type in the full type?
<Tasser> xximjasonxx, nothing is guaranteed to be unique in ruby ;-)
<xximjasonxx> Tasser: :)
<richo> Tasser: ... except symbols
<xximjasonxx> Tasser: let me ask this then, what do most rubyists use symbols for?
<Tasser> undeclaredx, use a variable name that fits the usage
<Tasser> xximjasonxx, enums
<richo> xximjasonxx: all the wrong things, in many cases
<Tasser> richo, what's wrong in your definition?
<undeclaredx> just the name..okay
yugui is now known as yugui_zzz
<richo> User generated symbols is a Bad Idea(tm), also 99% of code that does "someSymbol".to_sym is Doing It Wrong
samuel02 has quit [Ping timeout: 252 seconds]
<undeclaredx> attr_accessor is used to define class variables?
<Tasser> richo, ™ <- here
<Tasser> undeclaredx, nope, instance variable acessors
<richo> undeclaredx: no, it's for pretty instance variable accessors
<undeclaredx> inst_accessor?
<xximjasonxx> I think I am seeing what you mean Tasser Richo, enums would be a good usage
<undeclaredx> erm
umttumt has joined #ruby
<richo> and it's friends attr_reader and attr_writer (I think, writer looks wrong)
<Tasser> undeclaredx, nope, there's a rails extension that lets you do cattr_accessor
<undeclaredx> hmm?
<Tasser> richo, attr_reader is kinda equivalent to attr ;-)
<xximjasonxx> is there a concept from another language that is similar to what symbols are for Tasser richo
<Tasser> xximjasonxx, integers in C? *duck*
<richo> xximjasonxx: C's pretty constants
<xximjasonxx> inspiring :)
Morkel has joined #ruby
<xximjasonxx> thats good information, thank you
<Tasser> I'd call them magic numbers
cynosure has quit [Ping timeout: 252 seconds]
<richo> pretty much. They are bound to their name in an interesting way in ruby that they aren't elsewhere
cynosure has joined #ruby
andreime has joined #ruby
<richo> but for example if you use symbols to lookup the keys in a hash with 1 million members shit will be SLOOOOOW
cousine has quit [Remote host closed the connection]
<Tasser> would you know smalltalk?
<Tasser> richo, ruby doesn't scale, deal with it.
<xximjasonxx> unforunately I do not
uris has joined #ruby
<xximjasonxx> some of what I am seeing in Ruby reminds, just a bit, of JavaScript
<xximjasonxx> *ducks*
<richo> Tasser: I mean slow in comparison to the same hash with string or fixnum keys
<Tasser> xximjasonxx, yeah, with a bit less fuckups and a great stdlib (which has a bit less inconsistencies)
<xximjasonxx> Tasser: yup
<Tasser> xximjasonxx, but javascript is lisp in its core, where ruby is object-oriented
<xximjasonxx> Tasser: yes, I come from mostly static languages. Prior to diving into Ruby the only dynamic language I had worked with was PHP
<Hanmac> does javascript has something like sprintf? i guess no :P
<Tasser> I wouldn't even call php a language, it's just a collection of fuckups with a convention ^^
<xximjasonxx> :)
<undeclaredx> for an uninitialized class instance variable, how do I type that?
<undeclaredx> lol
Markvilla has joined #ruby
<Tasser> undeclaredx, just @foo
<undeclaredx> locally?
<xximjasonxx> Hanmac: there are libraries out there that provide that sort of functionality to JavaScript
<undeclaredx> like class SOmething @foo
<undeclaredx> done?
<undeclaredx> okay
<xximjasonxx> believe it or not, Microsofts JS library is quite nice for those sorts of operations
<Tasser> undeclaredx, nah, in a method, if you reference @var and haven't used it before, it will return nil
<xximjasonxx> ok I am out. After United was 2hrs late leaving Orlando last night, I missed my flight and got stuck in DC. Hoping to complete the journey back to Chicago today
<Tasser> xximjasonxx, which sorts of ops?
<xximjasonxx> Tasser: Date manipiulation and String manipulation for starters
<xximjasonxx> they actually ported most (if not all) the functionality from the .NET classes to JavaScript
Neil___ has joined #ruby
<xximjasonxx> Tasser: we are talking about JavaScript, Hanmac had asked a related question
ABK has quit [Read error: Connection reset by peer]
<shevy> long live the rubyOS!
xximjasonxx has quit [Quit: xximjasonxx]
jxf has joined #ruby
liluo has joined #ruby
jimmy1980 has joined #ruby
<undeclaredx> lol
<undeclaredx> I think Ruby is good for a lot of stuff, but an OS.. not so sure
gtuckerkellogg has joined #ruby
remmy444 has joined #ruby
remmy444 has left #ruby [#ruby]
bbuegler1 has quit [Quit: Leaving.]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
liluo has quit [Ping timeout: 244 seconds]
explody has quit [Remote host closed the connection]
explody has joined #ruby
pk1001100011 has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
shevy has quit [Ping timeout: 245 seconds]
qwerxy has quit [Quit: offski]
ABK has joined #ruby
bbuegler1 has joined #ruby
bosphorus has joined #ruby
<akem> you could have most OS scripts in Ruby, why not.
b26 has joined #ruby
<akem> Ruby kernel or drivers sounds crazy.
MarcWeber has joined #ruby
circlicious has quit [Quit: Lost terminal]
<MarcWeber> /(.)*/ is there a way to get capture result for each character this way?
shevy has joined #ruby
kill-9_ has joined #ruby
<apeiros_> no. quantified captures will always return the last. use .chars for this specific case.
<Spooner> MarcWeber: str =~ /(.*)/; $1.split #=> does that
<Spooner> $1.split('') rather
liuchong has joined #ruby
<apeiros_> str[/.*/].chars
A124 has joined #ruby
<MarcWeber> apeiros_: I want to do specific csv parsing - so this is only a special case.
freeayu has quit [Quit: 离开]
<apeiros_> use the csv lib from stdlib to parse csvs
<MarcWeber> I get different column counts - thus I suspect that the CSV format is bad.
<apeiros_> csv doesn't mandate that all rows have the same column count
<apeiros_> (just sayin, doesn't mean the csv you have isn't bad)
<MarcWeber> apeiros_: I know. Thanks - but same cols should contain same data :)
Cxarea has joined #ruby
Cxarea has left #ruby [#ruby]
saschagehlich has joined #ruby
williamherry has quit [Quit: Leaving]
lkba has quit [Ping timeout: 246 seconds]
umttumt has quit [Remote host closed the connection]
ghanima has joined #ruby
A124 has quit [Quit: Leaving.]
nari has quit [Ping timeout: 255 seconds]
AllanMacGregor has quit [Remote host closed the connection]
minus273 has joined #ruby
tommyvyo has joined #ruby
TheVoid has joined #ruby
samuel02 has joined #ruby
<TheVoid> i need help
AllanMacGregor has joined #ruby
<richo> You have my permission to get it
<TheVoid> i'm trying to make a ruby ircd without much knowledge of ruby...
<TheVoid> if recv = "NICK #{w}"
<TheVoid> session.puts "Hello #{recv}"
AllanMacGregor has quit [Read error: Connection reset by peer]
<TheVoid> puts "\n
<TheVoid> i can't get it correct
<TheVoid> I want it to send Hello <nick>
AllanMacGregor has joined #ruby
<TheVoid> mostly probably because
gtuckerkellogg has quit [Ping timeout: 248 seconds]
wubino has joined #ruby
<TheVoid> i can't figure out regex
nilg has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
<wubino> anyone know of a good tutorial / post on creating an ruby api from a raw json / rest api?
<Hanmac> theVoid: i think you should read this: http://www.ruby-lang.org/en/documentation/quickstart/
wvms has joined #ruby
<TheVoid> thanks
lkba has joined #ruby
workmad3 has joined #ruby
umttumt has joined #ruby
berserkr has joined #ruby
krusty_ar has joined #ruby
Tolnaiz has joined #ruby
igaiga has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
Tolnaiz has quit [Client Quit]
Synthead has joined #ruby
A124 has joined #ruby
vampirnata has quit [Ping timeout: 244 seconds]
krusty_ar has quit [Read error: Connection reset by peer]
vampirnata has joined #ruby
A124 has quit [Client Quit]
krusty_ar has joined #ruby
heftig has quit [Quit: leaving]
A124 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
heftig has joined #ruby
uris has quit [Quit: leaving]
A124 has quit [Client Quit]
Morkel has quit [Quit: Morkel]
kirun has joined #ruby
liluo has joined #ruby
saschagehlich_ has joined #ruby
TheVoid has quit [Changing host]
TheVoid has joined #ruby
qwerxy has joined #ruby
saschagehlich has quit [Ping timeout: 272 seconds]
saschagehlich_ is now known as saschagehlich
Criztian has quit [Remote host closed the connection]
sailias has joined #ruby
<kapowaz> I'm just looking into using Guard on a project for the first time, along with LESS, but I'm getting an error when I bundle install — is the guard-less gem very behind the current version of LESS?
TheHunter_1039 has joined #ruby
liluo has quit [Remote host closed the connection]
Keva161 has joined #ruby
workmad3 has joined #ruby
cantonic has quit [Quit: cantonic]
andrewhl has joined #ruby
raposa has joined #ruby
nari has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
raposa has left #ruby [#ruby]
n1x has joined #ruby
itnomad has joined #ruby
qwerxy has quit [Quit: offski]
cousine has joined #ruby
mengu has quit [Quit: Konversation terminated!]
macmartine has joined #ruby
itnomad has quit [Client Quit]
itnomad has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
cousine has quit [Remote host closed the connection]
seanstickle has joined #ruby
EzeQL has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
n1x has quit [Quit: ""]
selvakumaran has joined #ruby
schovi has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
mnaser has joined #ruby
uc has quit [Ping timeout: 250 seconds]
niku4i has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 260 seconds]
fayimora_ has joined #ruby
thone_ has joined #ruby
jwmann has joined #ruby
jwmann has quit [Client Quit]
jwmann has joined #ruby
sepp2k has quit [Remote host closed the connection]
fayimora_ has quit [Client Quit]
thone has quit [Ping timeout: 248 seconds]
EzeQL has left #ruby [#ruby]
MarcWeber has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
Criztian has joined #ruby
dkissell_ has joined #ruby
ajhager has joined #ruby
dkissell has quit [Ping timeout: 244 seconds]
dkissell_ is now known as dkissell
caveat- has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
m_3 has quit [Ping timeout: 252 seconds]
rbanffy has joined #ruby
Keva161 has quit [Remote host closed the connection]
tk___ has quit [Quit: ばいばい]
m_3 has joined #ruby
mengu has joined #ruby
seitensei has quit [Remote host closed the connection]
ePirat_ has joined #ruby
BeLucid_ has joined #ruby
BeLucid has quit [Ping timeout: 252 seconds]
ajhager has quit [Quit: Leaving]
BeLucid_ has quit [Read error: Connection reset by peer]
BeLucid has joined #ruby
nari has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
ringotwo has quit [Remote host closed the connection]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
Markvilla has quit [Ping timeout: 250 seconds]
ChampS666 has quit []
mjb2k has quit [Quit: Leaving]
yoklov has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
Markvilla has joined #ruby
Markvilla has quit [Read error: Connection reset by peer]
<wubino> how can I start a script in intereactive mode (like python i.e. python -i script.py
Markvilla has joined #ruby
redgetan has joined #ruby
<Hanmac> wubino look for irb
<Tasser> wubino, or pry
Markvilla has quit [Client Quit]
<wubino> Hanmac: Tasser: so irb script.rb ?
yoklov has quit [Quit: computer sleeping]
Markvilla has joined #ruby
<kapowaz> anyone here familiar with using sprockets 2 ?
jimmy1980 has quit [Ping timeout: 265 seconds]
Enekoos has joined #ruby
dsa has joined #ruby
<kapowaz> I'm just setting it up on a sinatra project, but the default config seems to map all files into /assets, rather than (say) /assets/stylesheets, /assets/javascripts etc.
<Hanmac> kapowaz doesnt sinatra has an extra channel?
Markvilla has quit [Client Quit]
<kapowaz> it does, and there is also a Mac OS X channel; the fact it's being configured with Sinatra is almost of zero bearing.
Markvilla has joined #ruby
Niamkik has quit [Ping timeout: 260 seconds]
<kapowaz> it's a question about sprockets 2.
Niamkik has joined #ruby
frishi has quit [Quit: Leaving...]
<wubino> got it: start irb / pry
<wubino> require "./start.rb"
hynkle has joined #ruby
jimmy1980 has joined #ruby
hynkle has quit [Client Quit]
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
Poapfel has joined #ruby
ePirat_ has quit [Remote host closed the connection]
<Xethron> I need some advice on .sample. I got: "arguments.split( ' or ' ).sample" to choose a random segment of text. However, it seems to favour the first choice... Is that true? Can I get it to favour all choices equally?
<Tasser> wubino, nope
olovholm has joined #ruby
<Tasser> wubino, yep, pry got a shortcut there, req <filename>
<wubino> Tasser: it works for me so far, what am I missing?
<Tasser> Xethron, take a look what your array consists of
<banisterfiend> Tasser: we got rid of req on HEAD
<Tasser> wubino, works
<Tasser> banisterfiend, oh, thanks
<Tasser> banisterfiend, nobody used it?
<banisterfiend> Tasser: no body used it and it conflicted too much with ruby code as ppl would use 'req' for request
EzeQL has joined #ruby
<Hanmac> banister would get a message if someone would use it :D
cousine has joined #ruby
<Tasser> Hanmac, and then we'd travel back to earth?
<banisterfiend> Hanmac: yeah i track usage, we upload which commands are invoked to our server and do stats
yoklov has joined #ruby
<Tasser> banisterfiend, where's the corresponding code? :-P
dsa has quit [Ping timeout: 255 seconds]
riush has quit [Quit: leaving]
icrazyhack has joined #ruby
ramblex has joined #ruby
yoklov has quit [Client Quit]
Markvilla has quit [Quit: Markvilla]
ryan0x2 has joined #ruby
ePirat_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
Progster has joined #ruby
caveat- has quit [Ping timeout: 265 seconds]
mnaser has joined #ruby
mnaser has quit [Client Quit]
seanstickle has quit [Quit: Nihil sub sole novum]
olovholm has quit [Read error: Connection reset by peer]
xubuntu5 has joined #ruby
jimrollenhagen has quit [Quit: ZNC - http://znc.sourceforge.net]
<icy`> hi, i'm trying to write a 'restart' feature for my irc bot. On a certain message from me (inside irc), i'm trying to trigger 'controlscript.rb stop' , (using daemons gem), but i'm getting (Errno::EACCES) . Is this normal/how to avoid?
<icy`> the control script is in same directory as the script, so i thought it should have access no? o.O
<icy`> the error is about the pid of the script, btw
Vert has joined #ruby
bluenemo has quit [Ping timeout: 260 seconds]
<shevy> dunn what are the permissions
<shevy> perhaps the user that is running it, can not access the directory below
abra has quit [Ping timeout: 276 seconds]
<icy`> er i guess what i'm basically trying to do is stop the script from within the script
<icy`> using outside system command. this is probably bad ;P
<icy`> it's not really dir permissions issue, it's the pid file that got created and locked or something
td123 has joined #ruby
federic has joined #ruby
<icy`> this happens on stop or restart. gems/daemons-1.1.8/lib/daemons/pidfile.rb:94:in `initialize': Permission denied - /script.rb.pid (Errno::EACCES)
catphish has joined #ruby
abra has joined #ruby
<Hanmac> :P the .pid path is wrong
<catphish> can anyone explain why a ruby installation without libyaml produces warnings about yaml, but yaml still works fine?
<Tasser> catphish, I suppose it uses a ruby implementation of a yaml parser
<catphish> perhaps
<Tasser> or syck
<icy`> oh true Hanmac
<Tasser> ... which is a ruby implementation apparently
* Hanmac solved the "is right" daily-quest
<icy`> bug in dameons? ;P
Sou|cutter has quit [Quit: WeeChat 0.3.0]
<icy`> daemons even
minus273 has left #ruby [#ruby]
<icy`> if i run controlscript.rb stop from any terminal it works, yet not from within script with system(..)
ePirat_ has quit [Remote host closed the connection]
Whoop has quit [Remote host closed the connection]
pygospa has quit [Ping timeout: 244 seconds]
icrazyhack has quit [Quit: http://www.cnblogs.com/crazyhack]
liuchong has quit [Ping timeout: 245 seconds]
Whoop has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
pygospa has joined #ruby
<icy`> oooh
cousine has quit [Remote host closed the connection]
<icy`> in my control script, i had Daemons.run('script.rb') , and if I had written the fully expanded path, then there are no problems
Whoop has quit [Client Quit]
<icy`> though I should not have to write the fully expanded path =/
imami|afk is now known as banseljaj
kalleth has quit [Ping timeout: 246 seconds]
yoklov has joined #ruby
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
mayankkohaley has quit [Ping timeout: 245 seconds]
delinquentme has joined #ruby
<delinquentme> is it normal practice to run autotests via rake?
<catphish> autotests?
mneorr has joined #ruby
<catphish> tests are often run with rake, yes
<delinquentme> really
<delinquentme> Hmm
<delinquentme> im so used to rspec
<deryl> rake tests calls rspec spec if you've configured your app to use rspec
<deryl> its a difference of calling manually and through a rake task. underlying is the same
<catphish> rake is just a way to execute scripts
jgrevich has joined #ruby
<deryl> like thor
<delinquentme> now what should be done if im having issues with tests failing bc permissions?
<delinquentme> sudo is not to be used here right?
<delinquentme> it sounds like more of a chmod issue? or is that more a " depends on the situation"
mneorr4 has quit [Ping timeout: 252 seconds]
k_89 has joined #ruby
<catphish> if tests fail because of permissions, just fix the file permissions
liuchong has joined #ruby
<atmosx> guys, the most popular/easy to configure httpd with ruby is lighttpd, apache or nginx?
<atmosx> or something that I missed?
s1n4 has joined #ruby
umttumt has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
rippa has joined #ruby
visof has joined #ruby
<Tasser> atmosx, nginx + unicorn often
<shevy> atmosx apache!
<shevy> though not the newest
<shevy> the bastards changed the configuration format
<atmosx> oh apache
<atmosx> I avoid it like the plague
<atmosx> too many bugs/errors over the years and really messed up config file, I haven't configure apache2 for years
<atmosx> I'll loose to much time there
tommyvyo has joined #ruby
<shevy> yeah
<shevy> I spend hours fiddling with the new configuration format
Neil___ has quit [Remote host closed the connection]
<shevy> I then gave up and decided, I will store all my configuration stuff for ANY webserver in yaml, and then let ruby generate the proper scripts for me
mpereira has joined #ruby
<atmosx> hm
<atmosx> not bad idea
<shevy> well
<shevy> I have not finished it :(
<atmosx> it will take me a lifetime to do it
<atmosx> hehehe
<atmosx> I can imagine why
<shevy> but that was the last time I played with a configuration format
<shevy> if I would have spent the time writing the script instead, it would have been finished already
<shevy> but I kinda do that for everything already
<shevy> all ENV settings I use are stored in yaml files
<atmosx> I see
Synthead has joined #ruby
<atmosx> what about nginx + passenger?
CheeToS has joined #ruby
<shevy> yeah Tasser what about that!
td123 has quit [Read error: Connection reset by peer]
td123 has joined #ruby
Eldariof-ru has joined #ruby
wubino has quit [Quit: Leaving]
<atmosx> I'm so stoned! gonna get a run until this thing compiles on the 3350mx
samuel02 has joined #ruby
<atmosx> (will take 15-20 minutes)
Notimik has joined #ruby
selvakumaran has quit [Ping timeout: 260 seconds]
gmci_ has joined #ruby
gmci has quit [Ping timeout: 240 seconds]
s1n4 has quit [Quit: Leaving]
ph^ has joined #ruby
s1n4 has joined #ruby
UdontKnow is now known as root
abra has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
abra has joined #ruby
Enekoos has quit [Remote host closed the connection]
<Jackneill> i have require "tabornok/irc" and irc.rb in the tabornok folder. i got cannot load such file. can you help me?
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
<Jackneill> where the require is there is the tabornok folde.r
visof has quit [Ping timeout: 260 seconds]
manizzle has quit [Read error: Connection reset by peer]
<Jackneill> do i need $LOAD_PATH << './tabornok'?
<Hanmac> jackneill NO, you need require_relative
<Jackneill> hanmac thanks i will google for it.
kstephens has quit [Ping timeout: 272 seconds]
kstephens has joined #ruby
<Jackneill> hanmac: i still get the same error
akafurious has joined #ruby
yfeldblum has joined #ruby
<akafurious> #join #javascript
<Jackneill> with require_relative do i need to use relative path?
<Hanmac> require_relative "tabornok/irc" should work
<Jackneill> require_relative "tabornok/irc"
<Jackneill> i have that but doesnt working, i paste the error, sec
<Jackneill> hanmac: http://pastebin.com/r5bU22Jh
<Hanmac> pastie your tabornok.rb file
cartola has joined #ruby
kalleth has joined #ruby
cartola has left #ruby [#ruby]
root is now known as whatever
<shevy> Jackneill does it work if you do irc.rb rather than irc
<Jackneill> hanmac: http://pastebin.com/i6xW3kBq
<Jackneill> shevy: no it doesnt
<Hanmac> so the path to the irc file is: "~/Desktop/Tabornok/Tabornok/lib/tabornok/irc.rb" right?
<Jackneill> /home/jackneill/Desktop/Tabornok/Tabornok/lib/tabornok/irc.rb
<Jackneill> yes
akafurious has left #ruby ["Leaving"]
tomb_ has joined #ruby
beilabs_ has quit [Ping timeout: 260 seconds]
beilabs has quit [Ping timeout: 265 seconds]
akafurious has joined #ruby
Niamkik has quit [Remote host closed the connection]
selvakumaran has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Hanmac> hm are you sure the error is currect? (it still looks that its call require and not require_relative)
<Hanmac> if that not helps, try another subdir
antonishen has joined #ruby
mpereira has quit [Remote host closed the connection]
<Jackneill> hanmac: with another subdir it works
horrror has joined #ruby
<Hanmac> oO
redgetan has quit [Ping timeout: 255 seconds]
yoklov has quit [Quit: computer sleeping]
antonishen has quit []
<icy`> hm, if i have a class C ; def run_bot; bot = Cinch::Bot.new do ... end; end; end; Then how can I pass an object from C so that the bot can work with it? (inside ...) . Without using $
<Hanmac> def run_bot; bot = Cinch::Bot.new(self)
beilabs has joined #ruby
beilabs_ has joined #ruby
<Jackneill> hanmac: recreated the dir and it works now.. :O
bluenemo_ has quit [Quit: Verlassend]
<icy`> Hanmac, Bot only takes 0 arguments
<Jackneill> and can someone help me? @tcpsocket = TCPSocket.open server, port | `connect': uninitialized constant Irc::TCPSocket (NameError)
<Hanmac> icy` you could pass self inside the do end block
redgetan has joined #ruby
<icy`> Hanmac, i'm not sure what you mean, as the Bot has its own self
akafurious has quit [Quit: This computer has gone to sleep]
<Hanmac> depends on how the do end block is called ... what happend if you do p self in the do end block?
<icy`> #<Bot nick=nil>
<icy`> Cinch is not my class
akafurious has joined #ruby
cakehero has joined #ruby
<Hanmac> ok, when: def run_bot; c = self; bot = Cinch::Bot.new do ... c ... end
DanBoy has quit [Remote host closed the connection]
bluenemo has quit [Read error: Connection reset by peer]
<shevy> Jackneill require socket first. then check where is class Irc
schovi has joined #ruby
umttumt has joined #ruby
fantazo has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
perryh_away is now known as perryh
jellywheel has joined #ruby
jellywheel has quit [Client Quit]
schaerli has quit [Read error: Operation timed out]
bitsar2 has joined #ruby
jellywheel has joined #ruby
jellywheel has quit [Client Quit]
jellywheel has joined #ruby
whatever is now known as e
jellywheel has quit [Read error: Connection reset by peer]
s1n4 has quit [Quit: Leaving]
<icy`> Hanmac, sorry was afk a bit. Great idea, works, ty =)
fayimora has joined #ruby
<icy`> is this typical procedure for cases like this? assigning self to a variable?
<Hanmac> depends on how the block is handled
prometheus has joined #ruby
<Jackneill> i have a file irc.rb and in the same folder parser.rb, in irc.rb i have require "parser", but i got no such file error
<Jackneill> any idea?
Notimik has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jellywheel has joined #ruby
MarcWeber has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
skinny_much has joined #ruby
Gurpartap has quit [Quit: Page closed]
<offby1> Jackneill: is this ruby 1.9? I think you have to explicitly put the current directory onto the LOAD_PATH
* icy` nods
<apeiros_> Jackneill: you should have your stuff in a lib dir, and have your requires use the path relative to that lib dir
<offby1> there's also 'require_relative' which might work ... but I have the vague sense that that's frowned upon
<apeiros_> that lib dir in turn should be in $LOAD_PATH
<apeiros_> and using require_relative is stupid (not gonna elaborate again, sry)
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<Jackneill> offby1: 1.9.3
* icy` changes his require to relative for fun ;P
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
gmci_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<offby1> apeiros_: drat. Maybe I'll google "require_relative evil" :-)
<icy`> but while still testing/changing, simply $LOAD_PATH<<'.' is ok right?
<Jackneill> apeiros_:
mayankkohaley has joined #ruby
lkba has quit [Quit: Bye]
<Jackneill> i have a lib/tabornok/irc.rb, parser.rb
bluenemo has quit [Client Quit]
tommyvyo has joined #ruby
liuchong has quit [Remote host closed the connection]
maletor has joined #ruby
Sheehan has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
bluenemo_ has joined #ruby
bluenemo_ has quit [Read error: Connection reset by peer]
tommyvyo has quit [Client Quit]
bluenemo has left #ruby [#ruby]
gmci has joined #ruby
Foxandxss has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mockra has joined #ruby
Foxandxss has quit [Client Quit]
Foxandxss has joined #ruby
ghanima has quit [Quit: Leaving.]
tiripamwe has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
ken_barber has joined #ruby
artOfWar has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
Eldariof-ru has quit []
mockra has quit [Remote host closed the connection]
wallerdev has joined #ruby
robotmay has joined #ruby
<apeiros_> Jackneill: then the requires should be require 'tabornok/irc' and require 'tabornok/parser'
ryanf has joined #ruby
<apeiros_> and props for namespacing.
Enekoos has joined #ruby
<Jackneill> apeiros_ really? actually these are the same folder, but ok thanks
<Jackneill> apeiros_, same error
wallerdev has quit [Client Quit]
<shevy> icy` why do you ask, simply do it man
tyman has joined #ruby
wallerdev has joined #ruby
<Mon_Ouie> icy`: the problem with it is, it means you have to be in the same directory as your script for it to work
<Hanmac> if you are in the SAME dir use require_relative "file"
ddv has quit [Read error: Connection reset by peer]
<Jackneill> hanmac: i dont understand why require doesnt work..
<apeiros_> Jackneill: then your lib dir is not in the load path
<apeiros_> if you install that thing as a gem, it'll automatically be the case. but since you're working on it, it's probably not added to the load path
<Hanmac> and its not a good style to change the load path
<Jackneill> lib/tabornok.rb is the main file
<apeiros_> use e.g. `ruby -Ilib ./bin/yourircthingy`
kevinbond has joined #ruby
<apeiros_> man, I need to write a blog entry or a gist about that topic. this topic is recurring so frequently…
<Jackneill> sorry im just getting started, my 2 days ruby knowledge isnt too much
<Jackneill> :D
dekronin1 has quit [Read error: Operation timed out]
<apeiros_> Jackneill: oh, that wasn't directed at or against you
qwerxy has joined #ruby
<Jackneill> ok, np
<Hanmac> offby1 i google'd "require_relative evil" ... it has NO hits :P so that means its not evil XD
<apeiros_> that just means it's so universally well known that nobody thought it was necessary to write about it
<apeiros_> (there's some logical fallacy in there… hope nobody spots it…)
<shevy> Hanmac it could be a google conspiracy
berserkr has quit [Quit: Leaving.]
Markvilla has joined #ruby
<apeiros_> yeah, they're on python
<offby1> Hanmac: actually I got plenty of hits; the first being http://practicingruby.com/articles/shared/tmxmprhfrpwq, which is good. (Actually, though, it _recommends_ require_relative)
<apeiros_> they're interested in letting bad practices in ruby spread…
araujo has joined #ruby
vbernetr has left #ruby [#ruby]
<apeiros_> offby1: that article uses globals too…
<Mon_Ouie> offby1: There's no hit if you search for an exact match
<Mon_Ouie> And the only hit for "require_relative is bad" is an IRC log from this channel :p
<shevy> lol
Markvilla has quit [Quit: Markvilla]
<offby1> well, maybe apeiros_ needs me to send him a case of Chimay
Neil___ has joined #ruby
Markvilla has joined #ruby
federic has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
linoj has quit [Quit: linoj]
sent-hil has joined #ruby
Sheehan has quit [Quit: Sheehan]
Eldariof-ru has joined #ruby
<sent-hil> is there a way to evaluate a string with </> , i.e. "1 < 2"
e is now known as udk
peterhil` has joined #ruby
<sent-hil> without using #{}
<Hanmac> sent-hil: you are looking for eval?
<sent-hil> Hanmac: ah yes, forgot about that, thx
<Mon_Ouie> Or is your string always supposed to have the same format?
<Tasser> sent-hil, eval? are you sure? :-P
<Hanmac> in 99.9% there are better ways then eval ...
<Mon_Ouie> e.g. /(\d+) ([><]) (\d+)/
horrror has quit [Quit: horrror]
kenperkins has joined #ruby
Sheehan has joined #ruby
qwerxy has joined #ruby
selvakumaran has quit [Ping timeout: 265 seconds]
platzhirsch has joined #ruby
<platzhirsch> Before I use this monkey patch for String (is_number?) https://gist.github.com/35494bf1881237c5014c is there a built in alternative?
<sent-hil> Tasser: yea, its not the best choice
akafurious has left #ruby ["Leaving"]
MarcWeber has quit [Ping timeout: 245 seconds]
mrbrdo has joined #ruby
<mrbrdo> Is there a current solution for TextMate 1.5 and Ruby 1.9 for copying code with style to Keynote? I tried copy-as-rtf and copy-with-style but they both have errors (jcode dependency)
<sent-hil> i was trying to DRY this: https://gist.github.com/2984323...can't use send with '</>'
<apeiros_> platzhirsch: if you use that patch, I'd rename it to numeric?, to stay in line with ruby naming conventions
<catphish> how do you make tcpserver listen on ipv6? right now i am only providing a port number, but it listens on 0.0.0.0 :(
<platzhirsch> apeiros_: good hint thanks
prtksxna has quit [Ping timeout: 244 seconds]
<apeiros_> (numeric classes inherit from Numeric, is_ prefixes are javaish)
prtksxna has joined #ruby
<shevy> platzhirsch there is no built in alternative
<Tasser> mrbrdo, org-mode + begin_src :-)
<Hanmac> oO they use the recuse modifier? oO thats bad!
<mrbrdo> TextMate...
<Tasser> mrbrdo, I know, I know ;-)
frishi has joined #ruby
qwerxy has quit [Quit: offski]
BeLucid_ has joined #ruby
graspee has quit [Quit: leaving]
BeLucid has quit [Read error: Connection reset by peer]
fayimora has quit [Ping timeout: 240 seconds]
eurbach has quit [Ping timeout: 265 seconds]
Eldariof-ru has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
fayimora has joined #ruby
Eldariof-ru has joined #ruby
fayimora_ has joined #ruby
fayimora_ has quit [Read error: Connection reset by peer]
Sheehan has quit [Quit: Sheehan]
Spooner_ has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
Spooner has quit [Ping timeout: 255 seconds]
Spooner_ has quit [Ping timeout: 252 seconds]
Axsuul has joined #ruby
Spooner has joined #ruby
Eldariof-ru has quit []
ipoval has joined #ruby
davidcelis has quit [Ping timeout: 252 seconds]
mvangala_home has joined #ruby
prtksxna has quit [Remote host closed the connection]
banghouse is now known as banghouseAFK
ryanf has quit [Ping timeout: 255 seconds]
Axsuul has quit [Read error: Connection reset by peer]
Nick___ has joined #ruby
Axsuul has joined #ruby
ph^ has joined #ruby
Nick___ has quit [Client Quit]
KevinSjoberg has joined #ruby
Nick___ has joined #ruby
jimeh has joined #ruby
emmanuelux has joined #ruby
baroquebobcat has joined #ruby
<KevinSjoberg> I've got a really weird error. I'm trying to get a ruby script to work with Ruby 1.8.7 patchlevel 357. But it seems that it complaining on me setting a default value for a initialize parameter. "def initialize(variable = nil, other variable)". If I remove the = expression everything works. If I remember correctly that should be valid?
skinny_much has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> the order of the prarams are (required, optional = v, *other, &block)
Spooner_ has joined #ruby
<apeiros_> note that this is only for 1.8
<apeiros_> in 1.9, that changes
<apeiros_> *changed
ph^ has quit [Remote host closed the connection]
<KevinSjoberg> So, any default values must be last for version 1.8.7?
Spooner has quit [Ping timeout: 260 seconds]
<apeiros_> yupp
raja has joined #ruby
ph^ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<KevinSjoberg> apeiros_: Thanks, worked out fine!
<Hanmac> or use an hash as args def(opt = {})
ABK has joined #ruby
mnaser has joined #ruby
sent-hil has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
niklasb has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ph^ has quit [Ping timeout: 260 seconds]
kevinbond has quit [Quit: kevinbond]
tiripamwe has joined #ruby
redgetan has quit [Ping timeout: 272 seconds]
jellywheel has quit [Quit: jellywheel]
cousine has joined #ruby
sent-hil has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
jianxioy has quit [Quit: leaving]
tommyvyo has joined #ruby
ryanf has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
jellywheel has joined #ruby
xbob has quit [Quit: Leaving]
platzhirsch has left #ruby [#ruby]
jellywheel has left #ruby [#ruby]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
baroquebobcat has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
rgrinberg has quit [Ping timeout: 245 seconds]
saschagehlich_ has joined #ruby
saschagehlich has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
saschagehlich_ is now known as saschagehlich
baroquebobcat_ has joined #ruby
rgrinberg has joined #ruby
rgrinberg has quit [Max SendQ exceeded]
rgrinberg has joined #ruby
ABK has quit [Read error: Connection reset by peer]
saschagehlich_ has joined #ruby
ABK has joined #ruby
Bosma has joined #ruby
kevinbond has joined #ruby
AlbireoX`Laptop has joined #ruby
ABK has quit [Read error: Connection reset by peer]
saschagehlich has quit [Ping timeout: 264 seconds]
saschagehlich_ is now known as saschagehlich
ABK has joined #ruby
cbuxton has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
ryan0x2 has quit [Remote host closed the connection]
emmanuelux has quit [Quit: @+]
rdg has joined #ruby
Sheehan has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
S2kx has joined #ruby
S1kx has quit [Ping timeout: 252 seconds]
Markvilla has quit [Ping timeout: 250 seconds]
rdg has quit [Quit: [quit]]
IrishGringo has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 264 seconds]
Vert has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
<platzhirsch> What random distribution is used by Rubys rand()? I can't find it in the core documentation
<Mon_Ouie> "Ruby currently uses a modified Mersenne Twister with a period of 2**19937-1."
<platzhirsch> that's almost unformly distributed
<platzhirsch> [0, 2^k -1]
<platzhirsch> thanks :) I haven't thought of looking up the used algorithm
bosphorus has quit [Remote host closed the connection]
<catphish> is ruby capable of generating (reading from the OS) real random data?
ABK has quit [Read error: Connection reset by peer]
<catphish> of do you need to use File#read
<catphish> *or
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
apok has joined #ruby
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
samuel02 has quit [Remote host closed the connection]
kevinbond has quit [Quit: kevinbond]
samuel02 has joined #ruby
punknology has joined #ruby
Nick___ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Progster has quit [Ping timeout: 260 seconds]
cherrypeel has joined #ruby
samuel02 has quit [Ping timeout: 246 seconds]
schovi has quit [Remote host closed the connection]
mnaser has quit [Ping timeout: 272 seconds]
<apeiros_> catphish: might be with SecureRandom
shadoi has joined #ruby
<catphish> apeiros_: yep, that looks like a good interface to /dev/random and the windows equiv
<cherrypeel> hey folks. i'm trying my hand at some "serious" ruby development and i'm trying to keep a gem-esque project structure. where would be a reasonable place to put stuff like YAML seed files or AWS creds?
<apeiros_> cherrypeel: PROJECT/data
<cherrypeel> apeiros_: sounds good, thanks
<ij> I'm getting a bug upon this line: "if ages[segment].nil? || (now - ages[segment] > 0.5)", when running manually-started MRI 1.9.3 in my app, seperate thread. Why I'm bothering #ruby is the 5th line in the log: http://sprunge.us/WijK?f What wrong could I've done?
williamcotton has joined #ruby
<Mon_Ouie> Your program seems to include a C extension, which probably has a bug
dv_ has quit [Remote host closed the connection]
<ij> I am making the C extension.
<Mon_Ouie> Doesn't mean it's bug-free.
<ij> Okay nevermind, I don't think this is something common, which at first I thought it was.
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
<Hanmac> i hope you did not use swiq :D
<Mon_Ouie> When Ruby throws a C backtrace at you, there's a bug in C code — and it's more likely to be in your own C extension or one that you're using than in Ruby's own code
jianxioy has joined #ruby
<Hanmac> ij: show me your free method you use for deleting your objects
<ij> What's that?
<ij> Free method? Ruby code?
<Hanmac> no C code
<ij> umm
banghouseAFK is now known as banghouse
<deryl> alloc/malloc and free
<deryl> man free
<ij> ^
<deryl> no, thats the command. in your terminal type: man free
<ij> This is all my C code for ruby and it doesn't feature any free methods: http://sprunge.us/EVeh?c
fridim_ has joined #ruby
<ij> .. I know.
<deryl> and also: man malloc
<Hanmac> deryl i dont think this helps at the moment ...
cjs226 has quit []
mikepack has joined #ruby
<ij> I know what free/malloc does.
<deryl> what doesn't help? telling a man who obviously doesn't know what 'free' is how to find the info?
<deryl> that definitely helps
<Mon_Ouie> deryl: what makes you think that he doesn't know what free is?
<deryl> Hanmac: ij: show me your free method you use for deleting your objects
<deryl> [4:29pm] ij: What's that?
<ij> _method_
<ij> not function
<ij> Meaning in ruby code.
<deryl> followed by Free method? like he didn't know what it was
<deryl> wait a minute
<Mon_Ouie> Yeah, and you seem not to know what Hanmac was referring to either
<deryl> why the fuck are you jumping my bones for telling someone where to find some info?
<ij> Mon_Ouie: Me?
<Mon_Ouie> No, deryl
<Mon_Ouie> ij: Not sure if it can cause a crash, but the type of your function is wrong
<Hanmac> my first thought is that he used DATA_WRAP_STUCT wrong
<ij> exit()?
<deryl> he didn't seem to know. Its C related. I thought he meant calling free on a C object, he didn't seem to know what it was so I pointed him at info
<deryl> christ
<Mon_Ouie> it should be VALUE logic_data(VALUE)
<ij> Arguments can be ignored.
<ij> in c, and that shouldn't produce any errors
Sgeo has joined #ruby
<ij> Also, weird thing is that it runs for like a minute in a loop and only then it crashes.
<ij> So it works for a while.
danishman has joined #ruby
<Mon_Ouie> That's because it's GC-related — your loop is run a few times before the GC runs
cbuxton has quit [Quit: Leaving.]
<ij> Oh, right.
CheeToS has quit [Ping timeout: 248 seconds]
lopex has joined #ruby
* Hanmac sings "the GC is comming to collect you" :P
Sgeo has left #ruby [#ruby]
francisfish has quit [Remote host closed the connection]
Scrivener has joined #ruby
francisfish has joined #ruby
daym0n has joined #ruby
noganex has quit [Read error: Operation timed out]
Asher has quit [Quit: Leaving.]
sailias has joined #ruby
noganex has joined #ruby
francisfish has quit [Ping timeout: 248 seconds]
<ij> Oh, sweet. When I run GC.start in the entry point(def main) it fails already, so it's got something to do with my initialization.
Asher has joined #ruby
<ij> Is my initialization of ruby environment okay?
mnaser has joined #ruby
linoj has joined #ruby
ryan0x2_ has joined #ruby
berserkr has joined #ruby
Neil___ has quit [Remote host closed the connection]
mnaser has quit [Quit: Computer has gone to sleep.]
red-panda has joined #ruby
sailias has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
ryan0x2_ has quit [Remote host closed the connection]
<catphish> i need to learn how to write c extensions
andreime has quit [Ping timeout: 240 seconds]
macmartine has quit [Quit: macmartine]
ph^ has joined #ruby
nowthatsamatt has joined #ruby
nowthatsamatt has left #ruby [#ruby]
<undeclaredx> :)
<undeclaredx> that'd be coolh eh
<undeclaredx> heh*
jgrevich has quit [Read error: Connection reset by peer]
tomb_ has quit [Quit: Computer has gone to sleep.]
<catphish> can't say i've ever needed to so far though :)
jgrevich has joined #ruby
tomb_ has joined #ruby
<catphish> i really wish someone could write an interface to irrlicht
banisterfiend has joined #ruby
<catphish> sadly as c++ it's well beyond my skills
macmartine has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
<Hanmac> catphish look at README.ext
iocor has quit [Quit: Computer has gone to sleep.]
<catphish> well thats some heavy reading :)
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Habib has joined #ruby
<Habib> hey/ i'm installing linuxmint to work with ruby
saschagehlich has quit [Quit: saschagehlich]
<catphish> good :)
<Habib> what to install? MATE or Cinnamon?
<catphish> that's not at all relevant to ruby
<Habib> cos on linuxmint chanel they didn't tell me
raja has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Habib> yeah)))
<UNIXgod> Habib: vim
<ij> Haha, UNIXgod.
Vert has joined #ruby
<catphish> Habib: personally i think cinnamon is a better choice
mengu has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
<catphish> but you can use gedit and rvm on both for ruby development :)
<Habib> ok then
Nick_ has joined #ruby
<catphish> so its really not important
dkissell_ has joined #ruby
<catphish> try both, see which one feels better to you
Nick_ is now known as Guest72340
<catphish> and understand that mate is a fork of a no longer supported gnome 2
<Hanmac> i use eclipse for my c++ gems
<catphish> and cinnamon is a fork of gnome 3
<catphish> or an addon for it, i forget how it works
<catphish> i can't stand eclipse
<catphish> but that's just me
dkissell has quit [Ping timeout: 255 seconds]
dkissell_ is now known as dkissell
<Hanmac> normaly i use gedit ... but when i make a binding i have often more then 100 files open ... and there is eclipse a bit better ...
<Hanmac> and it has other important features
<cherrypeel> what sort of stuff would you write C extensions for?
<catphish> usually interfaces for existing c libraries
<Hanmac> wxwidgets, cegui, ogre, and many more i do :P
<cherrypeel> ah. sensible
<catphish> for example complicated parsers
<catphish> i might look at ogre
<catphish> i really want irrlicht, but ogre might do
* Hanmac has allready begin a ogre binding
baroquebobcat_ has quit [Quit: baroquebobcat_]
mnaser has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
iocor has joined #ruby
apok has quit [Quit: apok]
Sheehan has quit [Quit: Sheehan]
atmosx has joined #ruby
Guest72340 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
fantazo has joined #ruby
Ethan has quit [Quit: bestest breastests]
baroquebobcat has joined #ruby
<ij> Hanmac: You use gedit ... to write code?
dagnachewa has joined #ruby
macmartine has quit [Quit: macmartine]
zomgbie has quit [Quit: Lost terminal]
Guest41099 has joined #ruby
bosphorus has joined #ruby
macmartine has joined #ruby
davidcelis has quit [Ping timeout: 245 seconds]
dr0p has quit [Ping timeout: 264 seconds]
Nies has joined #ruby
macmartine has quit [Client Quit]
dagnachewa has quit [Quit: Leaving]
vladiim has joined #ruby
workmad3 has joined #ruby
_md has quit [Quit: Leaving...]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
<catphish> ij: i can :)
mvangala_home has quit [Remote host closed the connection]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<catphish> (and do 7 days a week)
qwerxy has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
<ij> Oh god, why?
<ij> Why exactly gedit?
araujo has quit [Ping timeout: 240 seconds]
saschagehlich has joined #ruby
<catphish> i just like it, it's fast, has the features i need (file navigation, syntax highlighting, auto indent)
sam1131011 has quit [Remote host closed the connection]
<catphish> its just responsive and fits nicely with my gnome desktop
fayimora has joined #ruby
fayimora has quit [Client Quit]
<cherrypeel> simplicity is a virtue, man
danishman has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
zeade1 has joined #ruby
zeade1 has quit [Client Quit]
lopex has left #ruby [#ruby]
<kapowaz> anyone know if there's a way to get around two gems requiring different versions of the same dependency when using bundler?
<catphish> yeah i like simple text editors, but i also like guis
kuremmu has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
<catphish> i use gedit but often catch myself using nano for no apparent reason
<catphish> out of habit from editing remote files so much
kuremmu has left #ruby [#ruby]
<cherrypeel> vim is a beautiful thing
<cherrypeel> nano...that's just barbaric :)
kevinbond has joined #ruby
rgrinberg has quit [Quit: Leaving]
araujo has joined #ruby
visof has quit [Quit: Leaving]
prometheus has quit [Ping timeout: 255 seconds]
Habib has quit []
cherrypeel has quit [Quit: Leaving]
alanp has joined #ruby
yxhuvud has quit [Ping timeout: 255 seconds]
balki has joined #ruby
balki has quit [Read error: Connection reset by peer]
alanp_ has quit [Read error: Connection reset by peer]
alanp has joined #ruby
balki has joined #ruby
balki_ has quit [Read error: Connection reset by peer]
AllanMacGregor has quit [Remote host closed the connection]
adsd has joined #ruby
adsd has left #ruby [#ruby]
araujo has quit [Quit: Leaving]
<Spaceghostc2c> Don't click the link.
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<workmad3> kapowaz: no... it means your gem list has impossible to match dependencies
<workmad3> kapowaz: you might be able to fork one of the gems, update the dependencies and hope it works ok, and then use that gem from a git repo though... but YMMV
<kapowaz> it looks like I'm getting weird results from bundler though
ePirat_ has joined #ruby
<kapowaz> the gemspec for sprockets 2 says it only needs multi_json ~> 1.0
<kapowaz> yet bundler is saying I need 1.3.6
ryanf has quit [Quit: leaving]
<workmad3> kapowaz: ah, that's a different issue
<kapowaz> so they should be compatible but they're not
cherrypeel has joined #ruby
jimeh has quit [Ping timeout: 250 seconds]
<kapowaz> I have no idea how to diagnose further though
red-panda has quit [Remote host closed the connection]
<workmad3> kapowaz: your Gemfile.lock is saying you're locked to 1.3.6 atm
<kapowaz> ah
<kapowaz> so I should remove my .lock file
<workmad3> kapowaz: so you'd need to bundle update both gems at once
atmosx has quit [Ping timeout: 276 seconds]
<workmad3> kapowaz: no, don't remove the .lock file
<kapowaz> how would you update both together then?
AllanMacGregor has joined #ruby
<workmad3> kapowaz: 'bundle update multi_json <other_gem>
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<workmad3> kapowaz: maybe even 'bundle update sprockets <other_gem>'
mengu has quit [Remote host closed the connection]
<kapowaz> I've just removed my old gemset so I can start fresh, see if that helps
atmosx has joined #ruby
<kapowaz> then if not I'll try what you've suggested
<workmad3> kapowaz: it won't
<kapowaz> ok :)
<workmad3> kapowaz: bundler reads the Gemfile.lock to work out what gems to install
saschagehlich has quit [Quit: saschagehlich]
<kapowaz> if there was no Gemfile.lock what then? wouldn't it create it fresh?
<workmad3> kapowaz: it would... but that's not a good idea
<workmad3> kapowaz: it would mean that all your gems would suddenly update to the latest possible versions
<workmad3> kapowaz: which could have large ramifications on your appp
<workmad3> *app
malkomalko has joined #ruby
<kapowaz> it's a new project so I doubt it'll cause unexpected problems here
<kapowaz> I see why you wouldn't do it generally, though
<workmad3> kapowaz: ah, fair enough :)
<workmad3> kapowaz: I'd make sure you know how to do it with bundle updates though
<kapowaz> running that now, just waiting for it to work itself out
<workmad3> kapowaz: because, as you can see, you don't want to do it down the line, and you might have to resolve the same issue :)
<kapowaz> indeed, good point
monkegjinni has quit [Remote host closed the connection]
<kapowaz> bundle install is so much slower on my MBA than my Mac Pro.
<kapowaz> anyway, seems happier now!
<kapowaz> thanks for the assistance
linoj has quit [Quit: linoj]
josefig has quit [Quit: Computer has gone to sleep.]
ryanw has joined #ruby
ePirat_ has quit [Quit: Palaver http://palaverapp.com/]
<ryanw> I have a rake task that calls a shell command using system(). The command outputs colour but when used via the rake task the colour codes appear as 3[31m. Is there a way to fix this?
workmad3 has quit [Ping timeout: 264 seconds]
QaDeS has quit [Quit: Ex-Chat]
atmosx has quit [Ping timeout: 276 seconds]
DanBoy_ has quit [Ping timeout: 260 seconds]
indian has quit [Ping timeout: 248 seconds]
niku4i has joined #ruby
tomb_ has joined #ruby
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
prometheus has joined #ruby
workmad3 has joined #ruby
bbuegler1 has quit [Quit: Leaving.]
h4mz1d has joined #ruby
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
itnomad has quit [Ping timeout: 260 seconds]
gtuckerkellogg has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
banseljaj has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
wilmoore has joined #ruby
banseljaj has joined #ruby
wilmoore has quit [Remote host closed the connection]
vladiim has quit [Quit: vladiim]
itnomad has joined #ruby
<atmosx> anyone alive?
<atmosx> :-P
<undeclaredx> no
<cherrypeel> dunno
seanstickle has joined #ruby
<atmosx> good
fridim_ has quit [Quit: Quitte]
<atmosx> just a questoin, all these 5.000 proggies for runnig rails: webrick, passenger, uro-something, etc
<atmosx> are like a sort of internal httpds for rails apps which I should proxy through a nornal httpd to run?
ben_m has quit [Quit: Leaving]
<atmosx> liek lighttpd/nginx/etc?
<atmosx> this is what I understand from the hotwo's I find online in order to setup a local ror app
ben_m has joined #ruby
<cherrypeel> would probably get a better answer on #rubyonrails
<cherrypeel> but i don't think you have to proxy it
<atmosx> ah k I'll ask there
<atmosx> thanks
<atmosx> cherrypeel: you mean I run it directly?
<epitron> you don't have to proxy anything for local development :)
<atmosx> all guides proxy them
<atmosx> I don't understand exactly why
<epitron> just connect to localhost:3000 or whatever
<epitron> proxying is for deployment
<atmosx> epitron: no no, it's for a blog system
<atmosx> epitron: it will be accessibla via internet
<epitron> proxying is for scalability
<epitron> i suppose webrick might be buggy too
<epitron> some exploits perhaps
<epitron> you can run one of those standalone ruby webservers though (probably thin is your best bet) if you don't need to host anything else on that box
<epitron> passenger is nice because it can manage all your processes
<epitron> and spawn new ones, if needed
<epitron> that runs on apache or nginx
<atmosx> I used unicorn
Guest41099 has quit [Ping timeout: 248 seconds]
<atmosx> now I need to configure unicorn & nginx somehow but as I get it, it's just proxying
vladiim has joined #ruby
<epitron> you don't really need nginx
<epitron> just stick unicorn on port 80, and you're done :)
<atmosx> what I don't get is: apache/nginx/lighttpd are just proxies for all these rails handlers or more?
<epitron> but, again, there may be security concerns
<atmosx> epitron: which nginx will permit me to address somehow?
<epitron> they can act as a proxy, or as an appserver manager
<epitron> apache by itself can't run rails
<epitron> apache + passenger can
baroquebobcat has quit [Quit: baroquebobcat]
<epitron> nginx would intercept the actual tcp requests
<epitron> it would be like a firewall
<epitron> packets roll off nginx like water off a duck's back
<epitron> anyhow, the bottom line is, it probably doesn't matter
<epitron> anything you pick willl work fine
<epitron> (except webrick)
bosphorus has quit [Remote host closed the connection]
kylemcgill has joined #ruby
<atmosx> epitron: So you say, it's better to use directly unicorn?
punknology has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<epitron> i say it doesn't matter
<epitron> just do it
<epitron> and find out what happens
<epitron> my prediction is it'll work fine
<epitron> and you'll have no problems
<epitron> just don't run it as root :)
frishi has quit [Quit: Leaving...]
vladiim has quit [Quit: vladiim]
<atmosx> epitron: hmm I can always jail it
<epitron> you're overthinking this :)
S2kx has quit [Ping timeout: 244 seconds]
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
<atmosx> and maybe apply some generic rules using iptables :-/
<epitron> this is a blog
<epitron> this is not yahoo.com
<cherrypeel> maybe atmosx is scott hanselman
<cherrypeel> who knows
platzhirsch has left #ruby [#ruby]
<atmosx> I'm Gruber in disguise
Ethan has quit [Client Quit]
<atmosx> I'm not even paranoid enough, I just don't understand the odds here :-) that's all
murgle has quit []
maletor has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
maletor has joined #ruby
ryanf has joined #ruby
naquad has quit [Excess Flood]
apok has joined #ruby
vladiim has joined #ruby
<epitron> be agile
banghouse is now known as banghouseAFK
<epitron> fix problems when you run into them
<epitron> :D
naquad has joined #ruby
daym0n has quit [Ping timeout: 245 seconds]
Ethan has quit [Quit: bestest breastests]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
tewecske has quit [Quit: Leaving.]
catphish has quit [Quit: Leaving]
<tommylommykins> hmm
<tommylommykins> is there anything nicer than sprintf for column aligning output?
<cherrypeel> http://rubygems.org/gems/text-format could be useful
* tommylommykins stares
fantazo has quit [Remote host closed the connection]
<cherrypeel> ...
emmanuelux has joined #ruby
<tommylommykins> oh
<tommylommykins> sorry
<tommylommykins> at text-format
<tommylommykins> it wants ruby1.8 :|
<cherrypeel> idk if any of those sound more appealing
<cherrypeel> than sprintf, that is
* tommylommykins will have a look
<tommylommykins> Thanks for the help :)
<cherrypeel> you bet
greyEAX has quit [Read error: Connection reset by peer]
greyEAX has joined #ruby
silentpost has joined #ruby
<icy`> to match ".hi" or ".hello" , /^\.(hi|hello)$/ right? parens even if i dont plan to use the $1 or was it &1 variable?
gtuckerkellogg has joined #ruby
<icy`> blanking out a bit ;P
blacktulip has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
niklasb has quit [Ping timeout: 245 seconds]
<icy`> nevermind, some quick irb tests confirmed parens are correct, and it was the $1 variable ;P
<xubuntu5> nice
Boohbah has quit [Ping timeout: 276 seconds]
<icy`> the other one may have been perl or something
<xubuntu5> just curious what was the $& variable for that
gtuckerkellogg has quit [Client Quit]
CheeToS has joined #ruby
<icy`> reg = /^\.(hi|hello)$/ ; str = '.hi'; puts $& if str=~reg
<icy`> .hi
<icy`> puts $1 if str=~reg ---> hi
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<icy`> $& is prob the full last successfully matched string
<xubuntu5> ahh i see now you're right icy
<xubuntu5> and $1 is just what's in the ( )
freezey has joined #ruby
<icy`> yea if it matches
niklasb has joined #ruby
ebanoid has quit []
berserkr has quit [Quit: Leaving.]
banisterfiend has quit [Remote host closed the connection]
sam113101 has joined #ruby
banisterfiend has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
richo has quit [Ping timeout: 260 seconds]
Criztian has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
mnaser has quit [Quit: Computer has gone to sleep.]
philips has quit [Excess Flood]
philips has joined #ruby
qwerxy has joined #ruby
SegFaultAX has joined #ruby
h4mz1d has quit [Ping timeout: 272 seconds]
raja has joined #ruby
jxf has joined #ruby
wallerdev has quit [Quit: wallerdev]