apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
mercwithamouth has quit [Ping timeout: 252 seconds]
scx_ has quit [Read error: Connection reset by peer]
nari__ has quit [Ping timeout: 256 seconds]
rlb3` has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
havenn has quit [Remote host closed the connection]
kiyoura has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
jcaudle_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 256 seconds]
h4mz1d has quit [Ping timeout: 244 seconds]
u89_ has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 260 seconds]
minijupe has joined #ruby
sent-hil has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 260 seconds]
Araxia has quit [Ping timeout: 256 seconds]
sent-hil has joined #ruby
jamjam has quit [Ping timeout: 252 seconds]
tomsthumb has quit [Quit: Leaving.]
demet8 has joined #ruby
sent-hil has quit [Remote host closed the connection]
mattaf123 has quit [Quit: mattaf123]
jonathanwallace has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
chriskk has joined #ruby
_bart has left #ruby [#ruby]
BSaboia__ has quit [Read error: Connection reset by peer]
Guerrero has quit [Quit: I'll be back. -Terminator]
jgrevich has quit [Read error: Operation timed out]
jgrevich_ is now known as jgrevich
matthewrobbins has quit [Quit: matthewrobbins]
Trioke_ has joined #ruby
jgrevich_ has joined #ruby
noxoc1 has quit [Ping timeout: 252 seconds]
davidokner has joined #ruby
carlzulauf has quit [Ping timeout: 260 seconds]
Trioke has quit [Ping timeout: 260 seconds]
joeycarmello has joined #ruby
cableray has quit [Quit: cableray]
carlzulauf has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
g-ram has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
<davidokner> jgrevich: Global Warming, is that you?
<nohonor> kamsky, i don't think it will work
<davidokner> Oops, wrong channel
davidokner has left #ruby [#ruby]
<nohonor> if i'm correct, #{...} will expand directly
<kamsky> nohonor, hmmm.. that's bad, any suggestion of how to do it?
thinkdevcode has quit [Read error: No route to host]
<nohonor> there is a perl regex extension, (??{...}) that allows match-time interpolation
thinkdevcode has joined #ruby
vitor-br has joined #ruby
<nohonor> *more info
<nohonor> but i'm not sure if it's supportet in ruby
<kamsky> I do need it for Ruby tho
<nohonor> what's more, i'm not sure if it's a good idea to do things like that in regexes at all
tyfighter has quit [Quit: tyfighter]
<nohonor> a pair of corecursive functions should handle it just as well
u89 has joined #ruby
pdswan_ has joined #ruby
brianpWins has left #ruby [#ruby]
rowsdower has joined #ruby
bigmac has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
blazes816 has quit [Quit: blazes816]
scade has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
shiki has joined #ruby
florianchin has joined #ruby
scade has joined #ruby
<kamsky> hmmm
reset has joined #ruby
florianchin has left #ruby [#ruby]
demet8 has left #ruby [#ruby]
swex has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
icole has quit [Remote host closed the connection]
Trioke has joined #ruby
<Jonah11_> looking for a compact way to solve this: i have an array of ints. i want to get a count of how many items appear at least twice in the array
Trioke_ has quit [Ping timeout: 240 seconds]
carlzulauf has quit [Ping timeout: 265 seconds]
dfr|work has quit [Ping timeout: 246 seconds]
kiyoura has joined #ruby
pdswan_ has quit [Ping timeout: 256 seconds]
alee has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
alee has joined #ruby
<Jonah11_> nm found something
<kamsky> nohonor, quick pm?
davidcelis has quit [Quit: K-Lined.]
Chryson has joined #ruby
sent-hil has joined #ruby
slainer68 has quit [Remote host closed the connection]
mmitchell has joined #ruby
whaley_ has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
jcaudle_ has quit [Quit: jcaudle_]
Takehiro has quit [Remote host closed the connection]
yshh has joined #ruby
havenn has joined #ruby
u89 has quit [Remote host closed the connection]
v0n has joined #ruby
cordoval has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
adeponte has quit [Read error: Connection reset by peer]
cordoval has left #ruby [#ruby]
adeponte has joined #ruby
mrsolo has quit [Quit: Leaving]
nricciar has quit [Read error: Operation timed out]
Guest58426 has quit [Ping timeout: 260 seconds]
TheMoonMaster has quit [Ping timeout: 272 seconds]
dakine has quit [Ping timeout: 260 seconds]
lake has quit [Ping timeout: 260 seconds]
mksm has joined #ruby
mksm is now known as Guest54783
J-_-L has quit [Ping timeout: 255 seconds]
mneorr has joined #ruby
synthetix has quit [Ping timeout: 260 seconds]
sn0wb1rd has joined #ruby
juha_ has quit [Remote host closed the connection]
chrishunt has quit [Quit: Leaving...]
juha_ has joined #ruby
crackfu has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
TheMoonMaster has joined #ruby
niklasb has quit [Ping timeout: 268 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jslowe has quit [Read error: Connection reset by peer]
niklasb has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
J-_-L has joined #ruby
BulletPull is now known as Experium
headius has joined #ruby
mercwithamouth has joined #ruby
daniel_- has quit [Ping timeout: 260 seconds]
Virunga has quit [Remote host closed the connection]
bricker has quit [Read error: Operation timed out]
nohonor has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
judd7 has joined #ruby
dakine has joined #ruby
rlb3` has joined #ruby
lake has joined #ruby
fnogx has left #ruby [#ruby]
daniel_- has quit [Read error: Operation timed out]
shiki has quit [Remote host closed the connection]
cableray has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
arubin has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
v0n has joined #ruby
Tref has joined #ruby
moted has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
dpatel has quit [Quit: dpatel]
c0rn_ has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
ananthakumaran has joined #ruby
rlb3` has quit [Ping timeout: 260 seconds]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
nopolitica has quit [Quit: WeeChat 0.3.9]
Takehiro has joined #ruby
Araxia has joined #ruby
Artheist has quit [Read error: Connection reset by peer]
nricciar has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
jeremywrowe has quit [Quit: jeremywrowe]
slainer68 has quit [Ping timeout: 240 seconds]
nyrb has quit [Remote host closed the connection]
nyrb has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
c0rn_ has joined #ruby
c0rn_ has quit [Client Quit]
change has joined #ruby
Trioke has quit [Ping timeout: 260 seconds]
change has left #ruby [#ruby]
ebbflowgo has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
c0rn_ has joined #ruby
_nitti has joined #ruby
scade has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
nari has joined #ruby
kil0byte has joined #ruby
stkowski has quit [Read error: Connection reset by peer]
stkowski has joined #ruby
keymone_ has joined #ruby
rowsdower has quit [Quit: Konversation terminated!]
_nitti has quit [Ping timeout: 260 seconds]
nyrb has quit [Remote host closed the connection]
CaptainJet has joined #ruby
nyrb has joined #ruby
mneorr has quit [Remote host closed the connection]
Araxia has quit [Quit: Araxia]
niklasb has quit [Ping timeout: 246 seconds]
keymone has quit [Ping timeout: 260 seconds]
keymone_ is now known as keymone
mneorr has joined #ruby
jailandrade has joined #ruby
voodoofish has quit [Ping timeout: 264 seconds]
v0n has quit [Read error: Connection reset by peer]
Monie has quit [Ping timeout: 244 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
judd7 has quit [Quit: judd7]
sn0wb1rd has joined #ruby
yshh has joined #ruby
mercwithamouth has quit [Read error: Operation timed out]
s0ber_ has joined #ruby
justinmc_ has joined #ruby
Cache_Money has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
jeffreybaird has quit [Quit: jeffreybaird]
justinmcp has quit [Ping timeout: 255 seconds]
s0ber has quit [Ping timeout: 276 seconds]
jeffreybaird has joined #ruby
s0ber_ is now known as s0ber
kamsky has quit [Ping timeout: 248 seconds]
sleetdrop has joined #ruby
adeponte has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
joeycarmello has quit [Remote host closed the connection]
v0n has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
chimkan has joined #ruby
kamsky has joined #ruby
omry has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
jeffreybaird_ has joined #ruby
mneorr has joined #ruby
ewokchewy has quit [Quit: Leaving]
BoomCow has quit [Quit: This computer has gone to sleep]
jeffreybaird has quit [Ping timeout: 240 seconds]
jeffreybaird_ is now known as jeffreybaird
caleb_io has joined #ruby
voodoofish has joined #ruby
BoomCow has joined #ruby
xjiujiu_ has joined #ruby
kamsky has quit [Changing host]
kamsky has joined #ruby
chrishunt has joined #ruby
Tref has quit [Quit: Tref]
<kamsky> any of you guys have used Citrus,Parslet or Treetop??
mikepack has joined #ruby
Tref has joined #ruby
ttt has joined #ruby
Takehiro has joined #ruby
cableray has quit [Quit: cableray]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<sent-hil> kamsky: i've used parslet a bit, but i'm sure i'd be of no help
<sent-hil> p.s. you should just ask your question in the future, instead of trying to find a guru
synthetix has joined #ruby
paolooo has joined #ruby
verto is now known as verto|off
jaygen_ has joined #ruby
CaptainKnots has quit [Quit: bazinga!]
v0n has quit [Ping timeout: 260 seconds]
<kamsky> I just wanted an opinion of which one u prefer
Takehiro has quit [Ping timeout: 276 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<kamsky> im trying to build a parser, at first I thought about using pure RegExes, but it's getting on my nerves
v0n has joined #ruby
<kamsky> so I figured out it might better to use a proper grammar
jaygen__ has joined #ruby
jaygen has quit [Ping timeout: 252 seconds]
<sent-hil> kamsky: parslet is pretty easy to work with, haven't tried others though
chimkan___ has joined #ruby
chimkan___ has quit [Remote host closed the connection]
<kamsky> thanks sent-hil , Ill give it a try
jaygen_ has quit [Ping timeout: 252 seconds]
synthetix has quit [Ping timeout: 260 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
JonnieCache has joined #ruby
joeycarmello has joined #ruby
bbttxu has quit [Quit: bbttxu]
cableray has joined #ruby
chimkan has quit [Ping timeout: 256 seconds]
brianpWins has joined #ruby
sambio has quit []
chimkan has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
blazes816 has joined #ruby
stkowski has quit [Quit: stkowski]
rakl has quit [Quit: sleeping]
Rya has quit [Ping timeout: 252 seconds]
JonnieCache has quit [Ping timeout: 256 seconds]
elux has joined #ruby
swarley has joined #ruby
vitor-br has quit [Quit: Saindo]
xjiujiu_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
tomsthumb has joined #ruby
Markvilla has joined #ruby
J-_-L has quit [Ping timeout: 252 seconds]
blazes816 has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
jeffreybaird_ has joined #ruby
Tref has quit [Quit: Tref]
treyryan has quit [Quit: treyryan]
savage- has joined #ruby
jeffreybaird has quit [Ping timeout: 264 seconds]
jeffreybaird_ is now known as jeffreybaird
davidcelis has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
chimkan has quit [Quit: chimkan]
Imapickle has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
treyryan has joined #ruby
SCommette has joined #ruby
apok has quit [Quit: apok]
Edward__ has quit [Ping timeout: 260 seconds]
Experium has quit [Ping timeout: 260 seconds]
erichmenge has quit [Quit: Be back later]
s0ber has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
s0ber has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
xpen has joined #ruby
ryanf has quit [Quit: leaving]
crazymykl has joined #ruby
caleb_io has quit [Quit: caleb_io]
hbpoison has joined #ruby
_nitti has joined #ruby
<maletor> If I have an array of arrays like [["<$100K", 50_000_00], ["$100-150K", 100_000_00]] and I know the value, what's the best way to get the key?
kbeddingfield has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
jeffreybaird_ has joined #ruby
jeffreybaird has quit [Ping timeout: 240 seconds]
jeffreybaird_ is now known as jeffreybaird
axl_ has quit [Quit: axl_]
okapi has joined #ruby
_nitti has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
kbeddingfield has quit [Ping timeout: 276 seconds]
yekta has joined #ruby
jeffreybaird_ has joined #ruby
yekta has left #ruby [#ruby]
love_color_text_ has quit [Remote host closed the connection]
twopoint718 has quit [Ping timeout: 240 seconds]
dakine has quit [Quit: Leaving]
jeffreybaird has quit [Ping timeout: 264 seconds]
jeffreybaird_ is now known as jeffreybaird
Dreamer3 has quit [Quit: Leaving...]
forced_request has quit [Read error: Connection reset by peer]
BoomCow has joined #ruby
xpen has quit [Remote host closed the connection]
syamajala has quit [Remote host closed the connection]
RJ3000_ has quit []
xpen has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
sertaconay has joined #ruby
shinnya has joined #ruby
earthquake has quit [Quit: earthquake]
awarner has quit [Remote host closed the connection]
dakine has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
sertaconay has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
UberNerdGirl has joined #ruby
elux has quit [Quit: Bye!]
Ruler_Of_Heaven_ has joined #ruby
savage- has quit [Quit: savage-]
pipopopo has quit [Ping timeout: 268 seconds]
ryanf has joined #ruby
savage- has joined #ruby
rakl has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
s0ber_ has joined #ruby
jeffreybaird has quit [Ping timeout: 256 seconds]
savage- has quit [Client Quit]
akem has quit [Read error: Operation timed out]
<Paradox> Banistergalaxy, you around?
maletor has quit [Quit: Computer has gone to sleep.]
skaczor has quit [Ping timeout: 240 seconds]
s0ber has quit [Ping timeout: 248 seconds]
s0ber_ is now known as s0ber
justinmc_ has quit [Remote host closed the connection]
maletor has joined #ruby
bigmac is now known as i8igmac
<maletor> Enumerable api#find is good stuff.
jaygen__ has quit [Remote host closed the connection]
jeremywrowe has joined #ruby
jrist-afk has quit [Ping timeout: 246 seconds]
drbawb has joined #ruby
syamajala has joined #ruby
swarley has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
delinquentme has left #ruby ["Leaving"]
moshee has quit [Remote host closed the connection]
<UberNerdGirl> eeeuuughhhhh the hurricane is making my whole bed and apartment shake and i can't focus on my Ruby!
meinpie has joined #ruby
moshee has joined #ruby
meinpie has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
radic has quit [Disconnected by services]
radic_ has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
slainer68 has joined #ruby
<RubyPanther> UberNerdGirl: pretend you're stuck in Dwemthy's Array and have to code your way out of the storm
BoomCow has quit [Quit: This computer has gone to sleep]
v0n has joined #ruby
tommyvyo has quit [Ping timeout: 244 seconds]
CaptainJet has quit []
slainer68 has quit [Read error: Operation timed out]
zeromodulus has quit [Ping timeout: 244 seconds]
sent-hil has quit [Remote host closed the connection]
<kamsky> UberNerdGirl, NY?
tommyvyo has joined #ruby
mduarte has joined #ruby
<UberNerdGirl> kamsky: yep, manhattan :(
<UberNerdGirl> RubyPanther: my, that's a fabulous idea!
<kamsky> me too, I didnt feel anything!
zeromodulus has joined #ruby
<kamsky> some wind..
<UberNerdGirl> kamsky: where in manhattan?
<UberNerdGirl> RubyPanther: Dwemthy knows 'carnal pleasures' that's kind of ominous
justinmcp has joined #ruby
<kamsky> the Heights
_md has quit [Ping timeout: 265 seconds]
cableray has quit [Quit: cableray]
moshee has quit [Remote host closed the connection]
mduarte has quit [Read error: Operation timed out]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
moshee has quit [Remote host closed the connection]
quest88 has joined #ruby
thone has quit [Ping timeout: 260 seconds]
thone_ has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
zeromodu_ has joined #ruby
_nitti has joined #ruby
chimkan has joined #ruby
xpen_ has joined #ruby
<UberNerdGirl> kamsky: jeez!! I'm in the Heights too!!!!!
<UberNerdGirl> v close to 170th and ft washington!
kbeddingfield has joined #ruby
<kamsky> 160th with Broadway!
zeromodulus has quit [Ping timeout: 240 seconds]
<kamsky> uptown babyyyy!! lol
ananthakumaran has quit [Ping timeout: 256 seconds]
xpen has quit [Ping timeout: 260 seconds]
verbad has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
kbeddingfield has quit [Ping timeout: 240 seconds]
jrist has joined #ruby
skcin7 has quit [Ping timeout: 260 seconds]
skcin7 has joined #ruby
katherinem13 has joined #ruby
<RubyPanther> Dragons eating bunnies is very carnal. And ominous.
hemanth has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
hemanth has joined #ruby
Fraeon has quit [Read error: Operation timed out]
Fraeon has joined #ruby
maddog_ has quit [Read error: Operation timed out]
maddog_ has joined #ruby
tomsthumb has quit [Quit: Leaving.]
justinmcp has quit [Ping timeout: 255 seconds]
headius has joined #ruby
skcin7 has quit [Read error: Operation timed out]
FifthWall has joined #ruby
ninegrid has joined #ruby
<kamsky> /var/lib/gems/1.8$ ls gems/
<kamsky> blankslate-2.1.2.4 citrus-2.4.1 parslet-1.4.0 polyglot-0.3.3 treetop-1.4.11
MrSamuel has joined #ruby
<kamsky> irb(main):001:0> requite 'Parslet'
<kamsky> NoMethodError: undefined method `requite' for main:Object
<kamsky> any idea?
justinmcp has joined #ruby
joeycarmello has quit [Remote host closed the connection]
hbpoison has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
c0rn has quit [Ping timeout: 245 seconds]
skcin7 has joined #ruby
BoomCow has joined #ruby
<rking> I have a rather good idea.
c0rn has joined #ruby
<rking> It's quite clear.
<rking> kamsky: Reading error messages carefully is a requisite for understanding the system.
<kamsky> require*
<rking> *Now* we're talking.
<kamsky> irb(main):003:0> require 'parslet'
<kamsky> LoadError: no such file to load -- parslet
<rking> Can you gist your $LOAD_PATH ?
armenb has quit [Ping timeout: 255 seconds]
skcin7 has quit [Ping timeout: 252 seconds]
xpen_ is now known as xpen
verbad has quit []
crackfu has quit [Remote host closed the connection]
<kamsky> $ echo $LOAD_PATH
<kamsky> ^^ empty
<rking> No, it's a Ruby global. A.K.A $:
crackfu has joined #ruby
<rking> ruby -e 'p $:'
wmoxam has quit [Ping timeout: 272 seconds]
<rking> You could paste it here if it's nongigantic.
areil has joined #ruby
<kamsky> "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i686-linux", "/usr/lib/ruby/1.8/i486-linux", "."]
<kamsky> ups
<kamsky> ruby -e 'p $:'
<kamsky> ["/usr/local/lib/site_ruby/1.8", "/usr/local/lib/site_ruby/1.8/i686-linux", "/usr/local/lib/site_ruby/1.8/i486-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/vendor_ruby/1.8", "/usr/lib/ruby/vendor_ruby/1.8/i686-linux", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i686-linux", "/usr/lib/ruby/1.8/i486-linux", "."]
<rking> kamsky: And not a "gem" in sight.
skcin7 has joined #ruby
<kamsky> right
<kamsky> thx
<rking> kamsky: Do you know about Bundler? It exchanges the current set of problems you're having with a different set. ☺
charliesome has joined #ruby
mercwithamouth has joined #ruby
<kamsky> nop, im just a Ruby noob, i come from Python
<kamsky> trying to write a PGN parser using ruby to learn the language
i8igmac has quit [Ping timeout: 268 seconds]
crackfu has quit [Ping timeout: 248 seconds]
<kamsky> UberNerdGirl, looks like the hurricane thing is over
<UberNerdGirl> kamsky: i filmed outside my window to the NJ river and i posted it on my twitter
<UberNerdGirl> i filmed TWO GREEN STRANGE explosions
<UberNerdGirl> people informed me they were transformers exploding!
<kamsky> yup, that's what I heard on the news
<kamsky> but I thought it was in downtown
krz has joined #ruby
owzim has joined #ruby
adeponte has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
love_color_text has joined #ruby
havenn has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
nazty has joined #ruby
BoomCow has quit [Quit: Leaving]
havenn has joined #ruby
awaage has joined #ruby
mercwithamouth has joined #ruby
ananthakumaran has joined #ruby
katherinem13 has quit [Ping timeout: 252 seconds]
skcin7 has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
rjsamson has quit [Remote host closed the connection]
J-_-L has joined #ruby
rjsamson has joined #ruby
skcin7 has joined #ruby
a_a_g has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
rakl has joined #ruby
sheerun has quit [Quit: and thanks for all the fish]
rjsamson has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
mmitchell has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
jenrzzz has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rakl has quit [Client Quit]
skcin7 has quit [Read error: Operation timed out]
icole has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
dmerrick has quit [Quit: dmerrick]
skcin7 has joined #ruby
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
synthetix has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
rakl has joined #ruby
jeremywrowe has quit [Quit: jeremywrowe]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
_nitti has joined #ruby
nazty has quit [Ping timeout: 252 seconds]
eldariof has quit [Ping timeout: 248 seconds]
kbeddingfield has joined #ruby
syamajala has quit [Remote host closed the connection]
kiyoura has quit [Quit: Leaving]
sent-hil has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
JonnieCache has joined #ruby
rjsamson has joined #ruby
kbeddingfield has quit [Ping timeout: 240 seconds]
sent-hil has quit [Remote host closed the connection]
hesco has left #ruby [#ruby]
chimkan has quit [Quit: chimkan]
Tearan has joined #ruby
areil_ has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
areil has quit [Ping timeout: 260 seconds]
skcin7 has quit [Read error: Connection reset by peer]
JonnieCache has quit [Read error: Operation timed out]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
J-_-L has quit [Quit: Leaving.]
drago757 has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
UberNerdGirl has quit [Quit: UberNerdGirl]
skcin7 has joined #ruby
havenn has joined #ruby
treyryan has quit [Quit: treyryan]
alek_b has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 276 seconds]
fyolnish has joined #ruby
alek_b has joined #ruby
ananthakumaran has joined #ruby
jenrzzz has joined #ruby
alek_b has quit [Read error: Connection reset by peer]
areil_ has quit []
areil has joined #ruby
alek_b has joined #ruby
headius has quit [Quit: headius]
jailandrade has quit [Ping timeout: 260 seconds]
dakine has quit [Quit: Leaving]
Tearan has quit [Quit: Badger digs a burrow...]
joeycarmello has joined #ruby
Tearan has joined #ruby
invapid has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
Jackneill is now known as Guest15771
joeycarmello has quit [Ping timeout: 255 seconds]
reset has quit [Ping timeout: 240 seconds]
synthetix has quit [Ping timeout: 260 seconds]
DrShoggoth has quit [Quit: Leaving]
fantazo has joined #ruby
v0n has joined #ruby
BrianJ has quit [Quit: BrianJ]
Cultofmetatron has quit [Remote host closed the connection]
jcaudle has quit [Quit: jcaudle]
skcin7 has quit [Read error: Connection reset by peer]
jcaudle has joined #ruby
jcaudle has quit [Client Quit]
slainer68 has joined #ruby
tectonic_ has quit [Quit: ZNC - http://znc.in]
skcin7 has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
perryh has quit [Excess Flood]
tectonic has joined #ruby
perryh has joined #ruby
apeiros has joined #ruby
owzim has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
mockra has joined #ruby
stkowski has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
cantonic_ has joined #ruby
mmitchell has joined #ruby
ericcoleman has joined #ruby
stkowski has quit [Client Quit]
hemanth has joined #ruby
emdub has quit [Ping timeout: 248 seconds]
Kov|abx has quit [Ping timeout: 248 seconds]
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
Quadlex has quit [Ping timeout: 265 seconds]
_nitti has joined #ruby
Kov|abx has joined #ruby
emdub has joined #ruby
Quadlex has joined #ruby
kbeddingfield has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
skcin7 has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
kbeddingfield has quit [Read error: Operation timed out]
_nitti has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
sertaconay has joined #ruby
khagler has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
alejandro_ has quit [Ping timeout: 260 seconds]
rjsamson has quit [Ping timeout: 256 seconds]
_alejandro has joined #ruby
chendo_ has quit [Read error: Operation timed out]
v0n has quit [Ping timeout: 260 seconds]
MrSamuel has quit [Quit: MrSamuel]
adeponte has quit [Remote host closed the connection]
chendo_ has joined #ruby
ericcoleman has quit [Quit: ericcoleman]
skcin7 has joined #ruby
newfprag has quit [Quit: Konversation terminated!]
kil0byte has quit [Ping timeout: 256 seconds]
SCommette has quit [Quit: SCommette]
kamsky has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 260 seconds]
sertaconay has quit [Ping timeout: 260 seconds]
Tref has joined #ruby
reset has joined #ruby
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
UberNerdGirl has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Cache_Money has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
nari has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
fantazo has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 260 seconds]
psycho_one has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adeponte has joined #ruby
schwap has quit [Ping timeout: 248 seconds]
joofsh has quit [Remote host closed the connection]
burgestrand has joined #ruby
mahmoudimus has joined #ruby
ericcoleman has joined #ruby
Erfankam has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
rohit has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
mneorr has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
mneorr has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
<RubyPanther> UberNerdGirl: That looks like the explosion at the medical school hospital, they had to evacuate in the dark
margle has joined #ruby
havenn has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
<linnea> it was sookie
havenn has joined #ruby
<UberNerdGirl> RubyPanther: oh
<UberNerdGirl> are you in NYC?
Ry has joined #ruby
<UberNerdGirl> i live a block from that hosptial
havenn has quit [Read error: No route to host]
Hunner has left #ruby [" "]
awaage has quit [Quit: awaage]
adeponte has quit [Remote host closed the connection]
redbull has joined #ruby
daniel_hinojosa has quit [Ping timeout: 264 seconds]
khagler has quit [Remote host closed the connection]
Ry has left #ruby [#ruby]
mneorr has quit [Ping timeout: 276 seconds]
tagrudev has joined #ruby
ericcoleman has quit [Quit: ericcoleman]
Ry has joined #ruby
Ry has quit [Remote host closed the connection]
_nitti has joined #ruby
<RubyPanther> No I just saw the explosion on TV it had the same flash pattern as your video
jenrzzz has quit [Ping timeout: 248 seconds]
_nitti has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby
ABK has joined #ruby
Ry has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
quest88 has quit [Quit: quest88]
mneorr has joined #ruby
justinmcp has quit [Remote host closed the connection]
jarred_ has joined #ruby
skcin7 has joined #ruby
jarred_ has left #ruby [#ruby]
g-ram has quit [Quit: Computer has gone to sleep.]
<Ry> That feel when chrome loses all your tabs with no option to restore -_-
sent-hil has joined #ruby
dhruvasagar has joined #ruby
redbull has quit [Read error: Connection reset by peer]
ElderFain has quit [Read error: Connection reset by peer]
ElderFain has joined #ruby
redbull has joined #ruby
_cheney has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dmiller_ has quit [Remote host closed the connection]
_cheney has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
ffranz2 has quit [Excess Flood]
Ry has quit [Quit: Ry]
Ry has joined #ruby
andynu has quit [Ping timeout: 260 seconds]
ffranz2 has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
darthdeus has quit [Quit: Leaving...]
CodeDroid__ has joined #ruby
justinmcp has joined #ruby
roadt has joined #ruby
<burgestrand> That stopped happening for me about a year ago. You could try the "Reopen closed tabs" option, Ry.
sn0wb1rd has quit [Quit: I will be right back]
skcin7 has joined #ruby
<Ry> No idea where to find that, my recently closed list was gone, so yeah, it just 'forgot' :P
haxrbyte has quit [Ping timeout: 255 seconds]
<burgestrand> Ry: under File I find it (same area where you open new tabs and windows), I just use CMD+SHIFT+T. ^^
maesbn has joined #ruby
rohit has quit [Ping timeout: 260 seconds]
<Ry> yeh, i assumed you meant the one that says 'reopen X tabs' after a crash, the last tab reopening i know about, but it was greyed out since there was no history :/
arturaz has joined #ruby
sent-hil has quit [Remote host closed the connection]
Tref has quit [Quit: Tref]
Jonah11_ has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
love_col_ has joined #ruby
hotovson has joined #ruby
ericcoleman has joined #ruby
ericcoleman has quit [Client Quit]
keyvan has quit [Ping timeout: 252 seconds]
JonnieCache has joined #ruby
skcin7 has quit []
rohit has joined #ruby
tiripamwe has joined #ruby
CodeDroid__ has quit [Ping timeout: 260 seconds]
JonnieCache has quit [Ping timeout: 276 seconds]
Morkel has joined #ruby
savage- has quit [Quit: savage-]
nilg has joined #ruby
slainer68 has joined #ruby
aganov has joined #ruby
ZubKonst_ has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
UberNerdGirl has quit [Quit: UberNerdGirl]
jlwestsr has quit [Ping timeout: 246 seconds]
ZubKonst has quit [Ping timeout: 260 seconds]
icole has quit [Remote host closed the connection]
icole has joined #ruby
dangerousdave has joined #ruby
rakl has quit [Quit: sleeping]
ryanf has quit [Quit: leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
minijupe has quit [Quit: minijupe]
_nitti has joined #ruby
wallerdev has quit [Quit: wallerdev]
icole has quit [Ping timeout: 248 seconds]
love_col_ has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
abionic has joined #ruby
mahmoudimus has joined #ruby
burgestrand has joined #ruby
rohit has quit [Quit: Leaving]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
elico has joined #ruby
akem has quit [Max SendQ exceeded]
u89 has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
abionic has quit [Read error: Operation timed out]
ABK has quit [Ping timeout: 265 seconds]
zigomir has joined #ruby
icole has joined #ruby
stnly has quit [Quit: Lost terminal]
Morkel_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
Morkel has quit [Read error: Operation timed out]
Morkel_ is now known as Morkel
Voxxit has quit [Ping timeout: 246 seconds]
justinmcp has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
whaley has joined #ruby
eldariof has joined #ruby
dr_bob has joined #ruby
d3vic3 has joined #ruby
justinmcp has joined #ruby
Voxxit has joined #ruby
JohnBat26 has joined #ruby
williamherry has joined #ruby
bluOxigen has joined #ruby
u89 has quit [Remote host closed the connection]
workmad3 has joined #ruby
kil0byte has joined #ruby
timonv has joined #ruby
lupine_86 has joined #ruby
lupine_85 has quit [Ping timeout: 246 seconds]
tiripamwe has quit [Ping timeout: 276 seconds]
anpl has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
MrSamuel has joined #ruby
nemesit has joined #ruby
artOfWar has quit [Ping timeout: 256 seconds]
moeSeth has joined #ruby
slainer68 has joined #ruby
tonini has joined #ruby
slainer68 has quit [Remote host closed the connection]
senny has joined #ruby
u89 has joined #ruby
darthdeus has joined #ruby
Bosox20051 has joined #ruby
moshee has quit [Ping timeout: 268 seconds]
__miha__ has quit [Ping timeout: 245 seconds]
justinmcp has quit [Remote host closed the connection]
mntzn has joined #ruby
anpl has quit [Ping timeout: 255 seconds]
eph3meral has quit [Quit: eph3meral]
jenrzzz has quit [Ping timeout: 264 seconds]
u89 has quit [Remote host closed the connection]
filipe has joined #ruby
dekroning has joined #ruby
hoelzro|away is now known as hoelzro
icole has quit [Remote host closed the connection]
gregorg_taf has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
icole has joined #ruby
caleb_io has joined #ruby
blacktulip has joined #ruby
icole has quit [Ping timeout: 276 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
eph3meral has joined #ruby
asuka has joined #ruby
eph3meral has quit [Client Quit]
nohonor has joined #ruby
kadel has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
kil0byte_ has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
caleb_io has quit [Quit: caleb_io]
GeekOnCoffee has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
Elhu has joined #ruby
bbttxu has joined #ruby
ephemerian has joined #ruby
whaley has quit [Remote host closed the connection]
manizzle has joined #ruby
tchebb has quit [Ping timeout: 260 seconds]
tpe11etier_ has quit [Quit: tpe11etier_]
timonv has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
Proshot_ has joined #ruby
shtirlic has joined #ruby
tvw has joined #ruby
Virunga has joined #ruby
kil0byte has joined #ruby
cezar has joined #ruby
cezar has quit [Read error: Connection reset by peer]
icole has joined #ruby
marius has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
g_bleezy has quit [Remote host closed the connection]
tiripamwe has joined #ruby
jimeh has joined #ruby
Ry_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
Ry_ is now known as Ry
bairui has quit [Ping timeout: 255 seconds]
filipe has quit [Ping timeout: 245 seconds]
tintin has joined #ruby
<tintin> Hi
<tintin> Rack::Handler::WEBrick.run(app, :Port => 4000) , how can i re-write this for apache?
xorigin has joined #ruby
<tintin> no webrick
<tintin> it will run on apache
ABK has joined #ruby
icole has quit [Ping timeout: 240 seconds]
Ry_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
Ry_ is now known as Ry
<tintin> Anybody there?
<ABK> ?
Vinz_` is now known as Vinz_
haxrbyte has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
<tintin> ABK: Are you familier with rack?
rafter has joined #ruby
arkiver has joined #ruby
<Hanmac> tintin why dont you ask at #rack or are you banned there?
matthewrobbins has joined #ruby
Bish has quit [Ping timeout: 245 seconds]
<tintin> I'm on #rack
tintin has left #ruby [#ruby]
juarlex_ has joined #ruby
Bish has joined #ruby
bairui has joined #ruby
filipe has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Vinz_ is now known as Vinz_`
juarlex__ has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
jeekl has quit [Quit: jeekl]
Androidnewbe has joined #ruby
monkegjinni has joined #ruby
hotovson has quit [Remote host closed the connection]
Hanmac has quit [Read error: Operation timed out]
<Morkel> can i use sort_by when the array has nil values?
elaptics`away is now known as elaptics
jeekl has joined #ruby
jeekl has quit [Changing host]
jeekl has joined #ruby
jeekl has quit [Client Quit]
hamed_r has joined #ruby
hamed_r has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 260 seconds]
jgrevich has quit [Quit: jgrevich]
skum has joined #ruby
adambeynon has joined #ruby
bigmcq77 has quit [Ping timeout: 245 seconds]
slainer68 has joined #ruby
jeekl has joined #ruby
jeekl has quit [Changing host]
jeekl has joined #ruby
jeekl has quit [Client Quit]
kil0byte_ has joined #ruby
jeekl has joined #ruby
jeekl has quit [Changing host]
jeekl has joined #ruby
robotmay has joined #ruby
bigmcq77 has joined #ruby
workmad3 has joined #ruby
<burgestrand> Morkel: yes
nemesit has quit [Quit: Linkinus - http://linkinus.com]
reset has quit [Quit: Leaving...]
<burgestrand> Morkel: but you need your sorting block to provide a sensible value for the nil
<Morkel> burgestrand: what do you mean with sorting block? I use this @rope.variations.sort_by{|v| [v.shop, v.length]}
<burgestrand> Morkel: the block… that you use, for sorting
<burgestrand> Morkel: the transformation block, the thingamajig
<Morkel> ok
daniel_- has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
nemesit has joined #ruby
slainer68 has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
tommyblue has joined #ruby
glyytchy has joined #ruby
glyytchy has quit [Client Quit]
u89 has joined #ruby
swex has joined #ruby
berserkr has joined #ruby
_nitti has joined #ruby
skcin7 has joined #ruby
mneorr has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Ry_ has joined #ruby
tommyblue is now known as TommyBlue
kbeddingfield has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
JonnieCache has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
Ry has quit [Ping timeout: 248 seconds]
TommyBlue has quit [Quit: Coyote finally caught me]
bairui has quit [Ping timeout: 246 seconds]
TommyBlue has joined #ruby
TommyBlue is now known as TommyBlue
margle has joined #ruby
Ry_ has quit [Ping timeout: 276 seconds]
darthdeus has quit [Quit: Leaving...]
kil0byte has joined #ruby
kbeddingfield has quit [Ping timeout: 244 seconds]
Imapickle is now known as Experium
x2s has joined #ruby
rohrer has joined #ruby
<x2s> Hi. I'm using ruby on Debian Wheezy and I've got the following problem. My test script looks like this: https://gist.github.com/acf8f665efb84a2bb349
MrSamuel has quit [Quit: MrSamuel]
<x2s> if I run it, I get this error message: https://gist.github.com/c5d6574b675ccd7e1b2e
<rohrer> my google-fu is failing me - does anyone know of any good resources for extracting ActiveRecord objects+migrations, etc. into a gem that can be shared between a rails app and other non-rails ruby applications that need to access the same db?
<x2s> what am I missing here?
<x2s> Or is this a bug in the Debian package or something?
lupine_86 has quit [Changing host]
lupine_86 has joined #ruby
<burgestrand> rohrer: I believe the common way to do it is to have a rails generator that generates the migrations. The models are just ruby so you can require those.
lupine_86 is now known as lupine_85
<burgestrand> x2s: looks like you are missing the amalgalite database driver, if that exists.
<burgestrand> x2s: what happens if you try to require it?
psycho_one has quit [Remote host closed the connection]
tiripamwe has quit [Ping timeout: 240 seconds]
<x2s> one moment please
djdb has joined #ruby
<x2s> require 'sequel/adapters/amalgalite'?
skcin7 has quit []
<burgestrand> x2s: yeah, something like that. Would expect Sequel to do that for you but why not try.
darthdeus has joined #ruby
<burgestrand> x2s: no.
awestroke has joined #ruby
<burgestrand> x2s: never mind, I misread your error message. Have you installed the amalgite gem?
<burgestrand> x2s: gem install amalgalite
<JonnieCache> sequel expects you to require your own drivers
<JonnieCache> it treats you like an adult :)
fermion has joined #ruby
<burgestrand> JonnieCache: looks like it doesn’t; it requires the driver for you, but he’s missing the amalgalite gem so it kabooms.
<x2s> the annoying part is, that there's a /usr/lib/ruby/vendor_ruby/sequel/adapters/amalgalite.rb already...
icole has joined #ruby
<JonnieCache> i have "require 'sequel/adapters/mysql2'" in my code and removal of that line breaks it
lupine_85 has quit [Quit: If you see this, my dogfood was poisoned]
<burgestrand> x2s: adapter may exist, but you do not have the actual driver.
<x2s> Ah, I understand
<JonnieCache> i guess the adapter requires the driver
<burgestrand> x2s: sequel/adapters/amalgalite ≠ amalgalite
<burgestrand> x2s: so do the "gem install amalgalite" and try again. How did you install ruby? Using system installation?
<x2s> burgestrand: yes, I used the Debian package. Normally this works fine...
<x2s> could be a debian specific bug
<burgestrand> x2s: alright, was just curious.
<burgestrand> x2s: why don’t you install the gem?
<burgestrand> x2s: a missing gem is not a bug.
kil0byte_ has joined #ruby
<x2s> burgestrand: isn't gem it's own package manager?
irleif has joined #ruby
lupine_85 has joined #ruby
icole has quit [Ping timeout: 260 seconds]
<burgestrand> x2s: yes, for ruby libraries. Debian cripples the package manager (rubygems) somewhat, but still recognizes it as necessary.
kil0byte has quit [Ping timeout: 240 seconds]
<burgestrand> I mean, without it you couldn’t use any of the 46,220 gems from http://rubygems.org/ with the debian ruby installation, and that would be annoying.
<x2s> burgestrand: yes, the debian way is to provide almost everything by apt and dpkg. It's unusual to install your own software.
samphippen has joined #ruby
<x2s> but I've got to get this working, so it's gem :)
<burgestrand> x2s: yeah, it inevitably becomes a little bit odd when there are rich libraries available through other package managers that are part of system packages.
<burgestrand> (e.g. rubygems)
<burgestrand> Feels like the python package management solution should have a similar experience.
vlad_starkov has joined #ruby
fyolnish has quit [Remote host closed the connection]
kil0byte has joined #ruby
<x2s> and it shouldn't be to hard to write a wrapper around gem to get debian packages as output.
<JonnieCache> you would think
sepp2k has joined #ruby
tvw has joined #ruby
<x2s> ok, the error is still there. But it could be a search path problem
lkba has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
<x2s> "/var/lib/gems is default in Debian instead of /usr/lib/gems." Hm.
sspiff has joined #ruby
morf has joined #ruby
nari has quit [Ping timeout: 260 seconds]
tiripamwe has joined #ruby
banisterfiend has joined #ruby
noxoc1 has joined #ruby
<x2s> burgestrand: JonnieCache: Many thanks for your help. It's working now
ssspiff has quit [Ping timeout: 260 seconds]
<burgestrand> x2s: happy days!
<x2s> (with a very long RUBYLIBs shell variable ;)
timmow has joined #ruby
Jork1 has joined #ruby
bier has quit [Ping timeout: 252 seconds]
reinaldob has joined #ruby
binaryplease has joined #ruby
x2s has left #ruby ["Many thanks again"]
akem has quit [Ping timeout: 240 seconds]
binaryplease has quit [Client Quit]
Experium has left #ruby ["Leaving"]
baphled has joined #ruby
darthdeus has quit [Quit: Leaving...]
keymone has quit [Quit: keymone]
philcrissman has joined #ruby
codecaster has joined #ruby
bier has joined #ruby
slainer68 has joined #ruby
timonv has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
dross has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
darthdeus has joined #ruby
_nitti has joined #ruby
dross has joined #ruby
niklasb has joined #ruby
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
beiter has joined #ruby
maddog_ has quit [Read error: Operation timed out]
rakunHo has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
_veer has quit [Ping timeout: 260 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: Computer has gone to sleep.]
maddog_ has joined #ruby
Axsuul has quit [Ping timeout: 255 seconds]
daniel_-_ has joined #ruby
apeiros_ has joined #ruby
daniel_- has quit [Read error: Operation timed out]
tonini has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby
cascalheira has joined #ruby
chussenot has quit [Quit: chussenot]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
chussenot has joined #ruby
darthdeus has quit [Quit: Leaving...]
margle has quit [Quit: Computer has gone to sleep.]
g_bleezy has joined #ruby
icole has joined #ruby
samphippen has joined #ruby
Jork1 has quit [Quit: Jork1]
u89 has quit [Remote host closed the connection]
AndChat| has joined #ruby
g_bleezy has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
icole has quit [Ping timeout: 260 seconds]
u89 has joined #ruby
chriskk has quit [Quit: chriskk]
kil0byte_ has joined #ruby
Ruler_Of_Heaven_ is now known as pipopopo
Banistergalaxy has joined #ruby
margle has joined #ruby
robotmay has quit [Read error: No route to host]
robotmay has joined #ruby
chriskk has joined #ruby
fyolnish has joined #ruby
tiripamwe has quit [Ping timeout: 256 seconds]
beiter has quit [Quit: beiter]
kil0byte has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
und3f has joined #ruby
AndChat| has joined #ruby
fir_ed has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
fyolnish has quit [Ping timeout: 244 seconds]
Jork1 has joined #ruby
justinmcp has joined #ruby
robotmay has quit [Ping timeout: 260 seconds]
jipiboily has quit [Quit: Leaving.]
Ry has joined #ruby
robertotauille has joined #ruby
kil0byte has joined #ruby
robotmay has joined #ruby
RudyValencia has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
RudyValencia has joined #ruby
kil0byte_ has quit [Ping timeout: 240 seconds]
yalue has joined #ruby
Vinz_` is now known as Vinz_
lkba has joined #ruby
axl_ has joined #ruby
psycho_one has joined #ruby
qq123 has joined #ruby
qq123 has quit [Quit: Instantbird 1.2 -- http://www.instantbird.com]
qq123 has joined #ruby
jprovazn_away has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 260 seconds]
qq123 has left #ruby [#ruby]
chriskk has quit [Quit: chriskk]
psycho_one has quit [Remote host closed the connection]
chriskk has joined #ruby
sebastorama has joined #ruby
UberNerdGirl has joined #ruby
timonv has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
fermion has quit [Ping timeout: 276 seconds]
UberNerdGirl has quit [Client Quit]
daniel_-_ has quit [Quit: WeeChat 0.3.9]
sleetdrop has quit [Ping timeout: 255 seconds]
Vinz_ is now known as Vinz_`
fermion has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
manizzle has quit [Ping timeout: 248 seconds]
daniel_- has joined #ruby
gener1c has joined #ruby
gener1c has quit [Changing host]
gener1c has joined #ruby
slainer68 has joined #ruby
<gener1c> how do i write a regex to match 2 to 4 digits but not if they have certain chars appended to them?
<gener1c> i am having issues with the negation part
<gener1c> /\s{2,4}/ was easy
<gener1c> \d
<codecaster> negation is [^chars]
<gener1c> awsome :)
<gener1c> thanks
<codecaster> try /\s{2,4}[^abcde]/
<codecaster> or whatever chars they are
<codecaster> you can use ranges
<codecaster> [^a-z]
<gener1c> /[^&][^#]\d{2,4}[^;]/
<gener1c> :D
<codecaster> try [^&#]
<codecaster> not sure if you need to escape something there
<gener1c> yeah but then the are not in that order
<codecaster> beware ofthat
<codecaster> ah, ok
<codecaster> I thought they were interchangeable
<codecaster> ;P
<gener1c> plus they can be together
<gener1c> and i think this one is for a single instance
<gener1c> nah its for xhtml entities
<gener1c> :D
<codecaster> then append {1,2}
<codecaster> well, experiment with that
<codecaster> html + regexps
<codecaster> you like living on the edge
<gener1c> hehe
_nitti has joined #ruby
<gener1c> fixing adobe's mistakes in epub rendering
larissa has joined #ruby
<apeiros_> note that [^;] requires a char after your digits
<apeiros_> e.g. "12" does not match /\d{2,4}[^;]/
failshell has joined #ruby
<chiel> you could do [^;]? I guess
zmo_ has joined #ruby
<apeiros_> pointless
<chiel> but that can cause other nasty issues :D
<apeiros_> that matches "12;" too
darthdeus has joined #ruby
<chiel> yeah, true
<failshell> hello. im writing this script that uses net/ssh. what gem could i use to spawn processes to run in parallel instead of serial?
<chiel> i must still be sleeping :>
Agis__ has joined #ruby
<apeiros_> it really depends on what you really want
_nitti has quit [Ping timeout: 260 seconds]
<apeiros_> negative look-ahead is a way
visof has joined #ruby
<apeiros_> /\d{2,4)(?!;)/
<gener1c> i tried that apeiros
<gener1c> but it resulted in evil stuff on rubular
<apeiros_> "evil stuff" isn't exactly a useful problem description
<gener1c> (?!&#)\d{2,4}(?!;)
<apeiros_> yeah, that won't work
<gener1c> why not?
kbeddingfield has joined #ruby
<apeiros_> because (?!&#) is look-ahead
Takehiro has joined #ruby
<gener1c> ahhh
<gener1c> so i need
<gener1c> ?<!
<apeiros_> yes
<gener1c> (?<!&#)\d{2,4}(?!;)
<apeiros_> but it might still not be what you want
manizzle has joined #ruby
<apeiros_> &#12a <- should that match?
<apeiros_> foo12; <- should that match?
<gener1c> yeah i want to choose all instances of 2-4 chars that are not serounded by those chars
<apeiros_> then that regex still won't do
seich has quit [Ping timeout: 246 seconds]
<gener1c> foo12 can match
<gener1c> i just want to exclude xhtml entities
<gener1c> foo12; and &#345 can match
jslowe has joined #ruby
<apeiros_> /(?<!&#)\d{2,4}|\d{2,4}(?!;)/
chussenot has quit [Quit: chussenot]
<apeiros_> this will match "12", "12x", "x12", "#&12foo" and "foo12;" - but not "&#12;"
<yalue> gener1c: Is there a reason why you aren't just using a second regular expression to try to match an xhtml entity?
<Ry> hey, check out http://rubular.com/ , found it the other day and it's dead handy for regex testing with ruby syntax
<gener1c> im using it now
<yalue> Also, you can ask on #regex
slainer68 has quit [Remote host closed the connection]
kbeddingfield has quit [Ping timeout: 256 seconds]
<gener1c> ok ill use a second regex
seich- has joined #ruby
<gener1c> that would be smarter :/
a_a_g has quit [Quit: Leaving.]
awestroke has quit [Remote host closed the connection]
<gener1c> the issue is that this is a huge string
<gener1c> but its still O(n) if i run over it twise so..
<yalue> Yeah, you could probably just do a
<yalue> "huge string".gsub!(/&#[^;];/, "")
<yalue> To remove the entities, then just scan for the numbers
<gener1c> i want them there
<gener1c> i am flipping numbers
<yalue> Oh, okay...
<gener1c> i just dont want to harm the entities
samphippen has quit [Quit: Computer has gone to sleep.]
<gener1c> what if i already have a regex for the entities and im passing it a hash can i use a block for the stuff that doesnt match?
chriskk has quit [Quit: chriskk]
dhruvasagar has quit [Ping timeout: 240 seconds]
<gener1c> nevermind im just trying to be original and thats a bad thing
v0n has joined #ruby
Virunga has quit [Remote host closed the connection]
Slivka has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
djbpython has quit [Ping timeout: 246 seconds]
<gener1c> thanks everyone :)
kil0byte_ has joined #ruby
<failshell> lets say you're running a loop, how can i improve speed by running them in parallel?
rippa has joined #ruby
icole has joined #ruby
chriskk has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
geekbri has joined #ruby
Vinz_` is now known as Vinz_
<apeiros_> failshell: concurrency isn't a silver bullet. you can't just apply "recipe X" and it'll work. you'll have to be more precise about your problem.
dhruvasa1ar has joined #ruby
irleif has joined #ruby
Takehiro has quit [Remote host closed the connection]
skaczor has joined #ruby
<failshell> apeiros_: im looping through a list of hosts to connect over ssh to machines to run inventories
<failshell> obviously, if each one execute after the other, when you have 500 machines, its gonna be long
<failshell> so id like to parallelize the process
timonv has joined #ruby
icole has quit [Ping timeout: 245 seconds]
<apeiros_> take a look at the peach gem
darthdeus has quit [Quit: Leaving...]
justinmcp has quit [Remote host closed the connection]
carloslopes has joined #ruby
tiripamwe has joined #ruby
Androidnewbe has quit [Ping timeout: 276 seconds]
CaptainKnots has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
Ry has quit [Ping timeout: 255 seconds]
awestroke has joined #ruby
larissa has quit [Ping timeout: 260 seconds]
darthdeus has joined #ruby
redbull has quit [Read error: Connection reset by peer]
marius has quit []
[Neurotic] has quit [Remote host closed the connection]
redbull has joined #ruby
<failshell> apeiros_: much simpler
<failshell> that kind of gem is why i love ruby so much
banisterfiend has quit [Ping timeout: 245 seconds]
<failshell> helps non-developers like me write nice apps anyway
<JonnieCache> apeiros_: so many cases are "embarassingly parallel" though so you really can apply a recipe and have it work
fyolnish has joined #ruby
Ry has joined #ruby
<JonnieCache> theres so much stuff which is needlesly done serially but doesnt have any shared state
<apeiros_> JonnieCache: yes, but it's not "one recipe that fits it all"
<apeiros_> the specific case matters.
<apeiros_> otherwise you're just butting your head into race conditions and state corruption
ij has joined #ruby
ij has quit [Read error: Connection reset by peer]
<JonnieCache> there is a *lot* of stuff you can just put peach onto without worrying very much though
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
zz_Cidan has quit [Ping timeout: 268 seconds]
mark_locklear has joined #ruby
philcrissman has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 244 seconds]
pkondzior_ has quit [Remote host closed the connection]
zz_Cidan has joined #ruby
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #ruby
tk__ has joined #ruby
<JonnieCache> but if youre optimizing without benchmarking then youre not optimizing
answer_42 has joined #ruby
Guest69755 has quit [Remote host closed the connection]
visof has quit [Quit: leaving]
chriskk has quit [Quit: chriskk]
slainer68 has joined #ruby
<fir_ed> Does anyone here have experience with Nokogiri?
<shevy> Nokogiri
<shevy> that is the thing that deals with XML
Virunga has quit [Remote host closed the connection]
<shevy> I declare XML to be dead.
Banistergalaxy has joined #ruby
<shevy> who is buttering his head apeiros_ ? :)
ij has joined #ruby
<apeiros_> fir_ed: metaquestions--
bbttxu has quit [Quit: bbttxu]
AndChat| has quit [Ping timeout: 260 seconds]
larissa has joined #ruby
lxsameer has joined #ruby
<fir_ed> Nokogiri -> I'm HTML parsing a page on the apple website to test it out and learn. I don't understand one of the results. I am getting back a full name that I don't know where it is coming from
<fir_ed> There are some songs that are automatically shortened at -> http://www.apple.com/itunes/charts/songs/
<fir_ed> Nokogiri is picking up the entire song name
<fir_ed> I checked out the html source
<fir_ed> I don't know where the full name is coming from.
<fir_ed> Any ideas?
<lxsameer> is there any software to check for programming warnings and errors in a ruby code snippet ?
<JonnieCache> post your code
<elaptics> lxsameer: ruby -c ruby_file.rb
<lxsameer> elaptics: thanks
jipiboily has joined #ruby
jipiboily has left #ruby [#ruby]
<apeiros_> fir_ed: looks like the shortening is done via javascript
<apeiros_> in the original source code, the songs are unshortened
slainer68 has quit [Ping timeout: 260 seconds]
<fir_ed> I just checked the source code, I see the ...'s
codecaster has left #ruby [#ruby]
graeme_ has joined #ruby
<apeiros_> fir_ed: I assume you used the DOM browser
invisime has joined #ruby
<apeiros_> which shows you the current state of the dom, not the original
<fir_ed> How can I access the original?
<apeiros_> depends on your browser
<fir_ed> Chrome
<fir_ed> :P
Agis__ has quit [Quit: Agis__]
<apeiros_> funny, I haven't even yet installed chrome on this machine as it seems
<fir_ed> apeiros_, I see what you mean.
<apeiros_> well, until I have chrome downloaded - "inspect element" = current state of DOM
<fir_ed> The unedited html page sent to the browser shows it.
kil0byte has joined #ruby
<fir_ed> Yeah I was using inspect element/dev tools
AndChat| has joined #ruby
<fir_ed> So I'm guessing the javascript edited the DOM after the html page is sent?
<apeiros_> that's my assumption, yes
<fir_ed> Thanks apeiros_, Helped a lot.
niklasb has joined #ruby
<JonnieCache> fir_ed: when youre parsing html from a site, the DOM browser will often mislead you like that
<JonnieCache> fir_ed: either disable js, or use the "view source" instead
AndChat- has joined #ruby
<fir_ed> JonnieCache, Thank you as well for the information.
<fir_ed> On a sidenote, I'm seeing escape sequences in the returned parse. Is this something to do with unicode?
kil0byte_ has quit [Ping timeout: 255 seconds]
<fir_ed> Specifically Psy's Gangnam style..
oquidave has joined #ruby
<fir_ed> since it is in korean.
AndChat| has quit [Read error: Connection reset by peer]
andynu has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<apeiros_> fir_ed: you mean things like &#1234; ?
Banistergalaxy has joined #ruby
<fir_ed> (\uAC15\uB0A8\uC2A4\uD0C0\uC77C) <-- stuff like that
zmo_ has quit [Ping timeout: 256 seconds]
<apeiros_> yes, those are unicode sequences
erichmenge has joined #ruby
Virunga has joined #ruby
<apeiros_> \uHHHH is a single unicode character
<JonnieCache> gangnam style is actually in the charts now?
<fir_ed> It is number one. lol
nilg has quit [Ping timeout: 248 seconds]
* JonnieCache thinks he shouldnt be programming, he should be selling reheated euro-dance cliches to americans for big $$$
Proshot_ has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
<fir_ed> americans eat that stuff up
AndChat- has quit [Ping timeout: 246 seconds]
<fir_ed> But yeah, thanks guys
<JonnieCache> yes but why are they only eating it up now? why havent they been eating it up for the last decade like the euro kids?
<JonnieCache> must be the alignment of the planets...
_nitti has joined #ruby
<apeiros_> americans are a bit slower, have patience with them. maybe in a couple of decades, they'll also have a reconnaisance
Banistergalaxy has quit [Ping timeout: 246 seconds]
Androidnewbe has joined #ruby
<Androidnewbe> guys do you know how can i chagne a value of environmental variable for ruby
<apeiros_> Androidnewbe: just the same as for every other executable
<JonnieCache> a decade isnt even long enough i swear that guetta stuff is like 20 years out of date
<apeiros_> FOO=bar ruby -e 'p ENV["FOO"]'
<apeiros_> or good old export
<oquidave> hello people...
<apeiros_> headache is odd… I somehow read "hello people" as "old people" - wtf?
<Androidnewbe> given i have environmeltna varaibel like set BrowserType =0 then i ruby code i do env['BrowserType']= 1 ?
<apeiros_> eh?
<apeiros_> I think you misunderstand how env vars work
daniel_hinojosa has joined #ruby
jeffreybaird has joined #ruby
<Androidnewbe> probably
<apeiros_> env vars are used by apps, they are not set by them
atmosx has joined #ruby
<apeiros_> why'd you set an env var in an app?
<Androidnewbe> because im running cucumber testing and I want to execute cucumber test mulitple times and depending on the evn varaible i will swich the brawser
<Androidnewbe> so i set the variable in comand line
<oquidave> am new to ruby...could someone explain what params[:event] means. why isn't it something like params["event"]...what does the :event really imply thanks
d2dchat has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
<Androidnewbe> like this : set BrawserType =0
<apeiros_> oquidave: :event.class # => Symbol
<atmosx> oquidave: it's a symbol
slainer68 has joined #ruby
<apeiros_> just like 1, "hello", [] - a :foo is a kind of literal value, creating objects of the class Symbol
<apeiros_> and why'd you prefer Symbols over Strings (or the other way round) is widely documented online, just google "ruby Symbol vs String" or somesuch
<Androidnewbe> and in the code i can chenck the value and if it's 0 set brawsaer to firefox and change the varialbe to 1 then next time if is 1 change browser to ie and so on
rjsamson has joined #ruby
<oquidave> apeiros_: thanks
pkondzior_ has joined #ruby
<apeiros_> Androidnewbe: well, you read the env via ENV
kbeddingfield has joined #ruby
ABK has quit [Ping timeout: 255 seconds]
<apeiros_> and you set the env for a ruby app the same way as for any other (just as demonstrated)
krz has quit [Quit: krz]
wmoxam has joined #ruby
<Androidnewbe> but I would like to change its value at run time in the code
<apeiros_> then why'd you use an env variable?
<apeiros_> just use a normal variable
v0n has quit [Ping timeout: 240 seconds]
ThaDick has joined #ruby
bbttxu has joined #ruby
noxoc2 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
erichmenge has quit [Quit: Be back later]
x0F_ is now known as x0F
Cultofmetatron has joined #ruby
<Androidnewbe> because i need to run the test for each browser separately
<Androidnewbe> Cucumber makes it reall difficult
kbeddingfield has quit [Ping timeout: 252 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
iamvery has joined #ruby
dakine has joined #ruby
aquaranto has joined #ruby
noxoc1 has quit [Ping timeout: 244 seconds]
<Androidnewbe> i guess I dont understadn how env varaibles work in ruby
aquaranto has quit [Remote host closed the connection]
<oquidave> apeiros_: i can also read that symbols are immutable while strings are not
<Androidnewbe> is i change its value in the app and then run app again will the value remian of it will re set
visof has joined #ruby
<invisime> Androidnewbe: are you using rake to kick off your cucumber tasks?
<Androidnewbe> no
tiripamwe has quit [Ping timeout: 244 seconds]
<Androidnewbe> im not sure how rake works
<visof> how can i check ip address is alive or not ?
<invisime> if you were, you could simply call your cucumber task multiple times and run the tests for each browser consecutively.
<invisime> rake is just ruby.
<oquidave> hello what is the ruby on rails channel? and can i also ask rol qns here? thanks
lxsameer has quit [Quit: Leaving]
<Androidnewbe> i have like ode day experienec with ruby
<invisime> oquidave: #rubyonrails
mbk_ has joined #ruby
DrShoggoth has joined #ruby
<Androidnewbe> invisime do you cucumber ?
<oquidave> invisime: thanks
<invisime> Androidnewbe: no, because I couldn't sell the client on BDD. but cucumber is built on top of rspec. which I am using for TDD.
aquaranto has joined #ruby
rjsamson has quit [Remote host closed the connection]
iamvery has quit [Remote host closed the connection]
rjsamson has joined #ruby
iamvery has joined #ruby
<oquidave> how can i dump an array like (params[:event])
<JonnieCache> oquidave: dump it to what
<apeiros_> oquidave: p, pp, y
<oquidave> JonnieCache: just to see it's contents for debugging
<apeiros_> (pp needs `require 'pp'`, y needs `require 'yaml'`)
<Androidnewbe> im quinte lost with all those frameworks im susing selenium cucubmber and capybara and ruby and im completely new to all of it. But my test are running and everything works I just need to find out how can i run same test on multiple browsers.
<apeiros_> e.g. require 'pp'; pp params[:event]
<oquidave> JonnieCache: i've a couple of post parameters from a form and i want to see what's being sent for isntance
<JonnieCache> oquidave: like apeiros_ said theres p, and pp
dakine has quit [Quit: Leaving]
F1skr has joined #ruby
<JonnieCache> oquidave: i like https://github.com/michaeldv/awesome_print
emaiax has joined #ruby
jeremywrowe has joined #ruby
<JonnieCache> oquidave: rails prints all its params in the server logs as standard though
rjsamson has quit [Read error: Connection reset by peer]
rjsamson has joined #ruby
<invisime> Androidnewbe: whichever of those you're using for your top-level task... wrap it with a rake task and call it once per browser, passing in the option each time.
<JonnieCache> oquidave: also in rails views you can do `debug(params[:events])` and it outputs nicely formatted html for you
<invisime> aaand I've got a meeting.
<oquidave> JonnieCache: thanks i'll look at both options
mmitchell has joined #ruby
jcaudle has joined #ruby
kylemcgill has joined #ruby
kylemcgill has quit [Client Quit]
Banistergalaxy has joined #ruby
kylemcgill has joined #ruby
beiter has joined #ruby
AndChat| has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
tiripamwe has joined #ruby
BSaboia has quit [Client Quit]
graeme_ has quit [Quit: graeme_]
oquidave_ has joined #ruby
jcaudle has quit [Remote host closed the connection]
oquidave has quit [Quit: Konversation terminated!]
jcaudle has joined #ruby
BSaboia has joined #ruby
kylemcgill has quit []
<visof> how can i check ip addredd liks 4.4.4.4 is alive using ruby code ?
`gregorg` has joined #ruby
nanderoo has joined #ruby
kylemcgill has joined #ruby
kylemcgill has quit [Read error: Connection reset by peer]
<visof> s/addredd/address
Slivka has quit [Read error: Connection reset by peer]
kylemcgill has joined #ruby
gregorg_taf has quit [Read error: Connection reset by peer]
<apeiros_> ping gem
<apeiros_> though, some servers disable ping response
xjiujiu_ has joined #ruby
<Xeago> you could also use system
<Xeago> tho using the gem is probably more sane as it doesn't require parsing hte output
tiripamwe has quit [Ping timeout: 256 seconds]
ffranz2 has quit [Quit: Leaving]
<JonnieCache> be a man and send ICMP packets yourself
ffranz has joined #ruby
<JonnieCache> :)
<apeiros_> NIH, so manly
<apeiros_> :-p
chussenot has joined #ruby
<JonnieCache> agreed
GoGoGarrett has joined #ruby
<JonnieCache> the use of "be a man" was meant to imply irony but i suppose in this brave new world of brogramming i cant assume that anymore
yeggeps has quit [Quit: yeggeps]
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
deadalus has quit [Quit: Leaving]
mucker has joined #ruby
macabre has joined #ruby
sailias has joined #ruby
ttt has quit [Remote host closed the connection]
daniel_- has quit [Read error: Operation timed out]
carloslopes has quit [Read error: Connection reset by peer]
<visof> apeiros_: i want to do htto request and check the status code, but i need to do that using ip addresses not url
d2dchat has joined #ruby
carloslopes has joined #ruby
kil0byte_ has joined #ruby
jrajav has joined #ruby
haxrbyte_ has joined #ruby
kylemcgi_ has joined #ruby
atmosx has quit [Quit: quiting...]
<JonnieCache> visof: you can use an ip address in a url
kil0byte has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
<apeiros_> it might be that the server refuses to reply, though
nilg has joined #ruby
<apeiros_> since status code depends on the application at that address. and domain can/is used to determine that
banister_ has joined #ruby
<apeiros_> i.e., if multiple domains are mapped to the given IP, the status code may or may not be representative.
<banister_> anyone here use linux/ubuntu ?
JStoker has quit [Excess Flood]
<`Mew_> you could try #ubuntu :)
<banister_> i keep getting openssl errors
<visof> JonnieCache: thanks right, is this code right http://pastie.org/5137435 ?
kylemcgill has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Ping timeout: 240 seconds]
<banister_> and no matter how i try to install libssl libssl-dev it never works, i get errors about not finding the host
<visof> JonnieCache: it should check if ip is up
<JonnieCache> visof: it will print the body if the ip sends a 200 response
<banister_> how should i install openssl in linux such that ruby has openssl support?
<JonnieCache> visof: but like apeiros_ says a http server may not return the response you expect if it is a server which is normally queried using a domain rather than an ip
pu22l3r has quit [Ping timeout: 260 seconds]
<JonnieCache> banister_: isnt it openssl-devel you need?
fermion has quit [Ping timeout: 248 seconds]
<JonnieCache> rather than libssl
Androidnewbe has quit [Ping timeout: 265 seconds]
<banister_> JonnieCache: that package (openssl-devel) doesnt appear to exist afaict
<banister_> but i got libssl just by googling around a bit
<banister_> libssl-dev & frens
<JonnieCache> im thinking of redhat maybe
<banister_> got the name i mean, installing it still doesnt work..
pu22l3r has joined #ruby
<JonnieCache> did you recompile ruby after installing it?
<JonnieCache> or did you recompile the openssl bits of ruby at least
<banister_> JonnieCache: that's the thing, i didnt manage to get it to install
<banister_> i just got errors
<JonnieCache> what libssl itself didnt install?
<JonnieCache> lol well maybe you should update the apt cache
<JonnieCache> because its 404ing when its getting the package. which is mental.
failshell has quit [Quit: Lost terminal]
<banister_> JonnieCache: trying that now :P
<banister_> i didnt really read the error message
<banister_> hopefully this fixes it
kkiero has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
JStoker has joined #ruby
JStoker has quit [Changing host]
JStoker has joined #ruby
<apeiros_> visof: anyway, if you're only interested in the return status, then don't forget to use a HEAD request instead of a full GET
<JonnieCache> apeiros_: good call
Progster has joined #ruby
kylemcgi_ has quit [Remote host closed the connection]
kylemcgill has joined #ruby
cdzombak has joined #ruby
hotovson has joined #ruby
mikepack has joined #ruby
fantazo has joined #ruby
<visof> apeiros_: use equest = Net::HTTP::Head::Get.new uri.request_uri rather than equest = Net::HTTP::Get.new uri.request_uri , or ?
chrisja has joined #ruby
<Xeago> visof: they differ in semantics
kil0byte_ has quit [Ping timeout: 246 seconds]
tiripamwe has joined #ruby
<visof> Xeago: how can i use it ?
<Xeago> though I have to take my statement back, because I have no idea what the namespace Head implies, thought it would be a head request but the Get.new implies different
proshot has joined #ruby
treyryan has joined #ruby
kil0byte has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
elico has quit [Remote host closed the connection]
<kaleido> head is identical to get except the server mustnt return the body
awestroke has quit [Remote host closed the connection]
sambio has joined #ruby
dmerrick has joined #ruby
c0smic has joined #ruby
d3vic3 has quit [Ping timeout: 240 seconds]
c0smic has left #ruby [#ruby]
kkiero has joined #ruby
postmodern has quit [Quit: Leaving]
_nitti has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby
kylemcgill has quit []
kylemcgill has joined #ruby
reinaldob has quit [Remote host closed the connection]
kylemcgill has quit [Client Quit]
xpen has joined #ruby
nemesit has quit [Quit: Linkinus - http://linkinus.com]
kil0byte_ has joined #ruby
marius has joined #ruby
seanyo has joined #ruby
nateberkopec has joined #ruby
JLT has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 265 seconds]
oquidave__ has joined #ruby
awestroke has joined #ruby
oquidave_ has quit [Quit: Konversation terminated!]
<JLT> if I have an array of letters, @string is "foobar"
<JLT> the array of letters is f, b, and r
<JLT> I want to replace all letters in @string with _, but only the letters in the array
dnstbr has joined #ruby
<JLT> so it would be... _oo_a_
graeme_ has joined #ruby
<JLT> how would I go about doing this?
<JLT> In php it would be similar to str_replace($letters, "_", $string);
awestroke has quit [Remote host closed the connection]
<JLT> where $letters is an array of letters to replace with _
Erfankam has quit [Remote host closed the connection]
<hoelzro> you could build a regex out of @letters and perform a substitution on each element of string
QKO_ has joined #ruby
<hoelzro> my $letters = join('', @letters); my $re = qr/[$letters]/; s/$re/_/g foreach @string;
synthetix has joined #ruby
QKO has quit [Ping timeout: 240 seconds]
<hoelzro> oops, wrong channel
<JLT> o.o
atmosx has joined #ruby
<hoelzro> still, same concept applies =)
<JLT> yeah ok I'm lost now
<JLT> lol
<JLT> i think i understand the concept
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
xcvd`` has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<JLT> not entirely fluent with ruby though
<hoelzro> heh, neither am I =P
<JLT> @letters.join()
<JLT> erm..
xcvd`` has quit [Read error: Connection reset by peer]
bairui has joined #ruby
xcvd`` has joined #ruby
jslowe has quit [Ping timeout: 244 seconds]
darthdeus has quit [Quit: Leaving...]
erichmenge has joined #ruby
icole has joined #ruby
samphippen has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
carloslo_ has joined #ruby
philcrissman has joined #ruby
Virunga has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<hoelzro> JLT: I would probably do re = Regexp.new('[' + @letters.join('') + ']') ; @string.gsub!(re, '_')
<hoelzro> see if that works
<JLT> i was getting close with using gsub
<JLT> lol
carloslopes has quit [Ping timeout: 240 seconds]
bairui has quit [Read error: Connection reset by peer]
<JLT> but my idea was to do a loop :/
<JLT> ill try it tho
graeme_ has quit [Read error: Connection reset by peer]
graeme_ has joined #ruby
bairui has joined #ruby
graeme_ has quit [Read error: Connection reset by peer]
graeme_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
graeme_ has quit [Read error: Connection reset by peer]
icole has quit [Ping timeout: 264 seconds]
Serial_Killer_C has joined #ruby
graeme_ has joined #ruby
fyolnish has joined #ruby
tobiassjosten has left #ruby [#ruby]
rakunHo has quit [Ping timeout: 260 seconds]
<apeiros_> hoelzro: no need for Regexp.new, // can do that just fine
<apeiros_> also, tr is for that better suited I'd say
darthdeus has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
<hoelzro> I wasn't sure if // interpolated, so I went the safe route ;)
fyolnish_ has joined #ruby
<apeiros_> rather, delete even
<JLT> ok basically the gsub actually replaces it in the string, i wasn't clear... i want it to return the replaced string
<apeiros_> str.delete('fbr')
<JLT> rather than actually replacing the data of the variabe
bairui has quit [Read error: Connection reset by peer]
<apeiros_> JLT: you're mistaken
<apeiros_> gsub returns a new string
<apeiros_> gsub! performs in-place substitution
<JLT> so i need to remove the !
<JLT> ;P
linoj has joined #ruby
<Xeago> is it "I would like to reference Talha Syed's work" or without the apostrophe?
Vinz_ is now known as Vinz_`
<banister_> Xeago: lern2english
<Xeago> banister_: elaborate please, I'd like to learn :)
bairui has joined #ruby
nari has joined #ruby
<Xeago> in dutch and in swedish there are similar constructs but they are not translatable
<banister_> Xeago: asking for the answer isn't learning :) It'll take you 2 mins to learn how an apostrophe is used in english
<banister_> google
<banister_> Xeago: but in this case, ' indicates possession, so you need it
zigomir has quit [Quit: Leaving]
ThaDick has quit [Quit: zzzZZZ ...]
<JLT> basically I'm trying to make a hangman game... http://pastebin.com/6qZGmi9s
<Xeago> with the apostrophe: "names form an exception" is what I found in a quick google
<JLT> line 13 i believe causes issues, it's not returning the difference.
<JLT> only..
joshman_ has joined #ruby
<JLT> it doesn't say i've already guessed a certain letter, when infact.. i have
<JLT> so it's skipping line 22.
<JLT> I am confused what it's doing.
dhruvasa1ar has quit [Ping timeout: 244 seconds]
dekroning has joined #ruby
ThaDick has joined #ruby
<apeiros_> eeew, custom irc message parsing
<apeiros_> usually equivalent to: wrong done irc message parsing
<Xeago> banister_: thanks for the better explanation!
<JLT> its just a basic bot, i've madea n irc client in c# which uses more appropiate parsing
<JLT> instead of regex
ThaDick has quit [Client Quit]
<apeiros_> JLT: just use a lib like cinch
<JLT> it splits by a space, and everything after : is a single param.
<Xeago> JLT: why not use irc gems
<JLT> but that doesn't solve my issue.
<apeiros_> since the irc parsing isn't your focus anyway
<Xeago> would make your code way prettier
<JLT> it's skipping line 22, i believe.
<apeiros_> Xeago: more importantly: it'd make the code more correct
<apeiros_> JLT: I'd separate hangman and irc logic
graeme_ has quit [Read error: Connection reset by peer]
<apeiros_> that'll allow you to test the hangman code outside irc
<JLT> I will do so, eventually to be fair.
graeme__ has joined #ruby
<JLT> but right now just want to get it working
<apeiros_> and it'll allow us to easily reproduce your issue
<apeiros_> yeah, it's just - people like me don't like helping out with noodly code
v0n has joined #ruby
<apeiros_> (luckily there's over 700 people in here, so there's a good chance that there's people with different preferences)
<JLT> http://pastebin.com/Gy3WSdSQ thats the full code, probably twice as bad.
<JLT> but I was new to ruby when i found this bot script, and i just started... adding things etc
<apeiros_> take a look at something like cinch, really.
<Xeago> yuck..
kpshek has joined #ruby
<apeiros_> makes dropping all the bad irc code a breeze, and separating the hangman logic should be easy from there too.
jeffreybaird has quit [Quit: jeffreybaird]
Ry has quit [Ping timeout: 260 seconds]
xjiujiu_ has quit [Ping timeout: 260 seconds]
<JLT> either way, I'll still have to understand ruby
<apeiros_> re: "rescue Interrupt # huh?" - this rescues from ctrl-c
<JLT> and learn how to gode in it.
<JLT> code*
<JLT> so I've done something wrong :L
<apeiros_> JLT: yes. but you can concentrate on the stuff that matters.
<Xeago> JLT: you'll learn more from using the gem
<Xeago> whenever I see stuff nested more than 3 levels deep
<Xeago> it is gross, and should be done differently 90% of the times
<Xeago> if not more
<Kovensky> apeiros_: btw, where can one find decent docs on cinch
<apeiros_> some comments to your code:
<Kovensky> cinchrb.org has been broken for months
<apeiros_> don't use the $1-9 variables
<apeiros_> @hangmanlives = @hangmanlives - 1 --> @hangmanlives -= 1
<Kovensky> and the documentation on rubydoc.info doesn't help much
<apeiros_> ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] --> [*'a'..'z']
synthetix has quit [Ping timeout: 260 seconds]
<Xeago> what was the irc bot named?
<Xeago> al2o..?
<apeiros_> Xeago: chemical formula for ruby ;-)
<apeiros_> I think the bot isn't here atm
Vinz_` is now known as Vinz_
JLT has left #ruby [#ruby]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> Kovensky: the author of cinch is quite often around in #ruby or #ruby-lang
arkiver has quit [Quit: Leaving]
oquidave__ has left #ruby ["Konversation terminated!"]
<Xeago> jrajav, is no longer able to host it. If someone can set me up the vm (vbox prefered) or even a vagrant I can host it
<Xeago> JLT left :O
<fir_ed> How do I run a ruby script? I'm *load*ing it but the variables declared in the script are not available after loading it.
<apeiros_> Kovensky: hm, seems dominikh doesn't like yard…
<fir_ed> Doing this in IRB.
<apeiros_> Kovensky: https://github.com/cinchrb/cinch gives you the readme
aflynn has joined #ruby
<apeiros_> other than that: `gem server` will give you the rdoc docs when you've installed the gem on your machine
<Kovensky> which are exactly the same docs YARD will give me :>
<apeiros_> fir_ed: local variables are named local variables because they're local
<apeiros_> as opposed to, you know, global
<banister_> fir_ed: binding.eval File.read("your_file.rb"), "your_file.rb"
<apeiros_> use constants or a different loading mechanism
<banister_> fir_ed: or you could just accept that locals wont be available
* apeiros_ smacks banister_ over the head with bad style :-p
chussenot has quit [Quit: chussenot]
xcvd`` has quit [Quit: Leaving]
jslowe has joined #ruby
<fir_ed> banister_: I want a hash in my script to be available after the script. Would the proper way to make the script a class and create an object with it?
visof has quit [Quit: leaving]
Elhu has joined #ruby
jeffreybaird has joined #ruby
<Kovensky> <apeiros_> fir_ed: local variables are named local variables because they're local <-- there's no dynamic scope? :(
Androidnewbe has joined #ruby
<apeiros_> Kovensky: ?
jlwestsr has joined #ruby
<hoelzro> Kovensky: afaik, Ruby does not have dynamic scope in the sense of Perl or Lisp.
<reactormonk> apeiros_, oh, you're here again? didn't scare you off yet?
<apeiros_> reactormonk: annoyance levels are back to normal
<Kovensky> hoelzro: I see
brtdv has quit [Quit: bye]
<reactormonk> hoelzro, depends, you have object-local variables you can use as dynamic scope - but only barely
chussenot has joined #ruby
mercwithamouth has joined #ruby
rippa has quit [Ping timeout: 268 seconds]
Banistergalaxy has quit [Ping timeout: 276 seconds]
<Kovensky> hoelzro: it's convenient to have once in a while, and it could potentially help with multithreading (dynamically scoped variables being automatically thread local)
<banister_> hoelzro: judging by that definition it would seem that constants have dynamic scope
<reactormonk> ... or just go with instance_exec and then you have dynamic scope ;-)
Ry has joined #ruby
<banister_> hoelzro: (from the wikipedia page)
<Kovensky> ...as long as you don't fork any new threads from inside the dynamic scope
<hoelzro> the way I look at it, dynamic scope allows a new variable scope to be introduced with a particular activation record
<reactormonk> banister_, likely, but they suck. you can't rebind them
<hoelzro> that may not be the academic definition, though
<Androidnewbe> how can i run cucumber test form rake test file ?
Banistergalaxy has joined #ruby
<reactormonk> Androidnewbe, isn't this #rubyonrails ?
<banister_> reactormonk: rebind?
<reactormonk> hoelzro, I don't think so
_nitti has joined #ruby
<reactormonk> banister_, well, the stuff hoelzro is talking about
apok has joined #ruby
daniel_- has joined #ruby
<Androidnewbe> reactormonk don't thinks so
darthdeus has quit [Quit: Leaving...]
<reactormonk> banister_, (let ((a 30)) (format "~d" a) (let ((a 20)) (format "~d" a)))
<reactormonk> Androidnewbe, do you run it in a rails env?
<Androidnewbe> no
<Androidnewbe> in standard ruby
darthdeus has joined #ruby
Vinz_ is now known as Vinz_`
ThaDick has joined #ruby
<reactormonk> banister_, you could also introduce some functions in between, as in (let ((a 3)) (defun hello () (format "~d" a)) (let ((a 30)) (hello)))
u89 has quit [Remote host closed the connection]
<reactormonk> Androidnewbe, dig the source ;-)
ttt has joined #ruby
juha_ has quit [Ping timeout: 244 seconds]
<Androidnewbe> im too new
<Androidnewbe> :(
<banister_> reactormonk: so would the 'a' in hello be 3 or 30 ?
<Androidnewbe> dont know anything :(
<Kovensky> our $var = "foo"; sub a { local $var = "bar"; say $var; } a(); say $var;
<Kovensky> will print
<Kovensky> bar
<Kovensky> foo
u89 has joined #ruby
juha_ has joined #ruby
<Kovensky> that isn't a good demonstration though since the same thing can be accomplished through 'my' (regular lexical scope) <_<
<reactormonk> banister_, should be a 30
<Kovensky> our $var = "foo"; sub a { say $var; } sub b { local $var = "bar"; a() } b(); say $var;
u89 has quit [Remote host closed the connection]
<banister_> reactormonk: one sec
<Kovensky> ^ is a better demonstration
<Kovensky> and has the same output as the previous one
Banistergalaxy has quit [Ping timeout: 276 seconds]
<reactormonk> banister_, oh, format call fail
<reactormonk> banister_, (let ((a 3)) (defun hello () (format nil "~d" a)) (let ((a 30)) (hello)))
apeiros has joined #ruby
<banister_> reactormonk: so 'a' inside the second let doesn't shadow the prior a it overrides it?
<reactormonk> banister_, it shadows
apeiros_ has quit [Read error: Connection reset by peer]
jrajav has quit []
ttt has quit [Ping timeout: 240 seconds]
<banister_> reactormonk: but 'hello' closed over the prior 'a', so surely it should return 3 not 30
freakazoid0223 has joined #ruby
<reactormonk> banister_, err, lemme correct that
minijupe has joined #ruby
<Kovensky> at least in perl, 'local' is restricted to only work on globals, not lexicals, precisely because of closures
<Kovensky> and IIRC in common lisp you have to mark the global as a special var for it to get dynamically scoped
Takehiro has joined #ruby
juha_ has quit [Remote host closed the connection]
quest88 has joined #ruby
vickaita has joined #ruby
Virunga has joined #ruby
joofsh has joined #ruby
elux has joined #ruby
<reactormonk> Kovensky, yep, you have to - forgot that
<reactormonk> it's (defvar a)
<reactormonk> too much elisp :-)
<Kovensky> heh
<reactormonk> anyway, fuck it, go with Kovensky's example.
<Kovensky> I should actually write something in lisp other than my emacs config
<Kovensky> all I remember of clisp is what I read over a year ago, which I have mostly forgotten <_<=
philcrissman has quit [Remote host closed the connection]
nari has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
Virunga has quit [Remote host closed the connection]
noxoc2 is now known as noxoc
sleetdrop has joined #ruby
SCommette has joined #ruby
baphled_ has joined #ruby
sleetdrop has quit [Remote host closed the connection]
sleetdrop has joined #ruby
baphled has quit [Read error: Connection reset by peer]
psycho_one has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
jrajav has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
<jrajav> Someone mentioned the bot
kamsky has joined #ruby
<reactormonk> bot?
<Xeago> yes I did
<jrajav> I actually have the vm image on my hard drive, but I keep forgetting to put it up as a torrent when I go home
redbull has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
<Xeago> please do jrajav
redbull has joined #ruby
<jrajav> You don't really need it, though, you could set it up on your own. It might take a little longer
<Xeago> I got multiple nodes ready to suck your bandwidth
<Xeago> I am not sure how to set up the chroot
<Xeago> even after the instructions you set up for invisime
<jrajav> I could forward you the same instructions I sent to Tom Root (he doesn't seem to be able to do it anymore)
Vert has joined #ruby
<jrajav> I could try just sending you the image first if that's easier for you
<Xeago> would prefer that
<jrajav> I'll set an alarm on my phone and hopefully that forces me to remember tonight XD
zodiak has joined #ruby
<Xeago> what time should I remind you?
Cultofmetatron has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
dekroning has quit [Ping timeout: 256 seconds]
erichmenge has quit [Quit: Be back later]
sepp2k has joined #ruby
<jrajav> If I'm on IRC, anytime after 17:00-18:00 CST
<reactormonk> jrajav, what's that in GMT?
awestroke has joined #ruby
<jrajav> CST is -5:00 or 6:00 depending on DST
Cultofmetatron has joined #ruby
<Xeago> you us-east?
<jrajav> Central
<Xeago> ah ok
Monie has joined #ruby
<jrajav> Looks like it's currently -5
kamsky has quit [Changing host]
kamsky has joined #ruby
<jrajav> (I can never keep track of when DST is in effect and whether it's forward or back :P)
kamsky has left #ruby [#ruby]
<jrajav> DST is the silliest thing ever honestly
<reactormonk> jrajav, yep.
<Xeago> clock is the silliest thing ever
<Xeago> base 12/24/60 in base10
<jrajav> Agreed
<jrajav> So are timezones
<reactormonk> Xeago, it's better than imperial
<reactormonk> jrajav, timezones are needed somehow...
<Xeago> reactormonk: nah
juha_ has joined #ruby
<jrajav> Are they really?
<Xeago> I want a day to last 100 units
<Xeago> or 10 units
<jrajav> Couldn't we just acclimate to different numbers for different times of the day in different areas?
boondox has joined #ruby
<jrajav> I mean, we already do that, it's just that we all acclimate to the SAME numbers
pu22l3r has quit [Remote host closed the connection]
<jrajav> But then the burden falls on the conversion
<reactormonk> jrajav, yep. that's what timezones are for
mahmoudimus has joined #ruby
<reactormonk> you rarely care about what time it is on another place in the world
<Xeago> they fail tho
<jrajav> But why should we arbitrarily understand 12:00 to be the middle of the day or night, what's so special about 12?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<jrajav> And it's not even the true middle
jlwestsr has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
<reactormonk> it's an arbitrary middle. good enough ;>
<reactormonk> but DST still sucks.
<jrajav> I don't think it would change a lot to have one universal time
<reactormonk> as do feet an all that shit
kbeddingfield has quit [Ping timeout: 260 seconds]
<jrajav> I'm fine with the middle of my day falling on 9:54
<reactormonk> lot of people aren't
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Xeago> I am not fine with having a time like 9:54
LucidDreamZzZ has quit [Remote host closed the connection]
a_a_g has joined #ruby
boondox has quit [Client Quit]
<jrajav> Fine, I'm fine with the middle of my day falling on 0.954 :P
chussenot has joined #ruby
<Xeago> jrajav: define 1.000 :)
<jrajav> The start of the next day
<Xeago> and 0.000 ?
<jrajav> The start of today
djbender has joined #ruby
<Xeago> wait: .954 for the first half and .046 for the second half?
mahmoudimus has quit [Client Quit]
dekroning has joined #ruby
<jrajav> A floating point representation of time would be ideal, it's base- and representation-agnostic
yeggeps has joined #ruby
erichmenge has joined #ruby
<invisime> jrajav: I've just finished moving to a new apartment.
<jrajav> Xeago: I meant "middle of the day" in the sense of "sun at its highest point"
djbender has quit [Client Quit]
<invisime> I may be able to get the bot up and running in the next few weeks, but no guarantees.
<jrajav> Xeago: In the context of having one universal time for the whole world rather than splitting it into timezones; inevitably someone would have to have their time not correspond the the motion of the sun
<jrajav> invisime: Xeago may be able to
carloslo_ has quit [Remote host closed the connection]
djbender has joined #ruby
<jrajav> You could both do it and have a bot war :P
<Xeago> floating points aren't base agnostic
<invisime> lol.
<Xeago> jrajav: I'd convert it to a vagrant first
<Xeago> than that can just be posted on piratebay and on downloads of github
<jrajav> Xeago: You can represent any real number from 0 to 1 in any base....
<Xeago> and everyone can vagrant up it and done
<jrajav> I looked into vagrant, I don't see the benefit of that vs. just distributing my vm image
<Xeago> easier starting of the vm imo
<jrajav> You can convert it yourself, or set it up from scratch yourself
<Xeago> and easier "I want to start clean now"
<jrajav> It's honestly super easy
<Xeago> chrooting scares me :<
<jrajav> Just a vanilla Arch install with a few packages and then the chroot
<banister_> reactormonk: where let is: def let; yield; end
<jrajav> Chrooting is basically just mkdir, a few chmod's, a few cp's, and then 'chroot'
<jrajav> And I can spell out each step
zarubin has quit []
<jrajav> Sorry, gotta go for now, back in an hour or so
<Xeago> bai!
tk__ has quit [Quit: ばいばい]
jonathanwallace has joined #ruby
judd7 has joined #ruby
sent-hil has joined #ruby
SCommette_ has joined #ruby
icole has joined #ruby
yshh has quit [Remote host closed the connection]
kiyoura has joined #ruby
samphippen has joined #ruby
quest88 has quit [Quit: quest88]
adeponte has joined #ruby
dekroning has quit [Ping timeout: 265 seconds]
SCommette has quit [Ping timeout: 252 seconds]
SCommette_ is now known as SCommette
treyryan has quit [Quit: treyryan]
iamvery has quit [Remote host closed the connection]
xclite has joined #ruby
davidcelis has quit [Quit: K-Lined.]
icole has quit [Ping timeout: 240 seconds]
dekroning has joined #ruby
c0smic has joined #ruby
<reactormonk> banister_, that proc syntax still creeps me out
lolmaus has joined #ruby
adeponte has quit [Remote host closed the connection]
<banister_> reactormonk: i think it's cute
adeponte has joined #ruby
<reactormonk> and .() is just plain confusing
gener1c_ has quit [Remote host closed the connection]
<reactormonk> banister_, yep, ruby has some slight dynamic binding as seen in the second example
<reactormonk> banister_, with a global var, the first example would return 30 as well
<reactormonk> ... or dynamic binding
<reactormonk> hmm, .() makes some wierd kind of sense
mntzn has quit [Quit: Lost terminal]
Slivka has joined #ruby
erichmenge has quit [Quit: Be back later]
vlad_starkov has joined #ruby
Virunga has joined #ruby
invapid has joined #ruby
dekroning has quit [Ping timeout: 265 seconds]
rasbonics has joined #ruby
larissa has quit [Quit: Leaving]
Progster has quit [Ping timeout: 260 seconds]
banister_ has quit [Remote host closed the connection]
ABK has joined #ruby
ckrailo has joined #ruby
djbender has quit [Quit: djbender]
tomsthumb has joined #ruby
tpe11eti1r has joined #ruby
Progster has joined #ruby
mbk_ has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
geggam has joined #ruby
krawchyk has joined #ruby
dekroning has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
krawchyk has quit [Client Quit]
dnstbr has quit [Quit: Computer has gone to sleep.]
<Androidnewbe> does anyone know how can i invoke a ruby app multple times in command line in windows
<Androidnewbe> automatically
Morkel has quit [Quit: Morkel]
<Androidnewbe> so it will run like 5 tiems in row or something like that
chimkan has joined #ruby
_nitti_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Slivka has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 255 seconds]
Slivka has joined #ruby
Russell^^ has joined #ruby
skaczor has quit [Ping timeout: 244 seconds]
skaczor has joined #ruby
<Xeago> in macvim
<Xeago> how to exit fullscreen mode
proshot has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
<burgestrand> Xeago: CTRL+CMD+F
adeponte has joined #ruby
<Xeago> why not shiftcmd+f >.<
<burgestrand> Xeago: if you are using native fullscreen you can also go to top-right corner with the mouse and click the blue little thingy in the menu bar.
Experium has joined #ruby
<Experium> Look what effect I made with pixels http://i.imgur.com/FKcsL.png over a png image :D
Ry has quit [Ping timeout: 245 seconds]
<Xeago> cmd+swift+f is the systemwide standard for fullscreen
carloslopes has joined #ruby
<Xeago> wops
<Xeago> apparently not, I take that back
beandip has quit [Ping timeout: 265 seconds]
sebastorama has joined #ruby
baphled has joined #ruby
a_a_g has quit [Quit: Leaving.]
<Xeago> does homebrew vim have ruby support
rippa has joined #ruby
<Xeago> so I can command-t in it?
<hoelzro> Xeago: yes
<hoelzro> it does
<Xeago> awesome, any caveats I should look for?
Agis__ has joined #ruby
Ry has joined #ruby
<hoelzro> which reminds me...I want to add options to that formula
<Agis__> what's the workflow of updating a gem's version? I've just changed it in the gemspec and run "gem build" again, and now I have these 2 files: hola_agis-0.0.1.gemhola_agis-0.0.2.gem
adeponte has quit [Ping timeout: 256 seconds]
c0smic has left #ruby [#ruby]
<Agis__> I guess I done something wrong?
tagrudev has quit [Quit: kdopkadow]
kil0byte has joined #ruby
baphled_ has quit [Ping timeout: 248 seconds]
skaczor has quit [Ping timeout: 260 seconds]
zemanel has joined #ruby
<burgestrand> Xeago: yeah, make sure you compile the command-t with the proper ruby or it will segfault
treyryan has joined #ruby
<burgestrand> Agis__: one of them is probably from an old build. What are you trying to do>
treyryan has quit [Client Quit]
<Xeago> burgestrand: I only got 1 ruby at the moment
alexwh has left #ruby [#ruby]
<Agis__> i'm just playing with rubygems and trying to create my own gem
dnstbr has joined #ruby
<burgestrand> Agis__: gem build just creates the .gem, if you want to release it push the newly built .gem to rubygems.
<Agis__> the old build is the first I've made
<Xeago> tho I am installing 1.9.3 (got 1.8.7 atm) soon
<Xeago> installing with rbenv
g-ram has joined #ruby
<Agis__> I know, I just wanted to know if I should remove the old version .gem file
mercwithamouth has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
krawchyk has joined #ruby
<Agis__> eg. what's the workflow if I want to release another version of my gem?
<burgestrand> Agis__: once you’ve uploaded the gem to rubygems (or installed the gem directly from the gem), the .gem is no longer needed
<Agis__> oh
<burgestrand> Agis__: it’s just a glorified zipfile :)
<Agis__> I see
kil0byte_ has quit [Ping timeout: 268 seconds]
<burgestrand> Xeago: macvim used to be aware of multiple ruby versions, but I have a vague memory if it being restricted to ruby 1.8 (or system ruby) recently
skaczor has joined #ruby
<burgestrand> Xeago: macvim when installed through homebrew, that is
<Xeago> hoelzro, burgestrand use the formula from homebrew or homebrew-dupes
<Agis__> so the workflow when creating a gem and releasing new version would be this? I update the version, run "gem build" again to generate the new .gem file. I push it to the servers and then I can just delete it
vlad_starkov has joined #ruby
<hoelzro> Xeago: that's what I use =)
xpen_ has joined #ruby
ananthakumaran has joined #ruby
<burgestrand> Agis__: yep
jlwestsr has joined #ruby
arturaz has quit [Remote host closed the connection]
<burgestrand> Agis__: and update the files in the gem of course, a new version with no changes is kind of useless don’t you think? ;0
sent-hil has quit [Remote host closed the connection]
<burgestrand> ;0 is a very ugly smiley.
<Xeago> burgestrand: I could also override systemvim with macvim vim according to brew info macvim
<Agis__> yes sure
<Agis__> i just want to see how the rubygems API work
vlad_starkov has quit [Remote host closed the connection]
<Agis__> I try to push and I get this error: Repushing of gem versions is not allowed.
<Agis__> Please use `gem yank` to remove bad gem releases.
<burgestrand> Xeago: yeah I used to have that but I switched back for consistency when I ssh into other servers I won’t forget and become confused.
<burgestrand> Xeago: I do have my $EDITOR set to macvim path though
<Xeago> hoelzro, burgestrand: which formula there are two >.<
<Agis__> ah my bad sorry, I accidentally pushed the old .gem file
carloslopes has quit [Ping timeout: 268 seconds]
Rhynn has quit [Ping timeout: 245 seconds]
<Xeago> $editor is textmate atm, I find tm a bit easier to use with rubies
<burgestrand> Xeago: two?
<hoelzro> Xeago: what's the difference between homebrew's and homebrew-dupes'?
pureluck has quit [Ping timeout: 272 seconds]
<JonnieCache> hoelzro: homebrew-dupes includes stuff thats already part of os x
dakine has joined #ruby
<Xeago> which is why homebrew shouldn't have it
<Agis__> so when releasing new versions of a gem, you have to edit the .gemspec each time, right?
<burgestrand> Agis__: yep!
<hoelzro> JonnieCache: I know; I meant whats' the difference between the vim formulae present in both
<burgestrand> Ah, vim formulae, not the macvim one.
vlad_starkov has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
<burgestrand> Because I only have one macvim formula.
<Xeago> first of all the version is different
jblack has joined #ruby
proshot has joined #ruby
<Xeago> and that is it
g-ram has quit [Quit: Computer has gone to sleep.]
sent-hil has joined #ruby
burgestrand has quit [Quit: Leaving.]
beneggett has quit [Ping timeout: 256 seconds]
atmosx has quit [Ping timeout: 276 seconds]
havenn has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
wpaulson has joined #ruby
apok has quit [Quit: apok]
demet8 has joined #ruby
Vinz_` is now known as Vinz_
sspiff has quit [Ping timeout: 260 seconds]
beandip has joined #ruby
margle has joined #ruby
<Xeago> is there any reason why Homebrew should not be ported to other systems?
reinaldob has joined #ruby
<Xeago> besides the fact that it would then target 2 systems
<Xeago> asin, it got completely new formulae for the other system
sspiff has joined #ruby
JLT has joined #ruby
<JLT> How do I check if a string contains only letters?
<JLT> a-z in this case.
<JLT> any foreign characters wont be accepted.
<Xeago> you could regex it
<JLT> can be accepted, but ... not needed.
<JLT> yeah I thought of regex but..
<JLT> /[a-z]/
kil0byte has quit [Remote host closed the connection]
<JLT> dunno how to use it lol
headius has joined #ruby
<Xeago> [a-z] matches a single letter tho
advorak has quit [Quit: Leaving]
<apeiros> JLT: you have to anchor your regex
<Xeago> and that is all of my regex knowledge..
<apeiros> /\A[a-z]*\z/
xpen_ has quit [Remote host closed the connection]
tiripamwe has joined #ruby
<apeiros> \A matches start of string, followed by any amount (*) of [a-z], followed by end of string
xpen has joined #ruby
<apeiros> Xeago: before porting it to other systems, it might be an idea to resolve the insanity that is chowning /usr/local to a user
Coolhand has joined #ruby
<JLT> if str =~ /\A[a-z]*\z/
<JLT> ?
<apeiros> JLT: for example, yes
<Xeago> apeiros: yea I read about that, it is a security concern right?
<apeiros> if you need äöü as well, then you'd use \p{word} instead of [a-z]
theRoUS has quit [Read error: Operation timed out]
<JLT> thank you, not needed tho :)
kbeddingfield has joined #ruby
treyryan has joined #ruby
Rhynn has joined #ruby
tiripamwe has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
tiripamwe has joined #ruby
Virunga has quit [Remote host closed the connection]
hbpoison has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
jaygen has joined #ruby
davidcelis has joined #ruby
iamvery has joined #ruby
kbeddingfield has quit [Ping timeout: 245 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
elsifaka has quit [Quit: Veloma e!]
tiripamwe has quit [Ping timeout: 256 seconds]
ij has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
erichmenge has joined #ruby
ij has joined #ruby
jaygen has quit [Ping timeout: 252 seconds]
chrishunt has quit [Quit: Leaving...]
sent-hil has quit [Remote host closed the connection]
<JonnieCache> apeiros: true. why doesnt homebrew live inside ~ like rvm?
Isvara has joined #ruby
JLT has quit [Quit: I didn't do it. Nobody saw me do it. You can't prove anything.]
<Xeago> does macim snapshot 65 work okay on Lion?
carloslopes has joined #ruby
clj_newb has joined #ruby
mercwithamouth has joined #ruby
erichmenge has quit [Client Quit]
iamvery has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Balthek has joined #ruby
sent-hil has joined #ruby
vlad_sta_ has joined #ruby
icole has joined #ruby
skum is now known as vaino
_nitti_ has quit [Remote host closed the connection]
eph3meral has joined #ruby
g-ram has joined #ruby
darthdeus has quit [Ping timeout: 245 seconds]
<Xeago> hoelzro: you using homebrew macvim and on lion perhaps?
graeme__ has quit [Quit: graeme__]
<hoelzro> Xeago: regular vim on lion
_nitti has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
mpereira has joined #ruby
mpereira has quit [Client Quit]
mpereira has joined #ruby
mpereira has quit [Client Quit]
maletor has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
icole has quit [Ping timeout: 240 seconds]
mpereira has joined #ruby
xpen has quit [Remote host closed the connection]
maletor has quit [Client Quit]
Serial_Killer_C has quit [Remote host closed the connection]
justinmcp has joined #ruby
Serial_Killer_C has joined #ruby
rcassidy has joined #ruby
Trioke has joined #ruby
<rcassidy> hi all, anyone have any experience with the various ruby pcap libs?
jrajav has quit []
axl_ has quit [Quit: axl_]
chussenot has quit [Quit: chussenot]
morf has quit [Quit: eof]
sent-hil has quit [Remote host closed the connection]
_nitti_ has joined #ruby
lolmaus has quit []
Isvara has left #ruby [#ruby]
<Xeago> does anybody know why snapshot 65 renders different than snapshot 64: http://cl.ly/image/2F3T2X3R2t10
_nitti has quit [Ping timeout: 244 seconds]
justinmcp has quit [Ping timeout: 268 seconds]
u89 has joined #ruby
<Xeago> MacVim's Vim does not close command-t on escape
bradleyprice has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
thinkdevcode has joined #ruby
Experium has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
alee has quit [Remote host closed the connection]
alee has joined #ruby
fermion has joined #ruby
ij has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
ij has joined #ruby
maesbn has quit [Remote host closed the connection]
eph3meral has quit [Quit: eph3meral]
daniel_- has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 265 seconds]
csmrfx has joined #ruby
<csmrfx> I need some ruby brain loan
<csmrfx> I have a simple script that checks if links are valid
<csmrfx> open-uri and nokogiri
<csmrfx> my q is about variable scope
Trioke has quit [Ping timeout: 248 seconds]
<csmrfx> I'd like to define all the vars at one place (top of file?). Then use these within all the methods.
margle has quit [Quit: Computer has gone to sleep.]
<csmrfx> However, ruby scoping doesn't quite work this way (yep, been doing javascript far too long).
<csmrfx> How should I approach this scoping?
<csmrfx> (make all these 'config vars' global?)
wallerdev has joined #ruby
artOfWar has joined #ruby
<jblack> You could make a class who's purpose is to load/store and query configuration variables.
samphippen has joined #ruby
Trioke has joined #ruby
<csmrfx> hm, I'd rather make an object literal, is that a good approach?
hoelzro is now known as hoelzro|away
<csmrfx> better yet, can you link me to a succinct code example?
<JonnieCache> csmrfx: js object literal in ruby == hash
<JonnieCache> for this purpose
Keva161 has joined #ruby
tiripamwe has joined #ruby
_alejandro has quit [Ping timeout: 244 seconds]
cdt has joined #ruby
xorspark has quit [Ping timeout: 260 seconds]
aganov has quit [Remote host closed the connection]
<Xeago> how read a variable in vim?
<rcassidy> ...read a variable?
<Xeago> you can set a variable in vim
<Xeago> using :set variable=
UberNerdGirl has joined #ruby
<csmrfx> :help ruby
Androidnewbe has quit [Quit: irc2go]
rohrer has quit [Ping timeout: 245 seconds]
<csmrfx> Xeago: your q is ambiguous?
<csmrfx> more detail, plz
ABK has quit [Read error: Connection reset by peer]
<Xeago> I can set variables in vim using :set variable=value
blazes816 has joined #ruby
<Xeago> :set guifont=Monaco:h14 for example
ABK has joined #ruby
<Xeago> how do I read that value?
<csmrfx> that is correct
arya has joined #ruby
<csmrfx> :set varname
<Xeago> how do i get the contents of that value
<csmrfx> read *where*
<Xeago> command prompt
arya has left #ruby [#ruby]
<csmrfx> Xeago: you mean windows command prompt?
nilg has quit [Read error: Operation timed out]
<Xeago> the prompt when pressing :
<Xeago> which prompts for a command
ryanlecompte has joined #ruby
<csmrfx> vim command line?
chussenot has joined #ruby
<Xeago> yes
<csmrfx> again -> ":set varname" returns the value of variable varname
CaptainKnots has quit [Quit: bazinga!]
<Xeago> thank you
adeponte has joined #ruby
erichmenge has joined #ruby
<csmrfx> Xeago: you read ruby vars in ruby-vim-scripts differently
<csmrfx> if you need to read vars for your vim ex-commands, different again
cascalheir has joined #ruby
<csmrfx> #vim helps
fantazo has quit [Remote host closed the connection]
<csmrfx> Anyway, How do You handle program-wide conf-variables?
<csmrfx> simply use globals?
adeponte has quit [Remote host closed the connection]
Ry has quit [Ping timeout: 240 seconds]
zarubin has joined #ruby
<Xeago> Tire uses constants in a class
<Xeago> iirc
Slivka has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
proshot has quit [Read error: Connection reset by peer]
<Xeago> other things I've seen are a global hash
Slivka has joined #ruby
sleetdrop has quit [Remote host closed the connection]
adeponte has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Quit: Leaving.]
<JonnieCache> singleton variables in a class are a good compromise
tjbiddle has quit [Quit: tjbiddle]
adeponte has joined #ruby
<JonnieCache> ie. theyre a way of using globals without feeling like you need a shower afterwards :)
<csmrfx> C.. Co... Constants?
<csmrfx> although, things like program wide result set -variable wont go there
cascalheira has quit [Ping timeout: 260 seconds]
Araxia has joined #ruby
mklappstuhl has joined #ruby
sleetdrop has joined #ruby
<csmrfx> ( and to nitpick, I dislike typing [" "] or :: a lot )
CaptainKnots has joined #ruby
<Xeago> Tire achieves it with Configuration.setting
sleetdrop has quit [Remote host closed the connection]
daniel_- has quit [Read error: Operation timed out]
<shevy> JonnieCache I like constants just for being able to omit $
zeromodu_ has quit [Ping timeout: 276 seconds]
<shevy> but it is crazy somehow
<shevy> ARRAY = []
<shevy> ARRAY << 'hi'
<csmrfx> So you have to type "Configuration.settings" plus the varname, Xeago ?
<shevy> $array = []
<shevy> $array << 'hi'
haxrbyte_ has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
<Xeago> csmrfx: just Configuration.varname
imbric has joined #ruby
<csmrfx> Xeago: ok, Configuration.
<Xeago> which can easily be changed to Config.
<csmrfx> isn't that like, 13 chars too many (or, 7 chars for latter)
<JonnieCache> ffs why isnt curl.haxx.se/ca/cacert.pem listening on https. how am i supposed to have a chain of trust?
zeromodulus has joined #ruby
imbric has left #ruby [#ruby]
chrishunt has joined #ruby
<Xeago> JonnieCache: by coming from multiple origins and comparing data
<Xeago> and the origin of the data
invapid has quit [Remote host closed the connection]
haxrbyte has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
<Xeago> the Thawte Server CA is equal to what is in my cacert list
chrishunt has quit [Client Quit]
<rcassidy> re-asking if anyone knows about using pcap in ruby to see if anyone new sees it :D
cpruitt has joined #ruby
eldariof has quit []
<csmrfx> Xeago: is Config an openstruct or what?
<Xeago> no idea, github.com/karmi/tire
baphled has quit [Ping timeout: 248 seconds]
Progster has quit [Ping timeout: 244 seconds]
<csmrfx> naw, thats just a class with methods
<JonnieCache> Xeago: fair point.
CaptainKnots has quit [Quit: bazinga!]
vlad_sta_ has quit [Remote host closed the connection]
sspiff has quit [Remote host closed the connection]
<Xeago> how can I see all available fonts on my system for use with vim?
<JonnieCache> Xeago: thinking about it, it doesnt really make sense to get your https CA list over https does it
<csmrfx> Geebuz who wants to type a class and methods for a little script with just a couple of config vars
CaptainKnots has joined #ruby
<csmrfx> Xeago: :set guifont=*
<csmrfx> Xeago: in fact, wrong chan, off topic, go to #vim for vim q's
<Xeago> #ruby is full of nice helpfull people
<Xeago> cacerts is not about ruby either
<Xeago> nor is curl
F1skr has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Ping timeout: 240 seconds]
<csmrfx> Yes, so please get on topic 8)
<Xeago> JonnieCache: yea, that makes sense :)
<jblack> You could always just use the json gem and load a file from there. =)
hbpoison has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<jblack> @config = JSON.parse(File.read("#{ENV['HOME']}/.bizscanner_config"))
Virunga has joined #ruby
<Xeago> my 'offtopic' questions interfere with no one asking ruby questions, they are still getting answered
<Xeago> rcassidy just has a difficult question it seems..
nilg has joined #ruby
<csmrfx> Screw it ruby, I wont massage you into submission - I will just use globals!
chimkan has quit [Quit: chimkan]
keymone has joined #ruby
CaptainKnots has quit [Client Quit]
<csmrfx> jblack: you mean, add a IO layer to a simple script
<csmrfx> I want to reduce complexity, not add it
alesguzik has joined #ruby
<shevy> :)
<jblack> If you already know what you want, why ask?
<shevy> that's my man!
<csmrfx> (I know, dont seem like a big deal, but is to a pea brain like me)
alesguzik has left #ruby [#ruby]
<csmrfx> jblack: cause I am trying to recall how I used to do it back in 2009
<jblack> if you want to include a script that has a bunch of global variables (which start with $, btw), have at it my man. It's not like I have to read your code. :)
khakimov has joined #ruby
<shevy> the problem with globals is that they are available everywhere
kadel has quit [Ping timeout: 240 seconds]
senny has quit [Remote host closed the connection]
<rcassidy> Xeago: i guess so! haha
<csmrfx> Pry uses openstruct and accessors
<shevy> I once set a variable called $TZ in bash. did you know that you can then not compile every program? Because $TZ is reserved... for TIME_ZONE ...
* csmrfx hates repetition with passion, and accessors mean repeating the varname once
chrishunt has joined #ruby
<shevy> openstructs have their own problem. can you close an openstruct class at any time?
<Xeago> csmrfx: rofl
<csmrfx> I guess ecmascript just got their syntax with objects right
<csmrfx> no extra cruft, it's all there before your eyes
<csmrfx> shevy: well, can you close anything in ruby?
<shevy> hmm
<shevy> there is .modifiable()
<shevy> csmrfx well, symbols at least :)
<shevy> if something returns a string object, of course you can modify that
<shevy> but if it returns a symbol... that's that!
<csmrfx> It's been too long since I last touched rubys openstruct, but last I did, I seem to remember it being static once you created it
<csmrfx> not easy to modify once born
rohrer has joined #ruby
<shevy> with openstruct, I seem to only get features but I cant prevent them being added anew at runtime / post-creation time
<shevy> really?
<shevy> hmm
<csmrfx> well I'd make one if I had the time, perhaps your irb is waiting...
<csmrfx> or maybe it was just 1.8.6 OS
<shevy> there is also struct alone ... http://www.ruby-doc.org/core-1.9.3/Struct.html
* csmrfx goes finish his job
<shevy> yeah well
mklappstuhl has quit [Ping timeout: 260 seconds]
* csmrfx with globals
<shevy> I remember I once wanted to use openstruct for a config file
dr_bob has left #ruby [#ruby]
<shevy> but it annoyed me that I could modify it
_nitti has joined #ruby
<shevy> (in the phase after I read in the configuration data that is)
omry has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
medik has joined #ruby
apok has joined #ruby
mrsolo has joined #ruby
alvaro_o has joined #ruby
mrsolo has quit [Remote host closed the connection]
apok has quit [Remote host closed the connection]
kil0byte has joined #ruby
_nitti_ has quit [Ping timeout: 240 seconds]
apok has joined #ruby
haxrbyte has joined #ruby
xorigin has quit [Quit: leaving]
erichmeng has joined #ruby
kbeddingfield has joined #ruby
jblack_ has joined #ruby
samphippen has joined #ruby
stkowski has joined #ruby
timonv has quit [Remote host closed the connection]
icole has joined #ruby
mrsolo has joined #ruby
Araxia_ has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
haxrbyte_ has joined #ruby
iamvery has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
ltsstar has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
ThaDick has joined #ruby
erichmeng has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
ThaDick has quit [Client Quit]
erichmeng has joined #ruby
rohrer has quit [Ping timeout: 252 seconds]
jrajav has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
darthdeus has joined #ruby
erichmenge has quit [Ping timeout: 268 seconds]
thisirs has joined #ruby
<apeiros> JonnieCache: no idea. you'd have to ask the brew author. I'd assume because many tools automatically look in /usr/local, but the same should be achievable by setting the proper env vars
Jork1 has quit [Ping timeout: 252 seconds]
erichmeng is now known as erichmenge
icole has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Read error: Connection reset by peer]
jaygen_ has joined #ruby
<Xeago> apeiros: some tools have that list hardcoded
jaygen has quit [Ping timeout: 252 seconds]
d3vic3 has quit [Quit: leaving]
<Xeago> and just blindly assume it
sn0wb1rd has joined #ruby
horrror has joined #ruby
kpshek has quit []
<horrror> Hi guys, I just saw " http://doc-edit.herokuapp.com/ "
Cultofmetatron has joined #ruby
<horrror> it interesting how it works. does it parses with NLP the text and cross it through Wikipedia?
voodoofish430 has joined #ruby
JohnBat26 has quit [Ping timeout: 265 seconds]
demet8 has quit [Quit: demet8]
<horrror> how does it know which word or phrase to parse with Wiki?
<JonnieCache> its extracting "key terms" or whatever theyre called
<JonnieCache> thats the nlp bit
Progster has joined #ruby
<horrror> how it extracts key terms?
filipe has quit [Ping timeout: 256 seconds]
<JonnieCache> dunno there are many ways of doing term extraction
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
<JonnieCache> actually theres a good chance it uses http://developer.yahoo.com/search/content/V2/contentAnalysis.html
u89 has quit [Remote host closed the connection]
<JonnieCache> because it automatically searches wikipedia
maletor has joined #ruby
Jork1 has joined #ruby
ephemerian has left #ruby [#ruby]
<horrror> yea and Yahoo searches entire wikipedia for that?
<JonnieCache> i imagine they do their own indexing locally, but yes it seems so
<horrror> cool
<horrror> but how do Yahoo know which phrases to look for?
<horrror> and by which context?
F1skr has joined #ruby
otters has quit [Ping timeout: 252 seconds]
<JonnieCache> the magic of nlp
<horrror> cool
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
AndChat- has joined #ruby
cantonic has quit [Quit: cantonic]
centipedefarmer has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
kpshek has joined #ruby
jaygen has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
jaygen has quit [Read error: Operation timed out]
tvw has quit [Read error: Connection reset by peer]
jaygen_ has quit [Ping timeout: 252 seconds]
BrianJ has joined #ruby
ThaDick has joined #ruby
kkiero has quit [Ping timeout: 260 seconds]
jblack_ has quit [Quit: Lost terminal]
chimkan has joined #ruby
kkiero has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
tenmilestereo has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
sn0wb1rd has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
pmo has joined #ruby
<pmo> hey can one of you check some ruby for me?
thisirs has quit [Remote host closed the connection]
bigmcq77 has joined #ruby
<GeekOnCoffee> pmo: put it in a gist and share it
<pmo> nvm got a guy to check for me
<pmo> thanks anyways :)
nemesit has joined #ruby
ZubKonst has joined #ruby
<pmo> just had to check for "backdoors" :)
<pmo> random code i found that did what i needed :)
x82_nicole has joined #ruby
kkiero has quit [Remote host closed the connection]
kkiero has joined #ruby
jblack has joined #ruby
pmo has left #ruby ["Leaving"]
slainer68 has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
ZubKonst_ has quit [Ping timeout: 260 seconds]
ABK has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
jgrevich has joined #ruby
<havenn> Any better way to check if a symbol has been defined (without defining it in the process..)?: https://gist.github.com/3981747
cakehero has joined #ruby
carloslo_ has joined #ruby
<JonnieCache> why would you want to do that?
carloslopes has quit [Ping timeout: 245 seconds]
bricker has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
ltsstar has quit [Ping timeout: 255 seconds]
Jork1 has quit [Quit: Jork1]
neku has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
Araxia has quit [Read error: Connection reset by peer]
u89 has joined #ruby
Araxia has joined #ruby
weasels has joined #ruby
weasels is now known as otters
freakazoid0223 has joined #ruby
reinaldob has quit [Remote host closed the connection]
cdt has quit [Quit: Ex-Chat]
JonnieCache has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
<havenn> Meh, nevermind - much faster to map all symbols to strings and just check #include? it looks like.
rlb3 has joined #ruby
c0rn_ has joined #ruby
kkiero has quit [Remote host closed the connection]
Ry has joined #ruby
matthewrobbins has quit [Ping timeout: 244 seconds]
proshot has joined #ruby
havenn has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
rakl has joined #ruby
Androidnewbe has joined #ruby
<Androidnewbe> hi anyone using cucumber/capybara ?
jonathanwallace has joined #ruby
elico has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 256 seconds]
mneorr has joined #ruby
jasond has joined #ruby
Araxia has joined #ruby
samphippen has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ABK has quit [Read error: Connection reset by peer]
redbull has quit [Ping timeout: 260 seconds]
ABK has joined #ruby
Cultofmetatron has joined #ruby
samphippen has quit [Client Quit]
Bosox20051 has quit [Read error: Connection reset by peer]
x82_nicole has quit [Quit: Computer has gone to sleep.]
rohrer has joined #ruby
asobrasil has left #ruby [#ruby]
vaino has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
headius has quit [Quit: headius]
rakl has quit [Quit: sleeping]
rohrer has quit [Ping timeout: 255 seconds]
shevy has quit [Ping timeout: 245 seconds]
icole has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Ping timeout: 260 seconds]
clj_newb has quit [Ping timeout: 260 seconds]
marius has quit [Read error: Connection reset by peer]
beiter has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Ping timeout: 245 seconds]
beiter has joined #ruby
mrsolo has joined #ruby
horrror has quit [Quit: horrror]
judd7 has quit [Quit: judd7]
dekroning has quit [Ping timeout: 248 seconds]
marius has joined #ruby
icole has quit [Ping timeout: 256 seconds]
<reactormonk> Androidnewbe, go to stackoverflow :-P
Xeago_ has joined #ruby
<Androidnewbe> haha
samphippen has joined #ruby
<rcassidy> so... let's say i've lost all hope and am messing with IO::popen on 1.8.7
savage- has joined #ruby
<rcassidy> i should be able to keep a bg process running and take output from it as it goes, yeah?
areil has quit [Remote host closed the connection]
<rcassidy> for some reason i'm only able to read lines after the bg process stopes.
<rcassidy> *stops
uxp has quit [Read error: Connection reset by peer]
uxp has joined #ruby
mucker has quit [Quit: leaving]
yshh has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 255 seconds]
sertaconay has joined #ruby
Xeago_ has quit [Ping timeout: 252 seconds]
jrajav has quit []
jgrevich_ has joined #ruby
shevy has joined #ruby
ryanlecompte has quit [Ping timeout: 256 seconds]
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
chriskk has joined #ruby
mpereira has quit [Ping timeout: 255 seconds]
jeremywrowe has left #ruby [#ruby]
richardjortega_ has joined #ruby
robotmay has quit [Remote host closed the connection]
Virunga is now known as LennyLinux
Vinz_ is now known as Vinz_`
<rcassidy> anyone know much about running sub-processes with IO::popen?
elaptics is now known as elaptics`away
<jcaudle> Androidnewbe: are you using cucumber/capybara in rails?
<rcassidy> i'm trying to find a way to read from a process's output without killing it to flush its stdout
bbttxu has quit [Quit: bbttxu]
mpereira has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
sertaconay has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
Araxia has joined #ruby
richardjortega has quit [Ping timeout: 260 seconds]
richardjortega_ is now known as richardjortega
rakl has joined #ruby
robustus has joined #ruby
tvw has joined #ruby
jrajav has joined #ruby
glyytchy has joined #ruby
tiripamwe has quit [Ping timeout: 264 seconds]
dekroning has joined #ruby
icole has joined #ruby
fermion has quit [Quit: P]
cakehero has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
instinkt has joined #ruby
havenn has quit [Remote host closed the connection]
beiter has quit [Quit: beiter]
aces23up has joined #ruby
stkowski has quit [Quit: stkowski]
aces1up has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby
Agis__ has quit [Quit: Agis__]
baphled has joined #ruby
rlb3 has quit [Quit: rlb3]
beiter has joined #ruby
glyytchy has quit [Quit: glyytchy]
timmow has quit [Ping timeout: 252 seconds]
nachos_ has joined #ruby
aces1up has joined #ruby
aces23up has quit [Ping timeout: 255 seconds]
beiter has quit [Client Quit]
daniel_- has joined #ruby
Araxia has quit [Ping timeout: 276 seconds]
Jelco_ has left #ruby [#ruby]
ThaDick has joined #ruby
ABK has quit [Read error: Connection reset by peer]
dnstbr has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
ABK has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
nyrb has quit [Read error: Connection reset by peer]
SleepN0T has joined #ruby
nyrb has joined #ruby
rakl has quit [Quit: sleeping]
slainer68 has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
kbeddingfield has joined #ruby
clj_newb has joined #ruby
cantonic has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
nachos_ has quit [Quit: Page closed]
J-_-L has joined #ruby
ThaDick has quit [Quit: I'm outta here!]
tchebb has joined #ruby
nilg has quit [Ping timeout: 248 seconds]
sertaconay has joined #ruby
aces23up has joined #ruby
rohrer has joined #ruby
aces1up has quit [Ping timeout: 268 seconds]
jimeh has quit [Ping timeout: 240 seconds]
savage- has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
J-_-L has quit [Quit: Leaving.]
otters has quit [Ping timeout: 253 seconds]
havenn has joined #ruby
Paradox has quit [Quit: derpderp]
grauwoelfchen has joined #ruby
grauwoelfchen has left #ruby [#ruby]
arietis has joined #ruby
rohrer has quit [Ping timeout: 265 seconds]
Paradox has joined #ruby
Takehiro has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 260 seconds]
headius has joined #ruby
otters has joined #ruby
Andrevan has joined #ruby
Andrevan has quit [Changing host]
Andrevan has joined #ruby
chriskk has quit [Quit: chriskk]
tiripamwe has joined #ruby
nilg has joined #ruby
dekroning has quit [Ping timeout: 255 seconds]
kpshek has quit []
rakl has joined #ruby
adeponte has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
keyvan has quit [Remote host closed the connection]
ebobby has joined #ruby
cakehero has joined #ruby
TheFuzzball has quit [Remote host closed the connection]
Jork1 has joined #ruby
Andrevan has quit []
workmad3 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nobitanobi_ has joined #ruby
timonv has joined #ruby
rakl has quit [Quit: sleeping]
bbttxu has joined #ruby
Andrevan has joined #ruby
Andrevan has quit [Changing host]
Andrevan has joined #ruby
<nobitanobi_> I have the following: (my_value*20).round/20.0 --> Which I use to round up to the nearest 0.05 . For example: 0.5625 is rounded to 0.55 . My question is..How would I round UP to the nearest 0.05
Jork1 has quit [Client Quit]
<Paradox> anyone have any good articles explaning the nuances of &:syntax for things like map
<Paradox> i guess reduce is better
<Paradox> but same idea
maletor has joined #ruby
kpshek has joined #ruby
djbender has joined #ruby
djbender has left #ruby [#ruby]
<Paradox> im trying to teach it and cant really remember any of the rules i learned
adeponte has joined #ruby
monkegjinni has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
elux has quit [Quit: Bye!]
adeponte has quit [Remote host closed the connection]
jaygen has joined #ruby
carloslo_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
joephelius has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
catcity has joined #ruby
mklappstuhl has joined #ruby
havenn has joined #ruby
minijupe has quit [Quit: minijupe]
matthewrobbins has joined #ruby
manizzle has quit [Ping timeout: 265 seconds]
Vinz_` is now known as Vinz_
CaptainKnots has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
chriskk has joined #ruby
jblack has quit [Read error: Operation timed out]
havenn has quit [Ping timeout: 252 seconds]
jarred has joined #ruby
<shevy> Paradox it's just a shortcut
Agis__ has joined #ruby
<Agis__> would you recommend using bundler to initialize a new gem?
<shevy> I think to_proc is being called via &
<Agis__> or rake? or do it by hand?
<shevy> I? never. bundler stinks. rake also stinks. :)
<shevy> it depends what you actually need to do
<shevy> if you only need to generate a .gemspec file then you could write a tiny script yourself in like 10 minutes
<Agis__> hm why they stink? :P
<shevy> if you want all the fancified extras then you could well use bundler
<shevy> Agis__ don't ask me, I didn't write it. I see lots of people run into problems with it. I myself tried the official rails tutorial, i copy pasted the given examples, which used bundler, bundler exploded into my face
mklappstuhl has quit [Read error: Operation timed out]
<Paradox> shevy, yeah, i know that, but imagine you're a noob again and want to learn about it
<Paradox> even just a simple blog writeup would help this guy
<shevy> well Paradox like ...
<shevy> let me try an example
iamvery has quit [Remote host closed the connection]
<shevy> array = %w( 1 2 3 4 5 ) # => ["1", "2", "3", "4", "5"]
<shevy> ok just a silly array
<shevy> now we run a silly method
<shevy> array.map {|x| x.size } # => [1, 1, 1, 1, 1]
<shevy> ok and this is almost the same as
<shevy> array.map(&:size) # => [1, 1, 1, 1, 1]
kylemcgill has joined #ruby
<shevy> & is shorter, but also slower. and I dont like the & at all
X-Jester has joined #ruby
<nobitanobi_> How can I force ruby to write 0 at the end of decimals? Per say, it writes 1.6 instead of 1.60
<shevy> though you could omit the () actually
<X-Jester> print it as 0.2f ?
<shevy> array.map &:size
<Paradox> shevy, cool, he's been reading over my shoulder, and likes it
<shevy> I think X-Jester knows C :)
<nobitanobi_> X-Jester: ?
<shevy> Paradox who is reading what where?? hehe
<nobitanobi_> is that for me?
sent-hil has joined #ruby
<Ry> nobitanobi_ "%0.2f" % value
<Paradox> shevy, your little summary of &
keymone_ has joined #ruby
<shevy> yeah, just didn't know how many people you are... I could write to a WHOLE CLASS OF STUDENTS! :P
adeponte has joined #ruby
<X-Jester> shevy: :)
jblack has joined #ruby
<Ry> sorry, I'm asleep, forget the 0 in that :P
* shevy struts proudly.
artOfWar has quit [Remote host closed the connection]
keymone has quit [Ping timeout: 264 seconds]
keymone_ is now known as keymone
<X-Jester> nobitanobi_: yes, if you assign the variable as myVar = '%.2f' % myFloatingPointNumber
<shevy> future generations will be able to code while they sleep
<nobitanobi_> ok X-Jester thanks
<X-Jester> guess the %0.2f = wrong :)
* X-Jester silly sprintf
cakehero has quit [Quit: Computer has gone to sleep.]
<X-Jester> ry: i did it too :P
<Ry> ;)
<X-Jester> so let me tell you today i discovered the simplicity of using YAML.load_file()
<X-Jester> it is mind-bogglingly easy
<Agis__> why do some gems require again their main .rb file from within other files, for ex: https://github.com/mperham/dalli/blob/master/lib/rack/session/dalli.rb this requires the dalli.rb again
<Ry> X-Jester: just IRB'd it.. seems to work with 0 anyway, so we're in the clear! *phew*
<X-Jester> agis: there's lots of reasons to bring your main file back in. core classes, common datatypes, code reuse
<X-Jester> ry: ah! phew indeed! perhaps the 0 is implied ;)
rakl has joined #ruby
<Agis__> X-Jester: but doesn't everything start from the main file? so isn't it required already?
<X-Jester> yes but it may not always start from the same file
rjsamson has quit [Remote host closed the connection]
<Agis__> hm, I noticed that they do it when they add functionality to other libraries (rack, rails)
<X-Jester> the insertion point into the gem may not always be the main file
<Agis__> would that be a case?
rjsamson has joined #ruby
kirun has joined #ruby
<X-Jester> sure, and again, you don't always have to require the full gem
<X-Jester> require 'highline/import' comes to mind
psycho_one has quit [Remote host closed the connection]
<shevy> guys, stylistic question
<shevy> not about ruby code per se, but about comments in ruby code, but also comments in general... one moment
<X-Jester> it's probably a safety/sanity check at best, but a good idea
seanyo_ has joined #ruby
<rking> shevy: None.
chriskk has quit [Quit: chriskk]
neku has quit [Ping timeout: 255 seconds]
solidus-river has joined #ruby
<X-Jester> Agis__: for example, when i write ruby programs, i check to see if __FILE__ == $PROGRAM_NAME, and only run my main() if the prgoram was invoked directly. otherwise, i can actually require the file without calling its main block
<solidus-river> how do i test if an object is a fixnum
<solidus-river> is_fixnum?
manizzle has joined #ruby
<shevy> rking man, my brain *loves* consistency, I need to be uniform about this
<X-Jester> shevy: i like option 1
<Agis__> i see
<Agis__> so when you want to add functionality from to another gem, you re-open that gem's classes and insert your modules-methods etc?
<rking> shevy: That's some straight OCD stuff in that pastie. Of no objective value.
<wca> i'd minimize the comments.
<shevy> X-Jester cool, I kinda tend to favour it too. the current use case I had was to wonder whether I could get save one line
<X-Jester> shevy: i'm even slightly more anal, because i use the formatting similar to your #1, i also give its basic caller syntax
<shevy> rking not at all! consistency allows me to find things faster
<X-Jester> shevyt: like myFunction(int, string, CustomClass)
<shevy> basic caller syntax?
<shevy> ah you mean before the method/function code?
<X-Jester> right
_sent-hil has quit []
<shevy> ok
<shevy> in this example, it was just a yaml file :) but it is getting larger and larger, so I wanted to have subsections hehe
seanyo has quit [Ping timeout: 260 seconds]
eph3meral has joined #ruby
<X-Jester> and in the part where you have 'does this and that', i explain on one-argument-per-line what it needs
_sent-hil has joined #ruby
<shevy> I see!
<X-Jester> Agis__: yes, something like that
_sent-hil has quit [Client Quit]
_sent-hil has joined #ruby
Andrevan is now known as afader
rjsamson has quit [Ping timeout: 252 seconds]
<maletor> I need a regex to select all image/ mime types except for tiff
<X-Jester> Agis__: Also, in theory, as long as the string of things to require is the same in all the files, the interpreter ignores any subsequent requires anyway, so you don't lose very much
<maletor> Here is what I have so far: http://rubular.com/r/dlfxMpqFYE
seanyo_ has quit [Ping timeout: 260 seconds]
<X-Jester> maletor: i don't think that's working like you think it is
<X-Jester> maletor: i think that means, image/(anything not T, I, F, F, or .)
daniel_hinojosa has quit [Remote host closed the connection]
<X-Jester> maletor: admittedly this may not be elegant, but i know it works, you can match for image/(anything), extract (anything) into a group, and check that group for 'tiff'
sent-hil has left #ruby [#ruby]
<rking> shevy: ctags
<rking> shevy: And vim folds
rippa has quit [Ping timeout: 265 seconds]
kirun_ has joined #ruby
chriskk has joined #ruby
jaygen has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
<shevy> viiiiiiiiim
mklappstuhl has joined #ruby
love_color_text has quit [Remote host closed the connection]
<shevy> EMACS FOREVER!!!
love_color_text has joined #ruby
sguselnikov has joined #ruby
havenn has joined #ruby
<X-Jester> [[ $EDITOR == "emacs" ]] && logout
<X-Jester> :(
robertotauille has quit [Quit: Linkinus - http://linkinus.com]
robertotauille has joined #ruby
arietis has quit [Ping timeout: 252 seconds]
otters has quit [Ping timeout: 255 seconds]
daniel_hinojosa has joined #ruby
<shevy> you can't logout from your OS!!!
<Ry> shevy: I'd agree with rking , those don't look like they're achieving anything other than additional maintenance if you rename the function or class or whatever
_sent-hi_ has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
kirun has quit [Ping timeout: 244 seconds]
_sent-hil is now known as sent_hil
<shevy> yeah I could document zero
_sent-hi_ has quit [Client Quit]
darthdeus has quit [Quit: Leaving...]
_sent-hil has joined #ruby
<Ry> you could give information that isn't already stated, e.g. summarise interfaces input should adhere to and what you're going to output, note any cases you're going to throw exceptions
<shevy> I found it easier to over-document and then cut down, the opposite to document nothing works only for really small pieces of code
_sent-hil is now known as sent-hil
sguselnikov has quit [Client Quit]
sent-hil has quit [Remote host closed the connection]
arietis has joined #ruby
aldodelgado has joined #ruby
robertotauille has quit [Quit: Leaving...]
Ry_ has joined #ruby
<Ry_> goddamn vpn :E
joephelius has left #ruby ["Off I go ..."]
<wca> maletor: http://rubular.com/r/yXIvlXHG4P /image\/.*(?<!tiff)$/
jenrzzz has joined #ruby
Ry has quit [Read error: Connection reset by peer]
Ry_ is now known as Ry
<mr-rich> ok, noob Q: if I'm doing a .each on, say, an array of hashes, how do access the entire original array in the loop?
<mr-rich> oops
<apeiros> wca: it'd have less backtracking if you moved the .* after the look-ahead
<mr-rich> I mean the array member I'm working on ...
kbeddingfield has joined #ruby
Araxia has joined #ruby
<apeiros> mr-rich: eh? array.each do |x| <-- x will have the array member you work on
clj_newb has quit [Ping timeout: 268 seconds]
fantazo has joined #ruby
caleb_io has joined #ruby
beneggett has joined #ruby
<apeiros> wca: oh, and actually did use a look-ahead, not a look-behind
glyytchy has joined #ruby
<mr-rich> apeiros: k ... I'm going a bit deaper than that ... I'll figure it out ...
geekbri has quit [Remote host closed the connection]
chriskk has quit [Quit: chriskk]
<apeiros> wca, maletor: /\Aimage\/(?!tiff).*\z/ (on rubular, the anchors will make it not work of course)
<apeiros> mr-rich: well, then adjust your question. but that's the answer to what you asked.
Araxia has quit [Read error: Connection reset by peer]
chriskk has joined #ruby
Araxia has joined #ruby
<wca> apeiros: you're obviously more well-versed in ruby regex than I am.. I was mostly curious to see how you could match words.
<apeiros> \p{word}+
<apeiros> ;-)
<mr-rich> apeiros: You actually answered it ... thank you!
<shevy> payment in schoki
<apeiros> shevy: I rarely eat chocolate
<shevy> :(
<wca> apeiros: you're a smarty pants huh :P
jslowe has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
rohrer has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
jslowe has joined #ruby
Araxia has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
sent_hil has left #ruby [#ruby]
emmanuelux has joined #ruby
UberNerdGirl has left #ruby [#ruby]
sent_hil has joined #ruby
kbeddingfield has quit [Ping timeout: 256 seconds]
rohrer has quit [Ping timeout: 240 seconds]
Slivka has quit [Remote host closed the connection]
Takehiro has joined #ruby
otters has joined #ruby
workmad3 has joined #ruby
sent_hil has left #ruby [#ruby]
samphippen has joined #ruby
darthdeus has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 260 seconds]
Takehiro has quit [Ping timeout: 260 seconds]
nobitanobi_ has quit [Ping timeout: 245 seconds]
daniel_- has quit [Ping timeout: 256 seconds]
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
solidus-river has quit [Quit: Leaving.]
iamvery has joined #ruby
iamvery has quit [Remote host closed the connection]
cascalheir has quit [Quit: Leaving...]
whiny_nil has joined #ruby
nanderoo has quit [Quit: Leaving.]
Ry_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
<whiny_nil> first time; just testing
Ry_ is now known as Ry
otters has quit [Ping timeout: 268 seconds]
solidus-river has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
kpshek has quit []
baphled has quit [Ping timeout: 276 seconds]
jarred has quit [Ping timeout: 260 seconds]
whiny_nil has quit [Quit: Leaving]
CaptainKnots has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
BrianJ has quit [Quit: BrianJ]
baphled has joined #ruby
whiny_nil has joined #ruby
kkiero has joined #ruby
awarner has quit [Read error: Connection reset by peer]
whiny_nil has quit [Client Quit]
awarner has joined #ruby
whiny_nil has joined #ruby
whiny_nil has quit [Client Quit]
knite has quit [Ping timeout: 260 seconds]
beneggett has quit [Remote host closed the connection]
philips_ has quit [Ping timeout: 260 seconds]
chussenot has left #ruby [#ruby]
kkiero has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Read error: Connection reset by peer]
kkiero has joined #ruby
otters has joined #ruby
jenrzzz has joined #ruby
Beoran_ has joined #ruby
knite has joined #ruby
kpshek has joined #ruby
manizzle has joined #ruby
jeffreybaird has joined #ruby
philips_ has joined #ruby
imami|afk is now known as banseljaj
hakunin has joined #ruby
baphled has quit [Ping timeout: 276 seconds]
burgestrand has joined #ruby
Beoran__ has quit [Ping timeout: 256 seconds]
sambio has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
carlyle has joined #ruby
hsbt_away is now known as hsbt
jaygen has joined #ruby
baphled has joined #ruby
kkiero has quit [Ping timeout: 255 seconds]
kkiero has joined #ruby
blacktulip has quit [Remote host closed the connection]
clj_newb has joined #ruby
haxrbyte has joined #ruby
kkiero has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
axl_ has joined #ruby
kpshek has quit []
hsbt has quit [Ping timeout: 245 seconds]
cascalheira has joined #ruby
haxrbyte_ has quit [Ping timeout: 268 seconds]
axl_ has quit [Remote host closed the connection]
blacktulip has joined #ruby
hsbt has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
cascalheira has quit [Client Quit]
otters has quit [Ping timeout: 265 seconds]
mark_locklear has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 265 seconds]
yalue has quit [Read error: Connection reset by peer]
neku has joined #ruby
Debolaz has quit [Quit: ZNC - http://znc.in]
JonnieCache has joined #ruby
SleepN0T has quit [Ping timeout: 245 seconds]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
rohrer has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<epitron> wca: heh... that seems like an abuse of regexps :)
Neomex has joined #ruby
jrajav has quit []
ABK has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
samphippen has joined #ruby
dmerrick has quit [Ping timeout: 260 seconds]
<epitron> category, type = mimetype.split("/"); if category == "image" and category != "tiff"; ...
<epitron> readable code \o/
Chryson has joined #ruby
cakehero has joined #ruby
hoelzro|away is now known as hoelzro
dekroning has joined #ruby
philcrissman has quit [Remote host closed the connection]
rcassidy has quit [Quit: leaving]
<shevy> hehe
emergion has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Debolaz has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9]
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
rafter has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
tiripamwe has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
omg765 has joined #ruby
havenn has joined #ruby
havenn has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 252 seconds]
dekroning has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
havenn has joined #ruby
Neomex has quit [Quit: Neomex]
ABK has joined #ruby
centipedefarmer has left #ruby ["Leaving"]
Faris has joined #ruby
klaas has joined #ruby
omg765 has quit [Client Quit]
tenmilestereo has quit [Ping timeout: 260 seconds]
u89 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
eph3meral has quit [Quit: eph3meral]
ffranz has quit [Quit: Leaving]
twopoint718 has quit [Read error: Connection reset by peer]
jimeh has joined #ruby
rohrer has quit [Quit: leaving]
<epitron> oops.. category == "image" and type != "tiff"
x82_nicole has joined #ruby
sailias has quit [Quit: Leaving.]
rburton- has joined #ruby
uris has quit [Quit: Leaving]
<Androidnewbe> i am tryin to run cucumber from ruby but it does not dispaly the feedback
jcaudle has quit [Quit: jcaudle]
<Androidnewbe> the green yello red ting in the terminal
<Androidnewbe> i jsut do #!/bin/env ruby
Takehiro has joined #ruby
<Androidnewbe> 'cucumber'
<Androidnewbe> in the file
<Androidnewbe> and run that file
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
<shevy> Androidnewbe can you start "irb"
<shevy> when you started it
<shevy> try
<shevy> require 'cucumber'
otters has joined #ruby
QKO has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
<Gate> when using rspec, is there a way to assert that a method included from a module calls super in certain situations, other than checking for the expected result of super?
twopoint718 has joined #ruby
QKO_ has quit [Ping timeout: 256 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
<invisime> Gate: you might be able to do it with .stub.
cableray has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
robertotauille has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
c0rn_ has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
neku is now known as neku|away
<Gate> invisime: you mean stub the method I presume? if so, on what?
Servidorv has joined #ruby
<Servidorv> hey guys
<Servidorv> how are you
<Servidorv> ??
<Gate> well, yourself?
<Servidorv> preatty good
<Servidorv> building a new api
<Servidorv> :)
<Servidorv> hey got a question
<Gate> ask away
<Servidorv> im trying to do a pages.each{|page| find_page_best_worst(page['id'])}
JonnieCache has quit [Read error: Operation timed out]
<Servidorv> but is seems is not working
<burgestrand> Gate: on the parent class, possibly.
<Sou|cutter> servidorv: that's not a question
<Gate> servidorv: I take it pages is a collection of activerecord models? I need more context to understand that line.
<Servidorv> find_page_best_worst() actualli looks into mongodb and finds for the one best worst
Eplemosen has joined #ruby
<burgestrand> Gate: parent_class.any_instance.should_receive(…); might work, might not
nazty has joined #ruby
<burgestrand> Odd thing to test.
haxrbyte has quit [Remote host closed the connection]
Androidnewbe has quit [Quit: irc2go]
<Gate> It is odd, I agree. Effectively I am building a class which uses numerous strategies failing over when one can't get the required data.
<Servidorv> sorry, the question is what will be the best way to make a .each and look into the db with the id of each of the .each??
<Gate> I'm doing this by building each strategy as a module, including it in the class and each module simply calling its predecessor via super
_nitti has quit [Remote host closed the connection]
<Gate> at the moment I'm testing by looking for the exception thrown by the last strategy
nitti has joined #ruby
<Servidorv> got it thanks anyway :)
sebastorama has quit [Quit: Computer has gone to sleep.]
<Servidorv> sorry somethimes ones just need to talk to somebody to get their head straight :)
Araxia has joined #ruby
otters has quit [Ping timeout: 260 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
kpshek has joined #ruby
ryanf has joined #ruby
wchun has quit [Quit: Leaving]
c0rn_ has joined #ruby
wchun has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
manizzle is now known as WeLoveCP
drnfx has joined #ruby
Keva161 has quit [Remote host closed the connection]
Keva161 has joined #ruby
nazty has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
Vinz_ is now known as Vinz_`
ltsstar has joined #ruby
krawchyk has quit [Remote host closed the connection]
Rix is now known as NullByte
WeLoveCP is now known as manizzle_
robertotauille has quit [Quit: Leaving...]
jonathanwallace has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
jonathanwallace has joined #ruby
neku|away is now known as neku
Keva161 has quit [Ping timeout: 260 seconds]
sebastorama has joined #ruby
tenmilestereo has joined #ruby
fgro has joined #ruby
cableray has quit [Quit: cableray]
jaygen has quit [Remote host closed the connection]
rjsamson has joined #ruby
keymone has quit [Ping timeout: 255 seconds]
keymone_ has joined #ruby
awestroke has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 268 seconds]
jaygen has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
invisime has quit [Quit: Leaving.]
chriskk has quit [Quit: chriskk]
jeffreybaird has quit [Quit: jeffreybaird]
eroc has joined #ruby
ablankfield has joined #ruby
jamjam has joined #ruby
mneorr has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
mneorr has joined #ruby
Araxia has quit [Read error: No route to host]
Araxia_ has joined #ruby
glyytchy has quit [Quit: glyytchy]
[Neurotic] has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
matthewrobbins has joined #ruby
neku has quit [Ping timeout: 255 seconds]
vjt has joined #ruby
u89 has joined #ruby
carlyle has quit [Remote host closed the connection]
chriskk has joined #ruby
kbeddingfield has joined #ruby
glyytchy has joined #ruby
jblack has quit [Ping timeout: 260 seconds]
bradleyprice has quit [Remote host closed the connection]
jblack has joined #ruby
guns has joined #ruby
medik has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
hoelzro is now known as hoelzro|away
glyytchy has quit [Client Quit]
Nisstyre has quit [Quit: Leaving]
apok_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has quit [Remote host closed the connection]
Keva161 has joined #ruby
dekroning has joined #ruby
hotovson has quit [Remote host closed the connection]
purpleidea has quit [Ping timeout: 246 seconds]
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
maletor has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
nitti has quit [Remote host closed the connection]
Keva161 has quit [Ping timeout: 252 seconds]
AndChat- has quit [Remote host closed the connection]
Slivka has joined #ruby
jaygen has quit [Remote host closed the connection]
chazu has joined #ruby
Araxia_ has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
Nisstyre has joined #ruby
Takehiro has joined #ruby
irleif has joined #ruby
Slivka has quit [Remote host closed the connection]
cdzombak has quit []
Araxia has joined #ruby
<chazu> does anyone know how to properly connect a spawned process to a socket in ruby, and to have the output fully buffered? Specifically, I want to hook a ruby Ncurses application up to Eventmachine
fyolnish_ has quit [Remote host closed the connection]
sambio has joined #ruby
fyolnish has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
dmiller has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
nazty has joined #ruby
jrajav has joined #ruby
Servidorv has quit [Quit: If your not living on the edge, you're taking up too much space]
<vjt> ncurses needs a terminal
otters has joined #ruby
<vjt> it's way too much work imho
<chazu> vjt: how do you mean, too much work to hook it up to a socket?
fyolnish has quit [Ping timeout: 265 seconds]
<vjt> too much work to emulate the tty line for the ncurses application to work correctly
nazty has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
nazty has joined #ruby
Axsuul has joined #ruby
Guest15771 has quit [Quit: Guest15771]
adeponte has quit [Remote host closed the connection]
<chazu> vjt: hrm...the best bet might just be to configure sshd to skip login and run the desired app on connect, then...i'm not sure if thats the canonical way of running TUI apps over a socket, though...
<vjt> you can use a forced command in an authorized_keys file
c0rn_ has quit [Quit: Computer has gone to sleep.]
<chazu> vjt: interesting, i hadn't heard of this technique...
<chazu> thank you
<vjt> :)\
c0rn_ has joined #ruby
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
jenrzzz has joined #ruby
Ry has quit [Ping timeout: 256 seconds]
macabre has quit [Ping timeout: 255 seconds]
<jrajav> Dammit where did xeago go :/
Araxia has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
Araxia has joined #ruby
mneorr has joined #ruby
chriskk has quit [Quit: chriskk]
__miha__ has joined #ruby
bapa has quit [Ping timeout: 244 seconds]
afader has quit []
joshman_ has quit [Ping timeout: 252 seconds]
kpshek has quit []
jcaudle has joined #ruby
chriskk has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
otters has quit [Ping timeout: 252 seconds]
jrist is now known as jrist-afk
jimeh has quit [Ping timeout: 265 seconds]
bapa has joined #ruby
jcaudle has quit [Client Quit]
dekroning has quit [Ping timeout: 248 seconds]
SecretAgent has quit [Read error: Operation timed out]
SecretAgent has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
__miha__ has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
Agis__ has quit [Quit: Agis__]
havenn has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
mmitchell has quit [Remote host closed the connection]
headius has quit [Quit: headius]
sailias has joined #ruby
<mr-rich> rking: ping
theRoUS has quit [Ping timeout: 248 seconds]
instinkt has quit [Quit: Lost terminal]
mklappstuhl has joined #ruby
dekroning has joined #ruby
GoGoGarrett has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
sailias has quit [Ping timeout: 264 seconds]
Cultofmetatron has joined #ruby
chriskk has quit [Quit: chriskk]
Soliah has joined #ruby
carlyle has joined #ruby
ddd1 has joined #ruby
dakine has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 245 seconds]
kirun_ has quit [Quit: Client exiting]
tds has joined #ruby
carlyle has quit [Remote host closed the connection]
ddd1 is now known as ddd
vickaita has quit [Ping timeout: 256 seconds]
Araxia has quit [Ping timeout: 268 seconds]
hiroyuki has joined #ruby
robertotauille has joined #ruby
__miha__ has joined #ruby
swex has quit [Read error: Operation timed out]
robertotauille has quit [Client Quit]
<MarcWeber> Which pdf library do you recommend in order to create simple prospects containing images and tables whose cells may be joined (colspan,rowspan?)
katherinem13 has joined #ruby
dekroning has quit [Ping timeout: 260 seconds]
jcaudle has joined #ruby
jcaudle has quit [Client Quit]
<chazu> MarcWeber: try prawn, its fairly easy to pick up
BrianJ has joined #ruby
bapa has quit [Ping timeout: 248 seconds]
cakehero has joined #ruby
jeremywrowe has joined #ruby
vickaita has joined #ruby
yeltzooo has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 260 seconds]
rakm has quit [Ping timeout: 240 seconds]
ewokchewy has joined #ruby
yeltzooo has joined #ruby
sailias has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
reset has joined #ruby
Faris has quit [Ping timeout: 256 seconds]
maletor has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Read error: Connection reset by peer]
maletor has joined #ruby
shtirlic has quit [Remote host closed the connection]
bapa has joined #ruby
Trioke has quit [Read error: Connection reset by peer]
Trioke has joined #ruby
geggam has quit [Read error: Connection reset by peer]
mpereira has quit [Ping timeout: 260 seconds]
thinkdevcode has quit [Remote host closed the connection]
g_bleezy has joined #ruby
nari has joined #ruby
tvw has quit [Remote host closed the connection]
chriskk has joined #ruby
alanp_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
chazu` has joined #ruby
vickaita has quit [Ping timeout: 276 seconds]
banseljaj is now known as imami|afk
Takehiro has joined #ruby
forced_request has joined #ruby
chazu has quit [Ping timeout: 246 seconds]
dangerousdave has quit [Quit: Leaving...]
elico has quit [Quit: elico]
catcity has quit [Ping timeout: 260 seconds]
alanp has quit [Ping timeout: 248 seconds]
Nisstyre has quit [Quit: Leaving]
g_bleezy has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Ping timeout: 264 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Keva161 has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
emaiax has quit [Remote host closed the connection]
und3f has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
SCommette has quit [Quit: SCommette]
Faris has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
joschi has quit [Ping timeout: 272 seconds]
jblack has joined #ruby
ltsstar has quit [Quit: ltsstar]
ewokchewy has quit [Quit: Leaving]
tchebb has quit [Read error: Connection reset by peer]
tomaw has quit [Quit: Quitting]
tomaw has joined #ruby
jcaudle has joined #ruby
joschi has joined #ruby
jenrzzz has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
otters has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
<shevy> will ruby ever dethrone perl on tiobe
reset has quit [Quit: Leaving...]
chriskk has quit [Quit: chriskk]
DrShoggoth has quit [Quit: Leaving]
noxoc has quit [Read error: Operation timed out]
_Mon_Ouie_ has joined #ruby
headius has joined #ruby
mahmoudimus has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
chriskk has joined #ruby
berserkr has quit [Quit: Leaving.]
g_bleezy has joined #ruby
irleif has joined #ruby
My_Hearing has quit [Ping timeout: 248 seconds]
nazty has quit [Ping timeout: 255 seconds]
nazty has joined #ruby
chimkan has quit [Quit: chimkan]
boodle has joined #ruby
<blazes816> well, it'll dethrone typescript after typescript dethrones perl
noxoc has joined #ruby
boodle has left #ruby ["WeeChat 0.3.9"]
Bosma has quit [Quit: leaving]
loocorez has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<loocorez> Hi, I'm obviously doing something obviously wrong but I'm trying to escape apostrophes in a string... I thought it would be something like: puts "won't".gsub(/'/, "\\'") but that ends up with "wontt". Any ideas? Ideally it would be "won\'t".
medik has joined #ruby
JonnieCache has joined #ruby
__miha__ has quit [Read error: Operation timed out]
<loocorez> something wrong*
Keva161 has quit [Ping timeout: 260 seconds]
<loocorez> Nevermind! Solution: gsub(/'/, "\\\\'")
<apeiros> loocorez: the reason it didn't work before is because \' has a meaning in the replacement string
robertotauille has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
fantazo has quit [Read error: Operation timed out]
<apeiros> and for that reason, \x sequences are interpreted twice, once the normal syntax part, and then another time for the special meanings in gsub
apeiros has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<loocorez> Huh, any place I can read up about that? The gsub page doesn't seem to list any special cases, unless I missed it..
bbttxu has quit [Quit: bbttxu]
jjang has joined #ruby
otters has quit [Ping timeout: 255 seconds]
rasbonics has quit [Quit: rasbonics]
JonnieCache has quit [Ping timeout: 245 seconds]
afader has joined #ruby
afader has quit [Changing host]
afader has joined #ruby
kiyoura has quit [Ping timeout: 246 seconds]
<loocorez> Ah I see. "\' means $' which is everything after the match. Escape the \ again and it works"
<loocorez> Thanks!
mikepack has quit [Remote host closed the connection]
<apeiros_> yes, the other things are there too
noxoc has quit [Ping timeout: 244 seconds]
<apeiros_> \0-\9 e.g.
niklasb has quit [Read error: Connection reset by peer]
jimeh has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
recycle has quit [Remote host closed the connection]
elico has joined #ruby
jmccune has left #ruby [#ruby]
nari has quit [Ping timeout: 268 seconds]
niklasb has joined #ruby
SCommette has joined #ruby
seanstickle has joined #ruby
glyytchy has joined #ruby
nari has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
ngoldman has joined #ruby
Nisstyre has joined #ruby
headius has quit [Quit: headius]
tomsthumb has quit [Quit: Leaving.]
niklasb has quit [Read error: Connection reset by peer]
LennyLinux has quit [Remote host closed the connection]
hotovson has joined #ruby
zemanel has quit [Quit: Remote hottie closed the connection]
niklasb has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
afader has quit []
justinmcp has joined #ruby
jlwestsr has joined #ruby
treyryan has quit [Quit: treyryan]
darthdeus has quit [Quit: Leaving...]
rjsamson has quit [Remote host closed the connection]
dmiller has joined #ruby
rjsamson has joined #ruby
linoj has quit [Quit: linoj]
gabrielrotbart has joined #ruby
twopoint718 has quit [Ping timeout: 252 seconds]
hotovson has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 245 seconds]
ddd has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
SCommette has quit [Quit: SCommette]
caleb_io has joined #ruby
rjsamson has quit [Ping timeout: 260 seconds]
reset has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 268 seconds]
vickaita has joined #ruby
nyrb has quit [Remote host closed the connection]